diff --git a/Cargo.lock b/Cargo.lock index 0888bd09..3962e631 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,6 +2,12 @@ # It is not intended for manual editing. version = 4 +[[package]] +name = "adler2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" + [[package]] name = "aho-corasick" version = "1.1.4" @@ -76,6 +82,12 @@ version = "1.0.100" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61" +[[package]] +name = "ar" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d67af77d68a931ecd5cbd8a3b5987d63a1d1d1278f7f6a60ae33db485cdebb69" + [[package]] name = "arraydeque" version = "0.5.1" @@ -140,6 +152,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7a0aeaff4ff1a90589618835a598e545176939b97874f7abc7851caa0618f203" dependencies = [ "find-msvc-tools", + "jobserver", + "libc", "shlex", ] @@ -228,6 +242,17 @@ dependencies = [ "yaml-rust2", ] +[[package]] +name = "console" +version = "0.16.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fe5f465a4f6fee88fad41b85d990f84c835335e85b5d9e6e63e0d06d28cba7c" +dependencies = [ + "encode_unicode", + "libc", + "windows-sys", +] + [[package]] name = "const-random" version = "0.1.18" @@ -278,6 +303,15 @@ dependencies = [ "libc", ] +[[package]] +name = "crc32fast" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8498c871161e1742aaa9d52551b2d6ebdd4c3d45a3be423e3728f33b955be550" +dependencies = [ + "cfg-if", +] + [[package]] name = "crossbeam-deque" version = "0.8.6" @@ -376,18 +410,28 @@ name = "debmagic" version = "0.0.1-alpha.7" dependencies = [ "anyhow", + "ar", + "chrono", "clap", "config", "debian-changelog", "debian-control", "debmagic-common", "dirs", + "flate2", "glob", "ignore", + "insta", "libc", + "regex", "serde", "serde_json", + "tar", + "tempfile", + "test-case", "uuid", + "xz2", + "zstd", ] [[package]] @@ -463,6 +507,12 @@ dependencies = [ "const-random", ] +[[package]] +name = "encode_unicode" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34aa73646ffb006b8f5147f3dc182bd4bcb190227ce861fc4a4844bf8e3cb2c0" + [[package]] name = "encoding_rs" version = "0.8.35" @@ -483,12 +533,49 @@ dependencies = [ "typeid", ] +[[package]] +name = "errno" +version = "0.3.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +dependencies = [ + "libc", + "windows-sys", +] + +[[package]] +name = "fastrand" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223" + +[[package]] +name = "filetime" +version = "0.2.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c287a33c7f0a620c38e641e7f60827713987b3c0f26e8ddc9462cc69cf75759" +dependencies = [ + "cfg-if", + "libc", +] + [[package]] name = "find-msvc-tools" version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "645cbb3a84e60b7531617d5ae4e57f7e27308f6445f5abf653209ea76dec8dff" +[[package]] +name = "flate2" +version = "1.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e634e2e0ebac1ee034020da1ca582e17ffe4e0f5e985823721e168928136dcb" +dependencies = [ + "crc32fast", + "miniz_oxide", + "zlib-rs", +] + [[package]] name = "foldhash" version = "0.1.5" @@ -533,10 +620,21 @@ checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" dependencies = [ "cfg-if", "libc", - "r-efi", + "r-efi 5.3.0", "wasip2", ] +[[package]] +name = "getrandom" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099" +dependencies = [ + "cfg-if", + "libc", + "r-efi 6.0.0", +] + [[package]] name = "glob" version = "0.3.3" @@ -728,6 +826,18 @@ dependencies = [ "winapi-util", ] +[[package]] +name = "insta" +version = "1.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86f0f8fee8c926415c58d6ae43a08523a26faccb2323f5e6b644fe7dd4ef6b82" +dependencies = [ + "console", + "once_cell", + "similar", + "tempfile", +] + [[package]] name = "is_terminal_polyfill" version = "1.70.2" @@ -740,6 +850,16 @@ version = "1.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7ee5b5339afb4c41626dde77b7a611bd4f2c202b897852b4bcf5d03eddc61010" +[[package]] +name = "jobserver" +version = "0.1.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c00acbd29eabad4a2392fa0e921c874934dbbf4194312ad20f04a0ed67a3cb3" +dependencies = [ + "getrandom 0.4.3", + "libc", +] + [[package]] name = "js-sys" version = "0.3.83" @@ -786,9 +906,9 @@ dependencies = [ [[package]] name = "libc" -version = "0.2.178" +version = "0.2.189" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37c93d8daa9d8a012fd8ab92f088405fb202ea0b6ab73ee2482ae66af4f42091" +checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2" [[package]] name = "libredox" @@ -801,6 +921,12 @@ dependencies = [ "redox_syscall", ] +[[package]] +name = "linux-raw-sys" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" + [[package]] name = "litemap" version = "0.8.2" @@ -813,12 +939,33 @@ version = "0.4.29" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" +[[package]] +name = "lzma-sys" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5fda04ab3764e6cde78b9974eec4f779acaba7c4e84b36eca3cf77c581b85d27" +dependencies = [ + "cc", + "libc", + "pkg-config", +] + [[package]] name = "memchr" version = "2.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273" +[[package]] +name = "miniz_oxide" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b63fbc4a50860e98e7b2aa7804ded1db5cbc3aff9193adaff57a6931bf7c4b4c" +dependencies = [ + "adler2", + "simd-adler32", +] + [[package]] name = "num-bigint" version = "0.4.6" @@ -930,6 +1077,12 @@ dependencies = [ "sha2", ] +[[package]] +name = "pkg-config" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548" + [[package]] name = "potential_utf" version = "0.1.4" @@ -963,6 +1116,12 @@ version = "5.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + [[package]] name = "redox_syscall" version = "0.6.0" @@ -1054,6 +1213,19 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" +[[package]] +name = "rustix" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190" +dependencies = [ + "bitflags", + "errno", + "libc", + "linux-raw-sys", + "windows-sys", +] + [[package]] name = "rustversion" version = "1.0.22" @@ -1156,6 +1328,18 @@ version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" +[[package]] +name = "simd-adler32" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea" + +[[package]] +name = "similar" +version = "2.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbbb5d9659141646ae647b42fe094daf6c6192d1620870b449d9557f748b2daa" + [[package]] name = "smallvec" version = "1.15.2" @@ -1213,6 +1397,30 @@ dependencies = [ "syn 2.0.111", ] +[[package]] +name = "tar" +version = "0.4.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f6221d9a6003c78398e3b239969f352578258df48c8eb051caadae0015bc840" +dependencies = [ + "filetime", + "libc", + "xattr", +] + +[[package]] +name = "tempfile" +version = "3.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" +dependencies = [ + "fastrand", + "getrandom 0.3.4", + "once_cell", + "rustix", + "windows-sys", +] + [[package]] name = "test-case" version = "3.3.1" @@ -1601,6 +1809,25 @@ version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4" +[[package]] +name = "xattr" +version = "1.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32e45ad4206f6d2479085147f02bc2ef834ac85886624a23575ae137c8aa8156" +dependencies = [ + "libc", + "rustix", +] + +[[package]] +name = "xz2" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "388c44dc09d76f1536602ead6d325eb532f5c122f17782bd57fb47baeeb767e2" +dependencies = [ + "lzma-sys", +] + [[package]] name = "yaml-rust2" version = "0.10.4" @@ -1689,8 +1916,42 @@ dependencies = [ "syn 2.0.111", ] +[[package]] +name = "zlib-rs" +version = "0.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34b31d188d9d685a4f9c7b46d6e36631b07058d2cfe190267adce54dc230bf12" + [[package]] name = "zmij" version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f1dccf46b25b205e4bebe1d5258a991df1cc17801017a845cb5b3fe0269781aa" + +[[package]] +name = "zstd" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf06bd8162af0734b344780deb55b42a2429ae430870d13fcc12f238e880fe6e" +dependencies = [ + "zstd-safe", +] + +[[package]] +name = "zstd-safe" +version = "8.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae42c0555055784c70058d19ba8e275528e8a99a706684868ace5da4e716a4ab" +dependencies = [ + "zstd-sys", +] + +[[package]] +name = "zstd-sys" +version = "2.1.0+zstd.1.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ef0a8027ec3ee71300ab3bcbcd0393f434aa72b91ca6d635a39941deae8eea0" +dependencies = [ + "cc", + "pkg-config", +] diff --git a/Cargo.toml b/Cargo.toml index 25c28d41..24d67809 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,6 +26,13 @@ regex = { version = ">=1.12.2" } debian-changelog = { version = ">=0.2.14" } debian-control = { version = ">=0.1.39" } ignore = { version = ">=0.4.25" } +ar = { version = ">=0.9.0" } +tar = { version = ">=0.4.45" } +flate2 = { version = ">=1.1.9" } +xz2 = { version = ">=0.1.7" } +zstd = { version = ">=0.13.3" } # dev dependencies test-case = { version = ">=3.3.1" } +tempfile = { version = ">=3.27.0" } +insta = { version = ">=1.48.0" } diff --git a/README.md b/README.md index 13028075..ef52a7a5 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Unified and future-proof developer tooling for increased productivity in the [De Debmagic has two independent parts: - tooling to [**build** and **test**](#debmagic-building) packages - in isolated container environments (lxd, docker, ...) - - `debmagic build`, `debmagic check`, `debmagic test`, `debmagic shell`, ... + - `debmagic build`, `debmagic lint`, `debmagic test`, `debmagic shell`, ... - create package [**build instructions**](#debmagic-packaging) - using Python with `debian/rules.py` (instead of shell & Makefiles) @@ -31,7 +31,7 @@ To learn packaging with debmagic, follow **[the documentation!](https://debmagic | `debmagic build binary` | Build a binary package in a container | | `debmagic build source` | Create a source package for upload | | `debmagic test` | Run Debian autopkgtest tests (`debian/tests/`) against a prior build | -| `debmagic check` | Lint the package | +| `debmagic lint` | Lint the package | > [!TIP] > Want to know more about how to use debmagic to build a package? See [docs/usage/build.md](docs/usage/build.md) for a quickstart. @@ -158,6 +158,10 @@ For questions, suggestions, problem support, please join and just ask! | Matrix Chat | [`#sfttech:matrix.org`](https://app.element.io/#/room/#sfttech:matrix.org) | | Support us | [![donations](https://liberapay.com/assets/widgets/donate.svg)](https://liberapay.com/SFTtech) | +## Acknowledgements + +debmagic's lint implementation is heavily inspired by [oxlint](https://oxc.rs/docs/guide/usage/linter) and [Ruff](https://docs.astral.sh/ruff/). It draws on [lintian](https://lintian.debian.org/)’s checks and tag catalog, with the long-term goal of full lintian compatibility plus additional original rules. + ## License Released under the **GNU General Public License** version 2 or later, [LICENSE](legal/GPL-2) for details. diff --git a/debian/control b/debian/control index fad3b267..5e364a1c 100644 --- a/debian/control +++ b/debian/control @@ -25,10 +25,17 @@ Build-Depends: librust-chrono-dev (>=0.4.42), librust-regex-dev (>=1.12.2), librust-test-case-dev (>=3.3.1), + librust-tempfile-dev (>=3.27.0), + librust-insta-dev (>=1.48.0), librust-pyo3-dev (>=0.27.2), librust-debian-changelog-dev (>=0.2.14), librust-debian-control-dev (>= 0.1.39), - librust-ignore-dev (>=0.4.25) + librust-ignore-dev (>=0.4.25), + librust-ar-dev (>=0.9.0), + librust-tar-dev (>=0.4.45), + librust-flate2-dev (>=1.1.9), + librust-xz2-dev (>=0.1.7), + librust-zstd-dev (>=0.13.3) Rules-Requires-Root: no X-Style: black Standards-Version: 4.7.2 diff --git a/docs/develop/import-lintian-rule.md b/docs/develop/import-lintian-rule.md new file mode 100644 index 00000000..fcd9b0ab --- /dev/null +++ b/docs/develop/import-lintian-rule.md @@ -0,0 +1,101 @@ +# Import a lintian Rule + +This is the working procedure for turning a lintian Tag into an LN Rule. Native Rule tests (`SourceTreeTester` + insta) come first. Lintian’s own recipes become the Parity oracle later — they cannot be dropped into `SourceTreeTester` as a source tree. + +Related: [Parity is Tag-set](../adr/0007-lintian-parity-is-tag-set.md), [oracle is the test suite](../adr/0012-parity-oracle-is-lintian-test-suite.md), [Codes when catalogued](../adr/0015-ln-codes-assigned-when-tag-is-catalogued.md), [per-Subject Rule traits](../adr/0025-per-subject-rule-traits.md), [recipe layout](../research/lintian-test-recipes.md). + +Pin lintian **2.139.0** (`575a2bf1`). Installed tags and checks are under `/usr/share/lintian/`; recipes are **not** in that package — clone git or `apt source lintian` at that version. + +--- + +## 1. Identify the Tag + +Read `/usr/share/lintian/tags/…/.tag`: + +- `Tag:` — this is our Tag string, verbatim. +- `Severity:` / experimental — default Severity and whether `default_selected` is true (error and warning, non-experimental). +- `Check:` — path of the Perl check (`fields/required` → `Lintian::Check::Fields::Required`). +- `Renamed-From:` — old names; we still key on the current Tag. + +Classification tags are not Rules. + +## 2. Catalogue the Rule + +Add a unit struct named from the Tag (`RequiredField`) under `src/lint/rules/lintian/.rs` (or `src/lint/rules/native/.rs` for a DM Rule), `declare_rule!` with a new `LNxxxx` / `DMxxxx` Code, `impl` the subject trait for each kind the Rule inspects now (`SourceTreeRule`, `BinaryPackageRule`, `SourcePackageRule`), and register it in `registry.rs` (the metadata catalog and each kind list whose trait it implements). Lintian files may later split into further subfolders under `lintian/`. + +Until we generate Codes from the full Tag list, assign the next free `LN` Code when the Tag is catalogued and do not reuse it. + +## 3. See what the check inspects + +Read the Check module. Map I/O to the Subject’s context (Debian control, changelog, file index, …). Implement only the subject traits for kinds you inspect; a kind without a trait impl is not Applicability. + +## 4. Native tests first + +`SourceTreeTester` takes pass/fail Source trees as path → content maps and snapshots fail Diagnostics. That is **not** Parity. Use it to lock the Rule’s behaviour on a few trees (including udeb / missing-file edges the recipes never isolate). `BinaryPackageTester` and `SourcePackageTester` exist as names; they are not implemented yet. + +Keep expected extra/context in the message in lintian’s order (for `required-field`: `(in section for …)` then the field name). Pointers like `[debian/control:1]` belong on `Location` when we have them; they are stripped from `eval/hints` extras and are not part of Parity. + +## 5. Find upstream recipes + +Recipes live at: + +```text +t/recipes/checks// +``` + +for example `t/recipes/checks/fields/required/`. Each recipe has `build-spec/` (how to build) and `eval/hints` (expected universal output). + +`eval/desc` lists a **Check**, not a Tag (`Test-For` is gone). Selecting `tag:required-field` in lintian’s runner therefore means “every recipe for `fields/required`”. Grep `eval/hints` for the Tag as the **third field** (a substring hits `doc-base-file-lacks-required-field`). + +Classify each recipe by skeleton (`build-spec/fill-values` → `Skeleton:`): + +| Skeleton | Artifact | Debmagic Subject today | +| --- | --- | --- | +| `upload-native` / `upload-non-native` | `.changes` via `dpkg-buildpackage` | Source tree *before* the build; Source package / Binary package after | +| `source-native` / `source-non-native` | `.dsc` | Source package; Source tree after fill | +| `deb` | hand-built `.deb` | Binary package | +| `changes` | `.changes` | none yet | + +A single `hints` file often mixes `(source)` and `(binary)` lines. Import only the lines that match the Subject you are implementing. Drop `(source)` extras that name a `.dsc` until Source-package tests exist. + +## 6. Why recipes are not a copy-paste into `SourceTreeTester` + +A recipe is a **spec**: skeleton templates (`t/templates/…`), `[% $source %]` fills, optional `pre-build`, then usually `dpkg-buildpackage`. `build-spec/debian/` is an overlay, not a complete Source tree (there is no `debian/debian/` in 2.139.0). + +The oracle is `eval/hints` in **universal** format: + +```text +package (source|binary|changes|udeb): tag-name extra… [optional-pointer] +``` + +not EWI (`E: pkg: tag`) and not our Diagnostic stdout. + +Do not submodule lintian or read `/usr/share/lintian` at test time. Native `SourceTreeTester` cases stay hand-written. Parity recipes are **filled sources** plus transcribed `eval/hints` (GPL-2+), with an `ORIGIN` pointer to `lintian 2.139.0 t/recipes/…` — not the raw `build-spec`, and not a built `.deb` / `.dsc`. They live under `packages/debmagic/tests/lintian-parity/`. Source-tree Parity lints that tree as-is. Binary-package Parity for `deb`-skeleton recipes assembles lintian’s Build-Product (`make` / `ar` / `tar`) in the test and lints that `.deb`. Source-package and upload-native `(binary)` lines wait. + +Import or refresh the full Parity suite from a lintian version tag (every importable recipe: source-tree, deb, and changes): + +```shell +python3 scripts/import_lintian_parity.py 2.139.0 +``` + +Reuse a local clone: + +```shell +python3 scripts/import_lintian_parity.py 2.139.0 --lintian-src /path/to/lintian +``` + +Import also rewrites `packages/debmagic/tests/lintian_parity.rs` with one test per vendored Source-tree or `deb`-skeleton recipe whose `eval/hints` mention a catalogued LN Tag. After cataloguing a Rule without re-filling recipes: + +```shell +python3 scripts/import_lintian_parity.py --write-tests +``` + +## 7. Worked sketch: `required-field` + +Check: `lib/Lintian/Check/Fields/Required.pm`. Tag file: `tags/r/required-field.tag`. Three recipes: + +- **`generic-empty`** — `upload-native`; `control.in` omits `Standards-Version` and `Description`; `pre-build` deletes `debian/compat` and `debian/copyright`. Source-tree extras: `(in section for source) Standards-Version` and `(in section for generic-empty) Description`. Also `.dsc` and `.deb` lines — skip those until Source package / upload builds exist. +- **`fields-general-missing`** — `deb`; Binary package Parity (assemble the Build-Product, lint the `.deb`). +- **`changes-missing-fields`** — `changes`; no Subject yet. + +`LN0001` Source-tree Parity is `generic-empty` under `tests/lintian-parity/` (two `debian/control` hint lines). Binary-package Parity is `fields-general-missing`. `.dsc` lines wait for Source package. diff --git a/docs/develop/index.md b/docs/develop/index.md index 3bc9d422..f25e0e27 100644 --- a/docs/develop/index.md +++ b/docs/develop/index.md @@ -29,4 +29,5 @@ uv run sphinx-autobuild docs docs/_build ```{toctree} +import-lintian-rule.md ``` diff --git a/docs/index.md b/docs/index.md index 6e2e4f15..7f672267 100644 --- a/docs/index.md +++ b/docs/index.md @@ -19,6 +19,7 @@ usage/modules/index.md :caption: Development develop/index.md +develop/import-lintian-rule.md develop/releasing.md ``` diff --git a/docs/research/lintian-rule-information-access.md b/docs/research/lintian-rule-information-access.md new file mode 100644 index 00000000..dacebbc4 --- /dev/null +++ b/docs/research/lintian-rule-information-access.md @@ -0,0 +1,127 @@ +# What lintian rules need to inspect + +Primary source: Debian lintian **2.139.0** as installed (`/usr/share/lintian/`). Upstream git: [salsa.debian.org/lintian/lintian](https://salsa.debian.org/lintian/lintian). Tag catalog: 1529 `.tag` files (658 warning, 563 error, 166 info, 103 pedantic, 39 classification). Check modules: 343 under `lib/Lintian/Check/`. Classification tags are not Rules (ADR 0022) and are ignored below. + +Lintian does not run a Rule against “the package” as a blob. Each Check module is a Moo role on `Lintian::Check`; `run` walks processable-specific **indexes** and then calls type hooks (`source`, `installable`/`binary`, `always`). Source walks `orig` then `patched` file indexes; binary/udeb walk `control` then `installed` ([`lib/Lintian/Check.pm`](https://salsa.debian.org/lintian/lintian/-/blob/master/lib/Lintian/Check.pm) `run` / `visit_files`). + +Processable types lintian knows: `source`, `binary`, `udeb`, `changes`, `buildinfo` ([`lib/Lintian/Group.pm`](https://salsa.debian.org/lintian/lintian/-/blob/master/lib/Lintian/Group.pm) `%SUPPORTED_TYPES`). Debmagic Subjects today are Source tree, Binary package, Source package — not `.changes` / `.buildinfo`. + +--- + +## Taxonomy of information kinds + +Rough size is **tag count by Check: prefix** (not module count). `debian/*` is 373 tags because it is a bag of distinct debian/ files, not one kind. + +### Large (must be represented in the first native slice) + +| Kind | What is read | Where in lintian | Scale | +| --- | --- | --- | --- | +| **Deb822 control fields** | `debian/control`, `.dsc` fields, `.deb` `control` stanza: field names, values, source vs installable paragraphs | `Fields/*`, `Debian/Control/*`, [`Lintian::Debian::Control`](https://salsa.debian.org/lintian/lintian/-/blob/master/lib/Lintian/Debian/Control.pm), [`Lintian::Deb822`](https://salsa.debian.org/lintian/lintian/-/blob/master/lib/Lintian/Deb822.pm) | **215** tags under `fields/*` | +| **Patched / orig source file index** | Every path in the unpacked source (after quilt): name, type, mode, symlink target, `file(1)` magic, sometimes bytes | `visit_patched_files` / `visit_orig_files`; [`Lintian::Index::Item`](https://salsa.debian.org/lintian/lintian/-/blob/master/lib/Lintian/Index/Item.pm), [`Index::FileTypes`](https://salsa.debian.org/lintian/lintian/-/blob/master/lib/Lintian/Index/FileTypes.pm) (`file --raw`); `Files/*`, `Cruft` | **202** `files/*` + **16** `cruft` | +| **debian/changelog** | Debian changelog grammar: entries, versions, distributions, dates, Closes, maintainer | [`Debian/Changelog.pm`](https://salsa.debian.org/lintian/lintian/-/blob/master/lib/Lintian/Check/Debian/Changelog.pm), [`Lintian::Changelog`](https://salsa.debian.org/lintian/lintian/-/blob/master/lib/Lintian/Changelog.pm) | **52** tags | +| **debian/copyright** (plain + DEP-5) | Presence of `debian/copyright` / `/usr/share/doc/*/copyright`; DEP-5 Deb822 (Format, Files, License paragraphs); license text size | [`Debian/Copyright.pm`](https://salsa.debian.org/lintian/lintian/-/blob/master/lib/Lintian/Check/Debian/Copyright.pm), [`Debian/Copyright/Dep5.pm`](https://salsa.debian.org/lintian/lintian/-/blob/master/lib/Lintian/Check/Debian/Copyright/Dep5.pm) | **36** + **41** | +| **debian/rules** | Shebang (`/usr/bin/make -f`), executable bit, makefile targets, `include`, dh sequencer lines | [`Debian/Rules.pm`](https://salsa.debian.org/lintian/lintian/-/blob/master/lib/Lintian/Check/Debian/Rules.pm), `data/rules/` | **36** | +| **Package relations** | Depends/Recommends/… and Build-Depends parsed as Policy 7.1 alternatives | [`Fields/PackageRelations.pm`](https://salsa.debian.org/lintian/lintian/-/blob/master/lib/Lintian/Check/Fields/PackageRelations.pm), `Lintian::Relation`; also Debhelper/Python cross-checks | **62** (`fields/package-relations` alone) | +| **Installed binary file index** | Paths inside the `.deb` data.tar: mode, owner, size, magic, duplicates, FHS | `visit_installed_files`; `Files/Hierarchy/*`, `Files/Permissions`, `Usrmerge`, … | bulk of `files/*` on binary | +| **Scripts / shebang** | `#!` interpreter, executable bit, interpreter → package map | [`Scripts.pm`](https://salsa.debian.org/lintian/lintian/-/blob/master/lib/Lintian/Check/Scripts.pm), `data/scripts/interpreters` | **69** (largest single Check:) | + +### Medium + +| Kind | What is read | Scale / notes | +| --- | --- | --- | +| **ELF / shared libraries** | `file` “ELF … not stripped”; objdump/readelf: NEEDED, RPATH, SONAME, hardening notes, symbols | `Index::Elf`, `Binaries/*` (**33**), `Libraries/*` (**23**) | +| **Debhelper** | `debian/rules` dh usage, compat level (`debian/compat` or `debhelper-compat (= N)`), addons | `Debhelper.pm` + `data/debhelper/` (**42**) | +| **Maintainer scripts** | `DEBIAN/{pre,post}{inst,rm}` text (control.tar) | `MaintainerScripts/*` (**17**), plus `visit_control_files` in Scripts/InitD/Apache2 | +| **Init / systemd / udev / cron / apache** | Unit files, init.d LSB headers, tmpfiles, udev rules | systemd **23**, init-d **40**, udev **4**, apache2 **14** | +| **Manpages / doc / desktop / menus** | Installed documentation layout, `.desktop`, menu-format | documentation **51**, menu-format **45**, menus **41**, desktop **25** | +| **Language ecosystems** | Python/Java/JS/Perl/… bytecode, paths, team conventions | `Languages/*` **104** | +| **Patches / source format / watch** | `debian/source/format`, quilt series, DEP-3, `debian/watch` | source-dir, patches, watch (~40 combined) | +| **Static `data/` tables** | Policy releases, obsolete packages, interpreters, spelling, archive sections, fonts | `/usr/share/lintian/data/` — not package content; many tags are “field value ∈ table” | + +### Smaller / later + +- **`.changes` / `.buildinfo` / group** — sibling packages in one upload (`GroupChecks`, `ChangesFile`). Debmagic has no matching Subject yet. +- **`.dsc` checksums and Files list** — Source package identity (`Processable::Fields::Files`). +- **shlibs / symbols / triggers / md5sums / conffiles** — binary control.tar policy files. +- **Spelling** — English dictionaries over descriptions and binaries. +- **Privacy / privacy-breach URLs, obsolete sites** — content scan + URL lists. +- **Java bytecode, fonts, images, orig tarball vs patched diffstat**. + +Indexes lintian attaches to file items (the “collector” layer): file types (`file(1)`), ELF, Java, ar, md5sums, strings (`lib/Lintian/Index/*.pm`). Native Rules will eventually need the same facts, even if they start as in-rule `std::fs` + `file`/`readelf`. + +--- + +## Five starter tags + +Chosen to force five **different I/O surfaces**, default-visible severity (error or warning, not experimental), no archive-wide dump, and a path we can implement on current Subjects. Together they stand in for Deb822 fields, changelog, debian/rules, the source file index + magic, and the binary ELF/installed-file index. + +### 1. `required-field` + +- **Severity:** error. **Check:** `fields/required`. **Renamed-from** includes `no-standards-version-field`, `no-maintainer-field`, … +- **Subject:** Source tree (`debian/control` paragraphs), Source package (`.dsc` fields), Binary package (installation control). +- **Inspects:** Deb822: whether Policy-required fields exist. Source `debian/control` needs `Source`, `Maintainer`, `Standards-Version`; each installable paragraph needs `Package`, `Architecture`, `Description`. `.dsc` adds Format/Version/Checksums/Files. `.deb` needs Package/Version/Architecture/Maintainer/Description ([`Fields/Required.pm`](https://salsa.debian.org/lintian/lintian/-/blob/master/lib/Lintian/Check/Fields/Required.pm), Policy 5.2–5.4). +- **Cluster:** all **215** `fields/*` tags share this control object. +- **Native sketch:** parse Deb822 into source + named binary stanzas; emit one Diagnostic per missing required name. Extra/context is the field name (and “in section for …” on `debian/control`). + +### 2. `syntax-error-in-debian-changelog` + +- **Severity:** warning. **Check:** `debian/changelog`. +- **Subject:** Source tree (and Source package via patched tree); also fires from the binary changelog copy when that lint runs on `.deb`. +- **Inspects:** Debian changelog grammar. Parser errors are `[$line, $message]` on `Lintian::Changelog->errors`, then hinted with the quoted condition ([`Debian/Changelog.pm`](https://salsa.debian.org/lintian/lintian/-/blob/master/lib/Lintian/Check/Debian/Changelog.pm) around the `for my $error (@{$changelog->errors})` loop). +- **Cluster:** **52** changelog tags (versions, NMU, distributions, dates, Closes, line length). +- **Native sketch:** parse `debian/changelog`; each parser error is a Diagnostic at that line. Do not need archive or `data/` for this tag. + +### 3. `debian-rules-missing-required-target` + +- **Severity:** error. **Check:** `debian/rules`. Policy 4.9. +- **Subject:** Source tree. +- **Inspects:** `debian/rules` as a makefile: required targets `build`, `build-arch`, `build-indep`, `binary`, `binary-arch`, `binary-indep`, `clean`. Implementation scans lines for target names, `include` of known helper makefiles (`data/rules/known-makefiles`), and treats a `dh` sequencer as providing all of them ([`Debian/Rules.pm`](https://salsa.debian.org/lintian/lintian/-/blob/master/lib/Lintian/Check/Debian/Rules.pm) `%TAG_FOR_POLICY_TARGET`). +- **Cluster:** **36** `debian/rules` tags plus Debhelper’s use of the same file. +- **Native sketch:** locate `debian/rules` in the Source tree (follow symlink); collect declared targets (and `dh` / known includes); hint each missing policy target as extra. A first slice can special-case `dh` and ignore exotic includes (parity holes documented until filled). + +### 4. `source-contains-prebuilt-windows-binary` + +- **Severity:** warning. **Check:** `files/source-missing`. +- **Subject:** Source tree / Source package (patched index). Skip `.pc/` (lintian already excludes quilt metadata in `visit_files`). +- **Inspects:** every regular file’s `file(1)` type string for PE32/PE64 / MS-DOS/COM executable ([`Files/SourceMissing.pm`](https://salsa.debian.org/lintian/lintian/-/blob/master/lib/Lintian/Check/Files/SourceMissing.pm) `visit_patched_files`). +- **Cluster:** **202** `files/*` tags that need a source file index + magic (prebuilt objects, missing sources, names, encoding). +- **Native sketch:** walk the tree; run `file` (or a magic crate) per file; match the same PE/MS-DOS regex. No `data/` file required. + +### 5. `unstripped-binary-or-object` + +- **Severity:** error. **Check:** `binaries/debug-symbols`. Policy 10.1 / 10.2. +- **Subject:** Binary package. +- **Inspects:** installed files whose `file` type contains `ELF` and `not stripped`, with exclusions: `*.o`/`*.ko`, `*-dbg` packages, `lib/debug/`, Guile `.go`, OCaml `.gox`, and Caml bytecode executables ([`Binaries/DebugSymbols.pm`](https://salsa.debian.org/lintian/lintian/-/blob/master/lib/Lintian/Check/Binaries/DebugSymbols.pm)). +- **Cluster:** **33** `binaries/*` + **23** `libraries/*` that need unpack + ELF/magic (hardening, RPATH, NEEDED, SONAME). +- **Native sketch:** unpack `.deb` data.tar; for each file, `file` (and later readelf); emit on unstripped ELF with the same path exclusions. + +--- + +## Rejected for this slice + +| Tag | Why not | +| --- | --- | +| `syntax-error-in-dep5-copyright` | Strong cluster (77 copyright tags) but same I/O family as Deb822 (`required-field`). Next after the five. | +| `bad-relation` / `depends-on-obsolete-package` | Relation grammar is important (**62** tags) but needs Policy 7.1 parsing; obsolete variant needs `data/` package lists. Build on `required-field`’s control object. | +| `missing-dep-for-interpreter` | Covers scripts (**69**) *and* Depends, but needs `data/scripts/interpreters` and a `.deb`. Prefer ELF as the first binary pipeline; scripts next. | +| `script-not-executable` | Warning, good, but thinner than ELF for unlocking Binaries/Libraries. | +| `no-copyright-file` | Binary-only path presence (`/usr/share/doc//copyright`); too little parser surface. | +| `out-of-date-standards-version` | Info — not default Selection (ADR 0010). Needs policy-release dates vs changelog timestamp. | +| `debian-rules-not-executable` | Pedantic. | +| `debian-watch-file-is-missing` / `missing-debian-source-format` | File existence only. | +| `source-contains-prebuilt-binary` | Pedantic; Windows-PE sibling is warning and enough to force magic. | +| `hardening-no-pie` | Needs full ELF notes / hardening collector; `unstripped-*` is the thinner ELF on-ramp. | +| `invalid-standards-version` | Error, but a single field format check — subset of Deb822, less leverage than `required-field`. | +| Group / `.changes` tags | No Subject kind yet (ADR 0018). | +| Language-specific (Java bytecode, Python `.pyc`, …) | Niche collectors; `source-contains-prebuilt-windows-binary` already forces magic. | +| `package-installs-python-bytecode` | Error, but language-specific installed-file name check. | + +--- + +## Suggested order after these five + +1. `syntax-error-in-dep5-copyright` — second Deb822 dialect (copyright-format 1.0). +2. `bad-relation` — Policy relation parser on the control object from (1). +3. `missing-dep-for-interpreter` — installed scripts + interpreter table + Depends. +4. `missing-debian-source-format` or a quilt/DEP-3 tag — `debian/source/` and patches. +5. A Debhelper tag (`compat` / `dh` addon) — `debian/rules` plus `data/debhelper/`. diff --git a/docs/research/lintian-test-recipes.md b/docs/research/lintian-test-recipes.md new file mode 100644 index 00000000..96e8e52a --- /dev/null +++ b/docs/research/lintian-test-recipes.md @@ -0,0 +1,365 @@ +# How lintian’s test recipes work (import notes) + +Primary source: Debian lintian **2.139.0** git tag (`575a2bf1bc98500bbc1c78e82f44b40d195d17ea`), cloned from [salsa.debian.org/lintian/lintian](https://salsa.debian.org/lintian/lintian). Installed binary package **2.139.0** on this machine is `/usr/share/lintian/` and does **not** ship `t/` (see §7). + +Salsa permalinks below use the `2.139.0` tag (same tree as the clone). Line numbers are from that tree. + +This note is for importing **per-tag recipes** into debmagic as native SourceTreeTester fixtures (plain source tree + expected Tags), per [ADR 0012](../adr/0012-parity-oracle-is-lintian-test-suite.md). + +--- + +## 1. Directory layout + +### `t/recipes` vs older `t/tests` + +At 2.139.0 there is **no** `t/tests/` directory. The only tag-testing suite is `t/recipes/` ([`lib/Test/Lintian/Filter.pm`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/lib/Test/Lintian/Filter.pm) lines 63–64: `@LINTIAN_SUITES = qw(recipes)`). + +The old layout is still described in stale docs: + +- [`doc/tutorial/Lintian/Tutorial/WritingTests.pod`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/doc/tutorial/Lintian/Tutorial/WritingTests.pod) lines 8–9, 63–64, 98–100, 149–163, 369–373: tests live in `t/tests//` with a root `desc`, a `tags` file, and a **double `debian/`** (`t/tests//debian/debian/rules`). +- [`private/runtests`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/private/runtests) lines 25–28 still points at `t/tests/README` (that file is gone). +- The current harness **rejects** leftover double-debian specs: [`lib/Test/Lintian/Prepare.pm`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/lib/Test/Lintian/Prepare.pm) lines 124–125 (`die` if `$specpath/debian/debian` exists). +- `debian/changelog` still talks about `t/tests/*` in old entries (e.g. around the 2.5.x era); that is history, not the 2.139.0 tree. + +Current contributor docs are [`CONTRIBUTING.md`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/CONTRIBUTING.md) (lines 104–167) and a **partially stale** [`t/recipes/README`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/t/recipes/README) (still describes root `desc`/`tags`/`debian/` as if they were the recipe on disk). Trust CONTRIBUTING + the Perl runner over that README when they disagree. + +### What is actually on disk (2.139.0) + +``` +t/ + recipes/ 1458 tests, each identified by eval/desc + checks/ mirrors lib/Lintian/Check/ path + general-false-positives/ + lintian-features/ + odd-inputs/ + runner-features/ + tracking/ + skeletons/ layout + builder for a test working directory + templates/ files copied/filled into that directory + defaults/ default eval + fill-values + filename map + whitelists/ which *.in templates may be generated + scripts/ prove(1) unit tests (not tag recipes) +``` + +Recipe count: 1458 `eval/desc` files under `t/recipes/` (this clone). CONTRIBUTING says the recipe directory should mirror the check path, e.g. `t/recipes/checks/fields/required//` ([`CONTRIBUTING.md`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/CONTRIBUTING.md) lines 51–56, 109–157). + +### One recipe + +Each recipe is a directory containing **two** specs ([`CONTRIBUTING.md`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/CONTRIBUTING.md) 114–159): + +| Path | Role | +| --- | --- | +| `build-spec/` | How to **build** the subject | +| `build-spec/fill-values` | Deb822: `Skeleton`, `Testname`, `Description`, optional `Version`, `Type`, extra depends | +| `build-spec/debian/` | Overlay onto the skeleton’s `debian/` (source/upload skeletons) | +| `build-spec/orig/` | Upstream tree for non-native / extra files (631 recipes have this) | +| `build-spec/DEBIAN/` | Binary control overlay (`Skeleton: deb`) | +| `build-spec/pre-build` | Executable hook; 94 recipes | +| `build-spec/pre-upstream` | Non-native tarball hook; 10 recipes | +| `eval/` | How to **run** lintian and what to expect | +| `eval/desc` | Deb822: `Testname`, `Check`, optional `Test-Against`, `Options`, `Profile`, `Match-Strategy` | +| `eval/hints` | Expected universal-format hint lines (oracle) | + +There is **no** on-disk `tags` file anywhere under `t/recipes/` (count 0). Expected output is `eval/hints`. + +`t/defaults/files` maps logical names to those paths ([`t/defaults/files`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/t/defaults/files)): `Test-Specification: desc`, `Fill-Values: fill-values`. Discovery: any `desc` whose parent’s parent is the recipe (`find_all_testpaths` walks `desc` then `parent->parent`, [`Filter.pm`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/lib/Test/Lintian/Filter.pm) 270–276). + +Hooks still supported by the runner (README names, actual filenames after copy): `pre-build`, `pre-upstream`, `post-test` (sed; 270 recipes), `test-calibration` (2 recipes), `skip` (supported in [`Run.pm`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/lib/Test/Lintian/Run.pm) 213–218 and [`Build.pm`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/lib/Test/Lintian/Build.pm) 91–97; **zero** `skip` files in 2.139.0 recipes). + +Preparation ([`Prepare.pm`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/lib/Test/Lintian/Prepare.pm) 85–183, 314–384): + +1. Load `t/defaults/fill-values` then overlay `build-spec/fill-values`. +2. Load `t/skeletons/` (`Template-Sets`, `Fill-Targets`, `Type`, `Version`). +3. Copy template sets from `t/templates/` into a work dir (`debian/test-out/…`). +4. Copy the whole recipe (including `build-spec/`) on top; drop templates that the recipe already provides. +5. Fill `*.in` via `Text::Template` (`[% $field %]`). +6. `filleval` does the same for `eval/` using skeleton `testing` by default. + +--- + +## 2. How a recipe declares which tags it cares about + +### Current mechanism (2.139.0): `Check:` + `eval/hints` + +**`Test-For` does not appear** in any 2.139.0 `eval/desc` or `fill-values` (grep count 0). The README’s `Test-For:` field is leftover from `t/tests`. + +What is used: + +1. **`Check:` in `eval/desc`** — which lintian check module(s) to run. CONTRIBUTING: “Most tests only run a specific lintian 'check'.” and “Only tags from the selected 'check' should be included” in `hints` ([`CONTRIBUTING.md`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/CONTRIBUTING.md) 109–160). Default if omitted: `Check: all` from [`t/defaults/desc`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/t/defaults/desc) line 1. No recipe at 2.139.0 sets `Check: all` explicitly; 34 recipes omit `Check` (mostly `general-false-positives` / runner tests) and inherit `all`. **Zero** recipes list more than one check name. + +2. **`eval/hints`** — the exact expected emissions. The runner’s `Match-Strategy: hints` (default, [`t/defaults/desc`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/t/defaults/desc) line 7) compares this file to lintian’s universal output ([`Run.pm`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/lib/Test/Lintian/Run.pm) 311–320, 376–412). + +3. **`Test-Against:`** — still present on many `eval/desc` files. Used by `find_all_tags` to add tags that must **not** appear, and by `check_result` together with the check’s full tag list ([`Filter.pm`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/lib/Test/Lintian/Filter.pm) 328–365; [`Run.pm`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/lib/Test/Lintian/Run.pm) 488–547). + +4. **Computed Test-For** — intersection of expected hint tag names and tags belonging to `Check:` ([`Run.pm`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/lib/Test/Lintian/Run.pm) 516–518). Missing those tags fails the test; unexpected tags from the rest of the check also fail. + +### Format of expected hint lines (the old `tags` file) + +Old EWI-style `tags` files looked like `I: pkg: tag-name` ([WritingTests.pod](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/doc/tutorial/Lintian/Tutorial/WritingTests.pod) 149–156). Current **universal** format is parsed by [`Test::Lintian::Output::Universal::parse_line`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/lib/Test/Lintian/Output/Universal.pm) lines 137–147: + +``` +^(\S+)\s+\(([^)]+)\):\s+(\S+)(?:\s+(.*))?$ +``` + +That is, **one line per emission**: + +``` + (): […] +``` + +- `package` — processable name (often `Testname`). +- `type` — `source` | `binary` | `changes` | `udeb` (lintian group types). +- `tag-name` — e.g. `required-field`. +- remainder — extra/context: field name, `(in section for …)`, `[debian/control:N]`, `.dsc`/`.deb` basename, etc. + +Default lintian CLI includes `--exp-output format=universal` ([`t/templates/lintian-invocation/fill-values.d/lintian-invocation.values`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/t/templates/lintian-invocation/fill-values.d/lintian-invocation.values); [`t/defaults/desc`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/t/defaults/desc) lines 5–8). A few recipes set `Output-Format: EWI` and `Match-Strategy: literal` (e.g. traversal tests). + +Lines are compared after a reverse sort keyed by package type ([`Run.pm`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/lib/Test/Lintian/Run.pm) 438–442; [`Universal.pm`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/lib/Test/Lintian/Output/Universal.pm) `order`). + +--- + +## 3. Finding all recipes that emit a given tag + +### There is no tag→recipe index file + +`t/COVERAGE` is a **2016-10-22** dump of untested tags ([`t/COVERAGE`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/t/COVERAGE) line 1). It is not an index of recipes and is stale relative to 1458 recipes. + +### How lintian itself selects by tag + +`private/runtests --onlyrun=tag:required-field` ([`t/recipes/README`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/t/recipes/README) 261–276; [`Filter.pm`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/lib/Test/Lintian/Filter.pm) 193–224): + +1. Resolve the tag in the Profile (`required-field` → check `fields/required`, [`tags/r/required-field.tag`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/tags/r/required-field.tag) lines 1–3). +2. Select **every recipe whose `eval/desc` `Check:` lists that check**. + +It does **not** grep `eval/hints`. So `tag:required-field` runs the whole `fields/required` recipe family, not “lines that mention that tag”. + +`check:fields/required` is the same selection. + +### Practical search for an importer + +Grep `eval/hints` for the tag as the third field (not a substring). Example false positive: `doc-base-file-lacks-required-field` in [`t/recipes/checks/menus/legacy-binary/eval/hints`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/t/recipes/checks/menus/legacy-binary/eval/hints). + +Word-boundary grep of `eval/hints` for `required-field` hits **four** files; the menus one is a different tag. The three real recipes are under `t/recipes/checks/fields/required/` (see the required-field section below). + +### Do recipes test a whole check module? + +Yes, by design: one `Check:` per recipe, `hints` may list **many tags** of that check. CONTRIBUTING: do not name tests after a single tag; “many tags need two or more tests” ([`CONTRIBUTING.md`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/CONTRIBUTING.md) 109–112). README (stale but still the intent): keep tests focused on a closely related set; `-general` tests may emit many tags ([`t/recipes/README`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/t/recipes/README) 288–360). + +Largest `Check:` buckets in this tree include `debian/changelog` (72 recipes), `debhelper` (51), `debian/copyright/dep5` (50). The three `fields/required` recipes each emit **only** `required-field` (multiple lines / processable types). + +--- + +## 4. Source-tree recipes vs recipes that must build `.deb` / `.dsc` + +### Skeletons (the real “test type”) + +`Type:`, `Sequence:`, and `Test-For:` are **not** how 2.139.0 classifies tests. `Sequence:` does not appear in recipes. `Type:` is almost always inherited from the skeleton (`native` vs `non-native`); only 7 `fill-values` files override `Type:`. + +Skeleton files under [`t/skeletons/`](https://salsa.debian.org/lintian/lintian/-/tree/2.139.0/t/skeletons): + +| Skeleton | Count | Build product | What lintian is run on | +| --- | ---: | --- | --- | +| `upload-native` | 917 | `.changes` (via `dpkg-buildpackage`) | Full upload: `.dsc` + `.deb` + `.changes` | +| `upload-non-native` | 350 | same, quilt/non-native | same | +| `source-native` | 85 | `.dsc` (`dpkg-source -b`) | Source package only | +| `source-non-native` | 38 | `.dsc` | Source package only | +| `deb` | 36 | `.deb` (hand-rolled `ar`) | Binary package only | +| `changes` | 21 | filled `test.changes` | `.changes` only | +| `upload-builder-only` | 11 | upload makefile without debian templates | special | + +`Build-Product` comes from template fill-values, e.g.: + +- upload: `[% $source %]_[% $no_epoch %]_[% $upload_type %].changes` ([`upload-make-builder.values`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/t/templates/upload-make-builder/fill-values.d/upload-make-builder.values)) +- source: `[% $source %]_[% $version %].dsc` ([`source-make-builder.values`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/t/templates/source-make-builder/fill-values.d/source-make-builder.values)) +- deb: `[% $source %].deb` ([`deb-make-builder.values`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/t/templates/deb-make-builder/fill-values.d/deb-make-builder.values)) + +The eval skeleton `testing` ([`t/skeletons/testing`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/t/skeletons/testing)) only supplies the TAP runner + lintian invocation templates, not a package. + +Upload makefile copies `build-spec/debian/` onto `packagedir/debian` then runs `dpkg-buildpackage` ([`t/templates/upload-make-builder/Makefile.in`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/t/templates/upload-make-builder/Makefile.in) 46–55). Source makefile runs `dpkg-source -b` after the same copy ([`t/templates/source-make-builder/Makefile.in`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/t/templates/source-make-builder/Makefile.in) 60–77). Deb makefile assembles `DEBIAN/` + `root/` into a `.deb` ([`t/templates/deb-make-builder/Makefile.in`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/t/templates/deb-make-builder/Makefile.in)). + +### Mapping to debmagic Subjects ([ADR 0016](../adr/0016-lint-subject-kinds.md)) + +- **Source tree**: the filled `packagedir` **before** `dpkg-buildpackage` / `dpkg-source` (debian/ overlay + orig + pre-build). Lintian itself does not run on that tree in these recipes; it runs on `.dsc`/`.deb`/`.changes`. Source-applicable **tags** are the `eval/hints` lines with `(source)` whose extra still makes sense on `debian/` (not `.dsc` basename extras). +- **Source package**: `source-*` skeletons and `(source)` hints that name a `.dsc`. +- **Binary package**: `deb` skeleton and `(binary)` hints. +- **`.changes`**: deferred in ADR 0016; `Skeleton: changes` recipes wait. + +`eval/desc` fields that are **not** a test-type enum: `Testname`, `Check`, `Test-Against`, `Options` (extra CLI), `Profile` (default `debian`), `Match-Strategy` (`hints` | `literal`), `Output-Format`, `Exit-Status`, `Todo`, `Test-Architectures`, `Skeleton` (eval-side, default `testing`). Build-side `fill-values`: `Skeleton`, `Testname`, `Description`, `Version`, `Package-Architecture`, `Extra-Build-Depends`, `Test-Depends`, `Test-Conflicts` ([`t/recipes/README`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/t/recipes/README) 136–152; [`Hooks.pm`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/lib/Test/Lintian/Hooks.pm) 156–162). + +Default lintian flags: `--pedantic --display-info --display-experimental --display-level +classification --show-overrides --check-part [% $check %]` ([`t/defaults/desc`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/t/defaults/desc) line 8). That is **not** the same as lintian’s default user profile; it is the test profile. + +--- + +## 5. Reusing recipes as Source-tree fixtures without `Test::Lintian` + +**Yes, for the oracle and for a materialized `debian/` tree.** Do not run `private/runtests` or `Test::Lintian::*`. ADR 0012 already says the first lint slice uses native tests (plain source tree + expected Tags), with an importer targeting that shape later. + +### Double debian + +Old: recipe `debian/` **was** the package’s `debian/` overlay, so `debian/rules` lived at `debian/debian/rules` ([WritingTests.pod](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/doc/tutorial/Lintian/Tutorial/WritingTests.pod) 158–163). + +New: `build-spec/debian/` is that overlay (single `debian/` segment). Skeleton template set `debian (debian-native)` copies [`t/templates/debian-native/`](https://salsa.debian.org/lintian/lintian/-/tree/2.139.0/t/templates/debian-native) (`control.in`, `changelog.in`, `copyright`, `rules`, …) into the **work directory’s** `debian/`. Recipe files **replace** templates of the same name ([`Prepare.pm`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/lib/Test/Lintian/Prepare.pm) 176–177 `remove_surplus_templates`). Fill whitelist [`t/whitelists/debian-packaging`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/t/whitelists/debian-packaging) allows generating `control`, `changelog`, `rules`, `compat`, `source/format`, tests files from `.in`. + +You never need a `debian/debian/` path in an imported fixture. If you copy a recipe raw, you must **flatten** `build-spec/debian/` → fixture `debian/` after template fill. + +### What must be unpacked or generated + +For an `upload-native` / `source-native` recipe to become a Source-tree fixture: + +1. **Start from skeleton templates** (`t/templates/debian-native` plus builder templates) plus **recipe overlay** (`build-spec/debian/`, `build-spec/orig/`). +2. **Fill** `[% $source %]`, `[% $version %]`, `[% $standards_version %]`, `[% $author %]`, `[% $date %]`, `[% $description %]`, `[% $build_depends %]`, `[% $package_architecture %]`, `[% $dh_compat_level %]`. Defaults: author `Debian Lintian Maintainers `, `Standards-Version` from env `POLICY_VERSION` at test time ([`Prepare.pm`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/lib/Test/Lintian/Prepare.pm) 226–229), `Dh-Compat-Level` from `DEFAULT_DEBHELPER_COMPAT` (231–234), `Source` defaults to `Testname` (211–212). +3. **Run `pre-build`** if present (path argument = package dir). Example: `generic-empty` deletes `debian/compat` and `debian/copyright`. +4. **Do not** need `dpkg-buildpackage` for Source-tree Subjects. You **do** need it (or `dpkg-source`) if you want `.dsc` extra lines or `.deb` files. +5. **Filter `eval/hints`** to `(source)` lines whose extra is about `debian/` (keep); drop `(binary)` / `(changes)` until those Subjects exist; drop `(source)` lines that only name a `.dsc` until Source-package Subject tests exist. +6. **Ignore** `eval/desc` `Check:` for native runs (debmagic selects Rules itself); use it only as a hint of which Rule family the recipe belongs to. + +`Skeleton: deb` and `Skeleton: changes` are **not** source trees (`DEBIAN/control`, `test.changes.in`). Skip them for Source-tree import. + +Literal/EWI recipes (`Match-Strategy: literal`) are lintian CLI tests, not tag oracles. + +--- + +## 6. License + +Same as lintian: **GPL-2+**. + +- [`debian/copyright`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/debian/copyright) `Files: *` → `License: GPL-2+` (no `Files: t/` exception). Installed copy: `/usr/share/doc/lintian/copyright`. +- Repo root [`COPYING`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/COPYING) is GPL-2 text. +- Test harness modules (`Test::Lintian::*`, `private/runtests`) carry GPL-2+ headers. + +Vendoring selected recipe trees into debmagic is a GPL-2+ copy; keep copyright notices and do not mix into a different license without a legal review. Expected `hints` lines are also from that tree. + +--- + +## 7. Practical import path (pinning vs live lintian) + +### `/usr/share/lintian` at test time — no + +[`debian/lintian.install`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/debian/lintian.install) installs `bin`, `data`, `lib`, `profiles`, `tags`, `templates`, `vendors` — **not** `t/`. Confirmed: lintian 2.139.0 on this machine has no `/usr/share/lintian/t/`. Autopkgtest runs recipes from the **source** tree via `private/runtests` ([`debian/tests/build-and-evaluate-test-packages`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/debian/tests/build-and-evaluate-test-packages) lines 5–8). Ubuntu/Debian lintian drift is exactly why [ADR 0012](../adr/0012-parity-oracle-is-lintian-test-suite.md) forbids a live lintian binary as oracle. + +### Git submodule of lintian — poor default + +The submodule would be the whole project (checks, data, Perl harness, 1458 recipes). Debmagic’s SourceTreeTester must not depend on `Test::Lintian` or `dpkg-buildpackage` for Source-tree parity. A submodule still requires an importer to flatten skeletons; CI would need salsa availability. + +### Copy selected recipe trees — better, still not native shape + +Copying `t/recipes/checks/fields/required/generic-empty/` as-is is GPL-clean and pinable, but the fixture is **not** a Debian source tree until templates + fill + `pre-build` run. Debmagic would reimplement a slice of `Prepare.pm`. + +### Recommended: vendor **imported** native fixtures, pin lintian **2.139.0** + +Aligns with ADR 0012: “oracle is a pinned import of lintian’s own recipes — their expected `tags` files” (now `eval/hints`) “not live lintian.” + +1. Pin comment/version: lintian **2.139.0** (`575a2bf1`). +2. One-shot (or checked-in script) importer, **not** in the SourceTreeTester hot path: + - Input: salsa/git recipe + `t/templates` + `t/skeletons` + `t/defaults`. + - Output: `tests/…//` with a **filled** `debian/` (and orig files if needed) and `expected.tags` derived from `eval/hints`. +3. Import **per tag / per Subject**, not the whole suite. For `required-field` Source-tree: only `generic-empty`; drop `.dsc` and `.deb` hint lines or split into later Subject tests. +4. Keep a pointer (`ORIGIN: lintian 2.139.0 path/to/recipe`) in the fixture so refreshes are grepable. +5. Do **not** update expected Tags from a distro `lintian` binary. + +Refreshing the pin is a deliberate vendor bump (new tag, re-run importer, review hint diffs), same as any other vendored testdata. + +--- + +## `required-field` recipes (concrete) + +Tag definition: [`tags/r/required-field.tag`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/tags/r/required-field.tag) — `Check: fields/required`, severity error. Implementation: [`lib/Lintian/Check/Fields/Required.pm`](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/lib/Lintian/Check/Fields/Required.pm) — source `debian/control` needs Source/Maintainer/Standards-Version and each binary stanza Package/Architecture/Description (lines 38–40); `.dsc` extra fields (47–48); `.deb` Package/Version/Architecture/Maintainer/Description (42–44); `.changes` Format/Date/Source/Architecture/Version/Distribution/Maintainer/Changes/checksums/Files (52–53). + +Three recipes, all `Check: fields/required`. Full `eval/desc` and `eval/hints` from disk: + +### `generic-empty` — upload-native (best Source-tree candidate) + +`eval/desc`: + +``` +Testname: generic-empty +Check: fields/required +``` + +`eval/hints`: + +``` +generic-empty (source): required-field generic-empty_1.0.dsc Standards-Version +generic-empty (source): required-field (in section for source) Standards-Version [debian/control:1] +generic-empty (source): required-field (in section for generic-empty) Description [debian/control:4] +generic-empty (binary): required-field generic-empty_1.0_all.deb Description +``` + +`build-spec/fill-values`: + +``` +Skeleton: upload-native +Testname: generic-empty +Package-Architecture: all +Description: Pathological empty package +``` + +Overlay `build-spec/debian/control.in` (replaces the skeleton control; **omits** Standards-Version and Description): + +``` +Source: [% $source %] +Maintainer: a + +Package: [% $source %] +Architecture: [% $package_architecture %] +``` + +`pre-build` removes `debian/compat` and `debian/copyright`. `debian/rules` is a minimal `dpkg-gencontrol`/`dpkg --build` (not dh). After fill, Source-tree oracle is the **two `debian/control` lines**; the `.dsc` line needs a Source-package Subject; the `.deb` line needs Binary. + +### `fields-general-missing` — binary only + +`eval/desc`: + +``` +Testname: fields-general-missing +Check: fields/required +``` + +`eval/hints`: + +``` +fields-general-missing (binary): required-field fields-general-missing.deb Version +fields-general-missing (binary): required-field fields-general-missing.deb Package +fields-general-missing (binary): required-field fields-general-missing.deb Maintainer +fields-general-missing (binary): required-field fields-general-missing.deb Architecture +``` + +`Skeleton: deb`. `build-spec/DEBIAN/control.in` has Section/Priority/Depends/Description only — no Package/Version/Architecture/Maintainer. Wait for Binary Subject. + +### `changes-missing-fields` — `.changes` only + +`eval/desc`: + +``` +Testname: changes-missing-fields +Check: fields/required +``` + +`eval/hints`: + +``` +changes-missing-fields (changes): required-field test.changes Files +changes-missing-fields (changes): required-field test.changes Checksums-Sha256 +changes-missing-fields (changes): required-field test.changes Checksums-Sha1 +changes-missing-fields (changes): required-field test.changes Changes +``` + +`Skeleton: changes`. Deferred with `.changes` Subject. + +--- + +## Sources + +| What | Where | +| --- | --- | +| Current recipe authoring | [CONTRIBUTING.md](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/CONTRIBUTING.md) L104–167 | +| Stale recipe README | [t/recipes/README](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/t/recipes/README) | +| Stale `t/tests` tutorial | [WritingTests.pod](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/doc/tutorial/Lintian/Tutorial/WritingTests.pod) | +| Suite discovery / `tag:` filter | [lib/Test/Lintian/Filter.pm](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/lib/Test/Lintian/Filter.pm) | +| Hint line grammar | [lib/Test/Lintian/Output/Universal.pm](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/lib/Test/Lintian/Output/Universal.pm) L137–147 | +| Prepare / skeletons / double-debian reject | [lib/Test/Lintian/Prepare.pm](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/lib/Test/Lintian/Prepare.pm) | +| Run + compare hints | [lib/Test/Lintian/Run.pm](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/lib/Test/Lintian/Run.pm) | +| Defaults | [t/defaults/desc](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/t/defaults/desc), [fill-values](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/t/defaults/fill-values) | +| Install set (no `t/`) | [debian/lintian.install](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/debian/lintian.install) | +| License | [debian/copyright](https://salsa.debian.org/lintian/lintian/-/blob/2.139.0/debian/copyright) | +| Debmagic oracle ADR | [docs/adr/0012-parity-oracle-is-lintian-test-suite.md](../adr/0012-parity-oracle-is-lintian-test-suite.md) | diff --git a/packages/debmagic/CHANGELOG.md b/packages/debmagic/CHANGELOG.md index 51771e74..d3bf34e6 100644 --- a/packages/debmagic/CHANGELOG.md +++ b/packages/debmagic/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +- add initial experimental support for lint subcommand + ## [0.0.1-alpha.7] - 2026-08-25 - support non-debian and non-ubuntu distros using dpkg diff --git a/packages/debmagic/Cargo.toml b/packages/debmagic/Cargo.toml index 622a9516..a02e9048 100644 --- a/packages/debmagic/Cargo.toml +++ b/packages/debmagic/Cargo.toml @@ -20,4 +20,16 @@ serde_json = { workspace = true } uuid = { workspace = true, features = ["v4"] } debian-changelog = { workspace = true } debian-control = { workspace = true } +chrono = { workspace = true } +regex = { workspace = true } ignore = { workspace = true } +ar = { workspace = true } +tar = { workspace = true } +flate2 = { workspace = true } +xz2 = { workspace = true } +zstd = { workspace = true } + +[dev-dependencies] +tempfile = { workspace = true } +insta = { workspace = true } +test-case = { workspace = true } diff --git a/packages/debmagic/README.md b/packages/debmagic/README.md index d6a46204..fd69c113 100644 --- a/packages/debmagic/README.md +++ b/packages/debmagic/README.md @@ -4,7 +4,7 @@ Modern, robust & easy tooling for building and packaging [Debian](https://debian - **Build any package** in an isolated container environment with `debmagic build` - **Run Debian autopkgtest tests** against built packages with `debmagic test` -- **Lint** with `debmagic check` +- **Lint** with `debmagic lint` - **Debug** build environments interactively with `debmagic shell` ## Installation @@ -75,6 +75,10 @@ debmagic shell For the full documentation — the [build quick reference](https://debmagic.readthedocs.io/en/latest/usage/build.html), packaging guides, configuration and module references — visit **[debmagic.readthedocs.io](https://debmagic.readthedocs.io)**. +## Acknowledgements + +debmagic's lint implementation is heavily inspired by [oxlint](https://oxc.rs/docs/guide/usage/linter) and [Ruff](https://docs.astral.sh/ruff/). It draws on [lintian](https://lintian.debian.org/)’s checks and tag catalog, with the long-term goal of full lintian compatibility plus additional original rules. + ## License Released under the **GNU General Public License** version 2 or later. diff --git a/packages/debmagic/src/cli.rs b/packages/debmagic/src/cli.rs index b0838237..cfced396 100644 --- a/packages/debmagic/src/cli.rs +++ b/packages/debmagic/src/cli.rs @@ -22,8 +22,10 @@ pub enum Commands { Shell(ShellSubcommandArgs), #[command(about = "Run the package's declared Debian autopkgtest tests against a prior build")] Test(TestSubcommandArgs), - #[command(about = "Check the project")] - Check(CheckSubcommandArgs), + #[command( + about = "Lint a package: source tree, binary package (.deb/.udeb/.ddeb), or source package (.dsc)" + )] + Lint(LintSubcommandArgs), #[command(about = "Show version information")] Version {}, } @@ -275,7 +277,33 @@ pub struct TestSubcommandArgs { } #[derive(Args, Debug)] -pub struct CheckSubcommandArgs { +pub struct LintSubcommandArgs { + /// Subject to lint: a source tree directory, a `.deb` / `.udeb` / `.ddeb`, or a `.dsc` + pub subject: Option, + #[command(flatten)] pub common: CommonCli, + + #[arg( + long, + action = clap::ArgAction::Append, + value_delimiter = ',', + help = "Select Rules by Code, Tag, or Code prefix, replaces the default set" + )] + pub select: Vec, + + #[arg( + long, + action = clap::ArgAction::Append, + value_delimiter = ',', + help = "Subtract Rules from the current set by Code, Tag, or Code prefix" + )] + pub ignore: Vec, + + #[arg( + long = "fail-on", + value_delimiter = ',', + help = "Severity rungs that make lint exit non-zero (error, warning, info, pedantic). Warning does not imply error; default is error only when unset" + )] + pub fail_on: Vec, } diff --git a/packages/debmagic/src/lint/binary_package_reader.rs b/packages/debmagic/src/lint/binary_package_reader.rs new file mode 100644 index 00000000..3b09f93a --- /dev/null +++ b/packages/debmagic/src/lint/binary_package_reader.rs @@ -0,0 +1,483 @@ +use std::cell::OnceCell; +use std::collections::{HashMap, HashSet}; +use std::io::{Cursor, Read}; +use std::path::{Path, PathBuf}; + +use anyhow::{Context, bail}; + +/// In-process reader for a Binary package. Callers list and read Control files +/// and Data files; they do not hold the inner tarballs. +pub(crate) struct BinaryPackageReader { + path: PathBuf, + control_tar_name: String, + control_tar: Vec, + #[allow(dead_code)] + data_tar_name: String, + #[allow(dead_code)] + data_tar: Vec, + control_index: OnceCell, + #[allow(dead_code)] + data_index: OnceCell, +} + +struct TarballIndex { + #[allow(dead_code)] + members: Vec, + files: HashMap>, +} + +impl BinaryPackageReader { + /// Open a Binary package. `debian-binary`, a Control tarball, and a Data + /// tarball must all be present (deb(5)); their contents are indexed later. + pub(crate) fn from_path(path: impl Into) -> anyhow::Result { + let path = path.into(); + let file = std::fs::File::open(&path) + .with_context(|| format!("opening {} failed", path.display()))?; + let mut archive = ar::Archive::new(file); + let mut debian_binary = false; + let mut control_tar = None; + let mut data_tar = None; + while let Some(entry) = archive.next_entry() { + let mut entry = + entry.with_context(|| format!("reading ar member from {}", path.display()))?; + let name = ar_member_name(entry.header().identifier()); + let mut bytes = Vec::new(); + entry + .read_to_end(&mut bytes) + .with_context(|| format!("reading {name} from {}", path.display()))?; + if name == "debian-binary" { + debian_binary = true; + } else if name.starts_with("control.tar") { + if control_tar.is_none() { + control_tar = Some((name, bytes)); + } + } else if name.starts_with("data.tar") && data_tar.is_none() { + data_tar = Some((name, bytes)); + } + } + if !debian_binary { + bail!("{} has no debian-binary member", path.display()); + } + let Some((control_tar_name, control_tar)) = control_tar else { + bail!("{} has no control.tar member", path.display()); + }; + let Some((data_tar_name, data_tar)) = data_tar else { + bail!("{} has no data.tar member", path.display()); + }; + Ok(Self { + path, + control_tar_name, + control_tar, + data_tar_name, + data_tar, + control_index: OnceCell::new(), + data_index: OnceCell::new(), + }) + } + + pub(crate) fn path(&self) -> &Path { + &self.path + } + + #[allow(dead_code)] + pub(crate) fn list_control_files(&self) -> anyhow::Result<&[String]> { + Ok(&self.control_index()?.members) + } + + #[allow(dead_code)] + pub(crate) fn list_data_files(&self) -> anyhow::Result<&[String]> { + Ok(&self.data_index()?.members) + } + + pub(crate) fn read_control_file(&self, path: &str) -> anyhow::Result> { + Ok(lookup_file(self.control_index()?, path)) + } + + #[allow(dead_code)] + pub(crate) fn read_data_file(&self, path: &str) -> anyhow::Result> { + Ok(lookup_file(self.data_index()?, path)) + } + + fn control_index(&self) -> anyhow::Result<&TarballIndex> { + init_index( + &self.control_index, + &self.control_tar_name, + &self.control_tar, + self.path.as_path(), + ) + } + + #[allow(dead_code)] + fn data_index(&self) -> anyhow::Result<&TarballIndex> { + init_index( + &self.data_index, + &self.data_tar_name, + &self.data_tar, + self.path.as_path(), + ) + } +} + +fn init_index<'a>( + cell: &'a OnceCell, + name: &str, + compressed: &[u8], + archive_path: &Path, +) -> anyhow::Result<&'a TarballIndex> { + if cell.get().is_none() { + let index = index_tarball(name, compressed) + .with_context(|| format!("indexing {name} from {}", archive_path.display()))?; + let _ = cell.set(index); + } + Ok(cell.get().expect("tarball index is initialized")) +} + +fn lookup_file<'a>(index: &'a TarballIndex, path: &str) -> Option<&'a [u8]> { + let key = normalize_member_path(Path::new(path))?; + index.files.get(&key).map(Vec::as_slice) +} + +fn ar_member_name(identifier: &[u8]) -> String { + String::from_utf8_lossy(identifier) + .trim() + .trim_end_matches('/') + .to_string() +} + +fn index_tarball(name: &str, compressed: &[u8]) -> anyhow::Result { + let tar_bytes = decompress_tar(name, compressed)?; + let mut archive = tar::Archive::new(Cursor::new(tar_bytes)); + let mut members = Vec::new(); + let mut seen = HashSet::new(); + let mut files = HashMap::new(); + for entry in archive.entries()? { + let mut entry = entry?; + let path = entry.path()?; + let Some(normalized) = normalize_member_path(path.as_ref()) else { + continue; + }; + if seen.insert(normalized.clone()) { + members.push(normalized.clone()); + } + if entry.header().entry_type().is_file() { + let mut bytes = Vec::new(); + entry.read_to_end(&mut bytes)?; + files.insert(normalized, bytes); + } + } + Ok(TarballIndex { members, files }) +} + +fn normalize_member_path(path: &Path) -> Option { + let mut value = path.to_string_lossy().replace('\\', "/"); + while let Some(stripped) = value.strip_prefix("./") { + value = stripped.to_string(); + } + if let Some(stripped) = value.strip_prefix('/') { + value = stripped.to_string(); + } + let value = value.trim_end_matches('/'); + if value.is_empty() || value == "." || value == ".." { + return None; + } + Some(value.to_string()) +} + +fn decompress_tar(name: &str, bytes: &[u8]) -> anyhow::Result> { + let cursor = Cursor::new(bytes); + if name.ends_with(".gz") { + let mut decoder = flate2::read::GzDecoder::new(cursor); + let mut out = Vec::new(); + decoder.read_to_end(&mut out)?; + return Ok(out); + } + if name.ends_with(".xz") { + let mut decoder = xz2::read::XzDecoder::new(cursor); + let mut out = Vec::new(); + decoder.read_to_end(&mut out)?; + return Ok(out); + } + if name.ends_with(".zst") { + let mut decoder = zstd::stream::read::Decoder::new(cursor)?; + let mut out = Vec::new(); + decoder.read_to_end(&mut out)?; + return Ok(out); + } + if name.ends_with(".tar") { + return Ok(bytes.to_vec()); + } + bail!("unsupported tarball {name}"); +} + +/// Lintian's `guess_name`: basename, drop extension, drop after the first `_`. +pub(crate) fn guess_package_name(path: &Path) -> String { + let mut guess = path + .file_name() + .and_then(|name| name.to_str()) + .unwrap_or_default() + .to_string(); + if let Some((stem, _)) = guess.rsplit_once('.') { + guess = stem.to_string(); + } + if let Some((before, _)) = guess.split_once('_') { + guess = before.to_string(); + } + guess +} + +#[cfg(test)] +pub(crate) fn write_test_deb(path: &Path, control: &str) -> anyhow::Result<()> { + write_test_deb_with_files(path, &[("control", control.as_bytes())], &[]) +} + +#[cfg(test)] +pub(crate) fn write_test_deb_with_files( + path: &Path, + control_files: &[(&str, &[u8])], + data_files: &[(&str, &[u8])], +) -> anyhow::Result<()> { + use std::io::Write; + + use flate2::Compression; + use flate2::write::GzEncoder; + + fn gzip_tar(files: &[(&str, &[u8])]) -> anyhow::Result> { + let mut tar_bytes = Vec::new(); + { + let mut builder = tar::Builder::new(&mut tar_bytes); + for (member, contents) in files { + let mut header = tar::Header::new_gnu(); + header.set_path(*member)?; + header.set_size(contents.len() as u64); + header.set_mode(0o644); + header.set_cksum(); + builder.append(&header, *contents)?; + } + builder.finish()?; + } + let mut encoder = GzEncoder::new(Vec::new(), Compression::default()); + encoder.write_all(&tar_bytes)?; + Ok(encoder.finish()?) + } + + let control_tar_gz = gzip_tar(control_files)?; + let data_tar_gz = gzip_tar(data_files)?; + + let file = std::fs::File::create(path)?; + let mut builder = ar::Builder::new(file); + let debian_binary = b"2.0\n"; + let mut header = ar::Header::new(b"debian-binary".to_vec(), debian_binary.len() as u64); + builder.append(&header, &mut Cursor::new(&debian_binary[..]))?; + header = ar::Header::new(b"control.tar.gz".to_vec(), control_tar_gz.len() as u64); + builder.append(&header, &mut Cursor::new(&control_tar_gz))?; + header = ar::Header::new(b"data.tar.gz".to_vec(), data_tar_gz.len() as u64); + builder.append(&header, &mut Cursor::new(&data_tar_gz))?; + Ok(()) +} + +#[cfg(test)] +mod tests { + use super::*; + use tempfile::TempDir; + + #[test] + fn reads_control_from_minimal_deb() -> anyhow::Result<()> { + let dir = TempDir::new()?; + let path = dir.path().join("example.deb"); + write_test_deb(&path, "Package: example\nVersion: 1.0\n")?; + let reader = BinaryPackageReader::from_path(&path)?; + let bytes = reader.read_control_file("control")?; + assert_eq!( + std::str::from_utf8(bytes.expect("control file"))?, + "Package: example\nVersion: 1.0\n" + ); + Ok(()) + } + + #[test] + fn missing_required_ar_member_is_an_error() -> anyhow::Result<()> { + let dir = TempDir::new()?; + let path = dir.path().join("empty.deb"); + std::fs::write(&path, b"")?; + let error = BinaryPackageReader::from_path(&path) + .err() + .expect("empty archive"); + assert!( + error.to_string().contains("debian-binary") + || error.to_string().contains("control.tar") + || error.to_string().contains("data.tar") + || error.to_string().contains("ar"), + "{error}" + ); + Ok(()) + } + + #[test] + fn missing_data_tarball_is_an_error() -> anyhow::Result<()> { + let dir = TempDir::new()?; + let path = dir.path().join("control-only.deb"); + write_ar_members( + &path, + &[ + ("debian-binary", b"2.0\n".as_slice()), + ("control.tar.gz", &gzip_empty_tar()?), + ], + )?; + let error = BinaryPackageReader::from_path(&path) + .err() + .expect("control-only archive"); + assert!(error.to_string().contains("data.tar"), "{error}"); + Ok(()) + } + + #[test] + fn lists_and_reads_control_and_data_files() -> anyhow::Result<()> { + let dir = TempDir::new()?; + let path = dir.path().join("example.deb"); + write_test_deb_with_files( + &path, + &[ + ("control", b"Package: example\n"), + ("./md5sums", b"deadbeef usr/bin/foo\n"), + ], + &[ + ("./usr/bin/foo", b"#!/bin/sh\n"), + ("usr/share/doc/example/copyright", b"Copyright\n"), + ], + )?; + let reader = BinaryPackageReader::from_path(&path)?; + assert_eq!( + reader.list_control_files()?, + ["control", "md5sums"].as_slice() + ); + assert_eq!( + reader.list_data_files()?, + ["usr/bin/foo", "usr/share/doc/example/copyright"].as_slice() + ); + assert_eq!( + reader.read_control_file("md5sums")?, + Some(b"deadbeef usr/bin/foo\n".as_slice()) + ); + assert_eq!( + reader.read_data_file("usr/bin/foo")?, + Some(b"#!/bin/sh\n".as_slice()) + ); + assert_eq!( + reader.read_data_file("./usr/bin/foo")?, + reader.read_data_file("usr/bin/foo")? + ); + assert!(reader.read_control_file("preinst")?.is_none()); + assert!(reader.read_data_file("usr/bin/missing")?.is_none()); + Ok(()) + } + + #[test] + fn directories_and_symlinks_are_listed_but_not_readable() -> anyhow::Result<()> { + let dir = TempDir::new()?; + let path = dir.path().join("example.deb"); + write_deb_with_special_data_members(&path)?; + let reader = BinaryPackageReader::from_path(&path)?; + let listed = reader.list_data_files()?; + assert!(listed.contains(&"usr".to_string()), "{listed:?}"); + assert!(listed.contains(&"usr/bin/link".to_string()), "{listed:?}"); + assert!(reader.read_data_file("usr")?.is_none()); + assert!(reader.read_data_file("usr/bin/link")?.is_none()); + Ok(()) + } + + #[test] + fn guess_name_drops_extension_and_underscore() { + assert_eq!( + guess_package_name(Path::new("fields-general-missing.deb")), + "fields-general-missing" + ); + assert_eq!( + guess_package_name(Path::new("generic-empty_1.0_all.deb")), + "generic-empty" + ); + assert_eq!(guess_package_name(Path::new("foo.udeb")), "foo"); + } + + fn gzip_empty_tar() -> anyhow::Result> { + use std::io::Write; + + use flate2::Compression; + use flate2::write::GzEncoder; + + let mut tar_bytes = Vec::new(); + tar::Builder::new(&mut tar_bytes).finish()?; + let mut encoder = GzEncoder::new(Vec::new(), Compression::default()); + encoder.write_all(&tar_bytes)?; + Ok(encoder.finish()?) + } + + fn write_ar_members(path: &Path, members: &[(&str, &[u8])]) -> anyhow::Result<()> { + let file = std::fs::File::create(path)?; + let mut builder = ar::Builder::new(file); + for (name, bytes) in members { + let header = ar::Header::new(name.as_bytes().to_vec(), bytes.len() as u64); + builder.append(&header, &mut Cursor::new(*bytes))?; + } + Ok(()) + } + + fn write_deb_with_special_data_members(path: &Path) -> anyhow::Result<()> { + use std::io::Write; + + use flate2::Compression; + use flate2::write::GzEncoder; + + let control_tar_gz = { + let mut tar_bytes = Vec::new(); + { + let mut builder = tar::Builder::new(&mut tar_bytes); + let mut header = tar::Header::new_gnu(); + header.set_path("control")?; + header.set_size(8); + header.set_mode(0o644); + header.set_cksum(); + builder.append(&header, &b"Package:"[..])?; + builder.finish()?; + } + let mut encoder = GzEncoder::new(Vec::new(), Compression::default()); + encoder.write_all(&tar_bytes)?; + encoder.finish()? + }; + + let data_tar_gz = { + let mut tar_bytes = Vec::new(); + { + let mut builder = tar::Builder::new(&mut tar_bytes); + let mut dir = tar::Header::new_gnu(); + dir.set_entry_type(tar::EntryType::Directory); + dir.set_path("usr")?; + dir.set_size(0); + dir.set_mode(0o755); + dir.set_cksum(); + builder.append(&dir, std::io::empty())?; + + let mut link = tar::Header::new_gnu(); + link.set_entry_type(tar::EntryType::Symlink); + link.set_path("usr/bin/link")?; + link.set_link_name("foo")?; + link.set_size(0); + link.set_mode(0o777); + link.set_cksum(); + builder.append(&link, std::io::empty())?; + builder.finish()?; + } + let mut encoder = GzEncoder::new(Vec::new(), Compression::default()); + encoder.write_all(&tar_bytes)?; + encoder.finish()? + }; + + write_ar_members( + path, + &[ + ("debian-binary", b"2.0\n".as_slice()), + ("control.tar.gz", &control_tar_gz), + ("data.tar.gz", &data_tar_gz), + ], + ) + } +} diff --git a/packages/debmagic/src/lint/context.rs b/packages/debmagic/src/lint/context.rs new file mode 100644 index 00000000..6038e8b4 --- /dev/null +++ b/packages/debmagic/src/lint/context.rs @@ -0,0 +1,264 @@ +use std::cell::OnceCell; +use std::path::{Path, PathBuf}; + +use super::binary_package_reader::BinaryPackageReader; +use super::debian_changelog::DebianChangelog; +use super::debian_control::DebianControl; +use super::debian_rules::DebianRules; +use super::diagnostic::{Diagnostic, ProcessableType}; +use super::installation_control::InstallationControl; +use super::rule::{Code, RuleAccess, Tag}; + +struct DiagnosticSink { + code: Code, + tag: Tag, + processable_type: ProcessableType, + package: OnceCell, + diagnostics: Vec, +} + +impl DiagnosticSink { + fn new(rule: &(impl RuleAccess + ?Sized), processable_type: ProcessableType) -> Self { + Self { + code: rule.code(), + tag: rule.tag(), + processable_type, + package: OnceCell::new(), + diagnostics: Vec::new(), + } + } + + fn report(&mut self, mut diagnostic: Diagnostic, resolve_package: impl FnOnce() -> String) { + diagnostic.code = self.code; + diagnostic.tag = self.tag; + if diagnostic.package.is_empty() { + if self.package.get().is_none() { + let _ = self.package.set(resolve_package()); + } + diagnostic.package = self + .package + .get() + .expect("package name is initialized") + .clone(); + } + if diagnostic.processable_type.is_none() { + diagnostic.processable_type = Some(self.processable_type); + } + self.diagnostics.push(diagnostic); + } + + fn into_diagnostics(self) -> Vec { + self.diagnostics + } +} + +pub(crate) struct SourceTreeData { + root: PathBuf, + debian_control: OnceCell>, + debian_changelog: OnceCell>, + debian_rules: OnceCell>, +} + +impl SourceTreeData { + pub fn new(root: PathBuf) -> Self { + Self { + root, + debian_control: OnceCell::new(), + debian_changelog: OnceCell::new(), + debian_rules: OnceCell::new(), + } + } + + fn debian_control(&self) -> Option<&DebianControl> { + self.debian_control + .get_or_init(|| DebianControl::load(&self.root.join("debian/control"))) + .as_ref() + } + + fn debian_changelog(&self) -> Option<&DebianChangelog> { + self.debian_changelog + .get_or_init(|| DebianChangelog::load(&self.root.join("debian/changelog"))) + .as_ref() + } + + fn debian_rules(&self) -> Option<&DebianRules> { + self.debian_rules + .get_or_init(|| DebianRules::load(&self.root.join("debian/rules"))) + .as_ref() + } + + fn package_name(&self) -> String { + if let Some(name) = self + .debian_control() + .and_then(|control| control.source().get("Source")) + .filter(|name| !name.is_empty()) + { + return name.to_string(); + } + changelog_package_name(&self.root).unwrap_or_default() + } +} + +pub(crate) struct SourceTreeContext<'a> { + data: &'a SourceTreeData, + sink: DiagnosticSink, +} + +impl<'a> SourceTreeContext<'a> { + pub fn bind(data: &'a SourceTreeData, rule: &(impl RuleAccess + ?Sized)) -> Self { + Self { + data, + sink: DiagnosticSink::new(rule, ProcessableType::Source), + } + } + + pub fn path(&self) -> &Path { + &self.data.root + } + + /// Structured `debian/control`. `None` if the file has a Deb822 syntax error. + pub fn debian_control(&self) -> Option<&DebianControl> { + self.data.debian_control() + } + + /// Parsed `debian/changelog`. `None` if the file is missing, unreadable, or not UTF-8. + pub fn debian_changelog(&self) -> Option<&DebianChangelog> { + self.data.debian_changelog() + } + + /// Parsed `debian/rules`. `None` if the file is missing, unreadable, or not UTF-8. + /// Follows a symlink. + pub fn debian_rules(&self) -> Option<&DebianRules> { + self.data.debian_rules() + } + + /// Report a finding. Code and Tag come from the running Rule; Severity is + /// set on the Diagnostic (and may be remapped later from config). Package + /// and processable type default from this Subject when the Rule omits them. + pub fn diagnostic(&mut self, diagnostic: Diagnostic) { + let data = self.data; + self.sink.report(diagnostic, || data.package_name()); + } + + pub fn into_diagnostics(self) -> Vec { + self.sink.into_diagnostics() + } +} + +pub(crate) struct BinaryPackageData { + reader: BinaryPackageReader, + installation_control: InstallationControl, +} + +impl BinaryPackageData { + pub fn new(path: PathBuf) -> anyhow::Result { + let reader = BinaryPackageReader::from_path(path)?; + let installation_control = InstallationControl::from_reader(&reader)?; + Ok(Self { + reader, + installation_control, + }) + } + + fn package_name(&self) -> String { + self.installation_control + .fields() + .get("Package") + .filter(|name| !name.is_empty()) + .map(str::to_string) + .unwrap_or_else(|| super::binary_package_reader::guess_package_name(self.reader.path())) + } +} + +pub(crate) struct BinaryPackageContext<'a> { + data: &'a BinaryPackageData, + sink: DiagnosticSink, +} + +impl<'a> BinaryPackageContext<'a> { + pub fn bind(data: &'a BinaryPackageData, rule: &(impl RuleAccess + ?Sized)) -> Self { + Self { + data, + sink: DiagnosticSink::new(rule, processable_type_for_binary(data.reader.path())), + } + } + + pub fn path(&self) -> &Path { + self.data.reader.path() + } + + pub fn installation_control(&self) -> &InstallationControl { + &self.data.installation_control + } + + #[allow(dead_code)] + pub fn reader(&self) -> &BinaryPackageReader { + &self.data.reader + } + + /// Report a finding. Code and Tag come from the running Rule; Severity is + /// set on the Diagnostic (and may be remapped later from config). Package + /// and processable type default from this Subject when the Rule omits them. + pub fn diagnostic(&mut self, diagnostic: Diagnostic) { + let data = self.data; + self.sink.report(diagnostic, || data.package_name()); + } + + pub fn into_diagnostics(self) -> Vec { + self.sink.into_diagnostics() + } +} + +#[allow(dead_code)] +pub(crate) struct SourcePackageData { + path: PathBuf, +} + +#[allow(dead_code)] +impl SourcePackageData { + pub fn new(path: PathBuf) -> Self { + Self { path } + } +} + +#[allow(dead_code)] +pub(crate) struct SourcePackageContext<'a> { + data: &'a SourcePackageData, + sink: DiagnosticSink, +} + +#[allow(dead_code)] +impl<'a> SourcePackageContext<'a> { + pub fn bind(data: &'a SourcePackageData, rule: &(impl RuleAccess + ?Sized)) -> Self { + Self { + data, + sink: DiagnosticSink::new(rule, ProcessableType::Source), + } + } + + pub fn path(&self) -> &Path { + &self.data.path + } + + pub fn diagnostic(&mut self, diagnostic: Diagnostic) { + self.sink.report(diagnostic, String::new); + } + + pub fn into_diagnostics(self) -> Vec { + self.sink.into_diagnostics() + } +} + +fn processable_type_for_binary(path: &Path) -> ProcessableType { + if path.extension().and_then(|ext| ext.to_str()) == Some("udeb") { + ProcessableType::Udeb + } else { + ProcessableType::Binary + } +} + +fn changelog_package_name(root: &Path) -> Option { + let text = std::fs::read_to_string(root.join("debian/changelog")).ok()?; + let changelog: ::debian_changelog::ChangeLog = text.parse().ok()?; + changelog.into_iter().next()?.package() +} diff --git a/packages/debmagic/src/lint/debian_changelog.rs b/packages/debmagic/src/lint/debian_changelog.rs new file mode 100644 index 00000000..ea4f160c --- /dev/null +++ b/packages/debmagic/src/lint/debian_changelog.rs @@ -0,0 +1,471 @@ +use std::path::Path; +use std::sync::LazyLock; + +use chrono::DateTime; +use regex::Regex; + +/// One parser error from `Lintian::Changelog`, as `[line, message]`. +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct ChangelogParseError { + line: u32, + message: String, +} + +impl ChangelogParseError { + pub fn line(&self) -> u32 { + self.line + } + + pub fn message(&self) -> &str { + &self.message + } +} + +/// Parsed `debian/changelog` with lintian's grammar errors. +/// +/// Missing files are unavailable. A file that is not UTF-8 is treated as +/// unavailable (lintian skips parse). Syntax errors stay on the object so +/// `syntax-error-in-debian-changelog` can emit them. +#[derive(Debug, Clone, Default, PartialEq, Eq)] +pub struct DebianChangelog { + errors: Vec, +} + +impl DebianChangelog { + pub fn load(path: &Path) -> Option { + if !path.is_file() { + return None; + } + let bytes = std::fs::read(path).ok()?; + let text = std::str::from_utf8(&bytes).ok()?; + Some(Self::parse(text)) + } + + pub fn parse(contents: &str) -> Self { + Self { + errors: parse_errors(contents), + } + } + + pub fn errors(&self) -> &[ChangelogParseError] { + &self.errors + } +} + +#[derive(Clone, Copy, PartialEq, Eq)] +enum Expect { + FirstHeading, + NextHeadingOrEof, + StartOfChangeData, + MoreChangeDataOrTrailer, +} + +impl Expect { + fn as_lintian_str(self) -> &'static str { + match self { + Self::FirstHeading => "first heading", + Self::NextHeadingOrEof => "next heading or eof", + Self::StartOfChangeData => "start of change data", + Self::MoreChangeDataOrTrailer => "more change data or trailer", + } + } +} + +#[derive(Default)] +struct EntryScratch { + source: bool, + version: bool, + changes: bool, + maintainer: bool, + date: bool, + timestamp: bool, +} + +impl EntryScratch { + fn is_empty(&self) -> bool { + !(self.changes || self.source || self.version || self.maintainer || self.date) + } +} + +fn parse_errors(contents: &str) -> Vec { + static LOOKS_LIKE_CHANGELOG: LazyLock = LazyLock::new(|| { + Regex::new(r"(?mx)^ \S+ \s* [(] [^\)]+ [)] \s* (?:[^ \t;]+ \s*)+ ; ").expect("regex") + }); + static HEADING: LazyLock = LazyLock::new(|| { + Regex::new(r"(?i)^(?P\w[-+0-9a-z.]*) \((?P[^() \t]+)\)(?P(?:\s+[-+0-9a-z.]+)+);\s*(?P.*)$") + .expect("regex") + }); + static KV: LazyLock = + LazyLock::new(|| Regex::new(r"(?i)^([-0-9a-z]+)=\s*(.*\S)$").expect("regex")); + static URGENCY: LazyLock = + LazyLock::new(|| Regex::new(r"(?i)^([-0-9a-z]+)((\s+.*)?)$").expect("regex")); + static XBCS: LazyLock = LazyLock::new(|| Regex::new(r"(?i)^X[BCS]+-").expect("regex")); + static TRAILER: LazyLock = LazyLock::new(|| { + Regex::new(r"^ -- (?P.*) <(?P.*)>(?P ?)(?P(?:\w+,\s*)?\d{1,2}\s+\w+\s+\d{4}\s+\d{1,2}:\d{2}:\d{2}\s+[-+]\d{4}(?:\s+\([^\\()]\))?)$") + .expect("regex") + }); + static LOCAL_VARIABLES: LazyLock = + LazyLock::new(|| Regex::new(r"(?i)^(?:;;\s*)?Local variables:").expect("regex")); + static OLD_GNU: LazyLock = LazyLock::new(|| { + Regex::new(r"^(?:\w+\s+\w+\s+\d{1,2} \d{1,2}:\d{1,2}:\d{1,2}\s+[\w\s]*\d{4})\s+(?:.*)\s+[<(](?:.*)[)>]") + .expect("regex") + }); + static OLD_SHORT_DATE: LazyLock = LazyLock::new(|| { + Regex::new(r"^(?:\w+\s+\w+\s+\d{1,2},?\s*\d{4})\s+(?:.*)\s+[<(](?:.*)[)>]").expect("regex") + }); + static OLD_HEADING: LazyLock = LazyLock::new(|| { + Regex::new(r"(?i)^(?:\w[-+0-9a-z.]*) \((?:[^() \t]+)\)\;?").expect("regex") + }); + static OLD_DEBIAN: LazyLock = + LazyLock::new(|| Regex::new(r"(?i)^(?:[\w.+-]+)[- ]\S+ Debian \S+").expect("regex")); + static OLD_CHANGES_FROM: LazyLock = LazyLock::new(|| { + Regex::new(r"(?i)^Changes from version (?:.*) to (?:.*):").expect("regex") + }); + static OLD_CHANGES_FOR: LazyLock = + LazyLock::new(|| Regex::new(r"(?i)^Changes for [\w.+-]+-[\w.+-]+:?$").expect("regex")); + static OLD_VERSION_ONLY: LazyLock = + LazyLock::new(|| Regex::new(r"^(?:\d+:)?\w[\w.+~-]*:?$").expect("regex")); + static CHANGE_DATA: LazyLock = + LazyLock::new(|| Regex::new(r"^\s{2,}(\S)").expect("regex")); + static MALFORMED_TRAILER: LazyLock = + LazyLock::new(|| Regex::new(r"^ --").expect("regex")); + static CVS_KEYWORD: LazyLock = + LazyLock::new(|| Regex::new(r"^\$\w+:.*\$").expect("regex")); + static BLOCK_COMMENT: LazyLock = + LazyLock::new(|| Regex::new(r"^/\*.*\*/").expect("regex")); + + if !LOOKS_LIKE_CHANGELOG.is_match(contents) { + return vec![ChangelogParseError { + line: 1, + message: "not a Debian changelog".to_string(), + }]; + } + + let mut errors = Vec::new(); + let mut expect = Expect::FirstHeading; + let mut entry = EntryScratch::default(); + + let mut lines: Vec<&str> = contents.split('\n').collect(); + while lines.last() == Some(&"") { + lines.pop(); + } + for (index, raw_line) in lines.iter().enumerate() { + let position = (index + 1) as u32; + let line = raw_line.trim_end(); + + if let Some(heading) = HEADING.captures(line) { + if expect != Expect::FirstHeading && expect != Expect::NextHeadingOrEof { + errors.push(ChangelogParseError { + line: position, + message: format!( + "found start of entry where expected {}", + expect.as_lintian_str() + ), + }); + } + entry = EntryScratch::default(); + entry.source = true; + entry.version = heading.name("version").is_some(); + parse_kvpairs( + heading.name("kvpairs").map(|m| m.as_str()).unwrap_or(""), + position, + &mut errors, + &KV, + &URGENCY, + &XBCS, + ); + expect = Expect::StartOfChangeData; + } else if LOCAL_VARIABLES.is_match(line) || line.to_ascii_lowercase().starts_with("vim:") { + break; + } else if CVS_KEYWORD.is_match(line) + || line.starts_with("# ") + || BLOCK_COMMENT.is_match(line) + { + continue; + } else if OLD_GNU.is_match(line) + || OLD_SHORT_DATE.is_match(line) + || OLD_HEADING.is_match(line) + || OLD_DEBIAN.is_match(line) + || OLD_CHANGES_FROM.is_match(line) + || OLD_CHANGES_FOR.is_match(line) + || line.eq_ignore_ascii_case("Old Changelog:") + || OLD_VERSION_ONLY.is_match(line) + { + break; + } else if line.starts_with(|ch: char| !ch.is_whitespace()) { + errors.push(ChangelogParseError { + line: position, + message: "badly formatted heading line".to_string(), + }); + } else if let Some(trailer) = TRAILER.captures(line) { + if expect != Expect::MoreChangeDataOrTrailer { + errors.push(ChangelogParseError { + line: position, + message: format!("found trailer where expected {}", expect.as_lintian_str()), + }); + } + if trailer.name("sep").map(|m| m.as_str()) != Some(" ") { + errors.push(ChangelogParseError { + line: position, + message: "badly formatted trailer line".to_string(), + }); + } + entry.maintainer = true; + if !(entry.date && entry.timestamp) { + let date = trailer.name("date").map(|m| m.as_str()).unwrap_or(""); + entry.date = true; + if parse_changelog_timestamp(date) { + entry.timestamp = true; + } else { + errors.push(ChangelogParseError { + line: position, + message: format!("could not parse date {date}"), + }); + } + } + expect = Expect::NextHeadingOrEof; + } else if MALFORMED_TRAILER.is_match(line) { + errors.push(ChangelogParseError { + line: position, + message: "badly formatted trailer line".to_string(), + }); + } else if CHANGE_DATA.is_match(line) { + if expect != Expect::StartOfChangeData && expect != Expect::MoreChangeDataOrTrailer { + errors.push(ChangelogParseError { + line: position, + message: format!( + "found change data where expected {}", + expect.as_lintian_str() + ), + }); + if expect == Expect::NextHeadingOrEof && !entry.is_empty() { + entry = EntryScratch { + source: true, + version: true, + ..EntryScratch::default() + }; + } + } + entry.changes = true; + expect = Expect::MoreChangeDataOrTrailer; + } else if !line.contains(|ch: char| !ch.is_whitespace()) { + if expect == Expect::StartOfChangeData || expect == Expect::NextHeadingOrEof { + continue; + } + if expect != Expect::MoreChangeDataOrTrailer { + errors.push(ChangelogParseError { + line: position, + message: format!( + "found blank line where expected {}", + expect.as_lintian_str() + ), + }); + } + } else { + errors.push(ChangelogParseError { + line: position, + message: "unrecognised line".to_string(), + }); + if expect == Expect::StartOfChangeData || expect == Expect::MoreChangeDataOrTrailer { + entry.changes = true; + expect = Expect::MoreChangeDataOrTrailer; + } + } + } + + if expect != Expect::NextHeadingOrEof { + let position = (lines.len() + 1) as u32; + errors.push(ChangelogParseError { + line: position, + message: format!("found eof where expected {}", expect.as_lintian_str()), + }); + } + + errors +} + +fn parse_kvpairs( + kvpairs: &str, + position: u32, + errors: &mut Vec, + kv: &Regex, + urgency: &Regex, + xbcs: &Regex, +) { + let mut seen = Vec::new(); + for raw in kvpairs.split(',') { + let pair = raw.trim(); + if pair.is_empty() { + continue; + } + let Some(captures) = kv.captures(pair) else { + errors.push(ChangelogParseError { + line: position, + message: format!("bad key-value after ';': '{pair}'"), + }); + continue; + }; + let key_raw = captures.get(1).map(|m| m.as_str()).unwrap_or(""); + let mut key_chars = key_raw.chars(); + let key = match key_chars.next() { + Some(first) => { + let mut s = first.to_uppercase().collect::(); + s.push_str(key_chars.as_str()); + s + } + None => String::new(), + }; + let value = captures.get(2).map(|m| m.as_str()).unwrap_or(""); + if seen.iter().any(|existing| existing == &key) { + errors.push(ChangelogParseError { + line: position, + message: format!("repeated key-value {key}"), + }); + } else { + seen.push(key.clone()); + } + if key == "Urgency" { + if !urgency.is_match(value) { + errors.push(ChangelogParseError { + line: position, + message: format!("badly formatted urgency value {value}"), + }); + } + } else if xbcs.is_match(&key) { + } else if key != "Binary-only" { + errors.push(ChangelogParseError { + line: position, + message: format!("unknown key-value key {key} - copying to XS-{key}"), + }); + } + } +} + +fn parse_changelog_timestamp(date: &str) -> bool { + let date = date + .rsplit_once(" (") + .and_then(|(before, rest)| rest.ends_with(')').then_some(before)) + .unwrap_or(date); + const FORMATS: &[&str] = &[ + "%a, %d %b %Y %H:%M:%S %z", + "%a, %e %b %Y %H:%M:%S %z", + "%d %b %Y %H:%M:%S %z", + "%e %b %Y %H:%M:%S %z", + "%a, %-d %b %Y %H:%M:%S %z", + "%-d %b %Y %H:%M:%S %z", + ]; + FORMATS + .iter() + .any(|format| DateTime::parse_from_str(date, format).is_ok()) +} + +#[cfg(test)] +mod tests { + use super::*; + + fn messages(contents: &str) -> Vec<(u32, String)> { + DebianChangelog::parse(contents) + .errors() + .iter() + .map(|error| (error.line(), error.message().to_string())) + .collect() + } + + #[test] + fn empty_is_not_a_debian_changelog() { + assert_eq!( + messages(""), + vec![(1, "not a Debian changelog".to_string())] + ); + } + + #[test] + fn upstream_changelog_is_not_debian() { + assert_eq!( + messages( + "2011-09-10 Niels Thykier \n\n\t* This is a non-Debian ChangeLog.\n" + ), + vec![(1, "not a Debian changelog".to_string())] + ); + } + + #[test] + fn valid_changelog_has_no_errors() { + assert!(messages( + "example (1.0) unstable; urgency=low\n\n * test\n\n -- A Uthor Tue, 30 Dec 2008 17:34:02 -0800\n", + ) + .is_empty()); + } + + #[test] + fn empty_entry_matches_lintian() { + assert_eq!( + messages( + "example (1.0) unstable; urgency=low\n\n * .\n *\n\n -- A Uthor Tue, 30 Dec 2008 17:34:02 -0800\n\nexample (0.1) unstable; urgency=low\n\n -- A Uthor Fri, 06 Feb 2009 22:22:37 -0800\n", + ), + vec![ + (6, "badly formatted trailer line".to_string()), + ( + 10, + "found trailer where expected start of change data".to_string() + ), + ] + ); + } + + #[test] + fn empty_version_is_badly_formatted_heading() { + assert_eq!( + messages( + "example (1.0) unstable; urgency=low\n\n * Lintian Test Suite.\n * Test: changelog-file-syntax\n\n -- A Uthor Tue, 30 Dec 2008 17:34:02 -0800\n\nexample (0.9) unstable; urgency=low\n\n * Lintian Test Suite.\n * Test: changelog-file-syntax\n\n -- A Uthor Sat, 09 Apr 2016 10:56:49 +0000\n\nexample () unstable; urgency=low\n\n * Lintian Test Suite.\n * Test: changelog-file-syntax\n\n * Suppress \"should close ITP bug\" messages. (Closes: #123456)\n\n -- A Uthor Sat, 02 Apr 2016 10:56:49 +0000\n", + ), + vec![ + (15, "badly formatted heading line".to_string()), + ( + 17, + "found change data where expected next heading or eof".to_string() + ), + ] + ); + } + + #[test] + fn unparseable_date_matches_lintian() { + assert_eq!( + messages( + "example (1.0) unstable; urgency=low\n\n * Lintian Test Suite.\n * Test: changelog-file-strange-date\n\n -- A Uthor Tue, 30 Dec 2008 17:34:02 -0800\n\nexample (1.0) unstable; urgency=low\n\n * The date will fail with some dpkg version see #794674\n\n -- A Uthor The, 15 Apr 2004 23:33:51 +0200\n", + ), + vec![( + 12, + "could not parse date The, 15 Apr 2004 23:33:51 +0200".to_string() + )] + ); + } + + #[test] + fn old_changelog_marker_is_not_an_error() { + assert!(messages( + "example (1.0) unstable; urgency=low\n\n * test\n\n -- A Uthor Tue, 30 Dec 2008 17:34:02 -0800\n\nOld Changelog:\n\nexample (0.1) whatever\n", + ) + .is_empty()); + } + + #[test] + fn missing_trailer_is_eof_error() { + assert_eq!( + messages("example (1.0) unstable; urgency=low\n\n * test\n"), + vec![( + 4, + "found eof where expected more change data or trailer".to_string() + )] + ); + } + + #[test] + fn missing_file_is_unavailable() { + let path = + std::env::temp_dir().join(format!("debmagic-no-changelog-{}", std::process::id())); + let _ = std::fs::remove_file(&path); + assert!(DebianChangelog::load(&path).is_none()); + } +} diff --git a/packages/debmagic/src/lint/debian_control.rs b/packages/debmagic/src/lint/debian_control.rs new file mode 100644 index 00000000..ce9f8a76 --- /dev/null +++ b/packages/debmagic/src/lint/debian_control.rs @@ -0,0 +1,222 @@ +use std::path::Path; + +use debian_control::lossless::Control; + +/// Parsed `debian/control`: first paragraph is source; later named paragraphs are +/// installables. Matches lintian's `Lintian::Debian::Control`, not +/// `debian_control::Control::source()` (which only finds a `Source:` field). +#[derive(Debug, Clone, Default, PartialEq, Eq)] +pub struct DebianControl { + source: ControlParagraph, + installables: Vec, +} + +#[derive(Debug, Clone, Default, PartialEq, Eq)] +pub struct ControlParagraph { + fields: Vec<(String, String)>, +} + +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum InstallablePackageType { + Deb, + Udeb, +} + +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct Installable { + name: String, + package_type: InstallablePackageType, + fields: ControlParagraph, +} + +impl DebianControl { + /// `None` on syntax errors (lintian leaves required-field to + /// `syntax-error-in-control-file`). Missing files load as an empty source + /// paragraph. + pub fn load(path: &Path) -> Option { + if !path.exists() { + return Some(Self::default()); + } + match Control::from_file(path) { + Ok(control) => Some(Self::from_control(&control)), + Err(_) => None, + } + } + + fn from_control(control: &Control) -> Self { + let mut paragraphs = control.as_deb822().paragraphs(); + let source = paragraphs + .next() + .map(|paragraph| ControlParagraph::from_items(paragraph.items())) + .unwrap_or_default(); + + let installables = paragraphs + .filter_map(|paragraph| { + let fields = ControlParagraph::from_items(paragraph.items()); + let name = fields.get("Package")?; + if !is_installable_package_name(name) { + return None; + } + let package_type = installable_package_type(&fields); + Some(Installable { + name: name.to_string(), + package_type, + fields, + }) + }) + .collect(); + + Self { + source, + installables, + } + } + + pub fn source(&self) -> &ControlParagraph { + &self.source + } + + pub fn installables(&self) -> &[Installable] { + &self.installables + } +} + +impl ControlParagraph { + pub(crate) fn from_items(items: impl IntoIterator) -> Self { + Self { + fields: items.into_iter().collect(), + } + } + + pub fn declares(&self, name: &str) -> bool { + self.fields + .iter() + .any(|(key, _)| key.eq_ignore_ascii_case(name)) + } + + pub fn get(&self, name: &str) -> Option<&str> { + self.fields + .iter() + .find(|(key, _)| key.eq_ignore_ascii_case(name)) + .map(|(_, value)| value.as_str()) + } +} + +impl Installable { + pub fn name(&self) -> &str { + &self.name + } + + pub fn package_type(&self) -> InstallablePackageType { + self.package_type + } + + pub fn fields(&self) -> &ControlParagraph { + &self.fields + } +} + +fn installable_package_type(fields: &ControlParagraph) -> InstallablePackageType { + let value = fields + .get("Package-Type") + .or_else(|| fields.get("XC-Package-Type")) + .unwrap_or("deb"); + if value.eq_ignore_ascii_case("udeb") { + InstallablePackageType::Udeb + } else { + InstallablePackageType::Deb + } +} + +/// lintian's `$PKGNAME_REGEX`: `[a-z0-9][-+\.a-z0-9]+` +fn is_installable_package_name(name: &str) -> bool { + let mut chars = name.chars(); + match chars.next() { + Some(first) if first.is_ascii_lowercase() || first.is_ascii_digit() => {} + _ => return false, + } + let mut rest_len = 0usize; + for ch in chars { + if !(ch.is_ascii_lowercase() || ch.is_ascii_digit() || matches!(ch, '-' | '+' | '.')) { + return false; + } + rest_len += 1; + } + rest_len >= 1 +} + +#[cfg(test)] +mod tests { + use super::*; + use std::fs; + use tempfile::TempDir; + + fn write_control(contents: &str) -> (TempDir, std::path::PathBuf) { + let dir = TempDir::new().expect("tempdir"); + let path = dir.path().join("control"); + fs::write(&path, contents).expect("write control"); + (dir, path) + } + + #[test] + fn missing_file_is_empty_source() { + let path = std::env::temp_dir().join(format!("debmagic-no-control-{}", std::process::id())); + let _ = fs::remove_file(&path); + let control = DebianControl::load(&path).expect("missing file loads"); + assert!(!control.source().declares("Source")); + assert!(control.installables().is_empty()); + } + + #[test] + fn first_paragraph_is_source_without_source_field() { + let (_dir, path) = write_control( + "Maintainer: Example \n\ + Standards-Version: 4.7.2\n\ + \n\ + Package: example\n\ + Architecture: all\n\ + Description: example\n", + ); + let control = DebianControl::load(&path).expect("parse"); + assert!(!control.source().declares("Source")); + assert!(control.source().declares("Maintainer")); + assert_eq!(control.installables().len(), 1); + assert_eq!(control.installables()[0].name(), "example"); + } + + #[test] + fn udeb_package_type_from_xc_field() { + let (_dir, path) = write_control( + "Source: example\n\ + \n\ + Package: example-udeb\n\ + XC-Package-Type: udeb\n\ + Architecture: all\n\ + Description: udeb\n", + ); + let control = DebianControl::load(&path).expect("parse"); + assert_eq!( + control.installables()[0].package_type(), + InstallablePackageType::Udeb + ); + } + + #[test] + fn invalid_package_name_is_not_an_installable() { + let (_dir, path) = write_control( + "Source: example\n\ + \n\ + Package: X\n\ + Architecture: all\n\ + Description: too short and uppercase\n", + ); + let control = DebianControl::load(&path).expect("parse"); + assert!(control.installables().is_empty()); + } + + #[test] + fn syntax_error_is_unavailable() { + let (_dir, path) = write_control("not a deb822 file\n: \n"); + assert!(DebianControl::load(&path).is_none()); + } +} diff --git a/packages/debmagic/src/lint/debian_rules.rs b/packages/debmagic/src/lint/debian_rules.rs new file mode 100644 index 00000000..af309d9d --- /dev/null +++ b/packages/debmagic/src/lint/debian_rules.rs @@ -0,0 +1,417 @@ +use std::collections::{HashMap, HashSet}; +use std::path::Path; +use std::sync::LazyLock; + +use regex::Regex; + +/// Policy 4.9 required `debian/rules` targets. Extra on +/// `debian-rules-missing-required-target` is one of these names. +pub const POLICY_TARGETS: &[&str] = &[ + "build", + "build-arch", + "build-indep", + "binary", + "binary-arch", + "binary-indep", + "clean", +]; + +/// Parsed `debian/rules` for Policy target presence. +/// +/// Missing files, unreadable files, and non-UTF-8 contents are unavailable +/// (lintian returns before scanning). An empty file is available and reports +/// no missing targets. Unknown makefile includes suppress missing-target +/// reporting (lintian will not chase those files). +#[derive(Debug, Clone, Default, PartialEq, Eq)] +pub struct DebianRules { + missing_policy_targets: Vec, +} + +impl DebianRules { + pub fn load(path: &Path) -> Option { + if !path.is_file() { + return None; + } + let bytes = std::fs::read(path).ok()?; + let text = std::str::from_utf8(&bytes).ok()?; + Some(Self::parse(text)) + } + + pub fn parse(contents: &str) -> Self { + Self { + missing_policy_targets: missing_policy_targets(contents), + } + } + + pub fn missing_policy_targets(&self) -> &[String] { + &self.missing_policy_targets + } +} + +/// Paths from lintian 2.139.0 `data/rules/known-makefiles`. Values are +/// makefile-provided target names; only Policy targets among them count as +/// present. +fn known_makefile_targets(makefile: &str) -> Option<&'static [&'static str]> { + for &(path, targets) in KNOWN_MAKEFILES { + if path == makefile { + return Some(targets); + } + } + None +} + +const KNOWN_MAKEFILES: &[(&str, &[&str])] = &[ + ("/usr/share/cli-common/cli-nant.make", &[]), + ("/usr/share/cli-common/cli.make", &[]), + ("/usr/share/coq/coqvars.mk", &[]), + ("/usr/share/dpkg/architecture.mk", &[]), + ("/usr/share/dpkg/buildflags.mk", &[]), + ("/usr/share/dpkg/default.mk", &[]), + ("/usr/share/dpkg/pkg-info.mk", &[]), + ("/usr/share/dpkg/vendor.mk", &[]), + ("/usr/share/gcj/debian_defaults", &[]), + ("/usr/share/hardening-includes/hardening.make", &[]), + ("/usr/share/javahelper/java-vars.mk", &[]), + ("/usr/share/libdbi-perl/perl-dbdabi.make", &[]), + ("/usr/share/mpi-default-dev/debian_defaults", &[]), + ("/usr/share/ocaml/ocamlinit.mk", &[]), + ("/usr/share/ocaml/ocamlvars.mk", &[]), + ("/usr/share/octave/debian/defs.make", &[]), + ("/usr/share/pkg-kde-tools/makefiles/1/variables.mk", &[]), + ("/usr/share/postgresql-common/pgxs_debian_control.mk", &[]), + ("/usr/share/python3/python.mk", &[]), + ( + "/usr/share/quilt/quilt.make", + &["patch", "unpatch", "$(QUILT_STAMPFN)"], + ), +]; + +fn missing_policy_targets(contents: &str) -> Vec { + if contents.is_empty() { + return Vec::new(); + } + + let mut seen: HashSet<&'static str> = HashSet::new(); + let mut unknown_includes = false; + let mut variables: HashMap = HashMap::new(); + + for line in complete_lines(contents) { + if let Some(makefile) = include_makefile(&line) { + if let Some(targets) = known_makefile_targets(makefile) { + for target in targets { + mark_policy(&mut seen, target); + } + } else { + unknown_includes = true; + } + } + + if let Some((name, value)) = assignment(&line) { + variables.insert(name, value); + } + + if let Some(targets) = phony_targets(&line) { + // `.PHONY: name` is enough for GNU make. Lintian's variable + // expansion on this line uses the `$(VAR)` form as the seen + // key, so it never marks Policy targets from `.PHONY: $(TARGETS)`. + mark_declared_targets(&mut seen, &targets, &variables, false); + continue; + } + + if CONDITIONAL.is_match(&line) { + continue; + } + + if let Some(targets) = target_names(&line) { + mark_declared_targets(&mut seen, &targets, &variables, true); + } + } + + if unknown_includes { + return Vec::new(); + } + + POLICY_TARGETS + .iter() + .filter(|target| !seen.contains(*target)) + .map(|target| (*target).to_string()) + .collect() +} + +fn complete_lines(contents: &str) -> Vec { + let mut lines = Vec::new(); + let mut continued = String::new(); + for line in contents.split('\n') { + if COMMENT.is_match(line) { + continue; + } + let line = if continued.is_empty() { + line.to_string() + } else { + let mut joined = std::mem::take(&mut continued); + joined.push_str(line); + joined + }; + if let Some(stripped) = line.strip_suffix('\\') { + continued = stripped.to_string(); + continue; + } + lines.push(line); + } + lines +} + +fn include_makefile(line: &str) -> Option<&str> { + INCLUDE + .captures(line) + .and_then(|captures| captures.get(1)) + .map(|makefile| makefile.as_str()) +} + +fn assignment(line: &str) -> Option<(String, String)> { + let captures = ASSIGNMENT.captures(line)?; + Some((captures[1].to_string(), captures[2].to_string())) +} + +fn phony_targets(line: &str) -> Option> { + let captures = PHONY.captures(line)?; + Some(split_words(&captures[1])) +} + +fn target_names(line: &str) -> Option> { + let captures = TARGET.captures(line)?; + Some(split_words(&captures[1])) +} + +fn split_words(text: &str) -> Vec { + text.split_whitespace().map(ToString::to_string).collect() +} + +fn mark_declared_targets( + seen: &mut HashSet<&'static str>, + targets: &[String], + variables: &HashMap, + expand_variables: bool, +) { + for target in targets { + if target.contains('%') { + mark_percent(seen, target); + continue; + } + if target == ".DEFAULT" { + for policy in POLICY_TARGETS { + seen.insert(*policy); + } + continue; + } + if expand_variables + && let Some(name) = variable_ref(target) + && let Some(value) = variables.get(name) + { + for word in value.split_whitespace() { + mark_policy(seen, word); + } + break; + } + mark_policy(seen, target); + } +} + +fn mark_percent(seen: &mut HashSet<&'static str>, target: &str) { + let pattern = target + .split('%') + .map(regex::escape) + .collect::>() + .join(".*"); + let Ok(regex) = Regex::new(&pattern) else { + return; + }; + for policy in POLICY_TARGETS { + if regex.is_match(policy) { + seen.insert(*policy); + } + } +} + +fn mark_policy(seen: &mut HashSet<&'static str>, name: &str) { + if let Some(policy) = POLICY_TARGETS + .iter() + .copied() + .find(|policy| *policy == name) + { + seen.insert(policy); + } +} + +fn variable_ref(target: &str) -> Option<&str> { + VAR_REF + .captures(target) + .and_then(|captures| captures.get(1)) + .map(|name| name.as_str()) +} + +static COMMENT: LazyLock = LazyLock::new(|| Regex::new(r"^\s*#").expect("regex")); +static INCLUDE: LazyLock = + LazyLock::new(|| Regex::new(r"^\s*[s-]?include\s+(\S+)").expect("regex")); +static ASSIGNMENT: LazyLock = + LazyLock::new(|| Regex::new(r"^\s*(?:\S+\s+)*?(\S+)\s*[:?+]?=\s*(.*)$").expect("regex")); +static PHONY: LazyLock = + LazyLock::new(|| Regex::new(r"^(?:[^:]+\s)?\.PHONY(?:\s[^:]+)?:(.+)").expect("regex")); +static CONDITIONAL: LazyLock = + LazyLock::new(|| Regex::new(r"^ifn?(?:eq|def)\s").expect("regex")); +static TARGET: LazyLock = + LazyLock::new(|| Regex::new(r"^([^\s:][^:]*):+(.*)").expect("regex")); +static VAR_REF: LazyLock = + LazyLock::new(|| Regex::new(r"^\$[\(\{]([^\)\}]+)[\}\)]$").expect("regex")); + +#[cfg(test)] +mod tests { + use super::*; + use std::fs; + use tempfile::TempDir; + + fn missing(contents: &str) -> Vec { + DebianRules::parse(contents) + .missing_policy_targets() + .to_vec() + } + + #[test] + fn missing_file_is_unavailable() { + let path = std::env::temp_dir().join(format!("debmagic-no-rules-{}", std::process::id())); + let _ = fs::remove_file(&path); + assert!(DebianRules::load(&path).is_none()); + } + + #[test] + fn empty_file_reports_no_missing_targets() { + assert!(missing("").is_empty()); + } + + #[test] + fn shebang_only_misses_every_policy_target() { + assert_eq!( + missing("#!/usr/bin/make -f\n"), + POLICY_TARGETS + .iter() + .map(|target| (*target).to_string()) + .collect::>() + ); + } + + #[test] + fn generic_empty_misses_arch_split_targets() { + assert_eq!( + missing( + "#!/usr/bin/make -f\n\ + build:\n\ + binary:\n\ + \tinstall -d debian/generic-empty\n\ + \n\ + clean:\n\ + \trm -rf debian/generic-empty\n" + ), + vec![ + "build-arch".to_string(), + "build-indep".to_string(), + "binary-arch".to_string(), + "binary-indep".to_string(), + ] + ); + } + + #[test] + fn listed_targets_missing_build_arch_indep() { + assert_eq!( + missing( + "#!/usr/bin/make -f\n\ + \n\ + build clean binary binary-arch binary-indep:\n\ + \tdh $@\n" + ), + vec!["build-arch".to_string(), "build-indep".to_string()] + ); + } + + #[test] + fn percent_target_provides_every_policy_target() { + assert!(missing("#!/usr/bin/make -f\n\n%:\n\tdh $@\n").is_empty()); + } + + #[test] + fn unknown_include_suppresses_missing_targets() { + assert!(missing("#!/usr/bin/make -f\n\n\tinclude debian/rules.mk\n").is_empty()); + } + + #[test] + fn known_include_without_policy_targets_still_reports() { + assert_eq!( + missing( + "#!/usr/bin/make -f\n\ + include /usr/share/javahelper/java-vars.mk\n\ + \n\ + clean build binary:\n\ + \tdh $@\n" + ), + vec![ + "build-arch".to_string(), + "build-indep".to_string(), + "binary-arch".to_string(), + "binary-indep".to_string(), + ] + ); + } + + #[test] + fn phony_listing_is_sufficient() { + assert!( + missing( + "#!/usr/bin/make -f\n\ + .PHONY: binary binary-arch binary-indep build build-arch build-indep clean\n" + ) + .is_empty() + ); + } + + #[test] + fn variable_target_expands() { + assert!( + missing( + "#!/usr/bin/make -f\n\ + \n\ + TARGETS := build clean binary binary-arch binary-indep build-arch build-indep\n\ + \n\ + $(TARGETS):\n\ + \tdh $@\n" + ) + .is_empty() + ); + } + + #[test] + fn default_target_provides_every_policy_target() { + assert!(missing("#!/usr/bin/make -f\n\n.DEFAULT:\n\tdh $@\n").is_empty()); + } + + #[test] + fn continued_target_line_is_joined() { + assert!( + missing( + "#!/usr/bin/make -f\n\ + build clean binary \\\n\ + binary-arch binary-indep build-arch build-indep:\n\ + \tdh $@\n" + ) + .is_empty() + ); + } + + #[test] + fn load_reads_a_regular_file() { + let dir = TempDir::new().expect("tempdir"); + let path = dir.path().join("rules"); + fs::write(&path, "#!/usr/bin/make -f\n\n%:\n\tdh $@\n").expect("write rules"); + let rules = DebianRules::load(&path).expect("load"); + assert!(rules.missing_policy_targets().is_empty()); + } +} diff --git a/packages/debmagic/src/lint/diagnostic.rs b/packages/debmagic/src/lint/diagnostic.rs new file mode 100644 index 00000000..a6df4621 --- /dev/null +++ b/packages/debmagic/src/lint/diagnostic.rs @@ -0,0 +1,161 @@ +use std::fmt; +use std::ops::{Deref, DerefMut}; +use std::path::PathBuf; + +use super::rule::{Code, Severity, Tag}; + +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct Location { + pub path: PathBuf, + pub line: Option, + pub column: Option, +} + +/// Lintian's package class on a Diagnostic. +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum ProcessableType { + Source, + Binary, + Udeb, +} + +impl ProcessableType { + pub fn as_str(self) -> &'static str { + match self { + Self::Source => "source", + Self::Binary => "binary", + Self::Udeb => "udeb", + } + } +} + +impl fmt::Display for ProcessableType { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + f.write_str(self.as_str()) + } +} + +/// Cheap-to-clone handle; payload lives in [`DiagnosticInner`]. +#[derive(Debug, Clone, PartialEq, Eq)] +#[must_use] +pub struct Diagnostic { + inner: Box, +} + +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct DiagnosticInner { + pub message: String, + pub location: Location, + pub severity: Severity, + pub code: Code, + pub tag: Tag, + pub package: String, + pub processable_type: Option, + pub help: Option, +} + +impl Deref for Diagnostic { + type Target = DiagnosticInner; + + fn deref(&self) -> &Self::Target { + &self.inner + } +} + +impl DerefMut for Diagnostic { + fn deref_mut(&mut self) -> &mut Self::Target { + &mut self.inner + } +} + +impl Diagnostic { + pub fn warn(message: impl Into) -> Self { + Self::new(Severity::Warning, message) + } + + pub fn error(message: impl Into) -> Self { + Self::new(Severity::Error, message) + } + + fn new(severity: Severity, message: impl Into) -> Self { + Self { + inner: Box::new(DiagnosticInner { + message: message.into(), + location: Location { + path: PathBuf::new(), + line: None, + column: None, + }, + severity, + // Replaced by the running Rule's context. + code: Code::from_static("XX0000"), + tag: Tag(""), + package: String::new(), + processable_type: None, + help: None, + }), + } + } + + pub fn with_location(mut self, location: Location) -> Self { + self.inner.location = location; + self + } + + pub fn with_help(mut self, help: impl Into) -> Self { + self.inner.help = Some(help.into()); + self + } + + pub fn with_severity(mut self, severity: Severity) -> Self { + self.inner.severity = severity; + self + } + + pub fn with_code(mut self, code: Code) -> Self { + self.inner.code = code; + self + } + + pub fn with_tag(mut self, tag: Tag) -> Self { + self.inner.tag = tag; + self + } + + pub fn with_package(mut self, package: impl Into) -> Self { + self.inner.package = package.into(); + self + } + + pub fn with_processable_type(mut self, processable_type: ProcessableType) -> Self { + self.inner.processable_type = Some(processable_type); + self + } +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn warn_builder_sets_help_and_location() { + let diagnostic = Diagnostic::warn("msg") + .with_help("try this") + .with_location(Location { + path: PathBuf::from("debian/control"), + line: Some(1), + column: None, + }); + assert_eq!(diagnostic.message, "msg"); + assert_eq!(diagnostic.severity, Severity::Warning); + assert_eq!(diagnostic.help.as_deref(), Some("try this")); + assert_eq!(diagnostic.location.line, Some(1)); + } + + #[test] + fn processable_type_displays_lintian_label() { + assert_eq!(ProcessableType::Source.to_string(), "source"); + assert_eq!(ProcessableType::Binary.to_string(), "binary"); + assert_eq!(ProcessableType::Udeb.to_string(), "udeb"); + } +} diff --git a/packages/debmagic/src/lint/installation_control.rs b/packages/debmagic/src/lint/installation_control.rs new file mode 100644 index 00000000..373272fb --- /dev/null +++ b/packages/debmagic/src/lint/installation_control.rs @@ -0,0 +1,87 @@ +use anyhow::{Context, bail}; +use debian_control::lossless::Control; + +use super::binary_package_reader::BinaryPackageReader; +use super::debian_control::ControlParagraph; + +/// Parsed Installation control: the single Deb822 paragraph in a Binary package. +#[derive(Debug, Clone, Default, PartialEq, Eq)] +pub struct InstallationControl { + fields: ControlParagraph, +} + +impl InstallationControl { + /// Load from a Binary package reader. Not one Deb822 paragraph is a + /// runtime failure, not a missing Debian control. + pub fn from_reader(reader: &BinaryPackageReader) -> anyhow::Result { + let path = reader.path(); + let Some(bytes) = reader.read_control_file("control")? else { + bail!("installation control in {} is missing", path.display()); + }; + let text = std::str::from_utf8(bytes) + .with_context(|| format!("installation control in {} is not UTF-8", path.display()))?; + let control: Control = text.parse().with_context(|| { + format!( + "installation control in {} is not valid Deb822", + path.display() + ) + })?; + let mut paragraphs = control.as_deb822().paragraphs(); + let Some(first) = paragraphs.next() else { + bail!( + "installation control in {} has no Deb822 paragraph", + path.display() + ); + }; + if paragraphs.next().is_some() { + bail!( + "installation control in {} is not exactly one Deb822 paragraph", + path.display() + ); + } + Ok(Self { + fields: ControlParagraph::from_items(first.items()), + }) + } + + pub fn fields(&self) -> &ControlParagraph { + &self.fields + } +} + +#[cfg(test)] +mod tests { + use super::*; + use crate::lint::binary_package_reader::{BinaryPackageReader, write_test_deb}; + use tempfile::TempDir; + + #[test] + fn loads_single_paragraph() -> anyhow::Result<()> { + let dir = TempDir::new()?; + let path = dir.path().join("example.deb"); + write_test_deb( + &path, + "Package: example\n\ + Version: 1.0\n\ + Architecture: all\n\ + Maintainer: Example \n\ + Description: example\n extra\n", + )?; + let reader = BinaryPackageReader::from_path(&path)?; + let control = InstallationControl::from_reader(&reader)?; + assert_eq!(control.fields().get("Package"), Some("example")); + assert!(control.fields().declares("Description")); + Ok(()) + } + + #[test] + fn two_paragraphs_are_a_runtime_failure() -> anyhow::Result<()> { + let dir = TempDir::new()?; + let path = dir.path().join("example.deb"); + write_test_deb(&path, "Package: example\n\nPackage: other\n")?; + let reader = BinaryPackageReader::from_path(&path)?; + let error = InstallationControl::from_reader(&reader).unwrap_err(); + assert!(error.to_string().contains("exactly one"), "{error}"); + Ok(()) + } +} diff --git a/packages/debmagic/src/lint/intent.rs b/packages/debmagic/src/lint/intent.rs new file mode 100644 index 00000000..c46fca2f --- /dev/null +++ b/packages/debmagic/src/lint/intent.rs @@ -0,0 +1,106 @@ +use std::collections::{HashMap, HashSet}; +use std::path::PathBuf; + +use crate::build_intent::load_config; + +use super::rule::Code; +use super::rule::Severity; +use super::selection::resolve_selected_codes; +use super::subject::{Subject, resolve_subject}; + +/// Clap-free inputs for resolving a [`CheckIntent`]. +#[derive(Debug, Clone)] +pub struct CheckIntentInput { + /// Directory used when `subject` is unset (typically cwd). + pub fallback_dir: PathBuf, + pub subject: Option, + pub config_file: Option, + pub select: Vec, + pub ignore: Vec, + pub fail_on: Vec, +} + +/// Fully resolved description of *how* a lint runs. +#[derive(Debug, Clone)] +pub struct CheckIntent { + pub subject: Subject, + pub selected: Vec, + pub fail_on: HashSet, + pub severity_remaps: HashMap, +} + +fn resolve_fail_on(fail_on: &[Severity]) -> HashSet { + if fail_on.is_empty() { + HashSet::from([Severity::Error]) + } else { + fail_on.iter().copied().collect() + } +} + +pub fn resolve_check_intent(input: CheckIntentInput) -> anyhow::Result { + let subject_path = input.subject.unwrap_or(input.fallback_dir); + let subject = resolve_subject(subject_path)?; + + let config_source_dir = match &subject { + Subject::SourceTree(path) => Some(path.as_path()), + Subject::BinaryPackage(_) | Subject::SourcePackage(_) => None, + }; + let _config = load_config(config_source_dir, input.config_file.as_deref())?; + + Ok(CheckIntent { + subject, + selected: resolve_selected_codes(&input.select, &input.ignore)?, + fail_on: resolve_fail_on(&input.fail_on), + severity_remaps: HashMap::new(), + }) +} + +#[cfg(test)] +mod tests { + use super::*; + use crate::lint::rule::RuleMeta; + use crate::lint::rules::DebmagicDummyTrigger; + use crate::lint::subject::SubjectKind; + + fn asset_config() -> PathBuf { + PathBuf::from(env!("CARGO_MANIFEST_DIR")) + .join("tests") + .join("assets") + .join("config1.toml") + } + + fn base_input(fallback: PathBuf) -> CheckIntentInput { + CheckIntentInput { + fallback_dir: fallback, + subject: None, + config_file: Some(asset_config()), + select: vec![], + ignore: vec![], + fail_on: vec![], + } + } + + #[test] + fn resolve_absolutizes_source_tree_subject() -> anyhow::Result<()> { + let dir = std::env::temp_dir(); + let intent = resolve_check_intent(base_input(dir.clone()))?; + assert_eq!(intent.subject.kind(), SubjectKind::SourceTree); + assert!(intent.subject.path().is_absolute()); + assert_eq!(intent.subject.path(), std::path::absolute(&dir)?); + Ok(()) + } + + #[test] + fn resolve_default_fail_on_is_error_only() -> anyhow::Result<()> { + let intent = resolve_check_intent(base_input(std::env::temp_dir()))?; + assert_eq!(intent.fail_on, HashSet::from([Severity::Error])); + Ok(()) + } + + #[test] + fn resolve_selected_contains_dm0001_by_default() -> anyhow::Result<()> { + let intent = resolve_check_intent(base_input(std::env::temp_dir()))?; + assert!(intent.selected.contains(&DebmagicDummyTrigger::CODE)); + Ok(()) + } +} diff --git a/packages/debmagic/src/lint/mod.rs b/packages/debmagic/src/lint/mod.rs new file mode 100644 index 00000000..235a2879 --- /dev/null +++ b/packages/debmagic/src/lint/mod.rs @@ -0,0 +1,22 @@ +mod binary_package_reader; +mod context; +mod debian_changelog; +mod debian_control; +mod debian_rules; +mod diagnostic; +mod installation_control; +mod intent; +mod registry; +mod rule; +mod rules; +mod run; +mod selection; +mod subject; +#[cfg(test)] +pub(crate) mod tester; + +pub use diagnostic::{Diagnostic, DiagnosticInner, Location, ProcessableType}; +pub use intent::{CheckIntent, CheckIntentInput, resolve_check_intent}; +pub use rule::{Code, Severity, Tag}; +pub use run::{CheckOutcome, format_diagnostic, format_summary, run_check}; +pub use subject::{Subject, SubjectKind}; diff --git a/packages/debmagic/src/lint/registry.rs b/packages/debmagic/src/lint/registry.rs new file mode 100644 index 00000000..a562b89c --- /dev/null +++ b/packages/debmagic/src/lint/registry.rs @@ -0,0 +1,51 @@ +use super::rule::{BinaryPackageRule, RuleAccess, SourcePackageRule, SourceTreeRule}; +use super::rules::{ + DebianRulesMissingRequiredTarget, DebmagicDummyTrigger, RequiredField, + SyntaxErrorInDebianChangelog, +}; + +pub(crate) fn all_rules() -> &'static [&'static dyn RuleAccess] { + &[ + &DebmagicDummyTrigger, + &RequiredField, + &SyntaxErrorInDebianChangelog, + &DebianRulesMissingRequiredTarget, + ] +} + +pub(crate) fn source_tree_rules() -> &'static [&'static dyn SourceTreeRule] { + &[ + &DebmagicDummyTrigger, + &RequiredField, + &SyntaxErrorInDebianChangelog, + &DebianRulesMissingRequiredTarget, + ] +} + +pub(crate) fn binary_package_rules() -> &'static [&'static dyn BinaryPackageRule] { + &[&RequiredField] +} + +pub(crate) fn source_package_rules() -> &'static [&'static dyn SourcePackageRule] { + &[] +} + +#[cfg(test)] +mod tests { + use super::*; + use crate::lint::rule::RuleMeta; + + #[test] + fn source_package_has_no_rules_yet() { + assert!(source_package_rules().is_empty()); + } + + #[test] + fn binary_package_rules_are_required_field() { + let codes: Vec<_> = binary_package_rules() + .iter() + .map(|rule| rule.code()) + .collect(); + assert_eq!(codes, vec![RequiredField::CODE]); + } +} diff --git a/packages/debmagic/src/lint/rule.rs b/packages/debmagic/src/lint/rule.rs new file mode 100644 index 00000000..3836f882 --- /dev/null +++ b/packages/debmagic/src/lint/rule.rs @@ -0,0 +1,236 @@ +use std::fmt; +use std::str::FromStr; + +use anyhow::bail; +use clap::ValueEnum; + +#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] +pub struct Tag(pub &'static str); + +impl Tag { + pub fn as_str(&self) -> &str { + self.0 + } +} + +impl fmt::Display for Tag { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + f.write_str(self.0) + } +} + +#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)] +pub struct Code([u8; 6]); + +impl Code { + const fn uppercase_byte(byte: u8) -> u8 { + if byte.is_ascii_lowercase() { + byte - b'a' + b'A' + } else { + byte + } + } + + pub const fn from_bytes(bytes: [u8; 6]) -> Self { + assert!(bytes[0].is_ascii_alphabetic()); + assert!(bytes[1].is_ascii_alphabetic()); + assert!(bytes[2].is_ascii_digit()); + assert!(bytes[3].is_ascii_digit()); + assert!(bytes[4].is_ascii_digit()); + assert!(bytes[5].is_ascii_digit()); + let mut normalized = [0u8; 6]; + let mut index = 0; + while index < 6 { + normalized[index] = Self::uppercase_byte(bytes[index]); + index += 1; + } + Self(normalized) + } + + pub const fn from_static(s: &'static str) -> Self { + let bytes = s.as_bytes(); + assert!(bytes.len() == 6); + assert!(bytes[0].is_ascii_alphabetic()); + assert!(bytes[1].is_ascii_alphabetic()); + assert!(bytes[2].is_ascii_digit()); + assert!(bytes[3].is_ascii_digit()); + assert!(bytes[4].is_ascii_digit()); + assert!(bytes[5].is_ascii_digit()); + Self::from_bytes([bytes[0], bytes[1], bytes[2], bytes[3], bytes[4], bytes[5]]) + } + + pub fn parse(s: &str) -> anyhow::Result { + let bytes = s.as_bytes(); + if bytes.len() != 6 { + bail!("invalid code '{s}': expected two letters and four digits"); + } + if !bytes[0].is_ascii_alphabetic() || !bytes[1].is_ascii_alphabetic() { + bail!("invalid code '{s}': expected two letters and four digits"); + } + if !bytes[2..].iter().all(u8::is_ascii_digit) { + bail!("invalid code '{s}': expected two letters and four digits"); + } + let mut normalized = [0u8; 6]; + for (index, byte) in bytes.iter().enumerate() { + normalized[index] = byte.to_ascii_uppercase(); + } + Ok(Self(normalized)) + } + + pub fn as_str(&self) -> &str { + std::str::from_utf8(&self.0).expect("code bytes are ASCII") + } + + pub fn prefix(&self) -> &str { + &self.as_str()[..2] + } + + pub fn matches_selector_prefix(&self, prefix: &str) -> bool { + self.as_str().starts_with(&prefix.to_ascii_uppercase()) + } +} + +impl fmt::Display for Code { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + f.write_str(self.as_str()) + } +} + +#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, ValueEnum)] +pub enum Severity { + Error, + Warning, + Info, + Pedantic, +} + +impl Severity { + /// Lintian EWI letter for this rung (`E`, `W`, `I`, `P`). + pub fn letter(self) -> char { + match self { + Self::Error => 'E', + Self::Warning => 'W', + Self::Info => 'I', + Self::Pedantic => 'P', + } + } +} + +impl FromStr for Severity { + type Err = anyhow::Error; + + fn from_str(s: &str) -> Result { + match s { + "error" => Ok(Self::Error), + "warning" => Ok(Self::Warning), + "info" => Ok(Self::Info), + "pedantic" => Ok(Self::Pedantic), + _ => bail!("unknown severity '{s}'"), + } + } +} + +pub trait RuleMeta { + const CODE: Code; + const TAG: Tag; + const DEFAULT_SELECTED: bool; + const EXPERIMENTAL: bool; + #[allow(dead_code)] + const DOCUMENTATION: &'static str; +} + +/// Object-safe accessors. Associated constants on [`RuleMeta`] are not dyn-compatible. +pub trait RuleAccess: Send + Sync { + fn code(&self) -> Code; + fn tag(&self) -> Tag; + fn default_selected(&self) -> bool; + fn experimental(&self) -> bool; + #[allow(dead_code)] + fn documentation(&self) -> &'static str; +} + +impl RuleAccess for T { + fn code(&self) -> Code { + T::CODE + } + fn tag(&self) -> Tag { + T::TAG + } + fn default_selected(&self) -> bool { + T::DEFAULT_SELECTED + } + fn experimental(&self) -> bool { + T::EXPERIMENTAL + } + fn documentation(&self) -> &'static str { + T::DOCUMENTATION + } +} + +pub trait SourceTreeRule: RuleAccess { + fn run(&self, ctx: &mut super::context::SourceTreeContext<'_>); +} + +pub trait BinaryPackageRule: RuleAccess { + fn run(&self, ctx: &mut super::context::BinaryPackageContext<'_>); +} + +#[allow(dead_code)] +pub trait SourcePackageRule: RuleAccess { + fn run(&self, ctx: &mut super::context::SourcePackageContext<'_>); +} + +#[macro_export] +macro_rules! declare_rule { + ( + $(#[doc = $doc:literal])+ + $name:ident, + code = $code:literal, + tag = $tag:literal, + default_selected = $default_selected:literal, + experimental = $experimental:literal, + ) => { + impl $crate::lint::rule::RuleMeta for $name { + const CODE: $crate::lint::rule::Code = $crate::lint::rule::Code::from_static($code); + const TAG: $crate::lint::rule::Tag = $crate::lint::rule::Tag($tag); + const DEFAULT_SELECTED: bool = $default_selected; + const EXPERIMENTAL: bool = $experimental; + const DOCUMENTATION: &'static str = concat!($($doc, "\n",)+); + } + }; +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn code_parses_and_displays_uppercase() -> anyhow::Result<()> { + let code = Code::parse("dm0001")?; + assert_eq!(code, Code::from_static("DM0001")); + assert_eq!(code.to_string(), "DM0001"); + Ok(()) + } + + #[test] + fn code_rejects_invalid_shapes() { + assert!(Code::parse("DM001").is_err()); + assert!(Code::parse("DM00001").is_err()); + assert!(Code::parse("1M0001").is_err()); + } + + #[test] + fn severity_parses_from_str() -> anyhow::Result<()> { + assert_eq!("warning".parse::()?, Severity::Warning); + Ok(()) + } + + #[test] + fn declare_rule_captures_multiline_documentation() { + use crate::lint::rules::DebmagicDummyTrigger; + let docs = DebmagicDummyTrigger::DOCUMENTATION; + assert!(docs.contains("debian/debmagic-dummy-lint")); + assert!(docs.contains("Selection")); + assert!(docs.contains('\n')); + } +} diff --git a/packages/debmagic/src/lint/rules/lintian/debian-rules-missing-required-target.rs b/packages/debmagic/src/lint/rules/lintian/debian-rules-missing-required-target.rs new file mode 100644 index 00000000..3097f457 --- /dev/null +++ b/packages/debmagic/src/lint/rules/lintian/debian-rules-missing-required-target.rs @@ -0,0 +1,154 @@ +use std::path::PathBuf; + +use crate::declare_rule; +use crate::lint::context::SourceTreeContext; +use crate::lint::diagnostic::{Diagnostic, Location}; +use crate::lint::rule::SourceTreeRule; + +pub struct DebianRulesMissingRequiredTarget; + +declare_rule! { + /// Policy 4.9 required targets are missing from `debian/rules`. + /// + /// Required targets are build, build-arch, build-indep, binary, + /// binary-arch, binary-indep, and clean. Extra is the missing target + /// name. A `%` catch-all, `.DEFAULT`, a `.PHONY` listing, or known + /// helper-makefile includes can satisfy them; an unknown `include` + /// suppresses the check. Source-tree inspects `debian/rules`. + DebianRulesMissingRequiredTarget, + code = "LN0003", + tag = "debian-rules-missing-required-target", + default_selected = true, + experimental = false, +} + +impl SourceTreeRule for DebianRulesMissingRequiredTarget { + fn run(&self, ctx: &mut SourceTreeContext<'_>) { + let Some(rules) = ctx.debian_rules() else { + return; + }; + let reports: Vec = rules.missing_policy_targets().to_vec(); + + for target in reports { + ctx.diagnostic(Diagnostic::error(target).with_location(Location { + path: PathBuf::from("debian/rules"), + line: None, + column: None, + })); + } + } +} + +#[cfg(test)] +mod tests { + use crate::lint::tester::SourceTreeTester; + + use super::*; + + const CONTROL: &str = "Source: example\n\ + Maintainer: Example \n\ + Standards-Version: 4.7.2\n\ + \n\ + Package: example\n\ + Architecture: all\n\ + Description: example\n extra\n"; + + #[test] + fn test() { + let pass = vec![ + vec![ + ("debian/control", CONTROL), + ("debian/rules", "#!/usr/bin/make -f\n\n%:\n\tdh $@\n"), + ], + vec![ + ("debian/control", CONTROL), + ( + "debian/rules", + concat!( + "#!/usr/bin/make -f\n", + "\n", + ".PHONY: binary binary-arch binary-indep build build-arch build-indep clean\n", + "binary-arch build build-arch build-indep clean install:\n", + "\tdh $@\n", + "\n", + "binary binary-indep:\n", + "\tdh $@\n", + ), + ), + ], + vec![ + ("debian/control", CONTROL), + ( + "debian/rules", + concat!( + "#!/usr/bin/make -f\n", + "\n", + " TARGETS := build clean binary binary-arch binary-indep build-arch build-indep\n", + "\n", + "$(TARGETS):\n", + "\tdh $@\n", + ), + ), + ], + vec![ + ("debian/control", CONTROL), + ( + "debian/rules", + "#!/usr/bin/make -f\n\n\tinclude debian/rules.mk\n", + ), + ], + vec![("debian/control", CONTROL)], + vec![("debian/control", CONTROL), ("debian/rules", "")], + ]; + let fail = vec![ + vec![ + ("debian/control", CONTROL), + ( + "debian/rules", + concat!( + "#!/usr/bin/make -f\n", + "build:\n", + "binary:\n", + "\tinstall -d debian/generic-empty debian/generic-empty/DEBIAN\n", + "\tdpkg-gencontrol -pgeneric-empty -Pdebian/generic-empty\n", + "\tdpkg --build debian/generic-empty ..\n", + "\n", + "clean:\n", + "\trm -rf debian/generic-empty\n", + ), + ), + ], + vec![ + ("debian/control", CONTROL), + ( + "debian/rules", + concat!( + "#!/usr/bin/make -f\n", + "\n", + "build clean binary binary-arch binary-indep:\n", + "\tdh $@\n", + ), + ), + ], + vec![ + ("debian/control", CONTROL), + ( + "debian/rules", + concat!( + "#!/usr/bin/make -f\n", + "\n", + "include /usr/share/javahelper/java-vars.mk\n", + "\n", + "clean build binary:\n", + "\tdh $@\n", + ), + ), + ], + vec![ + ("debian/control", CONTROL), + ("debian/rules", "#!/usr/bin/make -f\n"), + ], + ]; + SourceTreeTester::new(DebianRulesMissingRequiredTarget, pass, fail).test_and_snapshot(); + } +} diff --git a/packages/debmagic/src/lint/rules/lintian/mod.rs b/packages/debmagic/src/lint/rules/lintian/mod.rs new file mode 100644 index 00000000..c01643a2 --- /dev/null +++ b/packages/debmagic/src/lint/rules/lintian/mod.rs @@ -0,0 +1,10 @@ +#[path = "debian-rules-missing-required-target.rs"] +mod debian_rules_missing_required_target; +#[path = "required-field.rs"] +mod required_field; +#[path = "syntax-error-in-debian-changelog.rs"] +mod syntax_error_in_debian_changelog; + +pub(crate) use debian_rules_missing_required_target::DebianRulesMissingRequiredTarget; +pub(crate) use required_field::RequiredField; +pub(crate) use syntax_error_in_debian_changelog::SyntaxErrorInDebianChangelog; diff --git a/packages/debmagic/src/lint/rules/lintian/required-field.rs b/packages/debmagic/src/lint/rules/lintian/required-field.rs new file mode 100644 index 00000000..bbdb306b --- /dev/null +++ b/packages/debmagic/src/lint/rules/lintian/required-field.rs @@ -0,0 +1,178 @@ +use std::path::PathBuf; + +use crate::declare_rule; +use crate::lint::context::{BinaryPackageContext, SourceTreeContext}; +use crate::lint::debian_control::InstallablePackageType; +use crate::lint::diagnostic::{Diagnostic, Location}; +use crate::lint::rule::{BinaryPackageRule, SourceTreeRule}; + +const SOURCE_FIELDS: &[&str] = &["Source", "Maintainer", "Standards-Version"]; +const INSTALLABLE_FIELDS: &[&str] = &["Package", "Architecture", "Description"]; +const INSTALLATION_FIELDS: &[&str] = &[ + "Package", + "Version", + "Architecture", + "Maintainer", + "Description", +]; + +pub struct RequiredField; + +declare_rule! { + /// Policy-required Deb822 fields are missing from the Subject's primary control file. + /// + /// Source-tree `debian/control` requires Source, Maintainer, and Standards-Version + /// on the source paragraph (Standards-Version is omitted when every installable is a + /// udeb), and Package, Architecture, and Description on each installable paragraph. + /// Binary-package Installation control requires Package, Version, Architecture, + /// Maintainer, and Description. + RequiredField, + code = "LN0001", + tag = "required-field", + default_selected = true, + experimental = false, +} + +impl SourceTreeRule for RequiredField { + fn run(&self, ctx: &mut SourceTreeContext<'_>) { + let Some(control) = ctx.debian_control() else { + return; + }; + + let mut source_fields = SOURCE_FIELDS.to_vec(); + if control + .installables() + .iter() + .all(|installable| installable.package_type() == InstallablePackageType::Udeb) + { + source_fields.retain(|field| *field != "Standards-Version"); + } + + let mut reports = Vec::new(); + for field in source_fields { + if !control.source().declares(field) { + reports.push((field.to_string(), "(in section for source)".to_string())); + } + } + for installable in control.installables() { + for field in INSTALLABLE_FIELDS { + if !installable.fields().declares(field) { + reports.push(( + (*field).to_string(), + format!("(in section for {})", installable.name()), + )); + } + } + } + + for (field, section) in reports { + ctx.diagnostic( + Diagnostic::error(format!("{section} {field}")).with_location(Location { + path: PathBuf::from("debian/control"), + line: None, + column: None, + }), + ); + } + } +} + +impl BinaryPackageRule for RequiredField { + fn run(&self, ctx: &mut BinaryPackageContext<'_>) { + let reports = { + let control = ctx.installation_control(); + let basename = ctx + .path() + .file_name() + .and_then(|name| name.to_str()) + .unwrap_or_default(); + INSTALLATION_FIELDS + .iter() + .filter(|field| !control.fields().declares(field)) + .map(|field| format!("{basename} {field}")) + .collect::>() + }; + for message in reports { + ctx.diagnostic(Diagnostic::error(message)); + } + } +} + +#[cfg(test)] +mod tests { + use crate::lint::tester::SourceTreeTester; + + use super::*; + + const COMPLETE: [(&str, &str); 1] = [( + "debian/control", + "Source: example\n\ + Maintainer: Example \n\ + Standards-Version: 4.7.2\n\ + \n\ + Package: example\n\ + Architecture: all\n\ + Description: example\n extra\n", + )]; + + #[test] + fn test() { + let pass = vec![ + COMPLETE.to_vec(), + vec![( + "debian/control", + "Source: example\n\ + Maintainer: Example \n\ + \n\ + Package: example-udeb\n\ + Package-Type: udeb\n\ + Architecture: all\n\ + Description: udeb\n extra\n", + )], + ]; + let fail = vec![ + vec![( + "debian/control", + "Source: example\n\ + Standards-Version: 4.7.2\n\ + \n\ + Package: example\n\ + Architecture: all\n\ + Description: example\n extra\n", + )], + vec![( + "debian/control", + "Source: example\n\ + Maintainer: Example \n\ + Standards-Version: 4.7.2\n\ + \n\ + Package: example\n\ + Description: example\n extra\n", + )], + vec![( + "debian/control", + "Source: example\n\ + Maintainer: Example \n\ + \n\ + Package: example\n\ + Architecture: all\n\ + Description: example\n extra\n", + )], + vec![( + "debian/control", + "Source: example\n\ + Maintainer: Example \n\ + \n\ + Package: example\n\ + Architecture: all\n\ + Description: example\n extra\n\ + \n\ + Package: example-udeb\n\ + Package-Type: udeb\n\ + Architecture: all\n\ + Description: udeb\n extra\n", + )], + ]; + SourceTreeTester::new(RequiredField, pass, fail).test_and_snapshot(); + } +} diff --git a/packages/debmagic/src/lint/rules/lintian/syntax-error-in-debian-changelog.rs b/packages/debmagic/src/lint/rules/lintian/syntax-error-in-debian-changelog.rs new file mode 100644 index 00000000..b9f91c83 --- /dev/null +++ b/packages/debmagic/src/lint/rules/lintian/syntax-error-in-debian-changelog.rs @@ -0,0 +1,170 @@ +use std::path::PathBuf; + +use crate::declare_rule; +use crate::lint::context::SourceTreeContext; +use crate::lint::diagnostic::{Diagnostic, Location}; +use crate::lint::rule::SourceTreeRule; + +pub struct SyntaxErrorInDebianChangelog; + +declare_rule! { + /// Debian changelog grammar errors from parsing `debian/changelog`. + /// + /// Each parser error is one Diagnostic. Extra is the quoted condition + /// lintian puts on `syntax-error-in-debian-changelog`. Source-tree + /// inspects `debian/changelog`. + SyntaxErrorInDebianChangelog, + code = "LN0002", + tag = "syntax-error-in-debian-changelog", + default_selected = true, + experimental = false, +} + +impl SourceTreeRule for SyntaxErrorInDebianChangelog { + fn run(&self, ctx: &mut SourceTreeContext<'_>) { + let Some(changelog) = ctx.debian_changelog() else { + return; + }; + let reports: Vec<(u32, String)> = changelog + .errors() + .iter() + .map(|error| (error.line(), error.message().to_string())) + .collect(); + + for (line, message) in reports { + ctx.diagnostic( + Diagnostic::warn(format!("\"{message}\"")).with_location(Location { + path: PathBuf::from("debian/changelog"), + line: Some(line), + column: None, + }), + ); + } + } +} + +#[cfg(test)] +mod tests { + use crate::lint::tester::SourceTreeTester; + + use super::*; + + const CONTROL: &str = "Source: example\n\ + Maintainer: Example \n\ + Standards-Version: 4.7.2\n\ + \n\ + Package: example\n\ + Architecture: all\n\ + Description: example\n extra\n"; + + const VALID_CHANGELOG: &str = concat!( + "example (1.0) unstable; urgency=low\n", + "\n", + " * test\n", + "\n", + " -- A Uthor Tue, 30 Dec 2008 17:34:02 -0800\n", + ); + + #[test] + fn test() { + let pass = vec![ + vec![ + ("debian/control", CONTROL), + ("debian/changelog", VALID_CHANGELOG), + ], + vec![("debian/control", CONTROL)], + vec![ + ("debian/control", CONTROL), + ( + "debian/changelog", + concat!( + "example (1.0) unstable; urgency=low\n", + "\n", + " * test\n", + "\n", + " -- A Uthor Tue, 30 Dec 2008 17:34:02 -0800\n", + "\n", + "Old Changelog:\n", + "\n", + "example (0.1) whatever\n", + ), + ), + ], + ]; + let fail = vec![ + vec![ + ("debian/control", CONTROL), + ("debian/changelog", "not a Debian changelog\n"), + ], + vec![ + ("debian/control", CONTROL), + ( + "debian/changelog", + concat!( + "example (1.0) unstable; urgency=low\n", + "\n", + " * .\n", + " *\n", + "\n", + " -- A Uthor Tue, 30 Dec 2008 17:34:02 -0800\n", + "\n", + "example (0.1) unstable; urgency=low\n", + "\n", + " -- A Uthor Fri, 06 Feb 2009 22:22:37 -0800\n", + ), + ), + ], + vec![ + ("debian/control", CONTROL), + ( + "debian/changelog", + concat!( + "example (1.0) unstable; urgency=low\n", + "\n", + " * Lintian Test Suite.\n", + " * Test: changelog-file-syntax\n", + "\n", + " -- A Uthor Tue, 30 Dec 2008 17:34:02 -0800\n", + "\n", + "example (0.9) unstable; urgency=low\n", + "\n", + " * Lintian Test Suite.\n", + " * Test: changelog-file-syntax\n", + "\n", + " -- A Uthor Sat, 09 Apr 2016 10:56:49 +0000\n", + "\n", + "example () unstable; urgency=low\n", + "\n", + " * Lintian Test Suite.\n", + " * Test: changelog-file-syntax\n", + "\n", + " * Suppress \"should close ITP bug\" messages. (Closes: #123456)\n", + "\n", + " -- A Uthor Sat, 02 Apr 2016 10:56:49 +0000\n", + ), + ), + ], + vec![ + ("debian/control", CONTROL), + ( + "debian/changelog", + concat!( + "example (1.0) unstable; urgency=low\n", + "\n", + " * Lintian Test Suite.\n", + " * Test: changelog-file-strange-date\n", + "\n", + " -- A Uthor Tue, 30 Dec 2008 17:34:02 -0800\n", + "\n", + "example (1.0) unstable; urgency=low\n", + "\n", + " * The date will fail with some dpkg version see #794674\n", + "\n", + " -- A Uthor The, 15 Apr 2004 23:33:51 +0200\n", + ), + ), + ], + ]; + SourceTreeTester::new(SyntaxErrorInDebianChangelog, pass, fail).test_and_snapshot(); + } +} diff --git a/packages/debmagic/src/lint/rules/mod.rs b/packages/debmagic/src/lint/rules/mod.rs new file mode 100644 index 00000000..facd8452 --- /dev/null +++ b/packages/debmagic/src/lint/rules/mod.rs @@ -0,0 +1,5 @@ +pub(crate) mod lintian; +pub(crate) mod native; + +pub(crate) use lintian::*; +pub(crate) use native::*; diff --git a/packages/debmagic/src/lint/rules/native/debmagic-dummy-trigger.rs b/packages/debmagic/src/lint/rules/native/debmagic-dummy-trigger.rs new file mode 100644 index 00000000..a48c3952 --- /dev/null +++ b/packages/debmagic/src/lint/rules/native/debmagic-dummy-trigger.rs @@ -0,0 +1,53 @@ +use std::path::PathBuf; + +use crate::declare_rule; +use crate::lint::context::SourceTreeContext; +use crate::lint::diagnostic::{Diagnostic, Location}; +use crate::lint::rule::SourceTreeRule; + +pub struct DebmagicDummyTrigger; + +declare_rule! { + /// Dummy Rule that fires when `debian/debmagic-dummy-lint` exists in a Source tree. + /// + /// Used to exercise Selection, reporting, and FailOn without a lintian Tag. + DebmagicDummyTrigger, + code = "DM0001", + tag = "debmagic-dummy-trigger", + default_selected = true, + experimental = false, +} + +impl SourceTreeRule for DebmagicDummyTrigger { + fn run(&self, ctx: &mut SourceTreeContext<'_>) { + let sentinel = ctx.path().join("debian/debmagic-dummy-lint"); + if !sentinel.is_file() { + return; + } + + ctx.diagnostic( + Diagnostic::warn("dummy Rule triggered").with_location(Location { + path: PathBuf::from("debian/debmagic-dummy-lint"), + line: None, + column: None, + }), + ); + } +} + +#[cfg(test)] +mod tests { + use crate::lint::tester::SourceTreeTester; + + use super::*; + + #[test] + fn test() { + let pass = vec![vec![("debian/changelog", "")]]; + let fail = vec![vec![ + ("debian/control", "Source: example\n"), + ("debian/debmagic-dummy-lint", "trigger\n"), + ]]; + SourceTreeTester::new(DebmagicDummyTrigger, pass, fail).test_and_snapshot(); + } +} diff --git a/packages/debmagic/src/lint/rules/native/mod.rs b/packages/debmagic/src/lint/rules/native/mod.rs new file mode 100644 index 00000000..ae329ee2 --- /dev/null +++ b/packages/debmagic/src/lint/rules/native/mod.rs @@ -0,0 +1,4 @@ +#[path = "debmagic-dummy-trigger.rs"] +mod debmagic_dummy_trigger; + +pub(crate) use debmagic_dummy_trigger::DebmagicDummyTrigger; diff --git a/packages/debmagic/src/lint/run.rs b/packages/debmagic/src/lint/run.rs new file mode 100644 index 00000000..98690e38 --- /dev/null +++ b/packages/debmagic/src/lint/run.rs @@ -0,0 +1,466 @@ +use std::collections::HashSet; +use std::fmt::Write; +use std::path::Path; + +use anyhow::bail; + +use super::context::{BinaryPackageContext, BinaryPackageData, SourceTreeContext, SourceTreeData}; +use super::diagnostic::Diagnostic; +use super::intent::CheckIntent; +use super::registry; +use super::rule::{RuleAccess, Severity}; +use super::subject::{Subject, SubjectKind}; + +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum CheckOutcome { + Success, + PolicyFailure, +} + +pub fn run_check(intent: &CheckIntent) -> anyhow::Result<(Vec, CheckOutcome)> { + match &intent.subject { + Subject::SourcePackage(path) => { + let _ = registry::source_package_rules(); + bail!( + "{} checks are not implemented (path: {})", + SubjectKind::SourcePackage.label(), + path.display() + ); + } + Subject::BinaryPackage(path) => run_binary_package_check(intent, path), + Subject::SourceTree(path) => run_source_tree_check(intent, path), + } +} + +fn run_binary_package_check( + intent: &CheckIntent, + path: &Path, +) -> anyhow::Result<(Vec, CheckOutcome)> { + let data = BinaryPackageData::new(path.to_path_buf())?; + execute_rules(intent, registry::binary_package_rules(), |rule| { + let mut ctx = BinaryPackageContext::bind(&data, rule); + rule.run(&mut ctx); + ctx.into_diagnostics() + }) +} + +fn run_source_tree_check( + intent: &CheckIntent, + source_tree: &Path, +) -> anyhow::Result<(Vec, CheckOutcome)> { + let debian_dir = source_tree.join("debian"); + if !debian_dir.is_dir() { + bail!( + "source directory {} requires a debian/ directory", + source_tree.display() + ); + } + + let data = SourceTreeData::new(source_tree.to_path_buf()); + execute_rules(intent, registry::source_tree_rules(), |rule| { + let mut ctx = SourceTreeContext::bind(&data, rule); + rule.run(&mut ctx); + ctx.into_diagnostics() + }) +} + +fn execute_rules( + intent: &CheckIntent, + rules: &[&R], + mut run_rule: impl FnMut(&R) -> Vec, +) -> anyhow::Result<(Vec, CheckOutcome)> { + let selected = intent.selected.iter().copied().collect::>(); + let execution: Vec<_> = rules + .iter() + .copied() + .filter(|rule| selected.contains(&rule.code())) + .collect(); + + if !selected.is_empty() && execution.is_empty() { + bail!("none of the selected Rules apply to this Subject"); + } + + let mut diagnostics = Vec::new(); + + for rule in execution { + let mut rule_diagnostics = run_rule(rule); + apply_severity_remaps(&mut rule_diagnostics, intent); + diagnostics.extend(rule_diagnostics); + } + + let outcome = outcome_for(&diagnostics, &intent.fail_on); + Ok((diagnostics, outcome)) +} + +fn apply_severity_remaps(diagnostics: &mut [Diagnostic], intent: &CheckIntent) { + for diagnostic in diagnostics { + if let Some(remap) = intent.severity_remaps.get(&diagnostic.code) { + diagnostic.severity = *remap; + } + } +} + +pub(crate) fn outcome_for(diagnostics: &[Diagnostic], fail_on: &HashSet) -> CheckOutcome { + if diagnostics + .iter() + .any(|diagnostic| fail_on.contains(&diagnostic.severity)) + { + CheckOutcome::PolicyFailure + } else { + CheckOutcome::Success + } +} + +pub fn format_diagnostic(diagnostic: &Diagnostic) -> String { + let mut output = format!("{}:", diagnostic.severity.letter()); + if !diagnostic.package.is_empty() { + write!(output, " {}", diagnostic.package).expect("writing to string never fails"); + } + if let Some(processable_type) = diagnostic.processable_type { + write!(output, " ({processable_type})").expect("writing to string never fails"); + } + write!(output, ": {} ({})", diagnostic.tag, diagnostic.code) + .expect("writing to string never fails"); + if !diagnostic.message.is_empty() { + write!(output, " {}", diagnostic.message).expect("writing to string never fails"); + } + if !diagnostic.location.path.as_os_str().is_empty() { + let mut pointer = diagnostic.location.path.display().to_string(); + if let Some(line) = diagnostic.location.line { + write!(pointer, ":{line}").expect("writing to string never fails"); + if let Some(column) = diagnostic.location.column { + write!(pointer, ":{column}").expect("writing to string never fails"); + } + } + write!(output, " [{pointer}]").expect("writing to string never fails"); + } + output +} + +/// Ruff-style end-of-run line: `All checks passed!` or `Found 1 warning.` +pub fn format_summary(diagnostics: &[Diagnostic]) -> String { + if diagnostics.is_empty() { + return "All checks passed!".to_string(); + } + + let mut errors = 0usize; + let mut warnings = 0usize; + let mut infos = 0usize; + let mut pedantic = 0usize; + for diagnostic in diagnostics { + match diagnostic.severity { + Severity::Error => errors += 1, + Severity::Warning => warnings += 1, + Severity::Info => infos += 1, + Severity::Pedantic => pedantic += 1, + } + } + + let mut parts = Vec::new(); + push_count(&mut parts, errors, "error", "errors"); + push_count(&mut parts, warnings, "warning", "warnings"); + push_count(&mut parts, infos, "info", "infos"); + push_count(&mut parts, pedantic, "pedantic", "pedantic"); + format!("Found {}.", parts.join(", ")) +} + +fn push_count(parts: &mut Vec, count: usize, singular: &str, plural: &str) { + match count { + 0 => {} + 1 => parts.push(format!("1 {singular}")), + n => parts.push(format!("{n} {plural}")), + } +} + +#[cfg(test)] +mod tests { + use std::collections::HashMap; + use std::collections::HashSet; + use std::fs; + use std::path::PathBuf; + + use anyhow::Context; + + use super::*; + use crate::lint::diagnostic::{Location, ProcessableType}; + use crate::lint::intent::{CheckIntentInput, resolve_check_intent}; + use crate::lint::rule::{RuleMeta, Severity}; + use crate::lint::rules::{DebmagicDummyTrigger, RequiredField}; + use crate::lint::selection::resolve_selected_codes; + + fn base_intent(subject: PathBuf) -> CheckIntent { + resolve_check_intent(CheckIntentInput { + fallback_dir: subject.clone(), + subject: Some(subject), + config_file: None, + select: vec![], + ignore: vec![], + fail_on: vec![], + }) + .expect("resolve check intent") + } + + fn dummy_diagnostic(severity: Severity, message: &str) -> Diagnostic { + Diagnostic::warn(message) + .with_severity(severity) + .with_code(DebmagicDummyTrigger::CODE) + .with_tag(DebmagicDummyTrigger::TAG) + .with_location(Location { + path: PathBuf::from("debian/control"), + line: None, + column: None, + }) + } + + #[test] + fn format_diagnostic_mirrors_lintian_pointed_hint() { + let diagnostic = Diagnostic::error("(in section for generic-empty) Description") + .with_code(RequiredField::CODE) + .with_tag(RequiredField::TAG) + .with_package("generic-empty") + .with_processable_type(ProcessableType::Source) + .with_location(Location { + path: PathBuf::from("debian/control"), + line: Some(4), + column: None, + }); + assert_eq!( + format_diagnostic(&diagnostic), + "E: generic-empty (source): required-field (LN0001) (in section for generic-empty) Description [debian/control:4]" + ); + } + + #[test] + fn diagnostic_package_falls_back_to_changelog() -> anyhow::Result<()> { + let temp_dir = tempfile_dir("debmagic-check-changelog-package")?; + fs::create_dir_all(temp_dir.join("debian"))?; + fs::write( + temp_dir.join("debian/changelog"), + "generic-empty (1.0) unstable; urgency=low\n\n * test\n\n -- a Tue, 30 Dec 2008 17:34:02 -0800\n", + )?; + fs::write( + temp_dir.join("debian/control"), + "Maintainer: Example \n\ + Standards-Version: 4.7.2\n\ + \n\ + Package: generic-empty\n\ + Architecture: all\n\ + Description: example\n extra\n", + )?; + let intent = CheckIntent { + subject: Subject::SourceTree(temp_dir), + selected: vec![RequiredField::CODE], + fail_on: HashSet::from([Severity::Error]), + severity_remaps: HashMap::new(), + }; + let (diagnostics, _) = run_check(&intent)?; + assert!( + diagnostics.iter().any(|diagnostic| { + format_diagnostic(diagnostic) + .starts_with("E: generic-empty (source): required-field (LN0001)") + }), + "expected changelog package in diagnostic output, got: {:?}", + diagnostics + .iter() + .map(format_diagnostic) + .collect::>(), + ); + Ok(()) + } + + #[test] + fn fail_on_default_treats_warning_as_success() { + let diagnostics = vec![dummy_diagnostic(Severity::Warning, "dummy Rule triggered")]; + assert_eq!( + outcome_for(&diagnostics, &HashSet::from([Severity::Error])), + CheckOutcome::Success + ); + } + + #[test] + fn fail_on_default_treats_error_as_policy_failure() { + let diagnostics = vec![dummy_diagnostic(Severity::Error, "dummy Rule triggered")]; + assert_eq!( + outcome_for(&diagnostics, &HashSet::from([Severity::Error])), + CheckOutcome::PolicyFailure + ); + } + + #[test] + fn summary_all_checks_passed_when_empty() { + assert_eq!(format_summary(&[]), "All checks passed!"); + } + + #[test] + fn summary_counts_mixed_severities() { + let diagnostics = vec![ + dummy_diagnostic(Severity::Error, "a"), + dummy_diagnostic(Severity::Error, "b"), + dummy_diagnostic(Severity::Warning, "c"), + ]; + assert_eq!(format_summary(&diagnostics), "Found 2 errors, 1 warning."); + } + + #[test] + fn missing_debian_directory_errors() -> anyhow::Result<()> { + let temp_dir = tempfile_dir("debmagic-check-no-debian")?; + let intent = base_intent(temp_dir); + let error = run_check(&intent).unwrap_err(); + assert!(error.to_string().contains("debian")); + Ok(()) + } + + #[test] + fn malformed_binary_package_is_runtime_failure() -> anyhow::Result<()> { + let path = std::env::temp_dir().join(format!("debmagic-check-{}.deb", std::process::id())); + fs::write(&path, b"")?; + let intent = base_intent(path.clone()); + let error = run_check(&intent).unwrap_err(); + assert!( + error.to_string().contains("control.tar") || error.to_string().contains("ar"), + "{error}" + ); + let _ = fs::remove_file(path); + Ok(()) + } + + #[test] + fn binary_package_required_field_uses_installation_control() -> anyhow::Result<()> { + let dir = tempfile::TempDir::new()?; + let path = dir.path().join("fields-general-missing.deb"); + crate::lint::binary_package_reader::write_test_deb( + &path, + "Section: devel\nPriority: optional\nDescription: missing fields\n extra\n", + )?; + let intent = CheckIntent { + subject: Subject::BinaryPackage(std::path::absolute(&path)?), + selected: vec![RequiredField::CODE], + fail_on: HashSet::from([Severity::Error]), + severity_remaps: HashMap::new(), + }; + let (diagnostics, outcome) = run_check(&intent)?; + assert_eq!(outcome, CheckOutcome::PolicyFailure); + let rendered: Vec<_> = diagnostics.iter().map(format_diagnostic).collect(); + assert!( + rendered.iter().any(|line| { + line.contains("fields-general-missing (binary): required-field (LN0001) fields-general-missing.deb Package") + }), + "{rendered:?}" + ); + assert!( + rendered + .iter() + .any(|line| line.contains("fields-general-missing.deb Version")), + "{rendered:?}" + ); + Ok(()) + } + + #[test] + fn complete_binary_package_has_no_required_field() -> anyhow::Result<()> { + let dir = tempfile::TempDir::new()?; + let path = dir.path().join("example.deb"); + crate::lint::binary_package_reader::write_test_deb( + &path, + "Package: example\n\ + Version: 1.0\n\ + Architecture: all\n\ + Maintainer: Example \n\ + Description: example\n extra\n", + )?; + let intent = CheckIntent { + subject: Subject::BinaryPackage(std::path::absolute(&path)?), + selected: vec![RequiredField::CODE], + fail_on: HashSet::from([Severity::Error]), + severity_remaps: HashMap::new(), + }; + let (diagnostics, outcome) = run_check(&intent)?; + assert!(diagnostics.is_empty(), "{diagnostics:?}"); + assert_eq!(outcome, CheckOutcome::Success); + Ok(()) + } + + #[test] + fn select_source_tree_only_rule_on_binary_package_none_apply() -> anyhow::Result<()> { + let dir = tempfile::TempDir::new()?; + let path = dir.path().join("example.deb"); + crate::lint::binary_package_reader::write_test_deb( + &path, + "Package: example\n\ + Version: 1.0\n\ + Architecture: all\n\ + Maintainer: Example \n\ + Description: example\n extra\n", + )?; + let intent = CheckIntent { + subject: Subject::BinaryPackage(std::path::absolute(&path)?), + selected: vec![crate::lint::rules::SyntaxErrorInDebianChangelog::CODE], + fail_on: HashSet::from([Severity::Error]), + severity_remaps: HashMap::new(), + }; + let error = run_check(&intent).unwrap_err(); + assert!( + error + .to_string() + .contains("none of the selected Rules apply to this Subject"), + "{error}" + ); + Ok(()) + } + + #[test] + fn source_package_errors_unimplemented() -> anyhow::Result<()> { + let path = std::env::temp_dir().join(format!("debmagic-check-{}.dsc", std::process::id())); + fs::write(&path, b"")?; + let intent = base_intent(path.clone()); + let error = run_check(&intent).unwrap_err(); + assert!(error.to_string().contains("Source package")); + assert!(error.to_string().contains("not implemented")); + let _ = fs::remove_file(path); + Ok(()) + } + + #[test] + fn select_ln_runs_required_field_on_complete_control() -> anyhow::Result<()> { + let temp_dir = tempfile_dir("debmagic-check-ln-select")?; + fs::create_dir_all(temp_dir.join("debian"))?; + fs::write( + temp_dir.join("debian/control"), + "Source: example\n\ + Maintainer: Example \n\ + Standards-Version: 4.7.2\n\ + \n\ + Package: example\n\ + Architecture: all\n\ + Description: example\n extra\n", + )?; + let selected = resolve_selected_codes(&["LN".to_string()], &[])?; + assert_eq!( + selected, + vec![ + crate::lint::rules::RequiredField::CODE, + crate::lint::rules::SyntaxErrorInDebianChangelog::CODE, + crate::lint::rules::DebianRulesMissingRequiredTarget::CODE, + ] + ); + let intent = CheckIntent { + subject: Subject::SourceTree(temp_dir), + selected, + fail_on: HashSet::from([Severity::Error]), + severity_remaps: HashMap::new(), + }; + let (diagnostics, outcome) = run_check(&intent)?; + assert!(diagnostics.is_empty()); + assert_eq!(outcome, CheckOutcome::Success); + Ok(()) + } + + fn tempfile_dir(prefix: &str) -> anyhow::Result { + let dir = std::env::temp_dir().join(format!("{prefix}-{}", std::process::id())); + if dir.exists() { + fs::remove_dir_all(&dir).with_context(|| format!("cleaning {}", dir.display()))?; + } + fs::create_dir_all(&dir).with_context(|| format!("creating {}", dir.display()))?; + Ok(dir) + } +} diff --git a/packages/debmagic/src/lint/selection.rs b/packages/debmagic/src/lint/selection.rs new file mode 100644 index 00000000..66181359 --- /dev/null +++ b/packages/debmagic/src/lint/selection.rs @@ -0,0 +1,183 @@ +use std::collections::HashSet; + +use anyhow::{Context, bail}; + +use super::registry; +use super::rule::Code; + +#[derive(Debug, Clone, PartialEq, Eq)] +enum CodeSelector { + Exact(Code), + Prefix(String), +} + +fn parse_code_selector(selector: &str) -> anyhow::Result> { + let bytes = selector.as_bytes(); + if bytes.len() < 2 || !bytes[0].is_ascii_alphabetic() || !bytes[1].is_ascii_alphabetic() { + return Ok(None); + } + + if !bytes[2..].iter().all(u8::is_ascii_digit) { + return Ok(None); + } + if bytes.len() > 6 { + bail!("invalid code selector '{selector}'"); + } + + if bytes.len() == 6 { + Ok(Some(CodeSelector::Exact( + Code::parse(selector).with_context(|| format!("invalid code selector '{selector}'"))?, + ))) + } else { + Ok(Some(CodeSelector::Prefix(selector.to_ascii_uppercase()))) + } +} + +fn codes_for_selector(selector: &str) -> anyhow::Result> { + if let Some(code_selector) = parse_code_selector(selector)? { + return Ok(match code_selector { + CodeSelector::Exact(code) => { + let matches = registry::all_rules() + .iter() + .copied() + .filter(|rule| rule.code() == code) + .map(|rule| rule.code()) + .collect::>(); + if matches.is_empty() { + bail!("unknown selector '{selector}'"); + } + matches + } + CodeSelector::Prefix(prefix) => registry::all_rules() + .iter() + .copied() + .filter(|rule| rule.code().matches_selector_prefix(&prefix)) + .map(|rule| rule.code()) + .collect(), + }); + } + + let matches = registry::all_rules() + .iter() + .copied() + .filter(|rule| rule.tag().as_str() == selector) + .map(|rule| rule.code()) + .collect::>(); + if matches.is_empty() { + bail!("unknown selector '{selector}'"); + } + Ok(matches) +} + +pub(crate) fn default_selected_codes() -> Vec { + registry::all_rules() + .iter() + .copied() + .filter(|rule| !rule.experimental() && rule.default_selected()) + .map(|rule| rule.code()) + .collect() +} + +pub(crate) fn resolve_selected_codes( + select: &[String], + ignore: &[String], +) -> anyhow::Result> { + let mut selected = if select.is_empty() { + default_selected_codes() + } else { + let mut codes = HashSet::new(); + for selector in select { + for code in codes_for_selector(selector)? { + codes.insert(code); + } + } + let mut codes = codes.into_iter().collect::>(); + codes.sort(); + codes + }; + + if !ignore.is_empty() { + let mut ignored = HashSet::new(); + for selector in ignore { + for code in codes_for_selector(selector)? { + ignored.insert(code); + } + } + selected.retain(|code| !ignored.contains(code)); + } + + Ok(selected) +} + +#[cfg(test)] +mod tests { + use super::*; + use crate::lint::rule::RuleMeta; + use crate::lint::rules::{DebmagicDummyTrigger, RequiredField}; + + #[test] + fn default_selection_includes_dm0001_and_ln0001() -> anyhow::Result<()> { + let selected = resolve_selected_codes(&[], &[])?; + assert!(selected.contains(&DebmagicDummyTrigger::CODE)); + assert!(selected.contains(&RequiredField::CODE)); + Ok(()) + } + + #[test] + fn select_exact_code() -> anyhow::Result<()> { + let selected = resolve_selected_codes(&["DM0001".to_string()], &[])?; + assert_eq!(selected, vec![DebmagicDummyTrigger::CODE]); + Ok(()) + } + + #[test] + fn select_unknown_prefix_is_empty() -> anyhow::Result<()> { + let selected = resolve_selected_codes(&["ZZ".to_string()], &[])?; + assert!(selected.is_empty()); + Ok(()) + } + + #[test] + fn select_ln_prefix_selects_ln_rules() -> anyhow::Result<()> { + use crate::lint::rules::SyntaxErrorInDebianChangelog; + let selected = resolve_selected_codes(&["LN".to_string()], &[])?; + assert!(selected.contains(&RequiredField::CODE)); + assert!(selected.contains(&SyntaxErrorInDebianChangelog::CODE)); + assert!(selected.contains(&crate::lint::rules::DebianRulesMissingRequiredTarget::CODE)); + assert!(selected.iter().all(|code| code.prefix() == "LN")); + Ok(()) + } + + #[test] + fn ignore_code_removes_from_default() -> anyhow::Result<()> { + let selected = resolve_selected_codes(&[], &["DM0001".to_string()])?; + assert!(!selected.contains(&DebmagicDummyTrigger::CODE)); + Ok(()) + } + + #[test] + fn ignore_tag_removes_from_default() -> anyhow::Result<()> { + let selected = resolve_selected_codes(&[], &["debmagic-dummy-trigger".to_string()])?; + assert!(!selected.contains(&DebmagicDummyTrigger::CODE)); + Ok(()) + } + + #[test] + fn select_dm_prefix_selects_dummy() -> anyhow::Result<()> { + let selected = resolve_selected_codes(&["DM".to_string()], &[])?; + assert_eq!(selected, vec![DebmagicDummyTrigger::CODE]); + Ok(()) + } + + #[test] + fn unknown_selector_errors() { + let error = resolve_selected_codes(&["not-a-real-selector".to_string()], &[]).unwrap_err(); + assert!(error.to_string().contains("unknown selector")); + } + + #[test] + fn unknown_exact_code_errors() { + let error = resolve_selected_codes(&["DM9999".to_string()], &[]).unwrap_err(); + assert!(error.to_string().contains("unknown selector")); + } +} diff --git a/packages/debmagic/src/lint/snapshots/DM0001_debmagic_dummy_trigger.snap b/packages/debmagic/src/lint/snapshots/DM0001_debmagic_dummy_trigger.snap new file mode 100644 index 00000000..7f736756 --- /dev/null +++ b/packages/debmagic/src/lint/snapshots/DM0001_debmagic_dummy_trigger.snap @@ -0,0 +1,4 @@ +--- +source: packages/debmagic/src/lint/tester.rs +--- +W: example (source): debmagic-dummy-trigger (DM0001) dummy Rule triggered [debian/debmagic-dummy-lint] diff --git a/packages/debmagic/src/lint/snapshots/LN0001_required_field.snap b/packages/debmagic/src/lint/snapshots/LN0001_required_field.snap new file mode 100644 index 00000000..2478f06c --- /dev/null +++ b/packages/debmagic/src/lint/snapshots/LN0001_required_field.snap @@ -0,0 +1,7 @@ +--- +source: packages/debmagic/src/lint/tester.rs +--- +E: example (source): required-field (LN0001) (in section for source) Maintainer [debian/control] +E: example (source): required-field (LN0001) (in section for example) Architecture [debian/control] +E: example (source): required-field (LN0001) (in section for source) Standards-Version [debian/control] +E: example (source): required-field (LN0001) (in section for source) Standards-Version [debian/control] diff --git a/packages/debmagic/src/lint/snapshots/LN0002_syntax_error_in_debian_changelog.snap b/packages/debmagic/src/lint/snapshots/LN0002_syntax_error_in_debian_changelog.snap new file mode 100644 index 00000000..f507053c --- /dev/null +++ b/packages/debmagic/src/lint/snapshots/LN0002_syntax_error_in_debian_changelog.snap @@ -0,0 +1,9 @@ +--- +source: packages/debmagic/src/lint/tester.rs +--- +W: example (source): syntax-error-in-debian-changelog (LN0002) "not a Debian changelog" [debian/changelog:1] +W: example (source): syntax-error-in-debian-changelog (LN0002) "badly formatted trailer line" [debian/changelog:6] +W: example (source): syntax-error-in-debian-changelog (LN0002) "found trailer where expected start of change data" [debian/changelog:10] +W: example (source): syntax-error-in-debian-changelog (LN0002) "badly formatted heading line" [debian/changelog:15] +W: example (source): syntax-error-in-debian-changelog (LN0002) "found change data where expected next heading or eof" [debian/changelog:17] +W: example (source): syntax-error-in-debian-changelog (LN0002) "could not parse date The, 15 Apr 2004 23:33:51 +0200" [debian/changelog:12] diff --git a/packages/debmagic/src/lint/snapshots/LN0003_debian_rules_missing_required_target.snap b/packages/debmagic/src/lint/snapshots/LN0003_debian_rules_missing_required_target.snap new file mode 100644 index 00000000..dd870388 --- /dev/null +++ b/packages/debmagic/src/lint/snapshots/LN0003_debian_rules_missing_required_target.snap @@ -0,0 +1,20 @@ +--- +source: packages/debmagic/src/lint/tester.rs +--- +E: example (source): debian-rules-missing-required-target (LN0003) build-arch [debian/rules] +E: example (source): debian-rules-missing-required-target (LN0003) build-indep [debian/rules] +E: example (source): debian-rules-missing-required-target (LN0003) binary-arch [debian/rules] +E: example (source): debian-rules-missing-required-target (LN0003) binary-indep [debian/rules] +E: example (source): debian-rules-missing-required-target (LN0003) build-arch [debian/rules] +E: example (source): debian-rules-missing-required-target (LN0003) build-indep [debian/rules] +E: example (source): debian-rules-missing-required-target (LN0003) build-arch [debian/rules] +E: example (source): debian-rules-missing-required-target (LN0003) build-indep [debian/rules] +E: example (source): debian-rules-missing-required-target (LN0003) binary-arch [debian/rules] +E: example (source): debian-rules-missing-required-target (LN0003) binary-indep [debian/rules] +E: example (source): debian-rules-missing-required-target (LN0003) build [debian/rules] +E: example (source): debian-rules-missing-required-target (LN0003) build-arch [debian/rules] +E: example (source): debian-rules-missing-required-target (LN0003) build-indep [debian/rules] +E: example (source): debian-rules-missing-required-target (LN0003) binary [debian/rules] +E: example (source): debian-rules-missing-required-target (LN0003) binary-arch [debian/rules] +E: example (source): debian-rules-missing-required-target (LN0003) binary-indep [debian/rules] +E: example (source): debian-rules-missing-required-target (LN0003) clean [debian/rules] diff --git a/packages/debmagic/src/lint/subject.rs b/packages/debmagic/src/lint/subject.rs new file mode 100644 index 00000000..7750fb9d --- /dev/null +++ b/packages/debmagic/src/lint/subject.rs @@ -0,0 +1,134 @@ +use std::path::{Path, PathBuf}; + +use anyhow::{Context, bail}; + +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum SubjectKind { + SourceTree, + BinaryPackage, + SourcePackage, +} + +impl SubjectKind { + pub fn label(self) -> &'static str { + match self { + Self::SourceTree => "Source tree", + Self::BinaryPackage => "Binary package", + Self::SourcePackage => "Source package", + } + } +} + +#[derive(Debug, Clone, PartialEq, Eq)] +pub enum Subject { + SourceTree(PathBuf), + BinaryPackage(PathBuf), + SourcePackage(PathBuf), +} + +impl Subject { + pub fn kind(&self) -> SubjectKind { + match self { + Self::SourceTree(_) => SubjectKind::SourceTree, + Self::BinaryPackage(_) => SubjectKind::BinaryPackage, + Self::SourcePackage(_) => SubjectKind::SourcePackage, + } + } + + pub fn path(&self) -> &Path { + match self { + Self::SourceTree(path) | Self::BinaryPackage(path) | Self::SourcePackage(path) => path, + } + } +} + +pub fn resolve_subject(path: PathBuf) -> anyhow::Result { + let absolute = std::path::absolute(&path) + .with_context(|| format!("resolving {} failed", path.display()))?; + + if absolute.is_dir() { + return Ok(Subject::SourceTree(absolute)); + } + + match absolute.extension().and_then(|ext| ext.to_str()) { + Some("deb" | "udeb" | "ddeb") => Ok(Subject::BinaryPackage(absolute)), + Some("dsc") => Ok(Subject::SourcePackage(absolute)), + _ => bail!( + "cannot infer Subject from {}: expected a directory, .deb, .udeb, .ddeb, or .dsc", + absolute.display() + ), + } +} + +#[cfg(test)] +mod tests { + use super::*; + use std::fs; + + #[test] + fn directory_resolves_to_source_tree_absolute() -> anyhow::Result<()> { + let dir = std::env::temp_dir().join(format!("debmagic-subject-dir-{}", std::process::id())); + fs::create_dir_all(&dir)?; + let subject = resolve_subject(dir.clone())?; + assert_eq!(subject.kind(), SubjectKind::SourceTree); + assert_eq!(subject.path(), std::path::absolute(&dir)?); + let _ = fs::remove_dir_all(&dir); + Ok(()) + } + + #[test] + fn deb_extension_resolves_to_binary_package() -> anyhow::Result<()> { + let path = + std::env::temp_dir().join(format!("debmagic-subject-{}.deb", std::process::id())); + fs::write(&path, b"")?; + let subject = resolve_subject(path.clone())?; + assert_eq!(subject.kind(), SubjectKind::BinaryPackage); + assert_eq!(subject.path(), std::path::absolute(&path)?); + let _ = fs::remove_file(&path); + Ok(()) + } + + #[test] + fn dsc_extension_resolves_to_source_package() -> anyhow::Result<()> { + let path = + std::env::temp_dir().join(format!("debmagic-subject-{}.dsc", std::process::id())); + fs::write(&path, b"")?; + let subject = resolve_subject(path.clone())?; + assert_eq!(subject.kind(), SubjectKind::SourcePackage); + assert_eq!(subject.path(), std::path::absolute(&path)?); + let _ = fs::remove_file(&path); + Ok(()) + } + + #[test] + fn udeb_extension_resolves_to_binary_package() -> anyhow::Result<()> { + let path = + std::env::temp_dir().join(format!("debmagic-subject-{}.udeb", std::process::id())); + fs::write(&path, b"")?; + let subject = resolve_subject(path.clone())?; + assert_eq!(subject.kind(), SubjectKind::BinaryPackage); + assert_eq!(subject.path(), std::path::absolute(&path)?); + let _ = fs::remove_file(&path); + Ok(()) + } + + #[test] + fn ddeb_extension_resolves_to_binary_package() -> anyhow::Result<()> { + let path = + std::env::temp_dir().join(format!("debmagic-subject-{}.ddeb", std::process::id())); + fs::write(&path, b"")?; + let subject = resolve_subject(path.clone())?; + assert_eq!(subject.kind(), SubjectKind::BinaryPackage); + assert_eq!(subject.path(), std::path::absolute(&path)?); + let _ = fs::remove_file(&path); + Ok(()) + } + + #[test] + fn unknown_extension_errors() { + let path = + std::env::temp_dir().join(format!("debmagic-subject-{}.txt", std::process::id())); + let error = resolve_subject(path).unwrap_err(); + assert!(error.to_string().contains("cannot infer Subject")); + } +} diff --git a/packages/debmagic/src/lint/tester.rs b/packages/debmagic/src/lint/tester.rs new file mode 100644 index 00000000..d2337dc4 --- /dev/null +++ b/packages/debmagic/src/lint/tester.rs @@ -0,0 +1,288 @@ +use std::collections::BTreeMap; +use std::fmt::Write; +use std::fs; +use std::path::{Path, PathBuf}; + +use super::context::{SourceTreeContext, SourceTreeData}; +use super::diagnostic::Diagnostic; +use super::rule::{BinaryPackageRule, SourcePackageRule, SourceTreeRule}; +use super::run::format_diagnostic; + +/// One Source tree described as a map of relative paths to file contents. +#[derive(Clone, Debug, Default)] +pub struct TestCase { + files: BTreeMap, +} + +impl TestCase { + pub fn source_tree(files: impl IntoIterator) -> Self + where + P: Into, + C: Into, + { + Self { + files: files + .into_iter() + .map(|(path, content)| (path.into(), content.into())) + .collect(), + } + } + + fn describe(&self) -> String { + if self.files.is_empty() { + return "".to_string(); + } + self.files.keys().cloned().collect::>().join(", ") + } +} + +impl From> for TestCase +where + P: Into, + C: Into, +{ + fn from(files: Vec<(P, C)>) -> Self { + Self::source_tree(files) + } +} + +impl From<[(P, C); N]> for TestCase +where + P: Into, + C: Into, +{ + fn from(files: [(P, C); N]) -> Self { + Self::source_tree(files) + } +} + +enum TestResult { + Passed, + Failed, +} + +/// Source-tree Rule-level test harness inspired by oxlint's `Tester`. +/// +/// Pass cases must emit no Diagnostics; fail cases must emit at least one. +/// `test_and_snapshot` records fail-case Diagnostics with insta. +pub struct SourceTreeTester { + rule: Box, + expect_pass: Vec, + expect_fail: Vec, + snapshot: String, +} + +impl SourceTreeTester { + pub fn new(rule: R, expect_pass: P, expect_fail: F) -> Self + where + R: SourceTreeRule + 'static, + P: IntoIterator, + F: IntoIterator, + C: Into, + { + Self { + rule: Box::new(rule), + expect_pass: expect_pass.into_iter().map(Into::into).collect(), + expect_fail: expect_fail.into_iter().map(Into::into).collect(), + snapshot: String::new(), + } + } + + pub fn test(&mut self) { + let unexpected_fails = self.test_pass(); + let unexpected_passes = self.test_fail(); + + if !unexpected_fails.is_empty() { + println!( + "{}", + format_test_failures("expected to pass, but failed", &unexpected_fails) + ); + } + if !unexpected_passes.is_empty() { + println!( + "{}", + format_test_failures("expected to fail, but passed", &unexpected_passes) + ); + } + + assert!( + unexpected_fails.is_empty() && unexpected_passes.is_empty(), + "Some tests failed for Rule {} [{}] (see output above)", + self.rule.code(), + self.rule.tag(), + ); + } + + pub fn test_and_snapshot(&mut self) { + self.test(); + self.snapshot(); + } + + fn snapshot(&self) { + let mut settings = insta::Settings::clone_current(); + settings.set_prepend_module_to_snapshot(false); + settings.set_omit_expression(true); + let name = format!( + "{}_{}", + self.rule.code(), + self.rule.tag().as_str().replace('-', "_") + ); + settings.bind(|| { + insta::assert_snapshot!(name, self.snapshot); + }); + } + + fn test_pass(&mut self) -> Vec { + let mut unexpected = Vec::new(); + let mut output_index = 0; + for case in self.expect_pass.clone() { + let result = self.run(&case); + if !matches!(result, TestResult::Passed) { + unexpected.push(TestFailure::ExpectedToPass { + case: case.describe(), + diagnostic: self.snapshot[output_index..].to_string(), + }); + } + output_index = self.snapshot.len(); + } + unexpected + } + + fn test_fail(&mut self) -> Vec { + let mut unexpected = Vec::new(); + for case in self.expect_fail.clone() { + let result = self.run(&case); + if !matches!(result, TestResult::Failed) { + unexpected.push(TestFailure::ExpectedToFail { + case: case.describe(), + }); + } + } + unexpected + } + + fn run(&mut self, case: &TestCase) -> TestResult { + let root = materialize(case); + let data = SourceTreeData::new(root.path().to_path_buf()); + let mut ctx = SourceTreeContext::bind(&data, self.rule.as_ref()); + self.rule.run(&mut ctx); + let mut diagnostics = ctx.into_diagnostics(); + for diagnostic in &mut diagnostics { + relativize_location(diagnostic, root.path()); + } + + if diagnostics.is_empty() { + return TestResult::Passed; + } + + for diagnostic in diagnostics { + writeln!(self.snapshot, "{}", format_diagnostic(&diagnostic)) + .expect("writing to string never fails"); + } + TestResult::Failed + } +} + +/// Binary-package Rule-level test harness. Not implemented yet. +#[allow(dead_code)] +pub struct BinaryPackageTester { + _private: (), +} + +impl BinaryPackageTester { + #[allow(dead_code)] + pub fn new(_rule: R, _expect_pass: P, _expect_fail: F) -> Self + where + R: BinaryPackageRule + 'static, + { + unimplemented!("BinaryPackageTester is not implemented yet") + } + + #[allow(dead_code)] + pub fn test(&mut self) { + unimplemented!("BinaryPackageTester is not implemented yet") + } + + #[allow(dead_code)] + pub fn test_and_snapshot(&mut self) { + unimplemented!("BinaryPackageTester is not implemented yet") + } +} + +/// Source-package Rule-level test harness. Not implemented yet. +#[allow(dead_code)] +pub struct SourcePackageTester { + _private: (), +} + +impl SourcePackageTester { + #[allow(dead_code)] + pub fn new(_rule: R, _expect_pass: P, _expect_fail: F) -> Self + where + R: SourcePackageRule + 'static, + { + unimplemented!("SourcePackageTester is not implemented yet") + } + + #[allow(dead_code)] + pub fn test(&mut self) { + unimplemented!("SourcePackageTester is not implemented yet") + } + + #[allow(dead_code)] + pub fn test_and_snapshot(&mut self) { + unimplemented!("SourcePackageTester is not implemented yet") + } +} + +enum TestFailure { + ExpectedToPass { case: String, diagnostic: String }, + ExpectedToFail { case: String }, +} + +fn materialize(case: &TestCase) -> tempfile::TempDir { + let dir = tempfile::tempdir().expect("creating temp Subject tree"); + for (relative, content) in &case.files { + let path = dir.path().join(relative); + if let Some(parent) = path.parent() { + fs::create_dir_all(parent) + .unwrap_or_else(|error| panic!("creating {}: {error}", parent.display())); + } + fs::write(&path, content) + .unwrap_or_else(|error| panic!("writing {}: {error}", path.display())); + } + dir +} + +fn relativize_location(diagnostic: &mut Diagnostic, root: &Path) { + if let Ok(relative) = diagnostic.location.path.strip_prefix(root) { + diagnostic.location.path = PathBuf::from(relative); + } +} + +fn format_test_failures(reason: &str, failures: &[TestFailure]) -> String { + let count = failures.len(); + let mut output = String::new(); + writeln!( + output, + "\n{count} test case{} {reason}:\n", + if count == 1 { "" } else { "s" } + ) + .expect("writing to string never fails"); + + for (index, failure) in failures.iter().enumerate() { + match failure { + TestFailure::ExpectedToPass { case, diagnostic } => { + writeln!(output, " {:>2}. {case}", index + 1) + .expect("writing to string never fails"); + writeln!(output, " Diagnostic:\n{diagnostic}") + .expect("writing to string never fails"); + } + TestFailure::ExpectedToFail { case } => { + writeln!(output, " {:>2}. {case}", index + 1) + .expect("writing to string never fails"); + } + } + } + output +} diff --git a/packages/debmagic/src/main.rs b/packages/debmagic/src/main.rs index 07c7e2f5..a455779f 100644 --- a/packages/debmagic/src/main.rs +++ b/packages/debmagic/src/main.rs @@ -12,6 +12,10 @@ use crate::{ DriverType, config::DriverOverrides, driver_bare::DriverBareConfigOverrides, driver_docker::DriverDockerConfigOverrides, driver_lxd::DriverLxdConfigOverrides, }, + lint::{ + CheckIntentInput, CheckOutcome, format_diagnostic, format_summary, resolve_check_intent, + run_check, + }, package::{distro_resolve_mode_for_driver, load_package_identity, resolve_package_target}, test::{TestIntentInput, TestOutcome, resolve_test_intent, run_test}, }; @@ -21,6 +25,7 @@ pub mod build_intent; pub mod cli; pub mod config; pub mod driver; +pub mod lint; pub mod package; pub mod signing; pub mod test; @@ -150,8 +155,32 @@ fn run() -> anyhow::Result { TestOutcome::StrictFailure => ExitCode::from(2), }); } - Commands::Check(_args) => { - println!("Check subcommand! - not implemented"); + Commands::Lint(args) => { + if args.subject.is_some() && args.common.source_dir.is_some() { + anyhow::bail!("cannot specify both a subject path and --source-dir"); + } + let subject = args + .subject + .clone() + .or_else(|| args.common.source_dir.clone()); + let intent = resolve_check_intent(CheckIntentInput { + fallback_dir: current_dir.clone(), + subject, + config_file: cli.config.clone(), + select: args.select.clone(), + ignore: args.ignore.clone(), + fail_on: args.fail_on.clone(), + })?; + let (diagnostics, outcome) = + run_check(&intent).context("linting the package failed")?; + for diagnostic in &diagnostics { + println!("{}", format_diagnostic(diagnostic)); + } + println!("{}", format_summary(&diagnostics)); + return Ok(match outcome { + CheckOutcome::Success => ExitCode::SUCCESS, + CheckOutcome::PolicyFailure => ExitCode::from(1), + }); } Commands::Version {} => { let cmd = Cli::command(); diff --git a/packages/debmagic/tests/assets/check_changelog_syntax_error/debian/changelog b/packages/debmagic/tests/assets/check_changelog_syntax_error/debian/changelog new file mode 100644 index 00000000..6ac3d314 --- /dev/null +++ b/packages/debmagic/tests/assets/check_changelog_syntax_error/debian/changelog @@ -0,0 +1 @@ +this is not a Debian changelog diff --git a/packages/debmagic/tests/assets/check_changelog_syntax_error/debian/control b/packages/debmagic/tests/assets/check_changelog_syntax_error/debian/control new file mode 100644 index 00000000..fd9e112e --- /dev/null +++ b/packages/debmagic/tests/assets/check_changelog_syntax_error/debian/control @@ -0,0 +1,8 @@ +Source: example +Maintainer: Example +Standards-Version: 4.7.2 + +Package: example +Architecture: all +Description: example + A test package. diff --git a/packages/debmagic/tests/assets/check_dummy_hit/debian/changelog b/packages/debmagic/tests/assets/check_dummy_hit/debian/changelog new file mode 100644 index 00000000..a772fc58 --- /dev/null +++ b/packages/debmagic/tests/assets/check_dummy_hit/debian/changelog @@ -0,0 +1,5 @@ +example (1.0) unstable; urgency=low + + * test + + -- Example Tue, 30 Dec 2008 17:34:02 -0800 diff --git a/packages/debmagic/tests/assets/check_dummy_hit/debian/control b/packages/debmagic/tests/assets/check_dummy_hit/debian/control new file mode 100644 index 00000000..fd9e112e --- /dev/null +++ b/packages/debmagic/tests/assets/check_dummy_hit/debian/control @@ -0,0 +1,8 @@ +Source: example +Maintainer: Example +Standards-Version: 4.7.2 + +Package: example +Architecture: all +Description: example + A test package. diff --git a/packages/debmagic/tests/assets/check_dummy_hit/debian/debmagic-dummy-lint b/packages/debmagic/tests/assets/check_dummy_hit/debian/debmagic-dummy-lint new file mode 100644 index 00000000..5c33b151 --- /dev/null +++ b/packages/debmagic/tests/assets/check_dummy_hit/debian/debmagic-dummy-lint @@ -0,0 +1 @@ +trigger diff --git a/packages/debmagic/tests/assets/check_dummy_miss/debian/changelog b/packages/debmagic/tests/assets/check_dummy_miss/debian/changelog new file mode 100644 index 00000000..a772fc58 --- /dev/null +++ b/packages/debmagic/tests/assets/check_dummy_miss/debian/changelog @@ -0,0 +1,5 @@ +example (1.0) unstable; urgency=low + + * test + + -- Example Tue, 30 Dec 2008 17:34:02 -0800 diff --git a/packages/debmagic/tests/assets/check_dummy_miss/debian/control b/packages/debmagic/tests/assets/check_dummy_miss/debian/control new file mode 100644 index 00000000..fd9e112e --- /dev/null +++ b/packages/debmagic/tests/assets/check_dummy_miss/debian/control @@ -0,0 +1,8 @@ +Source: example +Maintainer: Example +Standards-Version: 4.7.2 + +Package: example +Architecture: all +Description: example + A test package. diff --git a/packages/debmagic/tests/assets/check_required_field_miss/debian/control b/packages/debmagic/tests/assets/check_required_field_miss/debian/control new file mode 100644 index 00000000..843940b7 --- /dev/null +++ b/packages/debmagic/tests/assets/check_required_field_miss/debian/control @@ -0,0 +1,7 @@ +Source: example +Standards-Version: 4.7.2 + +Package: example +Architecture: all +Description: example + A test package. diff --git a/packages/debmagic/tests/assets/check_rules_missing_target/debian/control b/packages/debmagic/tests/assets/check_rules_missing_target/debian/control new file mode 100644 index 00000000..fd9e112e --- /dev/null +++ b/packages/debmagic/tests/assets/check_rules_missing_target/debian/control @@ -0,0 +1,8 @@ +Source: example +Maintainer: Example +Standards-Version: 4.7.2 + +Package: example +Architecture: all +Description: example + A test package. diff --git a/packages/debmagic/tests/assets/check_rules_missing_target/debian/rules b/packages/debmagic/tests/assets/check_rules_missing_target/debian/rules new file mode 100644 index 00000000..7a490814 --- /dev/null +++ b/packages/debmagic/tests/assets/check_rules_missing_target/debian/rules @@ -0,0 +1,5 @@ +#!/usr/bin/make -f + +# Missing build-arch/build-indep +build clean binary binary-arch binary-indep: + dh $@ diff --git a/packages/debmagic/tests/common/mod.rs b/packages/debmagic/tests/common/mod.rs new file mode 100644 index 00000000..5e9887e7 --- /dev/null +++ b/packages/debmagic/tests/common/mod.rs @@ -0,0 +1,423 @@ +//! Shared helpers for `debmagic lint` integration tests. + +#![allow(dead_code)] + +use std::{ + collections::HashSet, + fs, + path::{Path, PathBuf}, + process::{Command, ExitStatus}, +}; + +pub fn assets_dir() -> PathBuf { + PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("tests/assets") +} + +pub fn run_lint(source_dir: &Path, extra_args: &[&str]) -> (ExitStatus, String, String) { + let output = Command::new(env!("CARGO_BIN_EXE_debmagic")) + .arg("lint") + .arg("--source-dir") + .arg(source_dir) + .args(extra_args) + .output() + .expect("failed to spawn debmagic"); + + ( + output.status, + String::from_utf8_lossy(&output.stdout).into_owned(), + String::from_utf8_lossy(&output.stderr).into_owned(), + ) +} + +pub fn run_lint_subject(subject: &Path, extra_args: &[&str]) -> (ExitStatus, String, String) { + let output = Command::new(env!("CARGO_BIN_EXE_debmagic")) + .arg("lint") + .arg(subject) + .args(extra_args) + .output() + .expect("failed to spawn debmagic"); + + ( + output.status, + String::from_utf8_lossy(&output.stdout).into_owned(), + String::from_utf8_lossy(&output.stderr).into_owned(), + ) +} + +pub fn temp_artifact(extension: &str) -> PathBuf { + let path = std::env::temp_dir().join(format!( + "debmagic-lint-integration-{}-{}.{extension}", + std::process::id(), + uuid::Uuid::new_v4() + )); + fs::write(&path, b"").expect("writing temp artifact"); + path +} + +pub fn parity_suite_root() -> PathBuf { + PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("tests/lintian-parity") +} + +fn discover_parity_recipes(root: &Path) -> Vec { + let mut recipes = Vec::new(); + fn walk(dir: &Path, recipes: &mut Vec) { + let Ok(entries) = fs::read_dir(dir) else { + return; + }; + for entry in entries.flatten() { + let path = entry.path(); + if !path.is_dir() { + continue; + } + if path.join("ORIGIN").is_file() { + recipes.push(path); + continue; + } + walk(&path, recipes); + } + } + walk(root, &mut recipes); + recipes.sort(); + recipes +} + +/// Tags of catalogued LN Rules, read from `src/lint/rules/lintian/`. +pub fn catalogued_ln_tags() -> HashSet { + let mut tags = HashSet::new(); + let rules_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("src/lint/rules/lintian"); + fn walk(dir: &Path, tags: &mut HashSet) { + let Ok(entries) = fs::read_dir(dir) else { + return; + }; + for entry in entries.flatten() { + let path = entry.path(); + if path.is_dir() { + walk(&path, tags); + continue; + } + if path.extension().and_then(|ext| ext.to_str()) != Some("rs") { + continue; + } + let Ok(text) = fs::read_to_string(&path) else { + continue; + }; + for line in text.lines() { + let line = line.trim(); + let Some(rest) = line.strip_prefix("tag = \"") else { + continue; + }; + let Some(tag) = rest.strip_suffix("\",") else { + continue; + }; + tags.insert(tag.to_string()); + } + } + } + walk(&rules_dir, &mut tags); + tags +} + +#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord)] +pub struct ParityHint { + pub tag: String, + pub extra: String, +} + +fn strip_location_pointer(extra: &str) -> String { + extra + .rsplit_once(" [") + .and_then(|(before, pointer)| pointer.ends_with(']').then_some(before)) + .unwrap_or(extra) + .to_string() +} + +pub fn parse_universal_hint_line(line: &str) -> Option<(String, ParityHint)> { + let line = line.trim(); + if line.is_empty() || line.starts_with('#') { + return None; + } + let (package_and_type, rest) = line.split_once(": ")?; + let (_package, type_part) = package_and_type.rsplit_once(" (")?; + let processable_type = type_part.strip_suffix(')')?; + let mut fields = rest.splitn(2, char::is_whitespace); + let tag = fields.next().filter(|tag| !tag.is_empty())?; + let extra = strip_location_pointer(fields.next().unwrap_or("").trim()); + Some(( + processable_type.to_string(), + ParityHint { + tag: tag.to_string(), + extra, + }, + )) +} + +pub fn parse_diagnostic_line(line: &str) -> Option<(String, ParityHint)> { + let line = line.trim(); + if line.is_empty() || line.starts_with("All checks") || line.starts_with("Found ") { + return None; + } + let rest = ["E:", "W:", "I:", "P:"] + .iter() + .find_map(|prefix| line.strip_prefix(prefix))?; + let rest = rest.trim(); + let (package_and_type, after) = rest.split_once(": ")?; + let (_package, type_part) = package_and_type.rsplit_once(" (")?; + let processable_type = type_part.strip_suffix(')')?; + let (tag, after_tag) = after.split_once(' ')?; + let after_code = after_tag.strip_prefix('(')?; + let (_code, extra) = after_code.split_once(')')?; + let extra = strip_location_pointer(extra.trim()); + Some(( + processable_type.to_string(), + ParityHint { + tag: tag.to_string(), + extra, + }, + )) +} + +fn applies_to_source_tree(processable_type: &str, extra: &str) -> bool { + processable_type == "source" + && extra + .split_whitespace() + .next() + .is_none_or(|first| !first.ends_with(".dsc")) +} + +fn applies_to_binary_package(processable_type: &str) -> bool { + processable_type == "binary" || processable_type == "udeb" +} + +fn load_hints(path: &Path) -> Vec<(String, ParityHint)> { + let Ok(bytes) = fs::read(path) else { + return Vec::new(); + }; + String::from_utf8_lossy(&bytes) + .lines() + .filter_map(parse_universal_hint_line) + .collect() +} + +fn recipe_is_source_tree(recipe: &Path) -> bool { + recipe.join("debian").is_dir() +} + +fn recipe_is_deb_skeleton(recipe: &Path) -> bool { + let Ok(origin) = fs::read_to_string(recipe.join("ORIGIN")) else { + return false; + }; + origin.lines().any(|line| line.trim() == "Skeleton: deb") +} + +fn recipe_rel(root: &Path, recipe: &Path) -> String { + recipe + .strip_prefix(root) + .unwrap_or(recipe) + .to_str() + .expect("parity recipe path is UTF-8") + .replace('\\', "/") +} + +fn catalogued_source_tree_hints(recipe: &Path, catalogued: &HashSet) -> Vec { + let mut expected: Vec = load_hints(&recipe.join("eval/hints")) + .into_iter() + .filter(|(processable_type, hint)| { + catalogued.contains(&hint.tag) && applies_to_source_tree(processable_type, &hint.extra) + }) + .map(|(_, hint)| hint) + .collect(); + expected.sort(); + expected +} + +/// Vendored Source-tree recipes whose hints mention a catalogued LN Tag. +pub fn catalogued_source_tree_recipe_rels() -> Vec { + let root = parity_suite_root(); + let catalogued = catalogued_ln_tags(); + let mut rels = Vec::new(); + for recipe in discover_parity_recipes(&root) { + if !recipe_is_source_tree(&recipe) { + continue; + } + if catalogued_source_tree_hints(&recipe, &catalogued).is_empty() { + continue; + } + rels.push(recipe_rel(&root, &recipe)); + } + rels +} + +pub fn assert_source_tree_parity(recipe_rel: &str) { + let recipe = parity_suite_root().join(recipe_rel); + let catalogued = catalogued_ln_tags(); + let expected = catalogued_source_tree_hints(&recipe, &catalogued); + assert!( + !expected.is_empty(), + "{recipe_rel}: listed Parity recipe has no catalogued Source-tree hints" + ); + + let mut selected: Vec = expected + .iter() + .map(|hint| hint.tag.clone()) + .collect::>() + .into_iter() + .collect(); + selected.sort(); + let mut extra_args = Vec::new(); + for tag in &selected { + extra_args.push("--select"); + extra_args.push(tag.as_str()); + } + + let (_status, stdout, stderr) = run_lint(&recipe, &extra_args); + assert!( + stderr.is_empty() || !stdout.is_empty(), + "{recipe_rel}: lint failed with empty stdout\n{stderr}" + ); + + let mut actual: Vec = stdout + .lines() + .filter_map(parse_diagnostic_line) + .filter(|(processable_type, hint)| { + catalogued.contains(&hint.tag) && applies_to_source_tree(processable_type, &hint.extra) + }) + .map(|(_, hint)| hint) + .collect(); + actual.sort(); + + assert_eq!( + actual, expected, + "Parity mismatch for {recipe_rel} (source tree)" + ); +} + +fn catalogued_binary_package_hints(recipe: &Path, catalogued: &HashSet) -> Vec { + let mut expected: Vec = load_hints(&recipe.join("eval/hints")) + .into_iter() + .filter(|(processable_type, hint)| { + catalogued.contains(&hint.tag) && applies_to_binary_package(processable_type) + }) + .map(|(_, hint)| hint) + .collect(); + expected.sort(); + expected +} + +/// Vendored `deb`-skeleton recipes whose hints mention a catalogued LN Tag. +pub fn catalogued_binary_package_recipe_rels() -> Vec { + let root = parity_suite_root(); + let catalogued = catalogued_ln_tags(); + let mut rels = Vec::new(); + for recipe in discover_parity_recipes(&root) { + if !recipe_is_deb_skeleton(&recipe) { + continue; + } + if catalogued_binary_package_hints(&recipe, &catalogued).is_empty() { + continue; + } + rels.push(recipe_rel(&root, &recipe)); + } + rels +} + +fn copy_tree(src: &Path, dst: &Path) { + fs::create_dir_all(dst).unwrap_or_else(|error| panic!("creating {}: {error}", dst.display())); + for entry in + fs::read_dir(src).unwrap_or_else(|error| panic!("reading {}: {error}", src.display())) + { + let entry = entry.expect("directory entry"); + let from = entry.path(); + let to = dst.join(entry.file_name()); + let file_type = entry.file_type().expect("file type"); + if file_type.is_dir() { + copy_tree(&from, &to); + } else if file_type.is_file() { + fs::copy(&from, &to).unwrap_or_else(|error| { + panic!("copying {} to {}: {error}", from.display(), to.display()) + }); + } + } +} + +fn find_binary_package(dir: &Path) -> PathBuf { + let mut found = Vec::new(); + for entry in + fs::read_dir(dir).unwrap_or_else(|error| panic!("reading {}: {error}", dir.display())) + { + let path = entry.expect("directory entry").path(); + if let Some("deb" | "udeb" | "ddeb") = path.extension().and_then(|ext| ext.to_str()) { + found.push(path); + } + } + assert_eq!( + found.len(), + 1, + "expected one Build-Product in {}, found {found:?}", + dir.display() + ); + found.remove(0) +} + +pub fn assert_binary_package_parity(recipe_rel: &str) { + let recipe = parity_suite_root().join(recipe_rel); + let catalogued = catalogued_ln_tags(); + let expected = catalogued_binary_package_hints(&recipe, &catalogued); + assert!( + !expected.is_empty(), + "{recipe_rel}: listed Parity recipe has no catalogued Binary-package hints" + ); + + let work = tempfile::tempdir().expect("temp recipe workdir"); + let source = work.path().join("src"); + let build = work.path().join("build"); + copy_tree(&recipe, &source); + fs::create_dir_all(&build).expect("creating build dir"); + let output = Command::new("make") + .arg("-C") + .arg(&build) + .arg("-f") + .arg(source.join("Makefile")) + .output() + .expect("spawning make"); + assert!( + output.status.success(), + "{recipe_rel}: make failed\nstdout:\n{}\nstderr:\n{}", + String::from_utf8_lossy(&output.stdout), + String::from_utf8_lossy(&output.stderr) + ); + let subject = find_binary_package(&build); + + let mut selected: Vec = expected + .iter() + .map(|hint| hint.tag.clone()) + .collect::>() + .into_iter() + .collect(); + selected.sort(); + let mut extra_args = Vec::new(); + for tag in &selected { + extra_args.push("--select"); + extra_args.push(tag.as_str()); + } + + let (_status, stdout, stderr) = run_lint_subject(&subject, &extra_args); + assert!( + stderr.is_empty() || !stdout.is_empty(), + "{recipe_rel}: lint failed with empty stdout\n{stderr}" + ); + + let mut actual: Vec = stdout + .lines() + .filter_map(parse_diagnostic_line) + .filter(|(processable_type, hint)| { + catalogued.contains(&hint.tag) && applies_to_binary_package(processable_type) + }) + .map(|(_, hint)| hint) + .collect(); + actual.sort(); + + assert_eq!( + actual, expected, + "Parity mismatch for {recipe_rel} (binary package)" + ); +} diff --git a/packages/debmagic/tests/lint.rs b/packages/debmagic/tests/lint.rs new file mode 100644 index 00000000..4aace442 --- /dev/null +++ b/packages/debmagic/tests/lint.rs @@ -0,0 +1,264 @@ +//! Integration tests for `debmagic lint` via the built binary. + +mod common; + +use std::fs; + +use common::{ + ParityHint, assets_dir, catalogued_ln_tags, parity_suite_root, parse_diagnostic_line, + parse_universal_hint_line, run_lint, run_lint_subject, temp_artifact, +}; + +#[test] +fn lint_dummy_hit_prints_diagnostic_and_succeeds() { + let source_dir = assets_dir().join("check_dummy_hit"); + let (status, stdout, stderr) = run_lint(&source_dir, &[]); + + assert!(status.success(), "expected success, stderr: {stderr}"); + assert!(stdout.contains("DM0001"), "stdout: {stdout}"); + assert!( + stdout.contains("debmagic-dummy-trigger"), + "stdout: {stdout}" + ); + assert!( + stdout.contains("debian/debmagic-dummy-lint"), + "stdout: {stdout}" + ); + assert!( + stdout.contains("Found 1 warning."), + "expected ruff-style summary, stdout: {stdout}" + ); + assert!(!stdout.contains("All checks passed!"), "stdout: {stdout}"); +} + +#[test] +fn lint_required_field_miss_prints_error_and_fails() { + let source_dir = assets_dir().join("check_required_field_miss"); + let (status, stdout, stderr) = run_lint(&source_dir, &[]); + + assert!( + !status.success(), + "expected policy failure, stderr: {stderr}" + ); + assert_eq!(status.code(), Some(1)); + assert!(stdout.contains("LN0001"), "stdout: {stdout}"); + assert!(stdout.contains("required-field"), "stdout: {stdout}"); + assert!(stdout.contains("Maintainer"), "stdout: {stdout}"); + assert!( + stdout.contains("Found 1 error."), + "expected ruff-style summary, stdout: {stdout}" + ); +} + +#[test] +fn lint_changelog_syntax_error_prints_warning_and_succeeds() { + let source_dir = assets_dir().join("check_changelog_syntax_error"); + let (status, stdout, stderr) = run_lint(&source_dir, &[]); + + assert!(status.success(), "expected success, stderr: {stderr}"); + assert!(stdout.contains("LN0002"), "stdout: {stdout}"); + assert!( + stdout.contains("syntax-error-in-debian-changelog"), + "stdout: {stdout}" + ); + assert!( + stdout.contains("not a Debian changelog"), + "stdout: {stdout}" + ); + assert!( + stdout.contains("Found 1 warning."), + "expected ruff-style summary, stdout: {stdout}" + ); +} + +#[test] +fn lint_rules_missing_target_prints_error_and_fails() { + let source_dir = assets_dir().join("check_rules_missing_target"); + let (status, stdout, stderr) = run_lint(&source_dir, &[]); + + assert!( + !status.success(), + "expected policy failure, stderr: {stderr}" + ); + assert_eq!(status.code(), Some(1)); + assert!(stdout.contains("LN0003"), "stdout: {stdout}"); + assert!( + stdout.contains("debian-rules-missing-required-target"), + "stdout: {stdout}" + ); + assert!(stdout.contains("build-arch"), "stdout: {stdout}"); + assert!( + stdout.contains("Found 2 errors."), + "expected ruff-style summary, stdout: {stdout}" + ); +} + +#[test] +fn lint_dummy_miss_succeeds_without_diagnostic() { + let source_dir = assets_dir().join("check_dummy_miss"); + let (status, stdout, stderr) = run_lint(&source_dir, &[]); + + assert!(status.success(), "expected success, stderr: {stderr}"); + assert!( + !stdout.contains("DM0001"), + "unexpected diagnostic on stdout: {stdout}" + ); + assert!( + stdout.contains("All checks passed!"), + "expected success summary, stdout: {stdout}" + ); +} + +#[test] +fn lint_ignore_excludes_dummy_rule() { + let source_dir = assets_dir().join("check_dummy_hit"); + let (status, stdout, stderr) = run_lint(&source_dir, &["--ignore", "DM0001"]); + + assert!(status.success(), "expected success, stderr: {stderr}"); + assert!( + !stdout.contains("DM0001"), + "ignored rule still printed: {stdout}" + ); + assert!( + stdout.contains("All checks passed!"), + "expected success summary, stdout: {stdout}" + ); +} + +#[test] +fn lint_select_prefix_excludes_dummy_rule() { + let source_dir = assets_dir().join("check_dummy_hit"); + let (status, stdout, stderr) = run_lint(&source_dir, &["--select", "LN"]); + + assert!(status.success(), "expected success, stderr: {stderr}"); + assert!( + !stdout.contains("DM0001"), + "unselected rule still printed: {stdout}" + ); + assert!( + stdout.contains("All checks passed!"), + "expected success summary, stdout: {stdout}" + ); +} + +#[test] +fn lint_missing_debian_dir_fails_on_stderr() { + let source_dir = assets_dir(); + let (status, _stdout, stderr) = run_lint(&source_dir, &[]); + + assert!( + !status.success(), + "expected failure for directory without debian/" + ); + assert!(!stderr.is_empty(), "expected error message on stderr"); +} + +#[test] +fn lint_fail_on_warning_exits_nonzero_but_prints_diagnostic() { + let source_dir = assets_dir().join("check_dummy_hit"); + let (status, stdout, stderr) = run_lint(&source_dir, &["--fail-on", "warning"]); + + assert!( + !status.success(), + "expected policy failure, stderr: {stderr}" + ); + assert_eq!(status.code(), Some(1)); + assert!(stdout.contains("DM0001"), "stdout: {stdout}"); + assert!( + stdout.contains("debmagic-dummy-trigger"), + "stdout: {stdout}" + ); + assert!( + stdout.contains("Found 1 warning."), + "expected ruff-style summary, stdout: {stdout}" + ); +} + +#[test] +fn lint_binary_package_via_positional_fails_on_malformed_archive() { + let deb = temp_artifact("deb"); + let (status, _stdout, stderr) = run_lint_subject(&deb, &[]); + let _ = fs::remove_file(&deb); + + assert!( + !status.success(), + "expected failure for malformed .deb Subject" + ); + assert!( + stderr.contains("control.tar") || stderr.contains("ar") || stderr.contains("archive"), + "stderr: {stderr}" + ); +} + +#[test] +fn lint_binary_package_via_source_dir_fails_on_malformed_archive() { + let deb = temp_artifact("deb"); + let (status, _stdout, stderr) = run_lint(&deb, &[]); + let _ = fs::remove_file(&deb); + + assert!( + !status.success(), + "expected failure for malformed .deb Subject" + ); + assert!( + stderr.contains("control.tar") || stderr.contains("ar") || stderr.contains("archive"), + "stderr: {stderr}" + ); +} + +#[test] +fn lint_source_package_via_positional_fails_unimplemented() { + let dsc = temp_artifact("dsc"); + let (status, _stdout, stderr) = run_lint_subject(&dsc, &[]); + let _ = fs::remove_file(&dsc); + + assert!(!status.success(), "expected failure for .dsc Subject"); + assert!( + stderr.contains("Source package") || stderr.contains("not implemented"), + "stderr: {stderr}" + ); +} + +#[test] +fn lint_source_package_via_source_dir_fails_unimplemented() { + let dsc = temp_artifact("dsc"); + let (status, _stdout, stderr) = run_lint(&dsc, &[]); + let _ = fs::remove_file(&dsc); + + assert!(!status.success(), "expected failure for .dsc Subject"); + assert!( + stderr.contains("Source package") || stderr.contains("not implemented"), + "stderr: {stderr}" + ); +} + +#[test] +fn parse_parity_hint_and_diagnostic_lines() { + let parsed = parse_universal_hint_line( + "generic-empty (source): required-field (in section for source) Standards-Version [debian/control:1]", + ); + assert_eq!( + parsed, + Some(( + "source".to_string(), + ParityHint { + tag: "required-field".to_string(), + extra: "(in section for source) Standards-Version".to_string(), + } + )) + ); + + let diagnostic = parse_diagnostic_line( + "E: generic-empty (source): required-field (LN0001) (in section for source) Standards-Version [debian/control]", + ); + assert_eq!( + diagnostic, + Some(( + "source".to_string(), + ParityHint { + tag: "required-field".to_string(), + extra: "(in section for source) Standards-Version".to_string(), + } + )) + ); +} diff --git a/packages/debmagic/tests/lintian-parity/PIN b/packages/debmagic/tests/lintian-parity/PIN new file mode 100644 index 00000000..7631b43b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/PIN @@ -0,0 +1,2 @@ +lintian 2.139.0 +commit 3d907cb9f489573ab5a581d13f640319335262b6 diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/Makefile b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/Makefile new file mode 100644 index 00000000..4ce37c05 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/Makefile @@ -0,0 +1,5 @@ +all: + touch mod_baz.so mod_foo2.so mod_foo.so + +clean: + rm -f *.so diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/ORIGIN new file mode 100644 index 00000000..b3ced22d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/apache2/apache2-modules-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/baz.load b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/baz.load new file mode 100644 index 00000000..cb28fab3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/baz.load @@ -0,0 +1 @@ +LoadModule baz_module /usr/lib/apache2/modules/mod_baz.so diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/changelog new file mode 100644 index 00000000..80e7ed90 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/changelog @@ -0,0 +1,17 @@ +apache2-modules-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: apache2-modules-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +apache2-modules-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: apache2-modules-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/control new file mode 100644 index 00000000..f8f52be1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/control @@ -0,0 +1,45 @@ +Source: apache2-modules-general +Section: httpd +Priority: optional +Maintainer: Big Kahuna +Uploaders: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no + +Package: libapache2-mod-foo +Architecture: all +Depends: ${shlibs:Depends}, + ${misc:Depends}, + apache2-api-19700101 +Description: Several tests related to Apache2 module packages + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: libapache2-modbaz +Architecture: all +Depends: ${shlibs:Depends}, + ${misc:Depends}, + apache2.2-common, +Description: Several tests related to Apache2 module packages don't care + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + To avoid duplicate description warnings this line differs. Ignore me. + +Package: libapache2-mod-foo2 +Architecture: all +Depends: ${shlibs:Depends}, + ${misc:Depends}, + apache2-api-19700101, +Description: Several tests related to Apache2 module packages still don't care + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + To avoid duplicate description warnings this line differs. Still ignore me. diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/libapache2-mod-foo.dirs b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/libapache2-mod-foo.dirs new file mode 100644 index 00000000..871a4715 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/libapache2-mod-foo.dirs @@ -0,0 +1,2 @@ +etc/apache2/mods-available +usr/lib/apache2/modules diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/libapache2-mod-foo.install b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/libapache2-mod-foo.install new file mode 100644 index 00000000..ac8f7f10 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/libapache2-mod-foo.install @@ -0,0 +1,4 @@ +foo.load /etc/apache2/mods-available +foo /etc/apache2/mods-available +foo.conf /etc/apache2/mods-available +mod_foo.so /usr/lib/apache2/modules/ diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/libapache2-mod-foo2.dirs b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/libapache2-mod-foo2.dirs new file mode 100644 index 00000000..aec19eee --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/libapache2-mod-foo2.dirs @@ -0,0 +1,2 @@ +etc/apache2/mods-enabled +usr/lib/apache2/modules diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/libapache2-mod-foo2.install b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/libapache2-mod-foo2.install new file mode 100644 index 00000000..8aab3d1d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/libapache2-mod-foo2.install @@ -0,0 +1,2 @@ +foo.conf /etc/apache2/mods-enabled +mod_foo2.so /usr/lib/apache2/modules/ diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/libapache2-mod-foo2.postinst b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/libapache2-mod-foo2.postinst new file mode 100644 index 00000000..8f6847d5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/libapache2-mod-foo2.postinst @@ -0,0 +1,9 @@ +#! /bin/sh + +set -e + +if [ "$1" = 'configure' ] ; then + a2enmod -q foo2 +fi + +#DEBHELPER# diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/libapache2-mod-foo2.postrm b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/libapache2-mod-foo2.postrm new file mode 100644 index 00000000..a4c83a6e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/libapache2-mod-foo2.postrm @@ -0,0 +1,9 @@ +#! /bin/sh + +set -e + +if [ "$1" = 'remove' ] ; then + a2dismod -q foo2 +fi + +#DEBHELPER# diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/libapache2-modbaz.dirs b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/libapache2-modbaz.dirs new file mode 100644 index 00000000..871a4715 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/libapache2-modbaz.dirs @@ -0,0 +1,2 @@ +etc/apache2/mods-available +usr/lib/apache2/modules diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/libapache2-modbaz.install b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/libapache2-modbaz.install new file mode 100644 index 00000000..5f2e1f9b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/libapache2-modbaz.install @@ -0,0 +1,2 @@ +baz.load /etc/apache2/mods-available +mod_baz.so /usr/lib/apache2/modules/ diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/eval/hints new file mode 100644 index 00000000..42c64019 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/eval/hints @@ -0,0 +1,9 @@ +libapache2-modbaz (binary): non-standard-apache2-module-package-name libapache2-modbaz != libapache2-mod-baz [usr/lib/apache2/modules/mod_baz.so] +libapache2-modbaz (binary): apache2-module-does-not-depend-on-apache2-api [usr/lib/apache2/modules/mod_baz.so] +libapache2-mod-foo2 (binary): apache2-reverse-dependency-ships-file-in-not-allowed-directory [etc/apache2/mods-enabled/foo.conf] +libapache2-mod-foo2 (binary): apache2-reverse-dependency-calls-wrapper-script a2enmod [postinst:6] +libapache2-mod-foo2 (binary): apache2-reverse-dependency-calls-wrapper-script a2dismod [postrm:6] +libapache2-mod-foo2 (binary): apache2-module-does-not-ship-load-file etc/apache2/mods-available/foo2.load [usr/lib/apache2/modules/mod_foo2.so] +libapache2-mod-foo (binary): apache2-unparsable-dependency mod_baz3 [etc/apache2/mods-available/foo.load:2] +libapache2-mod-foo (binary): apache2-unparsable-dependency baz4.load [etc/apache2/mods-available/foo.load:2] +libapache2-mod-foo (binary): apache2-configuration-files-need-conf-suffix [etc/apache2/mods-available/foo] diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/foo b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/foo new file mode 100644 index 00000000..2cc691ed --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/foo @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/foo.conf b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/foo.conf new file mode 100644 index 00000000..bcbc503a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/foo.conf @@ -0,0 +1,5 @@ +# Depends: notsupportedhere + + + WithDirectives + diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/foo.load b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/foo.load new file mode 100644 index 00000000..7f1659fa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-modules-general/foo.load @@ -0,0 +1,5 @@ +# Depends: baz +# Depends: baz baz2 mod_baz3 baz4.load +# Conflicts: baz baz2 + +LoadModule foo_module /usr/lib/apache2/modules/mod_foo.so diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/ORIGIN new file mode 100644 index 00000000..a422fe1f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/apache2/apache2-webapplications-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/changelog new file mode 100644 index 00000000..f7362ad6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/changelog @@ -0,0 +1,17 @@ +apache2-webapplications-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: apache2-webapplications-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +apache2-webapplications-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: apache2-webapplications-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/control new file mode 100644 index 00000000..d8ce4133 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/control @@ -0,0 +1,48 @@ +Source: apache2-webapplications-general +Section: web +Priority: optional +Maintainer: Big Kahuna +Uploaders: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no + +Package: phpmyfoo +Architecture: all +Depends: ${shlibs:Depends}, + ${misc:Depends}, + apache2, + apache2-bin +Description: Several tests related to Apache2 web application packages + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: phpmyfoo2 +Architecture: all +Depends: ${shlibs:Depends}, + ${misc:Depends}, + apache2 | httpd +Description: Several tests related to Apache2 web application packages - ignore me + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + Ignore me. + +Package: phpmyfoo3 +Architecture: all +Depends: ${shlibs:Depends}, + ${misc:Depends}, + apache2 | lighttpd | httpd +Description: Several tests related to Apache2 web application packages - another ignore me + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + Yet another ignore me. + + diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/phpmyfoo.dirs b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/phpmyfoo.dirs new file mode 100644 index 00000000..31e10a9b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/phpmyfoo.dirs @@ -0,0 +1 @@ +etc/apache2/conf-available diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/phpmyfoo.install b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/phpmyfoo.install new file mode 100644 index 00000000..2789400b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/phpmyfoo.install @@ -0,0 +1 @@ +phpmyfoo.conf /etc/apache2/conf-available diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/phpmyfoo.postinst b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/phpmyfoo.postinst new file mode 100644 index 00000000..c4a1988b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/phpmyfoo.postinst @@ -0,0 +1,11 @@ +#! /bin/sh + +set -e + +if [ "$1" = 'configure' ] ; then + a2enconf -q phpmyfoo +fi + +invoke-rc.d apache2 reload + +#DEBHELPER# diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/phpmyfoo.postrm b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/phpmyfoo.postrm new file mode 100644 index 00000000..d0db12e4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/phpmyfoo.postrm @@ -0,0 +1,12 @@ +#!/bin/sh + +set -e + +if [ "$1" = 'configure' ] ; then + a2disconf -q phpmyfoo +fi + +invoke-rc.d apache2 reload + +#DEBHELPER# + diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/phpmyfoo2.dirs b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/phpmyfoo2.dirs new file mode 100644 index 00000000..31e10a9b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/phpmyfoo2.dirs @@ -0,0 +1 @@ +etc/apache2/conf-available diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/phpmyfoo2.install b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/phpmyfoo2.install new file mode 100644 index 00000000..b2da1d60 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/phpmyfoo2.install @@ -0,0 +1,3 @@ +phpmyfoo2 /etc/apache2/conf-available +local-phpmyfoo2.conf /etc/apache2/conf-available +false-positives.conf /etc/apache2/conf-available diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/phpmyfoo3.dirs b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/phpmyfoo3.dirs new file mode 100644 index 00000000..e9286b07 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/phpmyfoo3.dirs @@ -0,0 +1 @@ +etc/apache2/conf.d/ diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/phpmyfoo3.install b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/phpmyfoo3.install new file mode 100644 index 00000000..30fb6240 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/phpmyfoo3.install @@ -0,0 +1 @@ +phpmyfoo.conf /etc/apache2/conf.d/ diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/eval/hints new file mode 100644 index 00000000..6c172272 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/eval/hints @@ -0,0 +1,22 @@ +phpmyfoo3 (binary): non-standard-apache2-configuration-name phpmyfoo.conf != phpmyfoo3.conf [etc/apache2/conf.d/phpmyfoo.conf] +phpmyfoo3 (binary): apache2-unsupported-dependency Conflicts [etc/apache2/conf.d/phpmyfoo.conf:2] +phpmyfoo3 (binary): apache2-unparsable-dependency bar2.conf [etc/apache2/conf.d/phpmyfoo.conf:1] +phpmyfoo3 (binary): apache2-reverse-dependency-uses-obsolete-directory [etc/apache2/conf.d/phpmyfoo.conf] +phpmyfoo3 (binary): apache2-deprecated-auth-config Order [etc/apache2/conf.d/phpmyfoo.conf:9] +phpmyfoo3 (binary): apache2-deprecated-auth-config [etc/apache2/conf.d/phpmyfoo.conf:8] +phpmyfoo3 (binary): apache2-deprecated-auth-config [etc/apache2/conf.d/phpmyfoo.conf:11] +phpmyfoo2 (binary): non-standard-apache2-configuration-name phpmyfoo2 != phpmyfoo2.conf [etc/apache2/conf-available/phpmyfoo2] +phpmyfoo2 (binary): non-standard-apache2-configuration-name local-phpmyfoo2.conf != phpmyfoo2.conf [etc/apache2/conf-available/local-phpmyfoo2.conf] +phpmyfoo2 (binary): non-standard-apache2-configuration-name false-positives.conf != phpmyfoo2.conf [etc/apache2/conf-available/false-positives.conf] +phpmyfoo2 (binary): apache2-configuration-files-need-conf-suffix [etc/apache2/conf-available/phpmyfoo2] +phpmyfoo (binary): web-application-works-only-with-apache phpmyfoo.conf [etc/apache2/conf-available/phpmyfoo.conf] +phpmyfoo (binary): web-application-depends-on-apache2-data-package apache2-bin phpmyfoo.conf [etc/apache2/conf-available/phpmyfoo.conf] +phpmyfoo (binary): apache2-unsupported-dependency Conflicts [etc/apache2/conf-available/phpmyfoo.conf:2] +phpmyfoo (binary): apache2-unparsable-dependency bar2.conf [etc/apache2/conf-available/phpmyfoo.conf:1] +phpmyfoo (binary): apache2-reverse-dependency-calls-wrapper-script a2enconf [postinst:6] +phpmyfoo (binary): apache2-reverse-dependency-calls-wrapper-script a2disconf [postrm:6] +phpmyfoo (binary): apache2-reverse-dependency-calls-invoke-rc.d [postrm:9] +phpmyfoo (binary): apache2-reverse-dependency-calls-invoke-rc.d [postinst:9] +phpmyfoo (binary): apache2-deprecated-auth-config Order [etc/apache2/conf-available/phpmyfoo.conf:9] +phpmyfoo (binary): apache2-deprecated-auth-config [etc/apache2/conf-available/phpmyfoo.conf:8] +phpmyfoo (binary): apache2-deprecated-auth-config [etc/apache2/conf-available/phpmyfoo.conf:11] diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/false-positives.conf b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/false-positives.conf new file mode 100644 index 00000000..e54f4706 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/false-positives.conf @@ -0,0 +1,12 @@ +Alias /foo /usr/share/foo + + + + Order deny, allow + Require valid-user + + + Order deny, allow + Require valid-user + + diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/local-phpmyfoo2.conf b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/local-phpmyfoo2.conf new file mode 100644 index 00000000..2cc691ed --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/local-phpmyfoo2.conf @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/phpmyfoo.conf b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/phpmyfoo.conf new file mode 100644 index 00000000..1e3c4e31 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/phpmyfoo.conf @@ -0,0 +1,14 @@ +# Depends: bar bar2.conf php7.0 +# Conflicts: notsupportedhere + +Alias /foo /usr/share/foo + + + WebAppConf + + Order deny, allow + Require valid-user + + AllowOverride None + + diff --git a/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/phpmyfoo2 b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/phpmyfoo2 new file mode 100644 index 00000000..2cc691ed --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apache2/apache2-webapplications-general/phpmyfoo2 @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/ORIGIN new file mode 100644 index 00000000..9ae68e7d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/application-not-library/application-not-library + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/bin/libapp-something-perl b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/bin/libapp-something-perl new file mode 100755 index 00000000..733bbce8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/bin/libapp-something-perl @@ -0,0 +1,3 @@ +#!/bin/sh + +echo Foobar diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/bin/libsomething-else-perl b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/bin/libsomething-else-perl new file mode 100755 index 00000000..733bbce8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/bin/libsomething-else-perl @@ -0,0 +1,3 @@ +#!/bin/sh + +echo Foobar diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/bin/python-something b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/bin/python-something new file mode 100755 index 00000000..733bbce8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/bin/python-something @@ -0,0 +1,3 @@ +#!/bin/sh + +echo Foobar diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/bin/ruby-something b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/bin/ruby-something new file mode 100755 index 00000000..733bbce8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/bin/ruby-something @@ -0,0 +1,3 @@ +#!/bin/sh + +echo Foobar diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/bin/unspecified-something-pl b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/bin/unspecified-something-pl new file mode 100755 index 00000000..733bbce8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/bin/unspecified-something-pl @@ -0,0 +1,3 @@ +#!/bin/sh + +echo Foobar diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/bin/unspecified-something-py b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/bin/unspecified-something-py new file mode 100755 index 00000000..733bbce8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/bin/unspecified-something-py @@ -0,0 +1,3 @@ +#!/bin/sh + +echo Foobar diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/bin/unspecified-something-rb b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/bin/unspecified-something-rb new file mode 100755 index 00000000..733bbce8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/bin/unspecified-something-rb @@ -0,0 +1,3 @@ +#!/bin/sh + +echo Foobar diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/changelog new file mode 100644 index 00000000..57ec41fe --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/changelog @@ -0,0 +1,17 @@ +application-not-library (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: application-not-library + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +application-not-library (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: application-not-library + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/control b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/control new file mode 100644 index 00000000..5afca7bb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/control @@ -0,0 +1,87 @@ +Source: application-not-library +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), perl +Rules-Requires-Root: no + +Package: libapp-something-perl +Architecture: any +Section: perl +Depends: ${misc:Depends}, ${shlib:Depends} +Description: Test cases where packages look like libraries but are applications libapp + This is an App:: test package designed to exercise some feature or + tag of Lintian. It is part of the Lintian test suite and may do very + odd things. It should not be installed like a regular package. It + may be an empty package. + +Package: libapp-some-app-helper-module-perl +Architecture: any +Section: perl +Depends: ${misc:Depends}, ${shlib:Depends} +Description: libapp false positive test + This is an App:: test package designed to check if Lintian reports + false positives. It is part of the Lintian test suite and may do + very odd things. It should not be installed like a regular package. + It may be an empty package. + +Package: libsomething-else-perl +Architecture: any +Section: perl +Depends: ${misc:Depends}, ${shlib:Depends} +Description: Test cases where packages look like libraries but are applications else + This is a perl test package designed to exercise some feature or tag + of Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: python-something +Architecture: any +Section: python +Depends: ${misc:Depends}, ${shlib:Depends} +Description: Test cases where packages look like libraries but are applications py + This is a Python test package designed to exercise some feature or + tag of Lintian. It is part of the Lintian test suite and may do very + odd things. It should not be installed like a regular package. It + may be an empty package. + +Package: ruby-something +Architecture: any +Section: ruby +Depends: ${misc:Depends}, ${shlib:Depends} +Description: Test cases where packages look like libraries but are applications rb + This is a ruby test package designed to exercise some feature or tag + of Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: unspecified-something-pl +Architecture: any +Section: perl +Depends: ${misc:Depends}, ${shlib:Depends} +Description: Test cases where packages look like libraries but are applications pl + This is a perl-ish test package designed to exercise some feature or + tag of Lintian. It is part of the Lintian test suite and may do very + odd things. It should not be installed like a regular package. It + may be an empty package. + +Package: unspecified-something-py +Architecture: any +Section: python +Depends: ${misc:Depends}, ${shlib:Depends} +Description: Test cases where packages look like libraries but are applications py2 + This is a python-ish test package designed to exercise some feature + or tag of Lintian. It is part of the Lintian test suite and may do + very odd things. It should not be installed like a regular package. + It may be an empty package. + +Package: unspecified-something-rb +Architecture: any +Section: ruby +Depends: ${misc:Depends}, ${shlib:Depends} +Description: Test cases where packages look like libraries but are applications rb2 + This is a ruby-ish (rubbish? ;-) test package designed to exercise + some feature or tag of Lintian. It is part of the Lintian test suite + and may do very odd things. It should not be installed like a + regular package. It may be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/libapp-something-perl.install b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/libapp-something-perl.install new file mode 100644 index 00000000..388bdbdb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/libapp-something-perl.install @@ -0,0 +1 @@ +bin/libapp-something-perl usr/bin diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/libapp-something-perl.manpages b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/libapp-something-perl.manpages new file mode 100644 index 00000000..58d812c5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/libapp-something-perl.manpages @@ -0,0 +1 @@ +man/libapp-something-perl.1 diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/libsomething-else-perl.install b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/libsomething-else-perl.install new file mode 100644 index 00000000..2a4ae747 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/libsomething-else-perl.install @@ -0,0 +1 @@ +bin/libsomething-else-perl usr/bin diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/libsomething-else-perl.manpages b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/libsomething-else-perl.manpages new file mode 100644 index 00000000..881b7a55 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/libsomething-else-perl.manpages @@ -0,0 +1 @@ +man/libsomething-else-perl.1 diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/python-something.install b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/python-something.install new file mode 100644 index 00000000..ef65bd83 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/python-something.install @@ -0,0 +1 @@ +bin/python-something usr/bin diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/python-something.manpages b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/python-something.manpages new file mode 100644 index 00000000..faae0d5e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/python-something.manpages @@ -0,0 +1 @@ +man/python-something.1 diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/ruby-something.install b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/ruby-something.install new file mode 100644 index 00000000..b4178bb7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/ruby-something.install @@ -0,0 +1 @@ +bin/ruby-something usr/bin diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/ruby-something.manpages b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/ruby-something.manpages new file mode 100644 index 00000000..ada2f8d1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/ruby-something.manpages @@ -0,0 +1 @@ +man/ruby-something.1 diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/rules b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/unspecified-something-pl.install b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/unspecified-something-pl.install new file mode 100644 index 00000000..bfbc4a06 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/unspecified-something-pl.install @@ -0,0 +1 @@ +bin/unspecified-something-pl usr/bin diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/unspecified-something-pl.manpages b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/unspecified-something-pl.manpages new file mode 100644 index 00000000..01bebce5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/unspecified-something-pl.manpages @@ -0,0 +1 @@ +man/unspecified-something-pl.1 diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/unspecified-something-py.install b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/unspecified-something-py.install new file mode 100644 index 00000000..9615ca00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/unspecified-something-py.install @@ -0,0 +1 @@ +bin/unspecified-something-py usr/bin diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/unspecified-something-py.manpages b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/unspecified-something-py.manpages new file mode 100644 index 00000000..d8e6db50 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/unspecified-something-py.manpages @@ -0,0 +1 @@ +man/unspecified-something-py.1 diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/unspecified-something-rb.install b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/unspecified-something-rb.install new file mode 100644 index 00000000..9502f606 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/unspecified-something-rb.install @@ -0,0 +1 @@ +bin/unspecified-something-rb usr/bin diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/unspecified-something-rb.manpages b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/unspecified-something-rb.manpages new file mode 100644 index 00000000..3f891568 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/debian/unspecified-something-rb.manpages @@ -0,0 +1 @@ +man/unspecified-something-rb.1 diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/eval/hints b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/eval/hints new file mode 100644 index 00000000..8a367892 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/eval/hints @@ -0,0 +1 @@ +libapp-something-perl (binary): libapp-perl-package-name [usr/bin/libapp-something-perl] diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/man/libapp-something-perl.1 b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/man/libapp-something-perl.1 new file mode 100644 index 00000000..00d58c9f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/man/libapp-something-perl.1 @@ -0,0 +1,6 @@ +.TH YES "1" "April 2015" "Foobar" "User Commands" +.SH NAME +foobar \- fnords something until killes +.SH SYNOPSIS +.B foobar +[\fISOMETHING\fR]... diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/man/libsomething-else-perl.1 b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/man/libsomething-else-perl.1 new file mode 100644 index 00000000..00d58c9f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/man/libsomething-else-perl.1 @@ -0,0 +1,6 @@ +.TH YES "1" "April 2015" "Foobar" "User Commands" +.SH NAME +foobar \- fnords something until killes +.SH SYNOPSIS +.B foobar +[\fISOMETHING\fR]... diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/man/python-something.1 b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/man/python-something.1 new file mode 100644 index 00000000..00d58c9f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/man/python-something.1 @@ -0,0 +1,6 @@ +.TH YES "1" "April 2015" "Foobar" "User Commands" +.SH NAME +foobar \- fnords something until killes +.SH SYNOPSIS +.B foobar +[\fISOMETHING\fR]... diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/man/ruby-something.1 b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/man/ruby-something.1 new file mode 100644 index 00000000..00d58c9f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/man/ruby-something.1 @@ -0,0 +1,6 @@ +.TH YES "1" "April 2015" "Foobar" "User Commands" +.SH NAME +foobar \- fnords something until killes +.SH SYNOPSIS +.B foobar +[\fISOMETHING\fR]... diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/man/unspecified-something-pl.1 b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/man/unspecified-something-pl.1 new file mode 100644 index 00000000..00d58c9f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/man/unspecified-something-pl.1 @@ -0,0 +1,6 @@ +.TH YES "1" "April 2015" "Foobar" "User Commands" +.SH NAME +foobar \- fnords something until killes +.SH SYNOPSIS +.B foobar +[\fISOMETHING\fR]... diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/man/unspecified-something-py.1 b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/man/unspecified-something-py.1 new file mode 100644 index 00000000..00d58c9f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/man/unspecified-something-py.1 @@ -0,0 +1,6 @@ +.TH YES "1" "April 2015" "Foobar" "User Commands" +.SH NAME +foobar \- fnords something until killes +.SH SYNOPSIS +.B foobar +[\fISOMETHING\fR]... diff --git a/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/man/unspecified-something-rb.1 b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/man/unspecified-something-rb.1 new file mode 100644 index 00000000..00d58c9f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/application-not-library/application-not-library/man/unspecified-something-rb.1 @@ -0,0 +1,6 @@ +.TH YES "1" "April 2015" "Foobar" "User Commands" +.SH NAME +foobar \- fnords something until killes +.SH SYNOPSIS +.B foobar +[\fISOMETHING\fR]... diff --git a/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/ORIGIN new file mode 100644 index 00000000..e7bb0793 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/appstream-metadata/appstream-metadata + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/appstream-metadata-invalid.metadata.xml b/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/appstream-metadata-invalid.metadata.xml new file mode 100644 index 00000000..a823b8d1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/appstream-metadata-invalid.metadata.xml @@ -0,0 +1 @@ +This is not a valid XML document. diff --git a/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/appstream-metadata-obsolete.metadata.xml b/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/appstream-metadata-obsolete.metadata.xml new file mode 100644 index 00000000..31d281ef --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/appstream-metadata-obsolete.metadata.xml @@ -0,0 +1,2 @@ + + diff --git a/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/appstream-metadata-validation-failed.metadata.xml b/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/appstream-metadata-validation-failed.metadata.xml new file mode 100644 index 00000000..23224b6a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/appstream-metadata-validation-failed.metadata.xml @@ -0,0 +1,20 @@ + + + appstream-udev-data + MIT + lintian appstream-udev-data + Test AppStream and udev related checks in lintian + +

+ This is a test package designed to exercise some feature or tag + of Lintian. It is part of the Lintian test suite and may do + very odd things. It should not be installed like a regular + package. It may be an empty package. +

+
+ + Bogus + Recorder; + Recorder + +
diff --git a/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/appstream-metadata.desktop b/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/appstream-metadata.desktop new file mode 100644 index 00000000..4c914305 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/appstream-metadata.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=appstream-udev-data +Terminal=true +Exec=true +Categories=ConsoleOnly;Game; +Keywords=Text; diff --git a/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/appstream-metadata.dirs b/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/appstream-metadata.dirs new file mode 100644 index 00000000..402f5d54 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/appstream-metadata.dirs @@ -0,0 +1,2 @@ +usr/share/metainfo +usr/share/appdata diff --git a/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/appstream-metadata.metadata.xml b/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/appstream-metadata.metadata.xml new file mode 100644 index 00000000..9161a85f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/appstream-metadata.metadata.xml @@ -0,0 +1,22 @@ + + + org.debian.lintian.check.appstream.udev + MIT + lintian appstream-udev-data + Test AppStream and udev related checks in lintian + +

+ This is a test package designed to exercise some feature or tag + of Lintian. It is part of the Lintian test suite and may do + very odd things. It should not be installed like a regular + package. It may be an empty package. +

+
+ + usb:v0000p0001d* + usb:v0000p0002d* + usb:v0000p0003d* + usb:v0000p0004d* + usb:v0000p000ad* + +
diff --git a/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/appstream-metadata.udev b/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/appstream-metadata.udev new file mode 100644 index 00000000..e2f28412 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/appstream-metadata.udev @@ -0,0 +1,14 @@ +SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="0001", \ + MODE="0666" + +SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="0002", \ + MODE="0660", GROUP="plugdev" + +SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="0003", \ + TAG+="uaccess" + +SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="0004", \ + MODE="0660", GROUP="plugdev", TAG+="uaccess" + +SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="000a", \ + ID_TEST_DEVICE="1" diff --git a/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/changelog new file mode 100644 index 00000000..71fe9ce3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/changelog @@ -0,0 +1,17 @@ +appstream-metadata (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: appstream-metadata + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +appstream-metadata (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: appstream-metadata + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/control b/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/control new file mode 100644 index 00000000..397c1462 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/control @@ -0,0 +1,17 @@ +Source: appstream-metadata +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: appstream-metadata +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test AppStream and udev metadata in binary package + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/rules b/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/rules new file mode 100644 index 00000000..b8e0db61 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/rules @@ -0,0 +1,16 @@ +#!/usr/bin/make -f + +DESTDIR = debian/$(shell dh_listpackages) +APPSYNC_DIR=$(DESTDIR)/usr/share/metainfo/ +OBSOLETE_APPSYNC_DIR=$(DESTDIR)/usr/share/appdata/ +UDEV_DIR=$(DESTDIR)/lib/udev/rules.d/ + +%: + dh $@ + +override_dh_install: + dh_install + install -m 0644 debian/appstream-metadata.metadata.xml $(APPSYNC_DIR) + install -m 0644 debian/appstream-metadata-invalid.metadata.xml $(APPSYNC_DIR) + install -m 0644 debian/appstream-metadata-validation-failed.metadata.xml $(APPSYNC_DIR) + install -m 0644 debian/appstream-metadata-obsolete.metadata.xml $(OBSOLETE_APPSYNC_DIR) diff --git a/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/eval/hints b/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/eval/hints new file mode 100644 index 00000000..470207c9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/appstream-metadata/appstream-metadata/eval/hints @@ -0,0 +1,6 @@ +appstream-metadata (binary): appstream-metadata-validation-failed Problems reported by "appstreamcli validate-tree". +appstream-metadata (binary): appstream-metadata-missing-modalias-provide match rule usb:v0000p000Ad* [usr/lib/udev/rules.d/60-appstream-metadata.rules:13] +appstream-metadata (binary): appstream-metadata-malformed-modalias-provide include non-valid hex digit in USB matching rule 'usb:v0000p000ad*' [usr/share/metainfo/appstream-metadata.metadata.xml] +appstream-metadata (binary): appstream-metadata-legacy-format [usr/share/appdata/appstream-metadata-obsolete.metadata.xml] +appstream-metadata (binary): appstream-metadata-invalid [usr/share/metainfo/appstream-metadata-invalid.metadata.xml] +appstream-metadata (binary): appstream-metadata-in-legacy-location [usr/share/appdata/appstream-metadata-obsolete.metadata.xml] diff --git a/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/ORIGIN new file mode 100644 index 00000000..75eefc96 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/apt/files-foo-in-bar + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/bar b/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/bar new file mode 100644 index 00000000..980a0d5f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/bar @@ -0,0 +1 @@ +Hello World! diff --git a/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/bar.pod b/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/bar.pod new file mode 100644 index 00000000..4144a364 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/bar.pod @@ -0,0 +1,18 @@ + +=head1 NAME + +bar - does stuff + +=head1 SYNOPSIS + +bar + +=head1 DESCRIPTION + +Does nothing. + +=head1 AUTHOR + +Niels Thykier + +=cut diff --git a/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/debian/changelog new file mode 100644 index 00000000..18866069 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/debian/changelog @@ -0,0 +1,17 @@ +files-foo-in-bar (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: files-foo-in-bar + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +files-foo-in-bar (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: files-foo-in-bar + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/debian/clean b/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/debian/clean new file mode 100644 index 00000000..be4ae727 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/debian/clean @@ -0,0 +1,5 @@ +bar.1* +Bar.pm +bar.png +perllocal.pod +preferences diff --git a/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/debian/control b/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/debian/control new file mode 100644 index 00000000..6c954ddb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/debian/control @@ -0,0 +1,17 @@ +Source: files-foo-in-bar +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: files-foo-in-bar +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test tags about files or dirs in given paths + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/debian/dirs b/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/debian/dirs new file mode 100644 index 00000000..e8759c9d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/debian/dirs @@ -0,0 +1,15 @@ +etc/apt/preferences.d +etc/apt +etc/init +bin/foo +mnt/foo +tmp/foo +usr/bin/foo +usr/foo +usr/lib/debug +usr/local/foo +usr/lib/site-python/foo +usr/share/doc/files-foo-in-bar/examples/examples +var/foo +var/lock/foo +var/run/foo diff --git a/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/debian/install b/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/debian/install new file mode 100644 index 00000000..ba468653 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/debian/install @@ -0,0 +1,61 @@ +bar bin/foo +bar emul +bar etc/apt/preferences.d +bar etc/apt/sources.list.d +bar etc/apt/trusted.gpg.d +bar etc/gconf/schemas/ +bar etc/init +bar etc/rc.boot +bar etc/rc.d +bar etc/udev/rules.d +bar lib32 +bar lib64 +bar libx32 +bar mnt/foo +bar run/foo +bar srv/foo +bar tmp/foo +bar usr/bin/foo +bar usr/foo +bar usr/lib/debug/ +bar usr/lib32 +bar usr/lib64 +bar usr/libexec +bar usr/libx32 +bar usr/lib/perl/ +bar usr/lib/python2.7/ +bar usr/lib/sgml +bar usr/lib/site-python/foo +bar usr/local/foo +bar usr/share +bar usr/share/doc +bar usr/share/doc/files-foo-in-bar/.xvpics/ +bar usr/share/doc/files-foo-in-bar/.thumbnails/ +bar usr/share/doc/files-foo-in-bar/examples/examples +bar usr/share/mime/foo/ +bar usr/share/mime/packages/ +bar usr/share/perl/ +bar usr/share/vim/vimcurrent/ +bar usr/share/vim/vim73/ +bar usr/X11R6/bin +bar usr/X11R6/lib/X11/fonts/ +bar var/foo +bar var/lock/foo +bar var/run/foo +bar var/www/foo +bar home/johndoe +bar root +bar etc/opt +bar var/cache/pbuilder/build +bar var/lib/sbuild +bar var/lib/buildd +bar build/dir/foo +bar tmp/buildd/dir/foo +bar etc/dhcp3 + +Bar.pm usr/lib/perl5/Foo +bar.png usr/lib/files-foo-in-bar + +perllocal.pod usr/lib/perl-foo +.packlist usr/lib/perl5 +preferences etc/apt diff --git a/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/debian/manpages b/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/debian/manpages new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/debian/rules b/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/debian/rules new file mode 100755 index 00000000..457b537f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/debian/rules @@ -0,0 +1,18 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_auto_build: + pod2man --section 1 bar.pod > bar.1 + gzip -n --best bar.1 + cp bar Bar.pm + cp bar bar.png + cp bar perllocal.pod + touch .packlist + touch preferences + +override_dh_auto_install: + dh_install bar.1.gz usr/X11R6/man/man1/ + +# skip +override_dh_usrlocal: diff --git a/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/eval/hints b/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/eval/hints new file mode 100644 index 00000000..f3d213bc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/apt/files-foo-in-bar/eval/hints @@ -0,0 +1,4 @@ +files-foo-in-bar (binary): package-installs-apt-sources [etc/apt/sources.list.d/bar] +files-foo-in-bar (binary): package-installs-apt-preferences [etc/apt/preferences] +files-foo-in-bar (binary): package-installs-apt-preferences [etc/apt/preferences.d/bar] +files-foo-in-bar (binary): package-installs-apt-keyring [etc/apt/trusted.gpg.d/bar] diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/ORIGIN new file mode 100644 index 00000000..1eaa076a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/debian/changelog new file mode 100644 index 00000000..94107a8c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/debian/changelog @@ -0,0 +1,17 @@ +filename-length-really-really-really-really-long-package-name (1.0.and.a.really.long.version.too-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: filename-length-really-really-really-really-long-package-name + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +filename-length-really-really-really-really-long-package-name (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: filename-length-really-really-really-really-long-package-name + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/debian/control b/packages/debmagic/tests/lintian-parity/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/debian/control new file mode 100644 index 00000000..9c7caf75 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/debian/control @@ -0,0 +1,17 @@ +Source: filename-length-really-really-really-really-long-package-name +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: filename-length-really-really-really-really-long-package-name +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: General length of package file names + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/debian/rules b/packages/debmagic/tests/lintian-parity/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/debian/watch b/packages/debmagic/tests/lintian-parity/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/eval/hints b/packages/debmagic/tests/lintian-parity/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/eval/hints new file mode 100644 index 00000000..c1a0b801 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/file/name/length/filename-length-really-really-really-really-long-package-name/eval/hints @@ -0,0 +1,6 @@ +filename-length-really-really-really-really-long-package-name (source): source-package-component-has-long-file-name filename-length-really-really-really-really-long-package-name_1.0.and.a.really.long.version.too.orig.tar.gz +filename-length-really-really-really-really-long-package-name (source): source-package-component-has-long-file-name filename-length-really-really-really-really-long-package-name_1.0.and.a.really.long.version.too-1.debian.tar.xz +filename-length-really-really-really-really-long-package-name (source): package-has-long-file-name filename-length-really-really-really-really-long-package-name_1.0.and.a.really.long.version.too-1.dsc +filename-length-really-really-really-really-long-package-name (changes): package-has-long-file-name filename-length-really-really-really-really-long-package-name_1.0.and.a.really.long.version.too-1_ARCHITECTURE.changes +filename-length-really-really-really-really-long-package-name (buildinfo): package-has-long-file-name filename-length-really-really-really-really-long-package-name_1.0.and.a.really.long.version.too-1_ARCHITECTURE.buildinfo +filename-length-really-really-really-really-long-package-name (binary): package-has-long-file-name filename-length-really-really-really-really-long-package-name_1.0.and.a.really.long.version.too-1_all.deb diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/fields-section-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/fields-section-general/ORIGIN new file mode 100644 index 00000000..008ed854 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/fields-section-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/archive/liberty/mismatch/fields-section-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/fields-section-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/fields-section-general/debian/changelog new file mode 100644 index 00000000..6f066201 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/fields-section-general/debian/changelog @@ -0,0 +1,17 @@ +fields-section-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: fields-section-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +fields-section-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: fields-section-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/fields-section-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/fields-section-general/debian/control new file mode 100644 index 00000000..4210b716 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/fields-section-general/debian/control @@ -0,0 +1,31 @@ +Source: fields-section-general +Priority: optional +Section: contrib/devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no + +Package: fields-section-general +Architecture: all +Section: contrib/dveel +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for general section/area issues (typo) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + This package has a typo in its section fields. + +Package: fields-section-general-main +Architecture: all +Section: devel +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for general section/area issues (main) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + This package can go to main. diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/fields-section-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/fields-section-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/fields-section-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/fields-section-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/fields-section-general/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/fields-section-general/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/fields-section-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/fields-section-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/fields-section-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/fields-section-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/fields-section-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/fields-section-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/fields-section-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/fields-section-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/fields-section-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/fields-section-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/fields-section-general/eval/hints new file mode 100644 index 00000000..77d1d3e5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/fields-section-general/eval/hints @@ -0,0 +1 @@ +fields-section-general (source): archive-liberty-mismatch (in section for fields-section-general-main) main vs contrib [debian/control:23] diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/legacy-relations/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/legacy-relations/ORIGIN new file mode 100644 index 00000000..1e92af7b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/legacy-relations/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/archive/liberty/mismatch/legacy-relations + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/legacy-relations/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/legacy-relations/debian/changelog new file mode 100644 index 00000000..d23f2272 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/legacy-relations/debian/changelog @@ -0,0 +1,33 @@ +relations (5) unstable; urgency=low + + * I'm orphaning this package -- I'm sick of it: it's completely broken, + lintian complains all over the place. + + -- Jeroen van Wolffelaar Sun, 02 Dec 2007 15:59:59 -0800 + +relations (4) unstable; urgency=low + + * Added a package that tests dependencies for multiple versions of + libraries, and test some description stuff in there as well. + + -- Josip Rodin Fri, 29 Nov 2002 20:13:33 +0100 + +relations (3) unstable; urgency=low + + * Added a virtual provides to test against my virtual depends without + a real package first test + + -- Sean 'Shaleh' Perry Thu, 8 Feb 2001 11:29:53 -0800 + +relations (2) unstable; urgency=low + + * Added a depends on dpkg (violates policy) and a versioned depends + on bash (follows policy) + + -- Sean 'Shaleh' Perry Fri, 2 Feb 2001 12:37:17 -0800 + +relations (1) unstable; urgency=low + + * Initial version + + -- Richard Braakman Tue, 7 Jul 1998 16:27:56 +0200 diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/legacy-relations/debian/control b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/legacy-relations/debian/control new file mode 100644 index 00000000..6cd1c044 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/legacy-relations/debian/control @@ -0,0 +1,51 @@ +Source: relations +Section: misc +Priority: optional +Build-Depends: mail-transport-agent, libc6-dev, findutils, foo (= 3) [!amd64 !i386], bar, arch-test1 [i386], arch-test2 [!i386], quilt (>= 0.40), perl +Build-Depends-Indep: make, bash, debmake, build-essential, baz (= 2.0), ghostscript | gs, + car (>= 1.0), car (<= 2.0), caz (= 1.0) [amd64], caz (>= 2.0) [i386], + caz (= 2.0) [powerpc], perl (>= 5.0), foo (<< 4) [!amd64 !i386], libfoo (>= 1.2-1), bozzle [kfreebsd-i386] +Build-Conflicts: foo [amd64 i386], bar [alpha test], xlibs-dev, arch-test1 [powerpc], arch-test2 [!sparc] +Build-Conflicts-Indep: debmake [!powerpc] +Maintainer: Debian QA Group +Standards-Version: 3.7.3 +Homepage: lintian.debian.org +Origin: Debian +Bugs: debbugs://bugs.debian.org/ + +Package: relations +Architecture: all +Section: contrib/misc +Pre-Depends: awk|gawk +Depends: relations(<< 3), dpkg, bash (>> 2.0 ), mail-transport-agent, gawk | awk, foo (>> 2.0), foo (<< 2.2), coreutils, ,null (>= 0), ${misc:Depends}, makedev +Provides: mail-reader +Replaces: relations +Conflicts: foobar (<< 5+5), foo, relations, + gnuwdf, +Suggests: alpha, gnu (>= 44-3-4-8-11.4) | ung (<< 89beta) | nug | ngu, beta, some-other-package +Recommends: emacs21 | emacsen, dpkg, null, some-other-package, ${f-oo:b-ar}, gs | ghostscript | gs-aladdin +Description: Strange dependency relationships (dummy) + This package declares relationships designed to tickle lintian's "fields" + check. It should generate a number of tags for these. + . + The package is built with "dpkg --build --no-check", because some of the + relationships used here are normally rejected by dpkg. + +Package: relations-multiple-libs +Architecture: all +Section: non-free/misc +Depends: libstdc++2.10, libstdc++2.10-glibc2.2, libstdc++3.0, tk8.2, tk8.3, tcl8.0, tcl8.2, tkx8.2, tkx8.3, tclx8.2, libpng2, libpng3, xorg, ${shlibs:Depends}, makedev | udev +Provides: awk +Enhances: foo +Recommends: ${shlibs:Depends}, relations-multiple-libs, gs | gs-gpl, makedev +Breaks: libpng3 (<< 1.0), libpng2 +Suggests: x-dev, ghostscript | gs +Description: Duplicate library dependency relationships. + Duplicate library dependency relationships. + This tests the depending on different versions of the same library + at the same time. + . + At the same time, it conveniently tests some description file checks. :) + . + It is a metapackage from the lintian perspective, so the xorg dependency + should be allowed. diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/legacy-relations/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/legacy-relations/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/legacy-relations/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/legacy-relations/debian/rules b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/legacy-relations/debian/rules new file mode 100755 index 00000000..5027f335 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/legacy-relations/debian/rules @@ -0,0 +1,49 @@ +#!/usr/bin/make -f + +# Copyright (C) 1998 Richard Braakman +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, you can find it on the World Wide +# Web at https://www.gnu.org/copyleft/gpl.html, or write to the Free +# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +# MA 02110-1301, USA. + +build-arch: + +build-indep: + +build: build-arch build-indep + +binary-arch: + +binary-indep: + install -d debian/tmp/DEBIAN + dpkg-gencontrol -prelations -isp + dpkg --build debian/tmp ../relations_5_all.deb + install -d debian/tmp/usr/share/doc/ + ln -s relations debian/tmp/usr/share/doc/relations-multiple-libs + dpkg-gencontrol -prelations-multiple-libs -isp + dpkg --build debian/tmp ../relations-multiple-libs_5_all.deb + +binary: binary-arch binary-indep + +clean:: + rm -rf debian/tmp debian/files + +# Test allowing quilt Build-Depends for manual quilt invocations. + TESTING=foo ANOTHER=bar quilt || true + +# Test requiring perl Build-Depends for manual perl invocations. + [ ! -f Build ] || $(PERL) Build distclean + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/legacy-relations/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/legacy-relations/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/legacy-relations/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/legacy-relations/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/legacy-relations/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/legacy-relations/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/legacy-relations/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/legacy-relations/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/legacy-relations/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/legacy-relations/debian/tmp/DEBIAN/control b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/legacy-relations/debian/tmp/DEBIAN/control new file mode 100644 index 00000000..87e7fe68 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/legacy-relations/debian/tmp/DEBIAN/control @@ -0,0 +1,14 @@ +Package: relations-multiple-libs +Version: 4 +Section: misc +Priority: optional +Architecture: all +Depends: libstdc++2.10, libstdc++2.10-glibc2.2, libstdc++3.0, tk8.2, tk8.3, tcl8.0, tcl8.2, tkx8.2, tkx8.3, tclx8.2, libpng2, libpng3 +Installed-Size: 12 +Maintainer: Lintian Maintainer +Source: relations +Description: Duplicate library dependency relationships. + Duplicate library dependency relationships. This tests the depending on + different versions of the same library at the same time. + . + At the same time, it conveniently tests some description file checks. :) diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/legacy-relations/eval/hints b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/legacy-relations/eval/hints new file mode 100644 index 00000000..d6aba64c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/liberty/mismatch/legacy-relations/eval/hints @@ -0,0 +1 @@ +relations (source): archive-liberty-mismatch (in section for relations-multiple-libs) non-free vs main [debian/control:36] diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/ORIGIN new file mode 100644 index 00000000..068f1843 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/debian/changelog new file mode 100644 index 00000000..d131b253 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/debian/changelog @@ -0,0 +1,17 @@ +control-file-source-upload-to-non-free-without-autobuild (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-source-upload-to-non-free-without-autobuild + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +control-file-source-upload-to-non-free-without-autobuild (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-source-upload-to-non-free-without-autobuild + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/debian/control b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/debian/control new file mode 100644 index 00000000..a6827618 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/debian/control @@ -0,0 +1,17 @@ +Source: control-file-source-upload-to-non-free-without-autobuild +Priority: optional +Section: non-free/devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no +XS-Autobuild: no + +Package: control-file-source-upload-to-non-free-without-autobuild +Architecture: all +Depends: ${misc:Depends} +Description: Check for source-only uploads to non-free without autobuild + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/debian/rules b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/eval/hints b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/control-file-source-upload-to-non-free-without-autobuild/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/ORIGIN new file mode 100644 index 00000000..6c520698 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/debian/changelog new file mode 100644 index 00000000..b2fcae78 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/debian/changelog @@ -0,0 +1,17 @@ +source-only-upload-to-non-free-without-autobuild (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-only-upload-to-non-free-without-autobuild + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +source-only-upload-to-non-free-without-autobuild (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-only-upload-to-non-free-without-autobuild + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/debian/control b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/debian/control new file mode 100644 index 00000000..f1cfaac5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/debian/control @@ -0,0 +1,17 @@ +Source: source-only-upload-to-non-free-without-autobuild +Section: non-free/devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: source-only-upload-to-non-free-without-autobuild +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: This source-only upload to non-free will never appear in the archive + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/debian/rules b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/eval/hints b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/eval/hints new file mode 100644 index 00000000..6615c854 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/archive/non-free/autobuild/source-only-upload-to-non-free-without-autobuild/eval/hints @@ -0,0 +1 @@ +source-only-upload-to-non-free-without-autobuild (source): source-only-upload-to-non-free-without-autobuild (in the source paragraph) XS-Autobuild [debian/control] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/binaries-misplaced/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/binaries-misplaced/ORIGIN new file mode 100644 index 00000000..08fb8219 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/binaries-misplaced/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/architecture/binaries-misplaced + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/binaries-misplaced/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/binaries-misplaced/debian/changelog new file mode 100644 index 00000000..9d0af290 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/binaries-misplaced/debian/changelog @@ -0,0 +1,17 @@ +binaries-misplaced (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-misplaced + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +binaries-misplaced (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-misplaced + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/binaries-misplaced/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/binaries-misplaced/debian/control new file mode 100644 index 00000000..d01c6f7c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/binaries-misplaced/debian/control @@ -0,0 +1,17 @@ +Source: binaries-misplaced +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: binaries-misplaced +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test binaries in /etc + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/binaries-misplaced/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/binaries-misplaced/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/binaries-misplaced/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/binaries-misplaced/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/binaries-misplaced/debian/rules new file mode 100755 index 00000000..f0cc5117 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/binaries-misplaced/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f +pkg=binaries-misplaced +%: + dh $@ + +override_dh_install: + mkdir -p debian/$(pkg)/etc/ + # --dereference in case /bin/true is a symlink + cp -a --dereference /bin/true debian/$(pkg)/etc/foo + # explicitly call dh_shlibdeps since debhelper is being + # "smart" and not calling it in newer versions (8.9.something) + dh_shlibdeps + dh_install diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/binaries-misplaced/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/binaries-misplaced/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/binaries-misplaced/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/binaries-misplaced/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/binaries-misplaced/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/binaries-misplaced/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/binaries-misplaced/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/binaries-misplaced/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/binaries-misplaced/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/binaries-misplaced/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/binaries-misplaced/eval/hints new file mode 100644 index 00000000..e7248615 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/binaries-misplaced/eval/hints @@ -0,0 +1 @@ +binaries-misplaced (binary): arch-independent-package-contains-binary-or-object [etc/foo] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/binaries-from-other-arch/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/binaries-from-other-arch/ORIGIN new file mode 100644 index 00000000..7b42a9aa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/binaries-from-other-arch/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/architecture/other/binaries-from-other-arch + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/binaries-from-other-arch/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/binaries-from-other-arch/debian/changelog new file mode 100644 index 00000000..5920ae9d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/binaries-from-other-arch/debian/changelog @@ -0,0 +1,17 @@ +binaries-from-other-arch (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-from-other-arch + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +binaries-from-other-arch (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-from-other-arch + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/binaries-from-other-arch/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/binaries-from-other-arch/debian/control new file mode 100644 index 00000000..329dd6b9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/binaries-from-other-arch/debian/control @@ -0,0 +1,17 @@ +Source: binaries-from-other-arch +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 10) +Homepage: https://lintian.debian.org/ + +Package: binaries-from-other-arch +Architecture: any +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package with a pseudo binary from a different architecture + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/binaries-from-other-arch/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/binaries-from-other-arch/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/binaries-from-other-arch/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/binaries-from-other-arch/debian/dumpobj b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/binaries-from-other-arch/debian/dumpobj new file mode 100644 index 00000000..afdf68ec --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/binaries-from-other-arch/debian/dumpobj @@ -0,0 +1,22 @@ +#!/bin/sh +set -e + +DEB_BUILD_GNU_TYPE="$(dpkg-architecture -qDEB_BUILD_GNU_TYPE)" + +case $DEB_BUILD_GNU_TYPE in +i486-linux-gnu|i586-linux-gnu|i686-linux-gnu|x86_64-linux-gnu) + base64 -d < debian/elfobject + sh debian/dumpobj > debian/fake-guile-object.go + dh binary diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/binaries-from-other-arch/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/binaries-from-other-arch/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/binaries-from-other-arch/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/binaries-from-other-arch/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/binaries-from-other-arch/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/binaries-from-other-arch/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/binaries-from-other-arch/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/binaries-from-other-arch/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/binaries-from-other-arch/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/binaries-from-other-arch/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/binaries-from-other-arch/eval/hints new file mode 100644 index 00000000..fd7b1d87 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/binaries-from-other-arch/eval/hints @@ -0,0 +1 @@ +binaries-from-other-arch (binary): binary-from-other-architecture [usr/bin/elfobject] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/Makefile b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/Makefile new file mode 100644 index 00000000..bf92eaf5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/Makefile @@ -0,0 +1,37 @@ +# This test works on amd64 when the cross-compiler for armhf is installed. +# +# The build prerequisite was not added to Lintian, however, since it was +# not clear how the architecture would be enabled in the Gitlab CI +# runner. +# +# On amd64 or i386, please follow these steps to run the test: +# +# dpkg --add-architecture armhf +# apt update +# apt install gcc-arm-linux-gnueabihf +# +# On all other architectures this may work, but was not tested: +# +# dpkg --add-architecture amd64 +# apt update +# apt install gcc-x86-64-linux-gnu +# +# (Taken from: https://wiki.debian.org/CrossToolchains) + +ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH) + +ifeq ($(ARCH),amd64) +CC := arm-linux-gnueabihf-gcc +else +CC := x86_64-linux-gnu-gcc +endif + +foreign-binary: hello.c + $(CC) $^ -o $@ + +.PHONY: clean +clean: + rm -f foreign-binary + +.PHONY: clean +distclean: clean diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/ORIGIN new file mode 100644 index 00000000..cf5c1819 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/architecture/other/wrong-binary-architecture + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/debian/changelog new file mode 100644 index 00000000..8ee38570 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/debian/changelog @@ -0,0 +1,17 @@ +wrong-binary-architecture (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: wrong-binary-architecture + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +wrong-binary-architecture (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: wrong-binary-architecture + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/debian/control new file mode 100644 index 00000000..9ae403c4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/debian/control @@ -0,0 +1,17 @@ +Source: wrong-binary-architecture +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), gcc-arm-linux-gnueabihf [amd64 i386], gcc-x86-64-linux-gnu [!amd64 !i386] +Homepage: https://lintian.debian.org/ + +Package: wrong-binary-architecture +Architecture: any +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Binary architecture does not match package declaration + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/debian/install b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/debian/install new file mode 100644 index 00000000..c10e5786 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/debian/install @@ -0,0 +1 @@ +foreign-binary usr/bin diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/debian/rules new file mode 100755 index 00000000..2ce6f536 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/debian/rules @@ -0,0 +1,22 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +override_dh_strip: + # do not try to strip cross-compiled binaries with native tooling + +override_dh_shlibdeps: + # do not try to include missing libraries + +override_dh_dwz: + # cross-compiled binaries do not always seem to have a debug section + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/eval/hints new file mode 100644 index 00000000..e2251b3f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/eval/hints @@ -0,0 +1 @@ +wrong-binary-architecture (binary): binary-from-other-architecture [usr/bin/foreign-binary] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/hello.c b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/hello.c new file mode 100644 index 00000000..2fb04e17 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/architecture/other/wrong-binary-architecture/hello.c @@ -0,0 +1,8 @@ +#include +#include + +int main(int argc, char *argv[]) { + + printf("Hello, World!\n"); + exit(0); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/binaries-from-other-arch/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/binaries-from-other-arch/ORIGIN new file mode 100644 index 00000000..80a265ff --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/binaries-from-other-arch/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/corrupted/binaries-from-other-arch + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/binaries-from-other-arch/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/binaries-from-other-arch/debian/changelog new file mode 100644 index 00000000..5920ae9d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/binaries-from-other-arch/debian/changelog @@ -0,0 +1,17 @@ +binaries-from-other-arch (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-from-other-arch + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +binaries-from-other-arch (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-from-other-arch + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/binaries-from-other-arch/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/binaries-from-other-arch/debian/control new file mode 100644 index 00000000..329dd6b9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/binaries-from-other-arch/debian/control @@ -0,0 +1,17 @@ +Source: binaries-from-other-arch +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 10) +Homepage: https://lintian.debian.org/ + +Package: binaries-from-other-arch +Architecture: any +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package with a pseudo binary from a different architecture + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/binaries-from-other-arch/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/binaries-from-other-arch/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/binaries-from-other-arch/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/binaries-from-other-arch/debian/dumpobj b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/binaries-from-other-arch/debian/dumpobj new file mode 100644 index 00000000..afdf68ec --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/binaries-from-other-arch/debian/dumpobj @@ -0,0 +1,22 @@ +#!/bin/sh +set -e + +DEB_BUILD_GNU_TYPE="$(dpkg-architecture -qDEB_BUILD_GNU_TYPE)" + +case $DEB_BUILD_GNU_TYPE in +i486-linux-gnu|i586-linux-gnu|i686-linux-gnu|x86_64-linux-gnu) + base64 -d < debian/elfobject + sh debian/dumpobj > debian/fake-guile-object.go + dh binary diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/binaries-from-other-arch/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/binaries-from-other-arch/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/binaries-from-other-arch/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/binaries-from-other-arch/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/binaries-from-other-arch/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/binaries-from-other-arch/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/binaries-from-other-arch/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/binaries-from-other-arch/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/binaries-from-other-arch/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/binaries-from-other-arch/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/binaries-from-other-arch/eval/hints new file mode 100644 index 00000000..54909bbf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/binaries-from-other-arch/eval/hints @@ -0,0 +1,4 @@ +binaries-from-other-arch (binary): elf-error In ELF header: Section headers are not available! [usr/lib/foo/binaries-from-other-arch/guile/2.2/fake-guile-object.go] +binaries-from-other-arch (binary): elf-error In ELF header: Section headers are not available! [usr/bin/elfobject] +binaries-from-other-arch (binary): elf-error In ELF header: Reading 1080 bytes extends past end of file for section headers [usr/lib/foo/binaries-from-other-arch/guile/2.2/fake-guile-object.go] +binaries-from-other-arch (binary): elf-error In ELF header: Reading 1080 bytes extends past end of file for section headers [usr/bin/elfobject] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/ORIGIN new file mode 100644 index 00000000..d2cb8740 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/corrupted/legacy-debug + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/debian/_symbols b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/debian/_symbols new file mode 100644 index 00000000..46e6af1c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/debian/_symbols @@ -0,0 +1,23 @@ + This line should flag a syntax error +# but this one shouldn't +| although this one should, but for a different reason + and so should this + +libhello.so.0 libhello0 #MINVER# +| libhello0c2 (>= 1.2) , libhelloc0c2 (<< 1.3) +| hello-dbg3| libhelloc0c3|foobar (= 1.2) |hello-dbg2 +| hello-dbg + hello@Base 1.0 +* Build-Dep-Foo: bar + hello2@Base 2.0 4 + hello3@Base 2.0 1 + hello3@Base 2.0 A + dummy + +libhello.so.2 libhello2 #MINVER# +* Build-Depends-Package: libbar +| libhello2 (>= 1:2.3) + hello@Base 2.0 + +libhello.so.0 libhello0 #MINVER# + duplicate@Base 1.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/debian/changelog new file mode 100644 index 00000000..3e50d335 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/debian/changelog @@ -0,0 +1,13 @@ +debug (1.0) unstable; urgency=low + + * NMU. + (uploaded by the maintainer and with repeated version number) + + -- Russ Allbery Tue, 4 Apr 2006 20:27:22 +0000 + +debug (1.0) unstable; urgency=low + + * Initial version. + + -- Russ Allbery Sat, 4 Mar 2006 21:31:06 -0800 + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/debian/compat b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/debian/compat new file mode 100644 index 00000000..7f8f011e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/debian/compat @@ -0,0 +1 @@ +7 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/debian/control new file mode 100644 index 00000000..fcb2b867 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/debian/control @@ -0,0 +1,85 @@ +Source: debug +Section: utils +Priority: optional +Maintainer: Russ Allbery +Build-Depends: debhelper (>= 5.0.0) +Build-Depends-Indep: not-debhelper (>= 0.4.3) +Standards-Version: 3.7.0 + +Package: hello +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for external debugging information + Lintian regression test for external debugging file handling. This test + contains the binary. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: hello-dbg +Priority: optional +Section: debug +Architecture: any +Depends: hello (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} +Description: Test for external debugging information (symbols) + Lintian regression test for external debugging file handling. This test + contains the binary symbols. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libhello0 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for external debugging information (library) + Lintian regression test for external debugging file handling. This test + contains a library. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libhello0-dbg +Section: debug +Priority: optional +Architecture: any +Depends: libhello (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} +Description: Test for external debugging information (library symbols) + Lintian regression test for external debugging file handling. This test + contains the library symbols. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: hi-dbg +Section: debug +Priority: optional +Architecture: any +Depends: foo-pkg, not-libhello0 +Description: Test for external debugging symbols + Lintian regression test for external debugging files handling. This test + contains the library symbols. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: hello-hello-dbg +Section: debug +Priority: optional +Architecture: any +Depends: foo-pkg, not-libhello0, hello +Description: Test for external debugging symbols - another try + Lintian regression test for external debugging files handling. This test + contains the library symbols. This package actually tests a combination of + the above. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/debian/copyright new file mode 100644 index 00000000..5d4f6c29 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/debian/copyright @@ -0,0 +1,4 @@ +Written Sat, 04 Mar 2006 21:30:01 -0800 by Russ Allbery . + +Test for copyright in capital letters. (#464992) +COPYRIGHT RUSS ALLBERY 2006 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/debian/rules new file mode 100755 index 00000000..b6598955 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/debian/rules @@ -0,0 +1,99 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. + +# turn off PIE in CC in case we have a PIEful toolchain: +ifneq ($(findstring -no-pie,$(shell gcc -no-pie 2>&1)),) + CC := gcc +else + CC := gcc -fno-pie -no-pie +endif + +build-indep: + +build-arch: build-stamp + +build-stamp: + dh_testdir + $(CC) -D_REENTRANT -fPIC -c libhello.c + $(CC) -o libhello.so.0.0 -shared -Wl,-soname,libhello.so.0 libhello.o + ln -s libhello.so.0.0 libhello.so + $(CC) -o hello hello.c -L. -lhello + touch build-stamp + +build: build-arch build-indep + +clean: + dh_testdir + dh_testroot + rm -f build-stamp *.o libhello.so.0.0 libhello.so + dh_clean + +install: build-stamp + dh_testdir + dh_testroot + dh_clean -k + install -D hello $(CURDIR)/debian/hello/usr/bin/hello + install -D libhello.so.0.0 \ + $(CURDIR)/debian/libhello0/usr/lib/libhello.so.0.0 + ln -s libhello.so.0.0 \ + $(CURDIR)/debian/libhello0/usr/lib/libhello.so.0 + +# Build architecture-dependent files here. +export DH_OPTIONS +binary-arch: DH_OPTIONS=-a +binary-arch: build-stamp install + dh_testdir + dh_testroot + dh_installchangelogs -N hello-dbg + dh_installdocs + DH_OPTIONS= dh_strip -phello --dbg-package=hello-dbg + DH_OPTIONS= dh_strip -plibhello0 --dbg-package=libhello0-dbg + + # Now break a few things. Copy the debugging data into places it + # shouldn't be. + cp $(CURDIR)/debian/hello-dbg/usr/lib/debug/usr/bin/hello \ + $(CURDIR)/debian/hello/usr/bin/hello.dbg + cp $(CURDIR)/debian/libhello0-dbg/usr/lib/debug/usr/lib/libhello.so.0.0 \ + $(CURDIR)/debian/libhello0-dbg/usr/lib/libhello.so.dbg + + # Put a full copy of the library in libhello0-dbg in /usr/lib/debug, + # which is okay. + install -m 644 libhello.so.0.0 \ + $(CURDIR)/debian/libhello0-dbg/usr/lib/debug/libhello.so.0.0 + + # Also put it in /usr/lib/debug/lib, which isn't. + install -D -m 644 libhello.so.0.0 \ + $(CURDIR)/debian/libhello0-dbg/usr/lib/debug/lib/libhello.so.0.0 + + # Requires a versioned dependency. + dh_icons + + dh_link + dh_compress + dh_fixperms + dh_makeshlibs -X debug + dh_installdeb + dh_shlibdeps -X debug + + # We do this by hand as otherwise dpkg-gensymbols + # will error due to the broken symbols file + # and abort the build; similarly the file in + # the source tree is _symbols so that dpkg + # doesn't attempt to sanity check it + install -d $(CURDIR)/debian/libhello0/DEBIAN + install -m 644 $(CURDIR)/debian/_symbols \ + $(CURDIR)/debian/libhello0/DEBIAN/symbols + # hello doesn't contain any shlibs, but we + # make it contain a symbols file + install -d $(CURDIR)/debian/hello/DEBIAN + install -m 644 $(CURDIR)/debian/_symbols \ + $(CURDIR)/debian/hello/DEBIAN/symbols + + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-indep: +binary: binary-indep binary-arch +.PHONY: build-arch build-indep build binary binary-indep binary-arch clean install diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/eval/hints new file mode 100644 index 00000000..0b0b081e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/eval/hints @@ -0,0 +1,3 @@ +libhello0-dbg (binary): binary-with-bad-dynamic-table [usr/lib/libhello.so.dbg] +hello (binary): binary-with-bad-dynamic-table [usr/bin/hello.dbg] +hello (binary): elf-error In program headers: Unable to find program interpreter name [usr/bin/hello.dbg] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/hello.c b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/hello.c new file mode 100644 index 00000000..76f83373 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/hello.c @@ -0,0 +1,9 @@ +#include +#include "libhello.h" + +int +main(void) +{ + hello(); + exit(0); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/libhello.c b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/libhello.c new file mode 100644 index 00000000..e2f84096 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/libhello.c @@ -0,0 +1,7 @@ +#include + +void +hello(void) +{ + printf("Hello, World!\n"); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/libhello.h b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/libhello.h new file mode 100644 index 00000000..ef774764 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/corrupted/legacy-debug/libhello.h @@ -0,0 +1 @@ +void hello(void); diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/Makefile b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/Makefile new file mode 100644 index 00000000..cf0f2114 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/Makefile @@ -0,0 +1,64 @@ +# turn off PIE in CC in case we have a PIEful toolchain: +ifneq ($(findstring -no-pie,$(shell gcc -no-pie 2>&1)),) + CC := gcc +else + CC := gcc -fno-pie -no-pie +endif + +NOPIE_CFLAGS = $(filter-out -fPIE,$(CFLAGS)) +NOPIE_LDFLAGS = $(filter-out -fPIE -pie,$(LDFLAGS)) +COMPILE:= $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) +COMPILE_NOPIE:= $(CC) $(NOPIE_CFLAGS) $(CPPFLAGS) $(NOPIE_LDFLAGS) +# extract from readelf +GETBUILDID:=./getbuildid + +all: + # rpath not matching any of the exceptions to the rpath checks + # - with profiling enabled. + $(COMPILE_NOPIE) -o basic basic.c -pg -Wl,--rpath,/usr/local/lib + # rpath shipped in the package, but one of {/usr}?/lib + $(COMPILE) -o basiclibrpath basic.c -Wl,--rpath,/usr/lib + # non-special rpath shipped in the package + $(COMPILE) -o basicshippedrpath basic.c -Wl,--rpath,/usr/share/foo + # special rpath shipped in the package, multiple paths + $(COMPILE) -o basicshippedrpathmore basic.c -Wl,--rpath,/usr/lib/binaries-general:/usr/lib/binaries-general/bar + # static version of basic for debugging checks + $(COMPILE_NOPIE) -static -o basic.static basic.c + # static executable to trigger ocaml check + $(COMPILE_NOPIE) -o ocaml-exec ocaml.c + # version with debug + $(COMPILE) -o basicdebug -g3 -Wl,--build-id basic.c + +install: + # according to local debian rules /usr/lib/debug is unstripped + install -d $(DESTDIR)/usr/share/foo/ + install -d $(DESTDIR)/usr/lib/debug/usr/share/foo/ + install -d $(DESTDIR)/usr/lib/foo/ + install -d $(DESTDIR)/usr/bin + + install -m 755 -c basic $(DESTDIR)/usr/share/foo/basic + objcopy --only-keep-debug basic $(DESTDIR)/usr/lib/debug/usr/share/foo/basic + strip -s $(DESTDIR)/usr/lib/debug/usr/share/foo/basic + install -m 755 -c basiclibrpath $(DESTDIR)/usr/lib/foo/basiclibrpath + install -m 755 -c basicshippedrpath $(DESTDIR)/usr/lib/foo/basicshippedrpath + install -m 755 -c ocaml-exec $(DESTDIR)/usr/lib/foo/ocaml-exec + install -m 744 -c basicshippedrpathmore $(DESTDIR)/usr/lib/foo/basicshippedrpathmore + objcopy --only-keep-debug basic $(DESTDIR)/usr/lib/debug/basic + install -d "$(DESTDIR)/usr/lib/debug/.build-id/"`$(GETBUILDID) -s basicdebug` + install -m 755 -c basicdebug $(DESTDIR)/usr/share/foo/basicdebug + # force fake buildid in order to have tag matching ok (deadbeefdeadbeef) + install -d "$(DESTDIR)/usr/lib/debug/.build-id/de" + objcopy --compress-debug-sections basicdebug \ + "$(DESTDIR)/usr/lib/debug/.build-id/de/deadbeefdeadbeef.debug" + install -d "$(DESTDIR)/usr/lib/debug/.build-id/"`$(GETBUILDID) -s basicdebug` + objcopy --compress-debug-sections --only-keep-debug basicdebug \ + "$(DESTDIR)/usr/lib/debug/.build-id/"`$(GETBUILDID) -s basicdebug`"/"`$(GETBUILDID) -f basicdebug`.debug + install -m 755 -c basic.static $(DESTDIR)/usr/lib/debug/ + # according to local debian rules unstripped in name avoid dh_strip to do the work + install -m 755 basicdebug $(DESTDIR)/usr/bin/unstripped + install -m 755 basic.static $(DESTDIR)/usr/bin/static + +clean distclean: + rm -f basic + +check test: diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/ORIGIN new file mode 100644 index 00000000..9bbd0d8b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/debug-symbols/binaries-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/basic.c b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/basic.c new file mode 100644 index 00000000..36180047 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/basic.c @@ -0,0 +1,12 @@ +#include +#include + +int +main(int argc, char *argv[]) +{ + char t[10]; + printf("Hello world!\n"); + /* forces a stack protector */ + (void) strcpy(t,argv[0]); + return (int) t[0]; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/debian/changelog new file mode 100644 index 00000000..dafd072a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/debian/changelog @@ -0,0 +1,17 @@ +binaries-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +binaries-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/debian/control new file mode 100644 index 00000000..7dec9ad2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/debian/control @@ -0,0 +1,17 @@ +Source: binaries-general +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: binaries-general +Architecture: any +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Misc errors related to binaries + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/debian/rules new file mode 100644 index 00000000..3ea7a636 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +override_dh_strip: + dh_strip -X usr/lib/debug -X unstripped -X ocaml + +override_dh_dwz: + # Can error with "deadbeefdeadbeef.debug: Found compressed .debug_info section, not attempting dwz compression" diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/eval/hints new file mode 100644 index 00000000..5a3ede3a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/eval/hints @@ -0,0 +1 @@ +binaries-general (binary): unstripped-binary-or-object [usr/bin/unstripped] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/getbuildid b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/getbuildid new file mode 100755 index 00000000..0060d2b1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/getbuildid @@ -0,0 +1,30 @@ +#!/bin/sh +# get build-id of binary + +set -e + +usage() { + echo "Usage: getbuildid [flag] file"; + echo " print build-id of an object file" + echo "flags:" + echo " -f : full build-id (default)." + echo " -s : short build-id aka the first two characters." +} + +if test $# -lt 1; then usage; exit 77; fi +if test $# -gt 3; then usage; exit 77; fi + +if test $# -eq 1; then + LC_ALL=C readelf -n "$1" | grep -i 'Build Id:' | sed 's/.*:[[:blank:]]*\([[:digit:]|abcdef]*\).*/\1/g' +else + case "x$1" in + 'x-f') + LC_ALL=C readelf -n "$2" | grep -i 'Build Id:' | sed 's/.*:[[:blank:]]*\([[:digit:]|abcdef]*\).*/\1/g' ;; + 'x-s') + LC_ALL=C readelf -n "$2" | grep -i 'Build Id:' | sed 's/.*:[[:blank:]]*\([[:digit:]|abcdef]\{2\}\).*/\1/g' ;; + *) + exit 2; + esac +fi + +exit 0; diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/ocaml.c b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/ocaml.c new file mode 100644 index 00000000..370d17d9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/binaries-general/ocaml.c @@ -0,0 +1,11 @@ +#include + +int +main(int argc, char **argv) +{ + if (argc > 2) { + puts("Caml1999X000"); + } + puts("\n"); + return 0; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/Makefile b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/Makefile new file mode 100644 index 00000000..cf0f2114 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/Makefile @@ -0,0 +1,64 @@ +# turn off PIE in CC in case we have a PIEful toolchain: +ifneq ($(findstring -no-pie,$(shell gcc -no-pie 2>&1)),) + CC := gcc +else + CC := gcc -fno-pie -no-pie +endif + +NOPIE_CFLAGS = $(filter-out -fPIE,$(CFLAGS)) +NOPIE_LDFLAGS = $(filter-out -fPIE -pie,$(LDFLAGS)) +COMPILE:= $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) +COMPILE_NOPIE:= $(CC) $(NOPIE_CFLAGS) $(CPPFLAGS) $(NOPIE_LDFLAGS) +# extract from readelf +GETBUILDID:=./getbuildid + +all: + # rpath not matching any of the exceptions to the rpath checks + # - with profiling enabled. + $(COMPILE_NOPIE) -o basic basic.c -pg -Wl,--rpath,/usr/local/lib + # rpath shipped in the package, but one of {/usr}?/lib + $(COMPILE) -o basiclibrpath basic.c -Wl,--rpath,/usr/lib + # non-special rpath shipped in the package + $(COMPILE) -o basicshippedrpath basic.c -Wl,--rpath,/usr/share/foo + # special rpath shipped in the package, multiple paths + $(COMPILE) -o basicshippedrpathmore basic.c -Wl,--rpath,/usr/lib/binaries-general:/usr/lib/binaries-general/bar + # static version of basic for debugging checks + $(COMPILE_NOPIE) -static -o basic.static basic.c + # static executable to trigger ocaml check + $(COMPILE_NOPIE) -o ocaml-exec ocaml.c + # version with debug + $(COMPILE) -o basicdebug -g3 -Wl,--build-id basic.c + +install: + # according to local debian rules /usr/lib/debug is unstripped + install -d $(DESTDIR)/usr/share/foo/ + install -d $(DESTDIR)/usr/lib/debug/usr/share/foo/ + install -d $(DESTDIR)/usr/lib/foo/ + install -d $(DESTDIR)/usr/bin + + install -m 755 -c basic $(DESTDIR)/usr/share/foo/basic + objcopy --only-keep-debug basic $(DESTDIR)/usr/lib/debug/usr/share/foo/basic + strip -s $(DESTDIR)/usr/lib/debug/usr/share/foo/basic + install -m 755 -c basiclibrpath $(DESTDIR)/usr/lib/foo/basiclibrpath + install -m 755 -c basicshippedrpath $(DESTDIR)/usr/lib/foo/basicshippedrpath + install -m 755 -c ocaml-exec $(DESTDIR)/usr/lib/foo/ocaml-exec + install -m 744 -c basicshippedrpathmore $(DESTDIR)/usr/lib/foo/basicshippedrpathmore + objcopy --only-keep-debug basic $(DESTDIR)/usr/lib/debug/basic + install -d "$(DESTDIR)/usr/lib/debug/.build-id/"`$(GETBUILDID) -s basicdebug` + install -m 755 -c basicdebug $(DESTDIR)/usr/share/foo/basicdebug + # force fake buildid in order to have tag matching ok (deadbeefdeadbeef) + install -d "$(DESTDIR)/usr/lib/debug/.build-id/de" + objcopy --compress-debug-sections basicdebug \ + "$(DESTDIR)/usr/lib/debug/.build-id/de/deadbeefdeadbeef.debug" + install -d "$(DESTDIR)/usr/lib/debug/.build-id/"`$(GETBUILDID) -s basicdebug` + objcopy --compress-debug-sections --only-keep-debug basicdebug \ + "$(DESTDIR)/usr/lib/debug/.build-id/"`$(GETBUILDID) -s basicdebug`"/"`$(GETBUILDID) -f basicdebug`.debug + install -m 755 -c basic.static $(DESTDIR)/usr/lib/debug/ + # according to local debian rules unstripped in name avoid dh_strip to do the work + install -m 755 basicdebug $(DESTDIR)/usr/bin/unstripped + install -m 755 basic.static $(DESTDIR)/usr/bin/static + +clean distclean: + rm -f basic + +check test: diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/ORIGIN new file mode 100644 index 00000000..3b41e862 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/debug-symbols/detached/binaries-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/basic.c b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/basic.c new file mode 100644 index 00000000..36180047 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/basic.c @@ -0,0 +1,12 @@ +#include +#include + +int +main(int argc, char *argv[]) +{ + char t[10]; + printf("Hello world!\n"); + /* forces a stack protector */ + (void) strcpy(t,argv[0]); + return (int) t[0]; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/debian/changelog new file mode 100644 index 00000000..dafd072a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/debian/changelog @@ -0,0 +1,17 @@ +binaries-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +binaries-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/debian/control new file mode 100644 index 00000000..7dec9ad2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/debian/control @@ -0,0 +1,17 @@ +Source: binaries-general +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: binaries-general +Architecture: any +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Misc errors related to binaries + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/debian/rules new file mode 100644 index 00000000..3ea7a636 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +override_dh_strip: + dh_strip -X usr/lib/debug -X unstripped -X ocaml + +override_dh_dwz: + # Can error with "deadbeefdeadbeef.debug: Found compressed .debug_info section, not attempting dwz compression" diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/eval/hints new file mode 100644 index 00000000..849ff303 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/eval/hints @@ -0,0 +1,4 @@ +binaries-general (binary): debug-symbols-not-detached [usr/lib/debug/.build-id/de/deadbeefdeadbeef.debug] +binaries-general (binary): debug-symbols-directly-in-usr-lib-debug [usr/lib/debug/basic] +binaries-general (binary): debug-symbols-directly-in-usr-lib-debug [usr/lib/debug/basic.static] +binaries-general (binary): debug-file-with-no-debug-symbols [usr/lib/debug/usr/share/foo/basic] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/getbuildid b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/getbuildid new file mode 100755 index 00000000..0060d2b1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/getbuildid @@ -0,0 +1,30 @@ +#!/bin/sh +# get build-id of binary + +set -e + +usage() { + echo "Usage: getbuildid [flag] file"; + echo " print build-id of an object file" + echo "flags:" + echo " -f : full build-id (default)." + echo " -s : short build-id aka the first two characters." +} + +if test $# -lt 1; then usage; exit 77; fi +if test $# -gt 3; then usage; exit 77; fi + +if test $# -eq 1; then + LC_ALL=C readelf -n "$1" | grep -i 'Build Id:' | sed 's/.*:[[:blank:]]*\([[:digit:]|abcdef]*\).*/\1/g' +else + case "x$1" in + 'x-f') + LC_ALL=C readelf -n "$2" | grep -i 'Build Id:' | sed 's/.*:[[:blank:]]*\([[:digit:]|abcdef]*\).*/\1/g' ;; + 'x-s') + LC_ALL=C readelf -n "$2" | grep -i 'Build Id:' | sed 's/.*:[[:blank:]]*\([[:digit:]|abcdef]\{2\}\).*/\1/g' ;; + *) + exit 2; + esac +fi + +exit 0; diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/ocaml.c b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/ocaml.c new file mode 100644 index 00000000..370d17d9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/binaries-general/ocaml.c @@ -0,0 +1,11 @@ +#include + +int +main(int argc, char **argv) +{ + if (argc > 2) { + puts("Caml1999X000"); + } + puts("\n"); + return 0; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/ORIGIN new file mode 100644 index 00000000..f339ec8a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/debug-symbols/detached/legacy-debug + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/debian/_symbols b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/debian/_symbols new file mode 100644 index 00000000..46e6af1c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/debian/_symbols @@ -0,0 +1,23 @@ + This line should flag a syntax error +# but this one shouldn't +| although this one should, but for a different reason + and so should this + +libhello.so.0 libhello0 #MINVER# +| libhello0c2 (>= 1.2) , libhelloc0c2 (<< 1.3) +| hello-dbg3| libhelloc0c3|foobar (= 1.2) |hello-dbg2 +| hello-dbg + hello@Base 1.0 +* Build-Dep-Foo: bar + hello2@Base 2.0 4 + hello3@Base 2.0 1 + hello3@Base 2.0 A + dummy + +libhello.so.2 libhello2 #MINVER# +* Build-Depends-Package: libbar +| libhello2 (>= 1:2.3) + hello@Base 2.0 + +libhello.so.0 libhello0 #MINVER# + duplicate@Base 1.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/debian/changelog new file mode 100644 index 00000000..3e50d335 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/debian/changelog @@ -0,0 +1,13 @@ +debug (1.0) unstable; urgency=low + + * NMU. + (uploaded by the maintainer and with repeated version number) + + -- Russ Allbery Tue, 4 Apr 2006 20:27:22 +0000 + +debug (1.0) unstable; urgency=low + + * Initial version. + + -- Russ Allbery Sat, 4 Mar 2006 21:31:06 -0800 + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/debian/compat b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/debian/compat new file mode 100644 index 00000000..7f8f011e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/debian/compat @@ -0,0 +1 @@ +7 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/debian/control new file mode 100644 index 00000000..fcb2b867 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/debian/control @@ -0,0 +1,85 @@ +Source: debug +Section: utils +Priority: optional +Maintainer: Russ Allbery +Build-Depends: debhelper (>= 5.0.0) +Build-Depends-Indep: not-debhelper (>= 0.4.3) +Standards-Version: 3.7.0 + +Package: hello +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for external debugging information + Lintian regression test for external debugging file handling. This test + contains the binary. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: hello-dbg +Priority: optional +Section: debug +Architecture: any +Depends: hello (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} +Description: Test for external debugging information (symbols) + Lintian regression test for external debugging file handling. This test + contains the binary symbols. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libhello0 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for external debugging information (library) + Lintian regression test for external debugging file handling. This test + contains a library. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libhello0-dbg +Section: debug +Priority: optional +Architecture: any +Depends: libhello (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} +Description: Test for external debugging information (library symbols) + Lintian regression test for external debugging file handling. This test + contains the library symbols. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: hi-dbg +Section: debug +Priority: optional +Architecture: any +Depends: foo-pkg, not-libhello0 +Description: Test for external debugging symbols + Lintian regression test for external debugging files handling. This test + contains the library symbols. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: hello-hello-dbg +Section: debug +Priority: optional +Architecture: any +Depends: foo-pkg, not-libhello0, hello +Description: Test for external debugging symbols - another try + Lintian regression test for external debugging files handling. This test + contains the library symbols. This package actually tests a combination of + the above. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/debian/copyright new file mode 100644 index 00000000..5d4f6c29 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/debian/copyright @@ -0,0 +1,4 @@ +Written Sat, 04 Mar 2006 21:30:01 -0800 by Russ Allbery . + +Test for copyright in capital letters. (#464992) +COPYRIGHT RUSS ALLBERY 2006 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/debian/rules new file mode 100755 index 00000000..b6598955 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/debian/rules @@ -0,0 +1,99 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. + +# turn off PIE in CC in case we have a PIEful toolchain: +ifneq ($(findstring -no-pie,$(shell gcc -no-pie 2>&1)),) + CC := gcc +else + CC := gcc -fno-pie -no-pie +endif + +build-indep: + +build-arch: build-stamp + +build-stamp: + dh_testdir + $(CC) -D_REENTRANT -fPIC -c libhello.c + $(CC) -o libhello.so.0.0 -shared -Wl,-soname,libhello.so.0 libhello.o + ln -s libhello.so.0.0 libhello.so + $(CC) -o hello hello.c -L. -lhello + touch build-stamp + +build: build-arch build-indep + +clean: + dh_testdir + dh_testroot + rm -f build-stamp *.o libhello.so.0.0 libhello.so + dh_clean + +install: build-stamp + dh_testdir + dh_testroot + dh_clean -k + install -D hello $(CURDIR)/debian/hello/usr/bin/hello + install -D libhello.so.0.0 \ + $(CURDIR)/debian/libhello0/usr/lib/libhello.so.0.0 + ln -s libhello.so.0.0 \ + $(CURDIR)/debian/libhello0/usr/lib/libhello.so.0 + +# Build architecture-dependent files here. +export DH_OPTIONS +binary-arch: DH_OPTIONS=-a +binary-arch: build-stamp install + dh_testdir + dh_testroot + dh_installchangelogs -N hello-dbg + dh_installdocs + DH_OPTIONS= dh_strip -phello --dbg-package=hello-dbg + DH_OPTIONS= dh_strip -plibhello0 --dbg-package=libhello0-dbg + + # Now break a few things. Copy the debugging data into places it + # shouldn't be. + cp $(CURDIR)/debian/hello-dbg/usr/lib/debug/usr/bin/hello \ + $(CURDIR)/debian/hello/usr/bin/hello.dbg + cp $(CURDIR)/debian/libhello0-dbg/usr/lib/debug/usr/lib/libhello.so.0.0 \ + $(CURDIR)/debian/libhello0-dbg/usr/lib/libhello.so.dbg + + # Put a full copy of the library in libhello0-dbg in /usr/lib/debug, + # which is okay. + install -m 644 libhello.so.0.0 \ + $(CURDIR)/debian/libhello0-dbg/usr/lib/debug/libhello.so.0.0 + + # Also put it in /usr/lib/debug/lib, which isn't. + install -D -m 644 libhello.so.0.0 \ + $(CURDIR)/debian/libhello0-dbg/usr/lib/debug/lib/libhello.so.0.0 + + # Requires a versioned dependency. + dh_icons + + dh_link + dh_compress + dh_fixperms + dh_makeshlibs -X debug + dh_installdeb + dh_shlibdeps -X debug + + # We do this by hand as otherwise dpkg-gensymbols + # will error due to the broken symbols file + # and abort the build; similarly the file in + # the source tree is _symbols so that dpkg + # doesn't attempt to sanity check it + install -d $(CURDIR)/debian/libhello0/DEBIAN + install -m 644 $(CURDIR)/debian/_symbols \ + $(CURDIR)/debian/libhello0/DEBIAN/symbols + # hello doesn't contain any shlibs, but we + # make it contain a symbols file + install -d $(CURDIR)/debian/hello/DEBIAN + install -m 644 $(CURDIR)/debian/_symbols \ + $(CURDIR)/debian/hello/DEBIAN/symbols + + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-indep: +binary: binary-indep binary-arch +.PHONY: build-arch build-indep build binary binary-indep binary-arch clean install diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/eval/hints new file mode 100644 index 00000000..d524d8e5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/eval/hints @@ -0,0 +1,5 @@ +libhello0-dbg (binary): debug-symbols-not-detached [usr/lib/debug/lib/libhello.so.0.0] +libhello0-dbg (binary): debug-symbols-directly-in-usr-lib-debug [usr/lib/debug/libhello.so.0.0] +libhello0-dbg (binary): debug-file-with-no-debug-symbols [usr/lib/debug/usr/lib/libhello.so.0.0] +libhello0-dbg (binary): debug-file-with-no-debug-symbols [usr/lib/debug/lib/libhello.so.0.0] +hello-dbg (binary): debug-file-with-no-debug-symbols [usr/lib/debug/usr/bin/hello] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/hello.c b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/hello.c new file mode 100644 index 00000000..76f83373 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/hello.c @@ -0,0 +1,9 @@ +#include +#include "libhello.h" + +int +main(void) +{ + hello(); + exit(0); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/libhello.c b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/libhello.c new file mode 100644 index 00000000..e2f84096 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/libhello.c @@ -0,0 +1,7 @@ +#include + +void +hello(void) +{ + printf("Hello, World!\n"); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/libhello.h b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/libhello.h new file mode 100644 index 00000000..ef774764 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/detached/legacy-debug/libhello.h @@ -0,0 +1 @@ +void hello(void); diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/INSTALL b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/INSTALL new file mode 100644 index 00000000..3b50ea95 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/INSTALL @@ -0,0 +1,176 @@ +Basic Installation +================== + + These are generic installation instructions. + + The `configure' shell script attempts to guess correct values for +various system-dependent variables used during compilation. It uses +those values to create a `Makefile' in each directory of the package. +It may also create one or more `.h' files containing system-dependent +definitions. Finally, it creates a shell script `config.status' that +you can run in the future to recreate the current configuration, a file +`config.cache' that saves the results of its tests to speed up +reconfiguring, and a file `config.log' containing compiler output +(useful mainly for debugging `configure'). + + If you need to do unusual things to compile the package, please try +to figure out how `configure' could check whether to do them, and mail +diffs or instructions to the address given in the `README' so they can +be considered for the next release. If at some point `config.cache' +contains results you don't want to keep, you may remove or edit it. + + The file `configure.in' is used to create `configure' by a program +called `autoconf'. You only need `configure.in' if you want to change +it or regenerate `configure' using a newer version of `autoconf'. + +The simplest way to compile this package is: + + 1. `cd' to the directory containing the package's source code and type + `./configure' to configure the package for your system. If you're + using `csh' on an old version of System V, you might need to type + `sh ./configure' instead to prevent `csh' from trying to execute + `configure' itself. + + Running `configure' takes a while. While running, it prints some + messages telling which features it is checking for. + + 2. Type `make' to compile the package. + + 3. Optionally, type `make check' to run any self-tests that come with + the package. + + 4. Type `make install' to install the programs and any data files and + documentation. + + 5. You can remove the program binaries and object files from the + source code directory by typing `make clean'. To also remove the + files that `configure' created (so you can compile the package for + a different kind of computer), type `make distclean'. There is + also a `make maintainer-clean' target, but that is intended mainly + for the package's developers. If you use it, you may have to get + all sorts of other programs in order to regenerate files that came + with the distribution. + +Compilers and Options +===================== + + Some systems require unusual options for compilation or linking that +the `configure' script does not know about. You can give `configure' +initial values for variables by setting them in the environment. Using +a Bourne-compatible shell, you can do that on the command line like +this: + CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure + +Or on systems that have the `env' program, you can do it like this: + env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure + +Compiling For Multiple Architectures +==================================== + + You can compile the package for more than one kind of computer at the +same time, by placing the object files for each architecture in their +own directory. To do this, you must use a version of `make' that +supports the `VPATH' variable, such as GNU `make'. `cd' to the +directory where you want the object files and executables to go and run +the `configure' script. `configure' automatically checks for the +source code in the directory that `configure' is in and in `..'. + + If you have to use a `make' that does not supports the `VPATH' +variable, you have to compile the package for one architecture at a time +in the source code directory. After you have installed the package for +one architecture, use `make distclean' before reconfiguring for another +architecture. + +Installation Names +================== + + By default, `make install' will install the package's files in +`/usr/local/bin', `/usr/local/man', etc. You can specify an +installation prefix other than `/usr/local' by giving `configure' the +option `--prefix=PATH'. + + You can specify separate installation prefixes for +architecture-specific files and architecture-independent files. If you +give `configure' the option `--exec-prefix=PATH', the package will use +PATH as the prefix for installing programs and libraries. +Documentation and other data files will still use the regular prefix. + + If the package supports it, you can cause programs to be installed +with an extra prefix or suffix on their names by giving `configure' the +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. + +Optional Features +================= + + Some packages pay attention to `--enable-FEATURE' options to +`configure', where FEATURE indicates an optional part of the package. +They may also pay attention to `--with-PACKAGE' options, where PACKAGE +is something like `gnu-as' or `x' (for the X Window System). The +`README' should mention any `--enable-' and `--with-' options that the +package recognizes. + + For packages that use the X Window System, `configure' can usually +find the X include and library files automatically, but if it doesn't, +you can use the `configure' options `--x-includes=DIR' and +`--x-libraries=DIR' to specify their locations. + +Specifying the System Type +========================== + + There may be some features `configure' can not figure out +automatically, but needs to determine by the type of host the package +will run on. Usually `configure' can figure that out, but if it prints +a message saying it can not guess the host type, give it the +`--host=TYPE' option. TYPE can either be a short name for the system +type, such as `sun4', or a canonical name with three fields: + CPU-COMPANY-SYSTEM + +See the file `config.sub' for the possible values of each field. If +`config.sub' isn't included in this package, then this package doesn't +need to know the host type. + + If you are building compiler tools for cross-compiling, you can also +use the `--target=TYPE' option to select the type of system they will +produce code for and the `--build=TYPE' option to select the type of +system on which you are compiling the package. + +Sharing Defaults +================ + + If you want to set default values for `configure' scripts to share, +you can create a site shell script called `config.site' that gives +default values for variables like `CC', `cache_file', and `prefix'. +`configure' looks for `PREFIX/share/config.site' if it exists, then +`PREFIX/etc/config.site' if it exists. Or, you can set the +`CONFIG_SITE' environment variable to the location of the site script. +A warning: not all `configure' scripts look for a site script. + +Operation Controls +================== + + `configure' recognizes the following options to control how it +operates. + +`--cache-file=FILE' + Use and save the results of the tests in FILE instead of + `./config.cache'. Set FILE to `/dev/null' to disable caching, for + debugging `configure'. + +`--help' + Print a summary of the options to `configure', and exit. + +`--quiet' +`--silent' +`-q' + Do not print messages saying which checks are being made. + +`--srcdir=DIR' + Look for the package's source code in directory DIR. Usually + `configure' can determine that directory automatically. + +`--version' + Print the version of Autoconf used to generate the `configure' + script, and exit. + +`configure' also accepts some other, not widely useful, options. + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/Makefile b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/Makefile new file mode 100644 index 00000000..da1dc555 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/Makefile @@ -0,0 +1,12 @@ +all: hello hello-static + +hello: hello.c + gcc hello.c -o hello + +hello-static: hello.c + gcc -static hello.c -o hello-static + +clean: + rm -f hello hello-static + +distclean: clean diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/ORIGIN new file mode 100644 index 00000000..4d213337 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/debug-symbols/legacy-binary + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/NEWS.Debian b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/NEWS.Debian new file mode 100644 index 00000000..29f561c4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/NEWS.Debian @@ -0,0 +1,12 @@ +binary (4-1.1) UNRELEASED; urgency=high + + This is a Debian NEWS entry that isn't encoded properly in UTF-8: . + It also has a usefull speling error. + + -- Russ Allbery Sun, 14 Oct 2007 17:11:36 -0700 + +binary (1) unstable; urgency=low + + This is another entry but this one isn't syntactically valid. + + -- Russ Allbery 2007-10-14 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/README.Debian b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/README.Debian new file mode 100644 index 00000000..94bcc0ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/README.Debian @@ -0,0 +1,5 @@ +this is a binary package to test lintian's handling of bins. +Check handling of D-Bus and dbus (neither of which should produce +warnings). + + -- Russ Allbery , Wed, 6 Feb 2008 18:35:11 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/changelog new file mode 100644 index 00000000..35b8c0bf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/changelog @@ -0,0 +1,47 @@ +binary (4-1.1) unstable; urgency=low + + * I'm doing an comaintainer-upload, acknowledging a NMU, but with a version + number which suggests I'm doing a NMU myself. + + Lintian-maintainers: Please don't update this changelog, otherwise you'll + probably break the checks/nmu checks. + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 01:49:42 +0200 + +binary (4-1) unstable; urgency=low + + * Weird version number for the new check for accidents with native + packaging. + * Date was fixed by BR and this test was put on changelog-file-strange-date + due to dpkg bug, see #794674. + + -- Marc 'HE' Brockschmidt Thu, 15 Apr 2004 23:33:51 +0200 + +binary (4) unstable; urgency=low + + * Add big file to /usr/share to trigger the big-usr-share check + + -- Jeroen van Wolffelaar Fri, 27 Feb 2004 10:15:59 +0100 + +binary (3) unstable; urgency=unlimited + + * Add some bogus menu entries using su-to-root in a bogus way + + -- Jeroen van Wolffelaar Thu, 12 Feb 2004 20:11:22 +0100 + +binary (2) unstable; urgency=low + + * Added an INSTALL document which policy 6.3 suggests not to do + + -- Sean 'Shaleh' Perry Tue, 30 Jan 2001 15:23:59 -0800 + +binary (1) unstable; urgency=low + + * hello.c added + * hello-static is same as hello, but compiled statically + * added a menu entry which lacks a Section + * added a postinst + * postinst calls suidregister which is no longer policy compliant + + -- Sean 'Shaleh' Perry Wed, 10 Jan 2001 08:55:34 -0800 + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/conffiles b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/conffiles new file mode 100644 index 00000000..d1a08433 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/conffiles @@ -0,0 +1 @@ +/etc/menu-methods/lintian diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/control new file mode 100644 index 00000000..c797357b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/control @@ -0,0 +1,42 @@ +Source: binary +Section: misc +Priority: optional +Maintainer: Lintian Maintainers +Uploaders: Co-maintainer one , Jeroen van Wolffelaar , Co-maintainer three +Standards-Version: 3.2.1 +Homepage: http://lintian.debian.org/ +Vcs-Svn: http://svn.wolffelaar.nl/lintian/trunk +XS-Vcs-Browser: http://svn.wolffelaar.nl/lintian/trunk +XS-Dm-Upload-Allowed: yes + +Package: binary +Architecture: any +Pre-Depends: ${shlibs:Depends}, xorg, binary-data (= ${source:Version}), libssl0.9.8 +Homepage: +Vcs-Svn: http://svn.wolffelaar.nl/lintian/trunk +Description: test handling of binary files + Regression test for lintian's handling of binary files for debian. This + is checked for picky spelling errors. + . + This package list [ subversion | gconf ] should not be flagged as a spelling + mistake. The spelling correction for dont should be correct. + . + Homepage: http://lintian.debian.org/ + +Package: binary-data +Architecture: all +Depends: binary (= ${source:Version}), libssl-not-openssl, + libssl0.9.8 | or-something-else +Description: test handling of binary relationships + Regression test for lintian's checking of package relationships between + arch:any and arch:all packages. + . + This mention of subversion should be flagged as a spelling mistake. + +#Package: binary-comment +#Architecture: space-almonds +#Depends: * +#Depends: * +#Description: test comment support +# Yes, comments are actually allowed in debian/control, so none of the +# above should produce errors. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/copyright new file mode 100644 index 00000000..1d6806de --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/copyright @@ -0,0 +1,15 @@ +hello.c is released under public domain. This is distributed in the hope that +it will be useful, but without any warranty; without even the implied warranty +of merchantability or fitness for a particular purpose. + +A reference to /usr/share/common-licenses/GPL-2 to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +Test for old FSF address: + +Free Software Foundation, Inc., 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. + +Test for deprecated ntionl ncoding. + +Improper capitalization of linux or debian isn't caught here. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/doc-base b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/doc-base new file mode 100644 index 00000000..7e5b38f2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/doc-base @@ -0,0 +1,41 @@ +Document: binary!docs +Title: Broken debian binary doc-base control file +Author: Russ Allbery +Abstract: This control file exercises various tests of doc-base control + files, including several things that aren't tested yet. The third and + fourth one has trailing whitespace. + . + This section has a speling error and bad character. + . + The above separator was fine. +Section: Non/Existant +Unknown: Some field + + + +Format: debiandoc-sgML +Files: /usr/share/doc/binary/binary.sgml.gz +Unknown: Some field + +Format: ESP +Index: /usr/share/doc/binary/binary.txt + +Index: /usr/share/doc/binary/html/index.html + /usr/share/doc/binary/html/ch1.html + /usr/share/doc/binary/html/ch4.html + + +Format: HTML +Index: /usr/share/doc/binary/html/index.html +Files: /usr/share/doc/binary/html/ch?.h*l + /usr/share/doc/binary/hml/*.html + +Format: inFO +Files: /usr/share/info/binary.info.gz + +Format: HTML +Index: /usr/share/doc/binary/html/index.html +Files: /usr/share/doc/binary/html/ch5.html + /usr/share/doc/binary/html/ch6.html + + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/goodbye.desktop b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/goodbye.desktop new file mode 100644 index 00000000..f6ce8e3f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/goodbye.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Name:Goodbye +# Name=Goodbye +Comment=Say hello! +SpecialTag=This doesn't exist! +Exec=goodbye +icon=hello +Terminal=true +Type=Application +Categories=WeirdStuff;Screensaver; +Encoding=ISO-10646-1 +[Other Entry] +Name=Goodbye diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/hello.desktop b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/hello.desktop new file mode 100644 index 00000000..f7954685 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/hello.desktop @@ -0,0 +1,14 @@ +# some random comment + +# [Foo Bar] +[KDE Desktop Entry] +Name=Hello +Name[en_US]=Hello +Comment=Say hello! +Exec=kdesu hello +Icon=hello +Terminal=true +Type=Application +Categories=GNOME;GTK;System;Applet;X-Foo;Settings; +Encoding=UTF-8 +OnlyShowIn=GNOME; diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/menu b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/menu new file mode 100644 index 00000000..e8972f4f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/menu @@ -0,0 +1,26 @@ +?package(binary):needs=text title="Hello World" command="/usr/bin/hello" +?package(binary):needs=text section="Applications/System" title="Run cfdisk (0)" command="/usr/bin/su-to-root cfdisk" +?package(binary):needs="text" section="Applications/System/Hardware" title="Run cfdisk (1)" command="sux -p cfdisk" +?package(binary):needs="x11" section="Window Managers" title="Run xfdisk" command="/usr/sbin/su-to-root -c xfdisk" +?package(binary):needs="wm" section="Applications/System/Administration" title="Run fdisk-wm" command="su-to-root -c hello" +?package(binary):section="Apps/Games" title="I'm not root!" command="su-to-root -c imnothere" +?package(binary):needs="text" section="Apps/System" title="I'm not here!" command="/imnothere" +?package(binary,other-binary):\ + needs="text"\ + section="Applications/Shells"\ + title="more than one required"\ + command="other-bin -s omething" +?package(binary):needs="wmmodule" section="WindowManagers/Modules" title="somemodule" command="ModuleCmd" +?package(binary):needs="wmmodule" section="FVWM Modules" title="somemodule" command="ModuleCmd" +?package(binary):needs="text" section="Applications/System/Administration" title="I'm not in /usr/bin!" command="iminusrbin" +?package(binary):needs="text"\ + section="Applications/System/Administration"\ + title="I'm not root!" command="su-to-root -c imnothere" +?package(binary):needs="text" section="Applications/System/Administration"\ + title="Run cfdisk (0)" command="cfdisk" +?package(binary):needs="text" section="Applications/System/Administration" title="Hello World" command="/usr/bin/hello" +?package(binary):needs="wm" section="FVWM Modules" title="Fake Module" command="hello" +?package(binary):needs="fvwmmodule" section="Window Maker" title="Fake Module"\ + command="hello" +?package(binary):needs="x11" section="Applications/System/Hardware" title="Run xfdisk" command="su-to-root -c 'xfdisk -f'" +?package(binary):needs="text" section="Applications/System/Administration" title="foo" command="sh /path/to/foo" diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/menu-method b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/menu-method new file mode 100644 index 00000000..9f07bd73 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/menu-method @@ -0,0 +1,22 @@ +#!/usr/bin/install-menu + +# -*- mode: shell-script; -*- +#I need menu-1! +# + +!include notmenu.h + +compat="menu-2" + +outputencoding="UTF-8"; +outputlanguage="C"; + +x11 = AppEntry("false"); +text = AppEntry("true"); + +startmenu = ""; +endmenu = ""; +submenutitle = ""; +rootprefix = "/var/lib/lintian/menu"; +userprefix = ".local/share/lintian/menu"; + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/postinst new file mode 100644 index 00000000..29e18619 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/postinst @@ -0,0 +1,6 @@ +#! /bin/bash -e + +if [ $1 eq 'configure' ] +then + suidregister hello-static root root 4755 +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/rules new file mode 100755 index 00000000..a962ea92 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/rules @@ -0,0 +1,92 @@ +#!/usr/bin/make -f + +tmp=debian/tmp + +# This reference to $(PWD) should not cause an error but the one below +# should. +build-arch: + make + echo $(PWD) + +build: build-arch + +clean: + make -i clean + [ ! -f debian/files ] || rm -f debian/files + [ ! -f debian/substvars ] || rm -f debian/substvars + [ ! -d debian/tmp ] || rm -rf debian/tmp + [ ! -d debian/binary ] || rm -rf debian/binary + [ ! -d debian/binary-data ] || rm -rf debian/binary-data + +binary-arch: build + install -d $(tmp)/usr/bin + install -d $(tmp)/boot/hello + install -m 755 hello $(tmp)/usr/bin + touch $(tmp)/usr/bin/iminusrbin + chmod 755 $(tmp)/usr/bin/iminusrbin + install -m 755 hello-static $(tmp)/usr/bin + strip $(tmp)/usr/bin/hello-static + install -m 755 hello-static $(tmp)/usr/bin/hello.static + strip --remove-section=.comment --remove-section=.note $(tmp)/usr/bin/hello.static + ln $(tmp)/usr/bin/hello.static $(tmp)/usr/bin/static-hello + install -m 755 hello-static $(tmp)/boot/hello + strip --remove-section=.comment --remove-section=.note $(tmp)/boot/hello/hello-static + install -d $(tmp)/usr/share/doc/binary + install -m 644 INSTALL $(tmp)/usr/share/doc/binary + install -d $(tmp)/usr/share/doc/binary/html + echo '' > $(tmp)/usr/share/doc/binary/html/index.html + echo '' > $(tmp)/usr/share/doc/binary/html/ch1.html + ln -s ../html/./ch1.html $(tmp)/usr/share/doc/binary/html/ch2.html + ln -s /usr/share/doc/binary/htm/ch1.html $(tmp)/usr/share/doc/binary/html/ch3.html + echo '' > $(tmp)/usr/share/doc/binary/html/ch5.html + ln $(tmp)/usr/share/doc/binary/html/ch5.html \ + $(tmp)/usr/share/doc/binary/html/ch6.html + install -d $(tmp)/usr/share/menu + install -d $(tmp)/usr/lib/menu + install -d $(tmp)/usr/share/binary + install -m 644 debian/menu $(tmp)/usr/share/menu/binary + install -m 644 debian/menu $(tmp)/usr/lib/menu/binary + install -d $(tmp)/etc/menu-methods + install -m 755 debian/menu-method $(tmp)/etc/menu-methods/lintian + install -d $(tmp)/usr/share/doc-base + install -m 644 debian/doc-base $(tmp)/usr/share/doc-base/binary + touch '$(tmp)/usr/share/doc-base/space ' + install -m 644 debian/README.Debian $(tmp)/usr/share/doc/binary + install -m 644 debian/NEWS.Debian $(tmp)/usr/share/doc/binary + gzip -n -9 $(tmp)/usr/share/doc/binary/NEWS.Debian + install -m 644 debian/copyright $(tmp)/usr/share/doc/binary + install -m 644 debian/changelog $(tmp)/usr/share/doc/binary + #gzip -n -9 $(tmp)/usr/share/doc/binary/changelog + install -d $(tmp)/DEBIAN + install -m 755 debian/postinst $(tmp)/DEBIAN + install -m 644 debian/conffiles $(tmp)/DEBIAN + + install -d $(tmp)/usr/share/applications + install -m 644 debian/hello.desktop \ + $(tmp)/usr/share/applications/hello.desktop + install -m 755 debian/goodbye.desktop \ + $(tmp)/usr/share/applications/goodbye.desktop + + # should be ok... + echo boe > $(tmp)/usr/bar + ln $(tmp)/usr/bar $(tmp)/usr/foo + # but this isn't + echo boe > $(tmp)/usr/bar2 + ln $(tmp)/usr/bar2 $(tmp)/usr/share/baz + + dd if=/dev/zero of=$(tmp)/usr/share/binary/largefile bs=1024 count=4000 + + install -d debian/binary-data/DEBIAN + install -d debian/binary-data/usr/share/doc + ln -s binary debian/binary-data/usr/share/doc/binary-data + + dpkg-shlibdeps $(tmp)/usr/bin/hello + dpkg-gencontrol -pbinary -isp + dpkg-gencontrol -pbinary-data -Pdebian/binary-data -isp + + dpkg --build debian/tmp .. + dpkg --build debian/binary-data .. + +binary: binary-arch + +.PHONY: build-arch build binary-arch binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/templates b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/templates new file mode 100644 index 00000000..3d928614 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/templates @@ -0,0 +1,16 @@ +# The debconf templates defined here are the sort that you'd use if +# providing a wordlist and an ispell dictionary for the language +# "perl". This shouldn't trigger warnings about not using debconf-po. + +Template: shared/packages-ispell +Type: text +Description: + +Template: shared/packages-wordlist +Type: text +Description: + +Template: miscfiles/languages +Type: text +Default: perl (Pathologically Eclectic Rubbish Lister) +Description: diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/watch b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/eval/hints new file mode 100644 index 00000000..19858fb7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/eval/hints @@ -0,0 +1 @@ +binary (binary): unstripped-binary-or-object [usr/bin/hello] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/hello.c b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/hello.c new file mode 100644 index 00000000..2fb04e17 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-binary/hello.c @@ -0,0 +1,8 @@ +#include +#include + +int main(int argc, char *argv[]) { + + printf("Hello, World!\n"); + exit(0); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/ORIGIN new file mode 100644 index 00000000..7b99b852 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/debug-symbols/legacy-debug + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/debian/_symbols b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/debian/_symbols new file mode 100644 index 00000000..46e6af1c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/debian/_symbols @@ -0,0 +1,23 @@ + This line should flag a syntax error +# but this one shouldn't +| although this one should, but for a different reason + and so should this + +libhello.so.0 libhello0 #MINVER# +| libhello0c2 (>= 1.2) , libhelloc0c2 (<< 1.3) +| hello-dbg3| libhelloc0c3|foobar (= 1.2) |hello-dbg2 +| hello-dbg + hello@Base 1.0 +* Build-Dep-Foo: bar + hello2@Base 2.0 4 + hello3@Base 2.0 1 + hello3@Base 2.0 A + dummy + +libhello.so.2 libhello2 #MINVER# +* Build-Depends-Package: libbar +| libhello2 (>= 1:2.3) + hello@Base 2.0 + +libhello.so.0 libhello0 #MINVER# + duplicate@Base 1.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/debian/changelog new file mode 100644 index 00000000..3e50d335 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/debian/changelog @@ -0,0 +1,13 @@ +debug (1.0) unstable; urgency=low + + * NMU. + (uploaded by the maintainer and with repeated version number) + + -- Russ Allbery Tue, 4 Apr 2006 20:27:22 +0000 + +debug (1.0) unstable; urgency=low + + * Initial version. + + -- Russ Allbery Sat, 4 Mar 2006 21:31:06 -0800 + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/debian/compat b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/debian/compat new file mode 100644 index 00000000..7f8f011e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/debian/compat @@ -0,0 +1 @@ +7 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/debian/control new file mode 100644 index 00000000..fcb2b867 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/debian/control @@ -0,0 +1,85 @@ +Source: debug +Section: utils +Priority: optional +Maintainer: Russ Allbery +Build-Depends: debhelper (>= 5.0.0) +Build-Depends-Indep: not-debhelper (>= 0.4.3) +Standards-Version: 3.7.0 + +Package: hello +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for external debugging information + Lintian regression test for external debugging file handling. This test + contains the binary. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: hello-dbg +Priority: optional +Section: debug +Architecture: any +Depends: hello (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} +Description: Test for external debugging information (symbols) + Lintian regression test for external debugging file handling. This test + contains the binary symbols. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libhello0 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for external debugging information (library) + Lintian regression test for external debugging file handling. This test + contains a library. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libhello0-dbg +Section: debug +Priority: optional +Architecture: any +Depends: libhello (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} +Description: Test for external debugging information (library symbols) + Lintian regression test for external debugging file handling. This test + contains the library symbols. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: hi-dbg +Section: debug +Priority: optional +Architecture: any +Depends: foo-pkg, not-libhello0 +Description: Test for external debugging symbols + Lintian regression test for external debugging files handling. This test + contains the library symbols. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: hello-hello-dbg +Section: debug +Priority: optional +Architecture: any +Depends: foo-pkg, not-libhello0, hello +Description: Test for external debugging symbols - another try + Lintian regression test for external debugging files handling. This test + contains the library symbols. This package actually tests a combination of + the above. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/debian/copyright new file mode 100644 index 00000000..5d4f6c29 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/debian/copyright @@ -0,0 +1,4 @@ +Written Sat, 04 Mar 2006 21:30:01 -0800 by Russ Allbery . + +Test for copyright in capital letters. (#464992) +COPYRIGHT RUSS ALLBERY 2006 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/debian/rules new file mode 100755 index 00000000..b6598955 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/debian/rules @@ -0,0 +1,99 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. + +# turn off PIE in CC in case we have a PIEful toolchain: +ifneq ($(findstring -no-pie,$(shell gcc -no-pie 2>&1)),) + CC := gcc +else + CC := gcc -fno-pie -no-pie +endif + +build-indep: + +build-arch: build-stamp + +build-stamp: + dh_testdir + $(CC) -D_REENTRANT -fPIC -c libhello.c + $(CC) -o libhello.so.0.0 -shared -Wl,-soname,libhello.so.0 libhello.o + ln -s libhello.so.0.0 libhello.so + $(CC) -o hello hello.c -L. -lhello + touch build-stamp + +build: build-arch build-indep + +clean: + dh_testdir + dh_testroot + rm -f build-stamp *.o libhello.so.0.0 libhello.so + dh_clean + +install: build-stamp + dh_testdir + dh_testroot + dh_clean -k + install -D hello $(CURDIR)/debian/hello/usr/bin/hello + install -D libhello.so.0.0 \ + $(CURDIR)/debian/libhello0/usr/lib/libhello.so.0.0 + ln -s libhello.so.0.0 \ + $(CURDIR)/debian/libhello0/usr/lib/libhello.so.0 + +# Build architecture-dependent files here. +export DH_OPTIONS +binary-arch: DH_OPTIONS=-a +binary-arch: build-stamp install + dh_testdir + dh_testroot + dh_installchangelogs -N hello-dbg + dh_installdocs + DH_OPTIONS= dh_strip -phello --dbg-package=hello-dbg + DH_OPTIONS= dh_strip -plibhello0 --dbg-package=libhello0-dbg + + # Now break a few things. Copy the debugging data into places it + # shouldn't be. + cp $(CURDIR)/debian/hello-dbg/usr/lib/debug/usr/bin/hello \ + $(CURDIR)/debian/hello/usr/bin/hello.dbg + cp $(CURDIR)/debian/libhello0-dbg/usr/lib/debug/usr/lib/libhello.so.0.0 \ + $(CURDIR)/debian/libhello0-dbg/usr/lib/libhello.so.dbg + + # Put a full copy of the library in libhello0-dbg in /usr/lib/debug, + # which is okay. + install -m 644 libhello.so.0.0 \ + $(CURDIR)/debian/libhello0-dbg/usr/lib/debug/libhello.so.0.0 + + # Also put it in /usr/lib/debug/lib, which isn't. + install -D -m 644 libhello.so.0.0 \ + $(CURDIR)/debian/libhello0-dbg/usr/lib/debug/lib/libhello.so.0.0 + + # Requires a versioned dependency. + dh_icons + + dh_link + dh_compress + dh_fixperms + dh_makeshlibs -X debug + dh_installdeb + dh_shlibdeps -X debug + + # We do this by hand as otherwise dpkg-gensymbols + # will error due to the broken symbols file + # and abort the build; similarly the file in + # the source tree is _symbols so that dpkg + # doesn't attempt to sanity check it + install -d $(CURDIR)/debian/libhello0/DEBIAN + install -m 644 $(CURDIR)/debian/_symbols \ + $(CURDIR)/debian/libhello0/DEBIAN/symbols + # hello doesn't contain any shlibs, but we + # make it contain a symbols file + install -d $(CURDIR)/debian/hello/DEBIAN + install -m 644 $(CURDIR)/debian/_symbols \ + $(CURDIR)/debian/hello/DEBIAN/symbols + + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-indep: +binary: binary-indep binary-arch +.PHONY: build-arch build-indep build binary binary-indep binary-arch clean install diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/eval/hints new file mode 100644 index 00000000..44d7a55f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/eval/hints @@ -0,0 +1 @@ +hello (binary): unstripped-binary-or-object [usr/bin/hello.dbg] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/hello.c b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/hello.c new file mode 100644 index 00000000..76f83373 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/hello.c @@ -0,0 +1,9 @@ +#include +#include "libhello.h" + +int +main(void) +{ + hello(); + exit(0); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/libhello.c b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/libhello.c new file mode 100644 index 00000000..e2f84096 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/libhello.c @@ -0,0 +1,7 @@ +#include + +void +hello(void) +{ + printf("Hello, World!\n"); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/libhello.h b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/libhello.h new file mode 100644 index 00000000..ef774764 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-debug/libhello.h @@ -0,0 +1 @@ +void hello(void); diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/Makefile b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/Makefile new file mode 100644 index 00000000..657dc2ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/Makefile @@ -0,0 +1,55 @@ +# This is the correct way to build a lib + +CC=gcc +CFLAGS=-g -Wall -Winline -O2 +LDFLAGS=-Wl,--no-as-needed + +OBJS=baz.o extra.o +SHOBJS=baz.sho extra.sho +NOPICOBJS = $(SHOBJS) + +all: libbaz1.a libbaz2.a libbaz1.so.1.0.3b libbaz2.so libbaz3.so.1.0.3b \ + libbaz.so + +libbaz2.so: libbaz2.so.1.0 + ln -sf $^ $@ +libbaz2.so.1.0: libbaz2.so.1.0.3b + ln -sf $^ $@ + +# Oops, forget the soname altogether +libbaz1.so.1.0.3b: $(NOPICOBJS) + $(CC) $(LDFLAGS) -o $@ -shared $^ -lc + +libbaz2.so.1.0.3b: $(SHOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz2.so.1.0 $^ -lc + +# Non-PIC. We can't test this on all architectures +libbaz3.so.1.0.3b: $(NOPICOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz3.so.1 $^ -lc + +# Non-versioned SONAME. +libbaz.so: $(SHOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz.so $^ -lc + +#%.o-noreentrant: %.c +# $(CC) $(LDFLAGS) $(CFLAGS) -o $@ -c $< + +%.sho: %.c + $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -fPIC -o $@ -c $< + +%.o: %.c + $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -o $@ -c $< + +libbaz2.a: $(OBJS) + ar cq $@ $(OBJS) + strip --strip-unneeded --remove-section=.comment \ + --remove-section=-note $@ + ranlib $@ + +# The pic one in the .a (wrong), no archive table +libbaz1.a: $(SHOBJS) + ar cqS $@ $^ + strip --strip-unneeded --remove-section=.comment \ + --remove-section=-note $@ +clean: + rm -f *.a *.o *.so* *.sho diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/ORIGIN new file mode 100644 index 00000000..10048f07 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/debug-symbols/legacy-libbaz + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/baz.c b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/baz.c new file mode 100644 index 00000000..4d5fc458 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/baz.c @@ -0,0 +1,6 @@ +#include + +double pw(double p) +{ + return exp(p); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/changelog new file mode 100644 index 00000000..44c0a832 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/changelog @@ -0,0 +1,6 @@ +libbaz (1-1) unstable; urgency=low + + * Initial setup + + -- Sean 'Shaleh' Perry Tue, 30 Jan 2001 15:23:59 -0800 + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/compat b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/compat new file mode 100644 index 00000000..b1bd38b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/compat @@ -0,0 +1 @@ +13 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/control new file mode 100644 index 00000000..15066870 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/control @@ -0,0 +1,58 @@ +Source: libbaz +Section: libs +Priority: optional +Maintainer: Lintian Maintainer +Build-depends: debhelper (>=4) +Standards-Version: 3.2.1 + +Package: libbaz1 +Architecture: any +Provides: libbaz +Description: test handling of library packages + Regression test for lintian's handling of libraries. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz1-dev +Architecture: any +Depends: libbaz1 (= ${source:Version}), perlapi-5.8.8 +Description: development package + Regression test for lintian's handling of libraries (dev). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2 +Architecture: any +Depends: ${shlibs:Depends}, libssl0.9.8 +Description: test handling of library packages (good) + Regression test for lintian's handling of libraries (good). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2-dev +Architecture: any +Depends: ${shlibs:Depends}, libbaz2 (= ${source:Version}) +Description: development package (good) + Regression test for lintian's handling of libraries (dev good). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2-dbg +Architecture: any +Depends: libbaz2 (= ${binary:Version}) +Priority: optional +Description: debugging package + Regression test for lintian's handling of libraries (debug). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/copyright new file mode 100644 index 00000000..a874c878 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/copyright @@ -0,0 +1,8 @@ +This package is released under public domain. This is distributed in the hope +that it will be useful, but without any warranty; without even the implied +warranty of merchantability or fitness for a particular purpose. + +A reference to /usr/share/common-licenses/GPL-2 to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +However, this has an OpenSSL exception. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/dev.postinst b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/dev.postinst new file mode 100644 index 00000000..683e3cc5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/dev.postinst @@ -0,0 +1,4 @@ +#!/bin/sh -e + +$PKG=libbaz1-dev + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/dev.prerm b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/dev.prerm new file mode 100644 index 00000000..683e3cc5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/dev.prerm @@ -0,0 +1,4 @@ +#!/bin/sh -e + +$PKG=libbaz1-dev + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/lib.postinst b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/lib.postinst new file mode 100644 index 00000000..ec0b98ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/lib.postinst @@ -0,0 +1,10 @@ +#!/bin/sh -e + +$PKG=libbaz1 + +if [ "$1" = "configure" ]; then + if [ -d /usr/doc -a ! -e /usr/doc/$PKG -a -d /usr/share/doc/$PKG ] +; then + ln -sf ../share/doc/$PKG /usr/doc/$PKG + fi +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/lib.prerm b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/lib.prerm new file mode 100644 index 00000000..50e37c3b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/lib.prerm @@ -0,0 +1,7 @@ +#!/bin/sh -e + +$PKG=libbaz1 + +if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/$PKG ]; then + rm -f /usr/doc/$PKG +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/lib.shlibs b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/lib.shlibs new file mode 100644 index 00000000..b88e2882 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/lib.shlibs @@ -0,0 +1,8 @@ +libdoesntexist2 1.0 libbaz1 +libdoesntexist2 1.0 libbaz1 +libbaz2 1.1 libbaz +libbaz3 1 libbaz1 (>> 1-1) +libbaz4 1 libbaz1 (= 1-1) +libbaz5 1 libbaz2 +udeb: libdoesntexist2 1.0 libbaz2 +udeb: libdoesntexist2 1.0 libbaz2 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/lib.symbols b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/lib.symbols new file mode 100644 index 00000000..72f9d8ab --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/lib.symbols @@ -0,0 +1,3 @@ +libbaz.so.2 libbaz1 #MINVER# + pw 1-1 + foo 1.1-1 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/rules new file mode 100755 index 00000000..fa99bc8a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/rules @@ -0,0 +1,121 @@ +#!/usr/bin/make -f + +lib_tmp=debian/tmp-lib +dev_tmp=debian/tmp-dev + +LIB=libbaz1 +DEV=libbaz1-dev + +VENDORARCH := $(shell perl -MConfig -wE'say substr($$Config{vendorarch},1)') + +build-arch: + $(MAKE) + +build-indep: + +build: build-arch build-indep + +clean: + $(MAKE) clean + dh_clean -plibbaz2 -plibbaz2-dev + rm -f debian/files debian/substvars + rm -rf $(lib_tmp) $(dev_tmp) + +# Now the correct libbaz2-dev package +binary-correct: + install -d debian/libbaz2-dev/usr/lib + cp -a libbaz2.a libbaz2.so debian/libbaz2-dev/usr/lib + # usually, I'd also include some .h files to /usr/include + + # Now the correct libbaz2 package + install -d debian/libbaz2/usr/lib + cp -a libbaz2.so.* debian/libbaz2/usr/lib + chmod a-x debian/libbaz2/usr/lib/* + + # General stuff that is tested in other testsets: + dh_installdocs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_compress -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + + # Mess up the libbaz2 changelog files to test the symlink handling. + ln -s /usr/share/doc/lintian/changelog.gz \ + debian/libbaz2/usr/share/doc/libbaz2/changelog.gz + install -m 644 debian/changelog \ + debian/libbaz2-dev/usr/share/doc/libbaz2-dev/foo + ln -s foo debian/libbaz2-dev/usr/share/doc/libbaz2-dev/changelog + + # Okay, if either line is omitted, it should be noted + dh_strip --dbg-package=libbaz2-dbg -plibbaz2 -plibbaz2-dev + dh_makeshlibs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_shlibdeps -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + + # and again, regular packaging stuff + dh_installdeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + echo udeb: libbaz2 1.0 libbaz2 >> debian/libbaz2/DEBIAN/shlibs + dh_gencontrol -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_builddeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + +# and the incorrect one +binary-arch: build-arch binary-correct + # first, the lib package + install -d $(lib_tmp)/usr/lib + # resp. no soname (check), wrong soname (check), and no-pic (check) + cp -a libbaz1.so.1.0* $(lib_tmp)/usr/lib + cp -a libbaz2.so.1.0.3b $(lib_tmp)/usr/lib/libfoo2.so.1.0.3b + install -m644 libbaz3.so.1.0.3b $(lib_tmp)/usr/lib/libbaz3.so.1.0.3b + # let's include the .a in the non-dev too (TODO) + # Also, libbaz1.a hasn't a symbol table (TODO) + cp -a *.a $(lib_tmp)/usr/lib + # And a wrong .so symlink (wrong, only in -dev, TODO) + ln -s libfoo3.so.0.9 $(lib_tmp)/usr/lib/libfoo3.so + # And a wrong .so.X symlink (wrong, should point to a real existing + # shlib, TODO) + ln -s libfoo.so.0.9.1 $(lib_tmp)/usr/lib/libfoo.so.0.9 + # And a plain .so (wrong, TODO) + touch $(lib_tmp)/usr/lib/libbar2.so + # And a non-versioned SONAME. + install -m644 libbaz.so $(lib_tmp)/usr/lib/libbaz.so + strip --remove-section=.comment --strip-unneeded $(lib_tmp)/usr/lib/libbaz.so + # Pretend to be a Perl module to test a lack of Perl dependencies. + install -d $(lib_tmp)/$(VENDORARCH)/auto/Foo + install -m 644 libbaz2.so.1.0.3b $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + strip $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + + install -d $(lib_tmp)/usr/share/doc/$(LIB) + install -m 644 debian/copyright $(lib_tmp)/usr/share/doc/$(LIB) + install -m 644 debian/changelog $(lib_tmp)/usr/share/doc/$(LIB) + gzip -n -9 $(lib_tmp)/usr/share/doc/$(LIB)/changelog + install -d $(lib_tmp)/DEBIAN + install -m 755 debian/lib.postinst $(lib_tmp)/DEBIAN/postinst + install -m 755 debian/lib.prerm $(lib_tmp)/DEBIAN/prerm + touch $(lib_tmp)/usr/share/doc/README.Debian + #dpkg-shlibdeps $(lib_tmp)/usr/lib/libbaz.so.1.0 + install -m 755 debian/lib.shlibs $(lib_tmp)/DEBIAN/shlibs + install -m 755 debian/lib.symbols $(lib_tmp)/DEBIAN/symbols + dpkg-gencontrol -isp -p$(LIB) -P$(lib_tmp) + dpkg --build $(lib_tmp) .. + + # now the -dev package + install -d $(dev_tmp)/usr/include + install -d $(lib_tmp)/usr/lib + # let's also install the .so at the same time... (wrong, TODO) + cp -a *.a *.so.* $(lib_tmp)/usr/lib + # and fuck up permission (TODO) + chmod a+x $(lib_tmp)/usr/lib/*.a + # Pretend to be a Perl module to test a lack of Perl dependencies. + install -d $(dev_tmp)/$(VENDORARCH)/auto/Foo + install -m 644 libbaz2.so.1.0.3b $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + strip $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + install -d $(dev_tmp)/usr/share/doc + ln -s $(LIB) $(dev_tmp)/usr/share/doc/$(DEV) + install -d $(dev_tmp)/DEBIAN + install -m 755 debian/dev.postinst $(dev_tmp)/DEBIAN/postinst + install -m 755 debian/dev.prerm $(dev_tmp)/DEBIAN/prerm + dpkg-gencontrol -isp -p$(DEV) -P$(dev_tmp) + dpkg --build $(dev_tmp) .. + + +binary: binary-arch + +# The mention of binary-indep here should be sufficient to suppress the +# warning that it's not present. +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/source.lintian-overrides b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/source.lintian-overrides new file mode 100644 index 00000000..6008d271 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/source.lintian-overrides @@ -0,0 +1 @@ +libbaz source: maintainer-script-lacks-debhelper-token diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/watch b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/eval/hints new file mode 100644 index 00000000..12155946 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/eval/hints @@ -0,0 +1,3 @@ +libbaz1 (binary): unstripped-binary-or-object [usr/lib/libfoo2.so.1.0.3b] +libbaz1 (binary): unstripped-binary-or-object [usr/lib/libbaz3.so.1.0.3b] +libbaz1 (binary): unstripped-binary-or-object [usr/lib/libbaz1.so.1.0.3b] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/extra.c b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/legacy-libbaz/extra.c new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/Makefile b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/Makefile new file mode 100644 index 00000000..bf92eaf5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/Makefile @@ -0,0 +1,37 @@ +# This test works on amd64 when the cross-compiler for armhf is installed. +# +# The build prerequisite was not added to Lintian, however, since it was +# not clear how the architecture would be enabled in the Gitlab CI +# runner. +# +# On amd64 or i386, please follow these steps to run the test: +# +# dpkg --add-architecture armhf +# apt update +# apt install gcc-arm-linux-gnueabihf +# +# On all other architectures this may work, but was not tested: +# +# dpkg --add-architecture amd64 +# apt update +# apt install gcc-x86-64-linux-gnu +# +# (Taken from: https://wiki.debian.org/CrossToolchains) + +ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH) + +ifeq ($(ARCH),amd64) +CC := arm-linux-gnueabihf-gcc +else +CC := x86_64-linux-gnu-gcc +endif + +foreign-binary: hello.c + $(CC) $^ -o $@ + +.PHONY: clean +clean: + rm -f foreign-binary + +.PHONY: clean +distclean: clean diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/ORIGIN new file mode 100644 index 00000000..81a558f3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/debug-symbols/wrong-binary-architecture + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/debian/changelog new file mode 100644 index 00000000..8ee38570 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/debian/changelog @@ -0,0 +1,17 @@ +wrong-binary-architecture (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: wrong-binary-architecture + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +wrong-binary-architecture (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: wrong-binary-architecture + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/debian/control new file mode 100644 index 00000000..9ae403c4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/debian/control @@ -0,0 +1,17 @@ +Source: wrong-binary-architecture +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), gcc-arm-linux-gnueabihf [amd64 i386], gcc-x86-64-linux-gnu [!amd64 !i386] +Homepage: https://lintian.debian.org/ + +Package: wrong-binary-architecture +Architecture: any +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Binary architecture does not match package declaration + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/debian/install b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/debian/install new file mode 100644 index 00000000..c10e5786 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/debian/install @@ -0,0 +1 @@ +foreign-binary usr/bin diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/debian/rules new file mode 100755 index 00000000..2ce6f536 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/debian/rules @@ -0,0 +1,22 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +override_dh_strip: + # do not try to strip cross-compiled binaries with native tooling + +override_dh_shlibdeps: + # do not try to include missing libraries + +override_dh_dwz: + # cross-compiled binaries do not always seem to have a debug section + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/eval/hints new file mode 100644 index 00000000..1116da1c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/eval/hints @@ -0,0 +1 @@ +wrong-binary-architecture (binary): unstripped-binary-or-object [usr/bin/foreign-binary] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/hello.c b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/hello.c new file mode 100644 index 00000000..2fb04e17 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/debug-symbols/wrong-binary-architecture/hello.c @@ -0,0 +1,8 @@ +#include +#include + +int main(int argc, char *argv[]) { + + printf("Hello, World!\n"); + exit(0); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/Makefile b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/Makefile new file mode 100644 index 00000000..f1e06f8b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/Makefile @@ -0,0 +1,35 @@ +# turn off PIE in CC in case we have a PIEful toolchain: +ifneq ($(findstring -no-pie,$(shell ${CC} -no-pie 2>&1)),) + CCWEAK := ${CC} +else + CCWEAK := ${CC} -fno-pie -no-pie +endif + +all: weak.1 strong.1 + # Build without dpkg-buildflags. + $(CCWEAK) -o weak -g \ + -fno-stack-protector \ + -Wl,-z,norelro \ + -U_FORTIFY_SOURCE \ + hello.c + $(CC) -o strong \ + $(shell dpkg-buildflags --get CPPFLAGS) \ + $(shell dpkg-buildflags --get CFLAGS) \ + $(shell dpkg-buildflags --get LDFLAGS) \ + hello.c +%.1: base.pod + sed s/@NAME@/$(basename $@)/g < $< | \ + pod2man --name $(basename $@) --section 1 > $@ + +install: + install -d $(DESTDIR)/usr/bin/ + install -d $(DESTDIR)/usr/share/man/man1 + install -m 755 -c weak $(DESTDIR)/usr/bin/weak + install -m 755 -c strong $(DESTDIR)/usr/bin/strong + install -m 644 -c weak.1 $(DESTDIR)/usr/share/man/man1/weak.1 + install -m 644 -c strong.1 $(DESTDIR)/usr/share/man/man1/strong.1 + +clean distclean: + rm -f weak strong *.1 + +check test: diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/ORIGIN new file mode 100644 index 00000000..c74ee246 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/hardening/binaries-hardening + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/base.pod b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/base.pod new file mode 100644 index 00000000..1e900d79 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/base.pod @@ -0,0 +1,12 @@ +=head1 NAME + +@NAME@ -- binary that does something + +=head1 SYNOPSIS + + @NAME@ [options] + +=head1 DESCRIPTION + +@NAME@ does something very useful. + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/debian/changelog new file mode 100644 index 00000000..eb20ef50 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/debian/changelog @@ -0,0 +1,17 @@ +binaries-hardening (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-hardening + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +binaries-hardening (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-hardening + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/debian/control new file mode 100644 index 00000000..304a8965 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/debian/control @@ -0,0 +1,17 @@ +Source: binaries-hardening +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: binaries-hardening +Architecture: any +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for missing hardening features + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/eval/hints new file mode 100644 index 00000000..43f2544f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/eval/hints @@ -0,0 +1,4 @@ +binaries-hardening (binary): hardening-no-relro [usr/bin/weak] +binaries-hardening (binary): hardening-no-pie [usr/bin/weak] +binaries-hardening (binary): hardening-no-fortify-functions [usr/bin/weak] +binaries-hardening (binary): hardening-no-bindnow [usr/bin/weak] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/hello.c b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/hello.c new file mode 100644 index 00000000..0ee9099e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/binaries-hardening/hello.c @@ -0,0 +1,18 @@ +#include +#include + +void +report(char *string) +{ + char buf[80]; + int len; + + strcpy(buf, string); + fprintf(stdout, "Hello world from %s!\n%n", buf, &len); +} + +int +main(int argc, char *argv[]) +{ + report(argv[0]); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/rust-binary-hardening/Makefile b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/rust-binary-hardening/Makefile new file mode 100644 index 00000000..039f5839 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/rust-binary-hardening/Makefile @@ -0,0 +1,9 @@ +hello: + rustc hello.rs + +install: + install -d $(DESTDIR)/usr/bin/ + install hello $(DESTDIR)/usr/bin/ + +clean distclean: + -rm hello diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/rust-binary-hardening/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/rust-binary-hardening/ORIGIN new file mode 100644 index 00000000..62f0988b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/rust-binary-hardening/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/hardening/rust-binary-hardening + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/rust-binary-hardening/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/rust-binary-hardening/debian/changelog new file mode 100644 index 00000000..c1b0181e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/rust-binary-hardening/debian/changelog @@ -0,0 +1,17 @@ +rust-binary-hardening (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: rust-binary-hardening + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +rust-binary-hardening (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: rust-binary-hardening + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/rust-binary-hardening/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/rust-binary-hardening/debian/control new file mode 100644 index 00000000..821a993f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/rust-binary-hardening/debian/control @@ -0,0 +1,20 @@ +Source: rust-binary-hardening +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), rustc +Rules-Requires-Root: no +Homepage: https://lintian.debian.org/ + +Package: rust-binary-hardening +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Built-Using: rustc (= 1.85.0+dfsg3-1) +Static-Built-Using: rustc (= 1.85.0+dfsg3-1) +Description: Check for missing hardening features in rust programs + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/rust-binary-hardening/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/rust-binary-hardening/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/rust-binary-hardening/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/rust-binary-hardening/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/rust-binary-hardening/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/rust-binary-hardening/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/rust-binary-hardening/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/rust-binary-hardening/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/rust-binary-hardening/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/rust-binary-hardening/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/rust-binary-hardening/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/rust-binary-hardening/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/rust-binary-hardening/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/rust-binary-hardening/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/rust-binary-hardening/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/rust-binary-hardening/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/rust-binary-hardening/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/rust-binary-hardening/hello.rs b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/rust-binary-hardening/hello.rs new file mode 100644 index 00000000..e3d94396 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/rust-binary-hardening/hello.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, I am a binary written in Rust!"); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/Makefile b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/Makefile new file mode 100644 index 00000000..bf92eaf5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/Makefile @@ -0,0 +1,37 @@ +# This test works on amd64 when the cross-compiler for armhf is installed. +# +# The build prerequisite was not added to Lintian, however, since it was +# not clear how the architecture would be enabled in the Gitlab CI +# runner. +# +# On amd64 or i386, please follow these steps to run the test: +# +# dpkg --add-architecture armhf +# apt update +# apt install gcc-arm-linux-gnueabihf +# +# On all other architectures this may work, but was not tested: +# +# dpkg --add-architecture amd64 +# apt update +# apt install gcc-x86-64-linux-gnu +# +# (Taken from: https://wiki.debian.org/CrossToolchains) + +ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH) + +ifeq ($(ARCH),amd64) +CC := arm-linux-gnueabihf-gcc +else +CC := x86_64-linux-gnu-gcc +endif + +foreign-binary: hello.c + $(CC) $^ -o $@ + +.PHONY: clean +clean: + rm -f foreign-binary + +.PHONY: clean +distclean: clean diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/ORIGIN new file mode 100644 index 00000000..0ec3fa76 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/hardening/wrong-binary-architecture + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/debian/changelog new file mode 100644 index 00000000..8ee38570 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/debian/changelog @@ -0,0 +1,17 @@ +wrong-binary-architecture (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: wrong-binary-architecture + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +wrong-binary-architecture (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: wrong-binary-architecture + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/debian/control new file mode 100644 index 00000000..9ae403c4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/debian/control @@ -0,0 +1,17 @@ +Source: wrong-binary-architecture +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), gcc-arm-linux-gnueabihf [amd64 i386], gcc-x86-64-linux-gnu [!amd64 !i386] +Homepage: https://lintian.debian.org/ + +Package: wrong-binary-architecture +Architecture: any +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Binary architecture does not match package declaration + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/debian/install b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/debian/install new file mode 100644 index 00000000..c10e5786 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/debian/install @@ -0,0 +1 @@ +foreign-binary usr/bin diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/debian/rules new file mode 100755 index 00000000..2ce6f536 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/debian/rules @@ -0,0 +1,22 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +override_dh_strip: + # do not try to strip cross-compiled binaries with native tooling + +override_dh_shlibdeps: + # do not try to include missing libraries + +override_dh_dwz: + # cross-compiled binaries do not always seem to have a debug section + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/eval/hints new file mode 100644 index 00000000..68d40109 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/eval/hints @@ -0,0 +1 @@ +wrong-binary-architecture (binary): hardening-no-bindnow [usr/bin/foreign-binary] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/hello.c b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/hello.c new file mode 100644 index 00000000..2fb04e17 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/hardening/wrong-binary-architecture/hello.c @@ -0,0 +1,8 @@ +#include +#include + +int main(int argc, char *argv[]) { + + printf("Hello, World!\n"); + exit(0); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/INSTALL b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/INSTALL new file mode 100644 index 00000000..3b50ea95 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/INSTALL @@ -0,0 +1,176 @@ +Basic Installation +================== + + These are generic installation instructions. + + The `configure' shell script attempts to guess correct values for +various system-dependent variables used during compilation. It uses +those values to create a `Makefile' in each directory of the package. +It may also create one or more `.h' files containing system-dependent +definitions. Finally, it creates a shell script `config.status' that +you can run in the future to recreate the current configuration, a file +`config.cache' that saves the results of its tests to speed up +reconfiguring, and a file `config.log' containing compiler output +(useful mainly for debugging `configure'). + + If you need to do unusual things to compile the package, please try +to figure out how `configure' could check whether to do them, and mail +diffs or instructions to the address given in the `README' so they can +be considered for the next release. If at some point `config.cache' +contains results you don't want to keep, you may remove or edit it. + + The file `configure.in' is used to create `configure' by a program +called `autoconf'. You only need `configure.in' if you want to change +it or regenerate `configure' using a newer version of `autoconf'. + +The simplest way to compile this package is: + + 1. `cd' to the directory containing the package's source code and type + `./configure' to configure the package for your system. If you're + using `csh' on an old version of System V, you might need to type + `sh ./configure' instead to prevent `csh' from trying to execute + `configure' itself. + + Running `configure' takes a while. While running, it prints some + messages telling which features it is checking for. + + 2. Type `make' to compile the package. + + 3. Optionally, type `make check' to run any self-tests that come with + the package. + + 4. Type `make install' to install the programs and any data files and + documentation. + + 5. You can remove the program binaries and object files from the + source code directory by typing `make clean'. To also remove the + files that `configure' created (so you can compile the package for + a different kind of computer), type `make distclean'. There is + also a `make maintainer-clean' target, but that is intended mainly + for the package's developers. If you use it, you may have to get + all sorts of other programs in order to regenerate files that came + with the distribution. + +Compilers and Options +===================== + + Some systems require unusual options for compilation or linking that +the `configure' script does not know about. You can give `configure' +initial values for variables by setting them in the environment. Using +a Bourne-compatible shell, you can do that on the command line like +this: + CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure + +Or on systems that have the `env' program, you can do it like this: + env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure + +Compiling For Multiple Architectures +==================================== + + You can compile the package for more than one kind of computer at the +same time, by placing the object files for each architecture in their +own directory. To do this, you must use a version of `make' that +supports the `VPATH' variable, such as GNU `make'. `cd' to the +directory where you want the object files and executables to go and run +the `configure' script. `configure' automatically checks for the +source code in the directory that `configure' is in and in `..'. + + If you have to use a `make' that does not supports the `VPATH' +variable, you have to compile the package for one architecture at a time +in the source code directory. After you have installed the package for +one architecture, use `make distclean' before reconfiguring for another +architecture. + +Installation Names +================== + + By default, `make install' will install the package's files in +`/usr/local/bin', `/usr/local/man', etc. You can specify an +installation prefix other than `/usr/local' by giving `configure' the +option `--prefix=PATH'. + + You can specify separate installation prefixes for +architecture-specific files and architecture-independent files. If you +give `configure' the option `--exec-prefix=PATH', the package will use +PATH as the prefix for installing programs and libraries. +Documentation and other data files will still use the regular prefix. + + If the package supports it, you can cause programs to be installed +with an extra prefix or suffix on their names by giving `configure' the +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. + +Optional Features +================= + + Some packages pay attention to `--enable-FEATURE' options to +`configure', where FEATURE indicates an optional part of the package. +They may also pay attention to `--with-PACKAGE' options, where PACKAGE +is something like `gnu-as' or `x' (for the X Window System). The +`README' should mention any `--enable-' and `--with-' options that the +package recognizes. + + For packages that use the X Window System, `configure' can usually +find the X include and library files automatically, but if it doesn't, +you can use the `configure' options `--x-includes=DIR' and +`--x-libraries=DIR' to specify their locations. + +Specifying the System Type +========================== + + There may be some features `configure' can not figure out +automatically, but needs to determine by the type of host the package +will run on. Usually `configure' can figure that out, but if it prints +a message saying it can not guess the host type, give it the +`--host=TYPE' option. TYPE can either be a short name for the system +type, such as `sun4', or a canonical name with three fields: + CPU-COMPANY-SYSTEM + +See the file `config.sub' for the possible values of each field. If +`config.sub' isn't included in this package, then this package doesn't +need to know the host type. + + If you are building compiler tools for cross-compiling, you can also +use the `--target=TYPE' option to select the type of system they will +produce code for and the `--build=TYPE' option to select the type of +system on which you are compiling the package. + +Sharing Defaults +================ + + If you want to set default values for `configure' scripts to share, +you can create a site shell script called `config.site' that gives +default values for variables like `CC', `cache_file', and `prefix'. +`configure' looks for `PREFIX/share/config.site' if it exists, then +`PREFIX/etc/config.site' if it exists. Or, you can set the +`CONFIG_SITE' environment variable to the location of the site script. +A warning: not all `configure' scripts look for a site script. + +Operation Controls +================== + + `configure' recognizes the following options to control how it +operates. + +`--cache-file=FILE' + Use and save the results of the tests in FILE instead of + `./config.cache'. Set FILE to `/dev/null' to disable caching, for + debugging `configure'. + +`--help' + Print a summary of the options to `configure', and exit. + +`--quiet' +`--silent' +`-q' + Do not print messages saying which checks are being made. + +`--srcdir=DIR' + Look for the package's source code in directory DIR. Usually + `configure' can determine that directory automatically. + +`--version' + Print the version of Autoconf used to generate the `configure' + script, and exit. + +`configure' also accepts some other, not widely useful, options. + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/Makefile b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/Makefile new file mode 100644 index 00000000..da1dc555 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/Makefile @@ -0,0 +1,12 @@ +all: hello hello-static + +hello: hello.c + gcc hello.c -o hello + +hello-static: hello.c + gcc -static hello.c -o hello-static + +clean: + rm -f hello hello-static + +distclean: clean diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/ORIGIN new file mode 100644 index 00000000..ac68af0f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/legacy-binary + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/NEWS.Debian b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/NEWS.Debian new file mode 100644 index 00000000..29f561c4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/NEWS.Debian @@ -0,0 +1,12 @@ +binary (4-1.1) UNRELEASED; urgency=high + + This is a Debian NEWS entry that isn't encoded properly in UTF-8: . + It also has a usefull speling error. + + -- Russ Allbery Sun, 14 Oct 2007 17:11:36 -0700 + +binary (1) unstable; urgency=low + + This is another entry but this one isn't syntactically valid. + + -- Russ Allbery 2007-10-14 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/README.Debian b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/README.Debian new file mode 100644 index 00000000..94bcc0ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/README.Debian @@ -0,0 +1,5 @@ +this is a binary package to test lintian's handling of bins. +Check handling of D-Bus and dbus (neither of which should produce +warnings). + + -- Russ Allbery , Wed, 6 Feb 2008 18:35:11 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/changelog new file mode 100644 index 00000000..35b8c0bf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/changelog @@ -0,0 +1,47 @@ +binary (4-1.1) unstable; urgency=low + + * I'm doing an comaintainer-upload, acknowledging a NMU, but with a version + number which suggests I'm doing a NMU myself. + + Lintian-maintainers: Please don't update this changelog, otherwise you'll + probably break the checks/nmu checks. + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 01:49:42 +0200 + +binary (4-1) unstable; urgency=low + + * Weird version number for the new check for accidents with native + packaging. + * Date was fixed by BR and this test was put on changelog-file-strange-date + due to dpkg bug, see #794674. + + -- Marc 'HE' Brockschmidt Thu, 15 Apr 2004 23:33:51 +0200 + +binary (4) unstable; urgency=low + + * Add big file to /usr/share to trigger the big-usr-share check + + -- Jeroen van Wolffelaar Fri, 27 Feb 2004 10:15:59 +0100 + +binary (3) unstable; urgency=unlimited + + * Add some bogus menu entries using su-to-root in a bogus way + + -- Jeroen van Wolffelaar Thu, 12 Feb 2004 20:11:22 +0100 + +binary (2) unstable; urgency=low + + * Added an INSTALL document which policy 6.3 suggests not to do + + -- Sean 'Shaleh' Perry Tue, 30 Jan 2001 15:23:59 -0800 + +binary (1) unstable; urgency=low + + * hello.c added + * hello-static is same as hello, but compiled statically + * added a menu entry which lacks a Section + * added a postinst + * postinst calls suidregister which is no longer policy compliant + + -- Sean 'Shaleh' Perry Wed, 10 Jan 2001 08:55:34 -0800 + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/conffiles b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/conffiles new file mode 100644 index 00000000..d1a08433 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/conffiles @@ -0,0 +1 @@ +/etc/menu-methods/lintian diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/control new file mode 100644 index 00000000..c797357b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/control @@ -0,0 +1,42 @@ +Source: binary +Section: misc +Priority: optional +Maintainer: Lintian Maintainers +Uploaders: Co-maintainer one , Jeroen van Wolffelaar , Co-maintainer three +Standards-Version: 3.2.1 +Homepage: http://lintian.debian.org/ +Vcs-Svn: http://svn.wolffelaar.nl/lintian/trunk +XS-Vcs-Browser: http://svn.wolffelaar.nl/lintian/trunk +XS-Dm-Upload-Allowed: yes + +Package: binary +Architecture: any +Pre-Depends: ${shlibs:Depends}, xorg, binary-data (= ${source:Version}), libssl0.9.8 +Homepage: +Vcs-Svn: http://svn.wolffelaar.nl/lintian/trunk +Description: test handling of binary files + Regression test for lintian's handling of binary files for debian. This + is checked for picky spelling errors. + . + This package list [ subversion | gconf ] should not be flagged as a spelling + mistake. The spelling correction for dont should be correct. + . + Homepage: http://lintian.debian.org/ + +Package: binary-data +Architecture: all +Depends: binary (= ${source:Version}), libssl-not-openssl, + libssl0.9.8 | or-something-else +Description: test handling of binary relationships + Regression test for lintian's checking of package relationships between + arch:any and arch:all packages. + . + This mention of subversion should be flagged as a spelling mistake. + +#Package: binary-comment +#Architecture: space-almonds +#Depends: * +#Depends: * +#Description: test comment support +# Yes, comments are actually allowed in debian/control, so none of the +# above should produce errors. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/copyright new file mode 100644 index 00000000..1d6806de --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/copyright @@ -0,0 +1,15 @@ +hello.c is released under public domain. This is distributed in the hope that +it will be useful, but without any warranty; without even the implied warranty +of merchantability or fitness for a particular purpose. + +A reference to /usr/share/common-licenses/GPL-2 to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +Test for old FSF address: + +Free Software Foundation, Inc., 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. + +Test for deprecated ntionl ncoding. + +Improper capitalization of linux or debian isn't caught here. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/doc-base b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/doc-base new file mode 100644 index 00000000..7e5b38f2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/doc-base @@ -0,0 +1,41 @@ +Document: binary!docs +Title: Broken debian binary doc-base control file +Author: Russ Allbery +Abstract: This control file exercises various tests of doc-base control + files, including several things that aren't tested yet. The third and + fourth one has trailing whitespace. + . + This section has a speling error and bad character. + . + The above separator was fine. +Section: Non/Existant +Unknown: Some field + + + +Format: debiandoc-sgML +Files: /usr/share/doc/binary/binary.sgml.gz +Unknown: Some field + +Format: ESP +Index: /usr/share/doc/binary/binary.txt + +Index: /usr/share/doc/binary/html/index.html + /usr/share/doc/binary/html/ch1.html + /usr/share/doc/binary/html/ch4.html + + +Format: HTML +Index: /usr/share/doc/binary/html/index.html +Files: /usr/share/doc/binary/html/ch?.h*l + /usr/share/doc/binary/hml/*.html + +Format: inFO +Files: /usr/share/info/binary.info.gz + +Format: HTML +Index: /usr/share/doc/binary/html/index.html +Files: /usr/share/doc/binary/html/ch5.html + /usr/share/doc/binary/html/ch6.html + + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/goodbye.desktop b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/goodbye.desktop new file mode 100644 index 00000000..f6ce8e3f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/goodbye.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Name:Goodbye +# Name=Goodbye +Comment=Say hello! +SpecialTag=This doesn't exist! +Exec=goodbye +icon=hello +Terminal=true +Type=Application +Categories=WeirdStuff;Screensaver; +Encoding=ISO-10646-1 +[Other Entry] +Name=Goodbye diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/hello.desktop b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/hello.desktop new file mode 100644 index 00000000..f7954685 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/hello.desktop @@ -0,0 +1,14 @@ +# some random comment + +# [Foo Bar] +[KDE Desktop Entry] +Name=Hello +Name[en_US]=Hello +Comment=Say hello! +Exec=kdesu hello +Icon=hello +Terminal=true +Type=Application +Categories=GNOME;GTK;System;Applet;X-Foo;Settings; +Encoding=UTF-8 +OnlyShowIn=GNOME; diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/menu b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/menu new file mode 100644 index 00000000..e8972f4f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/menu @@ -0,0 +1,26 @@ +?package(binary):needs=text title="Hello World" command="/usr/bin/hello" +?package(binary):needs=text section="Applications/System" title="Run cfdisk (0)" command="/usr/bin/su-to-root cfdisk" +?package(binary):needs="text" section="Applications/System/Hardware" title="Run cfdisk (1)" command="sux -p cfdisk" +?package(binary):needs="x11" section="Window Managers" title="Run xfdisk" command="/usr/sbin/su-to-root -c xfdisk" +?package(binary):needs="wm" section="Applications/System/Administration" title="Run fdisk-wm" command="su-to-root -c hello" +?package(binary):section="Apps/Games" title="I'm not root!" command="su-to-root -c imnothere" +?package(binary):needs="text" section="Apps/System" title="I'm not here!" command="/imnothere" +?package(binary,other-binary):\ + needs="text"\ + section="Applications/Shells"\ + title="more than one required"\ + command="other-bin -s omething" +?package(binary):needs="wmmodule" section="WindowManagers/Modules" title="somemodule" command="ModuleCmd" +?package(binary):needs="wmmodule" section="FVWM Modules" title="somemodule" command="ModuleCmd" +?package(binary):needs="text" section="Applications/System/Administration" title="I'm not in /usr/bin!" command="iminusrbin" +?package(binary):needs="text"\ + section="Applications/System/Administration"\ + title="I'm not root!" command="su-to-root -c imnothere" +?package(binary):needs="text" section="Applications/System/Administration"\ + title="Run cfdisk (0)" command="cfdisk" +?package(binary):needs="text" section="Applications/System/Administration" title="Hello World" command="/usr/bin/hello" +?package(binary):needs="wm" section="FVWM Modules" title="Fake Module" command="hello" +?package(binary):needs="fvwmmodule" section="Window Maker" title="Fake Module"\ + command="hello" +?package(binary):needs="x11" section="Applications/System/Hardware" title="Run xfdisk" command="su-to-root -c 'xfdisk -f'" +?package(binary):needs="text" section="Applications/System/Administration" title="foo" command="sh /path/to/foo" diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/menu-method b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/menu-method new file mode 100644 index 00000000..9f07bd73 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/menu-method @@ -0,0 +1,22 @@ +#!/usr/bin/install-menu + +# -*- mode: shell-script; -*- +#I need menu-1! +# + +!include notmenu.h + +compat="menu-2" + +outputencoding="UTF-8"; +outputlanguage="C"; + +x11 = AppEntry("false"); +text = AppEntry("true"); + +startmenu = ""; +endmenu = ""; +submenutitle = ""; +rootprefix = "/var/lib/lintian/menu"; +userprefix = ".local/share/lintian/menu"; + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/postinst new file mode 100644 index 00000000..29e18619 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/postinst @@ -0,0 +1,6 @@ +#! /bin/bash -e + +if [ $1 eq 'configure' ] +then + suidregister hello-static root root 4755 +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/rules new file mode 100755 index 00000000..a962ea92 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/rules @@ -0,0 +1,92 @@ +#!/usr/bin/make -f + +tmp=debian/tmp + +# This reference to $(PWD) should not cause an error but the one below +# should. +build-arch: + make + echo $(PWD) + +build: build-arch + +clean: + make -i clean + [ ! -f debian/files ] || rm -f debian/files + [ ! -f debian/substvars ] || rm -f debian/substvars + [ ! -d debian/tmp ] || rm -rf debian/tmp + [ ! -d debian/binary ] || rm -rf debian/binary + [ ! -d debian/binary-data ] || rm -rf debian/binary-data + +binary-arch: build + install -d $(tmp)/usr/bin + install -d $(tmp)/boot/hello + install -m 755 hello $(tmp)/usr/bin + touch $(tmp)/usr/bin/iminusrbin + chmod 755 $(tmp)/usr/bin/iminusrbin + install -m 755 hello-static $(tmp)/usr/bin + strip $(tmp)/usr/bin/hello-static + install -m 755 hello-static $(tmp)/usr/bin/hello.static + strip --remove-section=.comment --remove-section=.note $(tmp)/usr/bin/hello.static + ln $(tmp)/usr/bin/hello.static $(tmp)/usr/bin/static-hello + install -m 755 hello-static $(tmp)/boot/hello + strip --remove-section=.comment --remove-section=.note $(tmp)/boot/hello/hello-static + install -d $(tmp)/usr/share/doc/binary + install -m 644 INSTALL $(tmp)/usr/share/doc/binary + install -d $(tmp)/usr/share/doc/binary/html + echo '' > $(tmp)/usr/share/doc/binary/html/index.html + echo '' > $(tmp)/usr/share/doc/binary/html/ch1.html + ln -s ../html/./ch1.html $(tmp)/usr/share/doc/binary/html/ch2.html + ln -s /usr/share/doc/binary/htm/ch1.html $(tmp)/usr/share/doc/binary/html/ch3.html + echo '' > $(tmp)/usr/share/doc/binary/html/ch5.html + ln $(tmp)/usr/share/doc/binary/html/ch5.html \ + $(tmp)/usr/share/doc/binary/html/ch6.html + install -d $(tmp)/usr/share/menu + install -d $(tmp)/usr/lib/menu + install -d $(tmp)/usr/share/binary + install -m 644 debian/menu $(tmp)/usr/share/menu/binary + install -m 644 debian/menu $(tmp)/usr/lib/menu/binary + install -d $(tmp)/etc/menu-methods + install -m 755 debian/menu-method $(tmp)/etc/menu-methods/lintian + install -d $(tmp)/usr/share/doc-base + install -m 644 debian/doc-base $(tmp)/usr/share/doc-base/binary + touch '$(tmp)/usr/share/doc-base/space ' + install -m 644 debian/README.Debian $(tmp)/usr/share/doc/binary + install -m 644 debian/NEWS.Debian $(tmp)/usr/share/doc/binary + gzip -n -9 $(tmp)/usr/share/doc/binary/NEWS.Debian + install -m 644 debian/copyright $(tmp)/usr/share/doc/binary + install -m 644 debian/changelog $(tmp)/usr/share/doc/binary + #gzip -n -9 $(tmp)/usr/share/doc/binary/changelog + install -d $(tmp)/DEBIAN + install -m 755 debian/postinst $(tmp)/DEBIAN + install -m 644 debian/conffiles $(tmp)/DEBIAN + + install -d $(tmp)/usr/share/applications + install -m 644 debian/hello.desktop \ + $(tmp)/usr/share/applications/hello.desktop + install -m 755 debian/goodbye.desktop \ + $(tmp)/usr/share/applications/goodbye.desktop + + # should be ok... + echo boe > $(tmp)/usr/bar + ln $(tmp)/usr/bar $(tmp)/usr/foo + # but this isn't + echo boe > $(tmp)/usr/bar2 + ln $(tmp)/usr/bar2 $(tmp)/usr/share/baz + + dd if=/dev/zero of=$(tmp)/usr/share/binary/largefile bs=1024 count=4000 + + install -d debian/binary-data/DEBIAN + install -d debian/binary-data/usr/share/doc + ln -s binary debian/binary-data/usr/share/doc/binary-data + + dpkg-shlibdeps $(tmp)/usr/bin/hello + dpkg-gencontrol -pbinary -isp + dpkg-gencontrol -pbinary-data -Pdebian/binary-data -isp + + dpkg --build debian/tmp .. + dpkg --build debian/binary-data .. + +binary: binary-arch + +.PHONY: build-arch build binary-arch binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/templates b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/templates new file mode 100644 index 00000000..3d928614 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/templates @@ -0,0 +1,16 @@ +# The debconf templates defined here are the sort that you'd use if +# providing a wordlist and an ispell dictionary for the language +# "perl". This shouldn't trigger warnings about not using debconf-po. + +Template: shared/packages-ispell +Type: text +Description: + +Template: shared/packages-wordlist +Type: text +Description: + +Template: miscfiles/languages +Type: text +Default: perl (Pathologically Eclectic Rubbish Lister) +Description: diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/watch b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/eval/hints new file mode 100644 index 00000000..472a7682 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/eval/hints @@ -0,0 +1 @@ +binary (binary): binary-has-unneeded-section .comment [usr/bin/hello-static] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/hello.c b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/hello.c new file mode 100644 index 00000000..2fb04e17 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-binary/hello.c @@ -0,0 +1,8 @@ +#include +#include + +int main(int argc, char *argv[]) { + + printf("Hello, World!\n"); + exit(0); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/Makefile b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/Makefile new file mode 100644 index 00000000..657dc2ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/Makefile @@ -0,0 +1,55 @@ +# This is the correct way to build a lib + +CC=gcc +CFLAGS=-g -Wall -Winline -O2 +LDFLAGS=-Wl,--no-as-needed + +OBJS=baz.o extra.o +SHOBJS=baz.sho extra.sho +NOPICOBJS = $(SHOBJS) + +all: libbaz1.a libbaz2.a libbaz1.so.1.0.3b libbaz2.so libbaz3.so.1.0.3b \ + libbaz.so + +libbaz2.so: libbaz2.so.1.0 + ln -sf $^ $@ +libbaz2.so.1.0: libbaz2.so.1.0.3b + ln -sf $^ $@ + +# Oops, forget the soname altogether +libbaz1.so.1.0.3b: $(NOPICOBJS) + $(CC) $(LDFLAGS) -o $@ -shared $^ -lc + +libbaz2.so.1.0.3b: $(SHOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz2.so.1.0 $^ -lc + +# Non-PIC. We can't test this on all architectures +libbaz3.so.1.0.3b: $(NOPICOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz3.so.1 $^ -lc + +# Non-versioned SONAME. +libbaz.so: $(SHOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz.so $^ -lc + +#%.o-noreentrant: %.c +# $(CC) $(LDFLAGS) $(CFLAGS) -o $@ -c $< + +%.sho: %.c + $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -fPIC -o $@ -c $< + +%.o: %.c + $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -o $@ -c $< + +libbaz2.a: $(OBJS) + ar cq $@ $(OBJS) + strip --strip-unneeded --remove-section=.comment \ + --remove-section=-note $@ + ranlib $@ + +# The pic one in the .a (wrong), no archive table +libbaz1.a: $(SHOBJS) + ar cqS $@ $^ + strip --strip-unneeded --remove-section=.comment \ + --remove-section=-note $@ +clean: + rm -f *.a *.o *.so* *.sho diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/ORIGIN new file mode 100644 index 00000000..c475bfd1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/legacy-libbaz + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/baz.c b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/baz.c new file mode 100644 index 00000000..4d5fc458 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/baz.c @@ -0,0 +1,6 @@ +#include + +double pw(double p) +{ + return exp(p); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/changelog new file mode 100644 index 00000000..44c0a832 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/changelog @@ -0,0 +1,6 @@ +libbaz (1-1) unstable; urgency=low + + * Initial setup + + -- Sean 'Shaleh' Perry Tue, 30 Jan 2001 15:23:59 -0800 + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/compat b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/compat new file mode 100644 index 00000000..b1bd38b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/compat @@ -0,0 +1 @@ +13 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/control new file mode 100644 index 00000000..15066870 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/control @@ -0,0 +1,58 @@ +Source: libbaz +Section: libs +Priority: optional +Maintainer: Lintian Maintainer +Build-depends: debhelper (>=4) +Standards-Version: 3.2.1 + +Package: libbaz1 +Architecture: any +Provides: libbaz +Description: test handling of library packages + Regression test for lintian's handling of libraries. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz1-dev +Architecture: any +Depends: libbaz1 (= ${source:Version}), perlapi-5.8.8 +Description: development package + Regression test for lintian's handling of libraries (dev). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2 +Architecture: any +Depends: ${shlibs:Depends}, libssl0.9.8 +Description: test handling of library packages (good) + Regression test for lintian's handling of libraries (good). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2-dev +Architecture: any +Depends: ${shlibs:Depends}, libbaz2 (= ${source:Version}) +Description: development package (good) + Regression test for lintian's handling of libraries (dev good). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2-dbg +Architecture: any +Depends: libbaz2 (= ${binary:Version}) +Priority: optional +Description: debugging package + Regression test for lintian's handling of libraries (debug). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/copyright new file mode 100644 index 00000000..a874c878 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/copyright @@ -0,0 +1,8 @@ +This package is released under public domain. This is distributed in the hope +that it will be useful, but without any warranty; without even the implied +warranty of merchantability or fitness for a particular purpose. + +A reference to /usr/share/common-licenses/GPL-2 to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +However, this has an OpenSSL exception. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/dev.postinst b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/dev.postinst new file mode 100644 index 00000000..683e3cc5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/dev.postinst @@ -0,0 +1,4 @@ +#!/bin/sh -e + +$PKG=libbaz1-dev + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/dev.prerm b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/dev.prerm new file mode 100644 index 00000000..683e3cc5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/dev.prerm @@ -0,0 +1,4 @@ +#!/bin/sh -e + +$PKG=libbaz1-dev + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/lib.postinst b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/lib.postinst new file mode 100644 index 00000000..ec0b98ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/lib.postinst @@ -0,0 +1,10 @@ +#!/bin/sh -e + +$PKG=libbaz1 + +if [ "$1" = "configure" ]; then + if [ -d /usr/doc -a ! -e /usr/doc/$PKG -a -d /usr/share/doc/$PKG ] +; then + ln -sf ../share/doc/$PKG /usr/doc/$PKG + fi +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/lib.prerm b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/lib.prerm new file mode 100644 index 00000000..50e37c3b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/lib.prerm @@ -0,0 +1,7 @@ +#!/bin/sh -e + +$PKG=libbaz1 + +if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/$PKG ]; then + rm -f /usr/doc/$PKG +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/lib.shlibs b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/lib.shlibs new file mode 100644 index 00000000..b88e2882 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/lib.shlibs @@ -0,0 +1,8 @@ +libdoesntexist2 1.0 libbaz1 +libdoesntexist2 1.0 libbaz1 +libbaz2 1.1 libbaz +libbaz3 1 libbaz1 (>> 1-1) +libbaz4 1 libbaz1 (= 1-1) +libbaz5 1 libbaz2 +udeb: libdoesntexist2 1.0 libbaz2 +udeb: libdoesntexist2 1.0 libbaz2 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/lib.symbols b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/lib.symbols new file mode 100644 index 00000000..72f9d8ab --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/lib.symbols @@ -0,0 +1,3 @@ +libbaz.so.2 libbaz1 #MINVER# + pw 1-1 + foo 1.1-1 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/rules new file mode 100755 index 00000000..fa99bc8a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/rules @@ -0,0 +1,121 @@ +#!/usr/bin/make -f + +lib_tmp=debian/tmp-lib +dev_tmp=debian/tmp-dev + +LIB=libbaz1 +DEV=libbaz1-dev + +VENDORARCH := $(shell perl -MConfig -wE'say substr($$Config{vendorarch},1)') + +build-arch: + $(MAKE) + +build-indep: + +build: build-arch build-indep + +clean: + $(MAKE) clean + dh_clean -plibbaz2 -plibbaz2-dev + rm -f debian/files debian/substvars + rm -rf $(lib_tmp) $(dev_tmp) + +# Now the correct libbaz2-dev package +binary-correct: + install -d debian/libbaz2-dev/usr/lib + cp -a libbaz2.a libbaz2.so debian/libbaz2-dev/usr/lib + # usually, I'd also include some .h files to /usr/include + + # Now the correct libbaz2 package + install -d debian/libbaz2/usr/lib + cp -a libbaz2.so.* debian/libbaz2/usr/lib + chmod a-x debian/libbaz2/usr/lib/* + + # General stuff that is tested in other testsets: + dh_installdocs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_compress -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + + # Mess up the libbaz2 changelog files to test the symlink handling. + ln -s /usr/share/doc/lintian/changelog.gz \ + debian/libbaz2/usr/share/doc/libbaz2/changelog.gz + install -m 644 debian/changelog \ + debian/libbaz2-dev/usr/share/doc/libbaz2-dev/foo + ln -s foo debian/libbaz2-dev/usr/share/doc/libbaz2-dev/changelog + + # Okay, if either line is omitted, it should be noted + dh_strip --dbg-package=libbaz2-dbg -plibbaz2 -plibbaz2-dev + dh_makeshlibs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_shlibdeps -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + + # and again, regular packaging stuff + dh_installdeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + echo udeb: libbaz2 1.0 libbaz2 >> debian/libbaz2/DEBIAN/shlibs + dh_gencontrol -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_builddeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + +# and the incorrect one +binary-arch: build-arch binary-correct + # first, the lib package + install -d $(lib_tmp)/usr/lib + # resp. no soname (check), wrong soname (check), and no-pic (check) + cp -a libbaz1.so.1.0* $(lib_tmp)/usr/lib + cp -a libbaz2.so.1.0.3b $(lib_tmp)/usr/lib/libfoo2.so.1.0.3b + install -m644 libbaz3.so.1.0.3b $(lib_tmp)/usr/lib/libbaz3.so.1.0.3b + # let's include the .a in the non-dev too (TODO) + # Also, libbaz1.a hasn't a symbol table (TODO) + cp -a *.a $(lib_tmp)/usr/lib + # And a wrong .so symlink (wrong, only in -dev, TODO) + ln -s libfoo3.so.0.9 $(lib_tmp)/usr/lib/libfoo3.so + # And a wrong .so.X symlink (wrong, should point to a real existing + # shlib, TODO) + ln -s libfoo.so.0.9.1 $(lib_tmp)/usr/lib/libfoo.so.0.9 + # And a plain .so (wrong, TODO) + touch $(lib_tmp)/usr/lib/libbar2.so + # And a non-versioned SONAME. + install -m644 libbaz.so $(lib_tmp)/usr/lib/libbaz.so + strip --remove-section=.comment --strip-unneeded $(lib_tmp)/usr/lib/libbaz.so + # Pretend to be a Perl module to test a lack of Perl dependencies. + install -d $(lib_tmp)/$(VENDORARCH)/auto/Foo + install -m 644 libbaz2.so.1.0.3b $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + strip $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + + install -d $(lib_tmp)/usr/share/doc/$(LIB) + install -m 644 debian/copyright $(lib_tmp)/usr/share/doc/$(LIB) + install -m 644 debian/changelog $(lib_tmp)/usr/share/doc/$(LIB) + gzip -n -9 $(lib_tmp)/usr/share/doc/$(LIB)/changelog + install -d $(lib_tmp)/DEBIAN + install -m 755 debian/lib.postinst $(lib_tmp)/DEBIAN/postinst + install -m 755 debian/lib.prerm $(lib_tmp)/DEBIAN/prerm + touch $(lib_tmp)/usr/share/doc/README.Debian + #dpkg-shlibdeps $(lib_tmp)/usr/lib/libbaz.so.1.0 + install -m 755 debian/lib.shlibs $(lib_tmp)/DEBIAN/shlibs + install -m 755 debian/lib.symbols $(lib_tmp)/DEBIAN/symbols + dpkg-gencontrol -isp -p$(LIB) -P$(lib_tmp) + dpkg --build $(lib_tmp) .. + + # now the -dev package + install -d $(dev_tmp)/usr/include + install -d $(lib_tmp)/usr/lib + # let's also install the .so at the same time... (wrong, TODO) + cp -a *.a *.so.* $(lib_tmp)/usr/lib + # and fuck up permission (TODO) + chmod a+x $(lib_tmp)/usr/lib/*.a + # Pretend to be a Perl module to test a lack of Perl dependencies. + install -d $(dev_tmp)/$(VENDORARCH)/auto/Foo + install -m 644 libbaz2.so.1.0.3b $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + strip $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + install -d $(dev_tmp)/usr/share/doc + ln -s $(LIB) $(dev_tmp)/usr/share/doc/$(DEV) + install -d $(dev_tmp)/DEBIAN + install -m 755 debian/dev.postinst $(dev_tmp)/DEBIAN/postinst + install -m 755 debian/dev.prerm $(dev_tmp)/DEBIAN/prerm + dpkg-gencontrol -isp -p$(DEV) -P$(dev_tmp) + dpkg --build $(dev_tmp) .. + + +binary: binary-arch + +# The mention of binary-indep here should be sufficient to suppress the +# warning that it's not present. +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/source.lintian-overrides b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/source.lintian-overrides new file mode 100644 index 00000000..6008d271 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/source.lintian-overrides @@ -0,0 +1 @@ +libbaz source: maintainer-script-lacks-debhelper-token diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/watch b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/eval/hints new file mode 100644 index 00000000..7f3f70c8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/eval/hints @@ -0,0 +1,2 @@ +libbaz1-dev (binary): binary-has-unneeded-section .comment [usr/lib/ma-dir/perl/version/auto/Foo/Foo.so] +libbaz1 (binary): binary-has-unneeded-section .comment [usr/lib/ma-dir/perl/version/auto/Foo/Foo.so] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/extra.c b/packages/debmagic/tests/lintian-parity/checks/binaries/legacy-libbaz/extra.c new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/Makefile b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/Makefile new file mode 100644 index 00000000..a877dfd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/Makefile @@ -0,0 +1,7 @@ +all: + gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o true true.c + +clean distclean: + rm -f true + +check test: diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/ORIGIN new file mode 100644 index 00000000..251a64c3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/debian/changelog new file mode 100644 index 00000000..1ab8be25 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/debian/changelog @@ -0,0 +1,17 @@ +binaries-development-package-ships-elf-binary-in-path (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-development-package-ships-elf-binary-in-path + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +binaries-development-package-ships-elf-binary-in-path (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-development-package-ships-elf-binary-in-path + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/debian/compat b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/debian/compat @@ -0,0 +1 @@ +9 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/debian/control new file mode 100644 index 00000000..65474afd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/debian/control @@ -0,0 +1,53 @@ +Source: binaries-development-package-ships-elf-binary-in-path +Priority: optional +Section: libs +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 9.20160114~) +Rules-Requires-Root: no + +Package: libmultiarch-none-dev +Architecture: any +Section: libdevel +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for development packages shipping ELF binaries in $PATH (M-A: none) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package does not specify a Multi-Arch field. + +Package: libmultiarch-foreign-dev +Architecture: any +Section: libdevel +Depends: ${shlibs:Depends}, ${misc:Depends} +Multi-Arch: foreign +Description: Test for development packages shipping ELF binaries in $PATH (M-A: foreign) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package specifies Multi-Arch: foreign. + +Package: libmultiarch-same-dev +Architecture: any +Section: libdevel +Depends: ${shlibs:Depends}, ${misc:Depends} +Multi-Arch: same +Description: Test for development packages shipping ELF binaries in $PATH (M-A: same) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package specifies Multi-Arch: same. + +Package: libmultiarch-contrib-dev +Architecture: any +Section: contrib/libdevel +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for development packages shipping ELF binaries in $PATH (contrib) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package is in the contrib/libdevel section. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/debian/rules new file mode 100755 index 00000000..fe4db635 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/debian/rules @@ -0,0 +1,22 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +include /usr/share/dpkg/buildflags.mk + +%: + dh $@ + +override_dh_auto_install: + set -e; for X in none same foreign contrib; do \ + install -d debian/libmultiarch-$$X-dev/usr/bin; \ + install -d debian/libmultiarch-$$X-dev/var/lib/private; \ + install -m 755 true debian/libmultiarch-$$X-dev/usr/bin/$$X; \ + install -m 755 true debian/libmultiarch-$$X-dev/var/lib/private/$$X; \ + install -m 755 script debian/libmultiarch-$$X-dev/usr/bin/$$X-script; \ + install -m 755 script debian/libmultiarch-$$X-dev/var/lib/private/$$X-script; \ + done + +override_dh_strip: + # Avoid symbol conflicts warnings + dh_strip --no-automatic-dbgsym diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/eval/hints new file mode 100644 index 00000000..ad80dade --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/eval/hints @@ -0,0 +1,5 @@ +libmultiarch-same-dev (binary): development-package-ships-elf-binary-in-path [usr/bin/same] +libmultiarch-same-dev (binary): arch-dependent-file-not-in-arch-specific-directory [var/lib/private/same] +libmultiarch-same-dev (binary): arch-dependent-file-not-in-arch-specific-directory [usr/bin/same] +libmultiarch-none-dev (binary): development-package-ships-elf-binary-in-path [usr/bin/none] +libmultiarch-contrib-dev (binary): development-package-ships-elf-binary-in-path [usr/bin/contrib] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/script b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/script new file mode 100755 index 00000000..c52d3c26 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/script @@ -0,0 +1,3 @@ +#!/bin/sh + +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/true.c b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/true.c new file mode 100644 index 00000000..8479e67d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-development-package-ships-elf-binary-in-path/true.c @@ -0,0 +1,5 @@ +int +main(void) +{ + return 0; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/Makefile b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/Makefile new file mode 100644 index 00000000..cf0f2114 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/Makefile @@ -0,0 +1,64 @@ +# turn off PIE in CC in case we have a PIEful toolchain: +ifneq ($(findstring -no-pie,$(shell gcc -no-pie 2>&1)),) + CC := gcc +else + CC := gcc -fno-pie -no-pie +endif + +NOPIE_CFLAGS = $(filter-out -fPIE,$(CFLAGS)) +NOPIE_LDFLAGS = $(filter-out -fPIE -pie,$(LDFLAGS)) +COMPILE:= $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) +COMPILE_NOPIE:= $(CC) $(NOPIE_CFLAGS) $(CPPFLAGS) $(NOPIE_LDFLAGS) +# extract from readelf +GETBUILDID:=./getbuildid + +all: + # rpath not matching any of the exceptions to the rpath checks + # - with profiling enabled. + $(COMPILE_NOPIE) -o basic basic.c -pg -Wl,--rpath,/usr/local/lib + # rpath shipped in the package, but one of {/usr}?/lib + $(COMPILE) -o basiclibrpath basic.c -Wl,--rpath,/usr/lib + # non-special rpath shipped in the package + $(COMPILE) -o basicshippedrpath basic.c -Wl,--rpath,/usr/share/foo + # special rpath shipped in the package, multiple paths + $(COMPILE) -o basicshippedrpathmore basic.c -Wl,--rpath,/usr/lib/binaries-general:/usr/lib/binaries-general/bar + # static version of basic for debugging checks + $(COMPILE_NOPIE) -static -o basic.static basic.c + # static executable to trigger ocaml check + $(COMPILE_NOPIE) -o ocaml-exec ocaml.c + # version with debug + $(COMPILE) -o basicdebug -g3 -Wl,--build-id basic.c + +install: + # according to local debian rules /usr/lib/debug is unstripped + install -d $(DESTDIR)/usr/share/foo/ + install -d $(DESTDIR)/usr/lib/debug/usr/share/foo/ + install -d $(DESTDIR)/usr/lib/foo/ + install -d $(DESTDIR)/usr/bin + + install -m 755 -c basic $(DESTDIR)/usr/share/foo/basic + objcopy --only-keep-debug basic $(DESTDIR)/usr/lib/debug/usr/share/foo/basic + strip -s $(DESTDIR)/usr/lib/debug/usr/share/foo/basic + install -m 755 -c basiclibrpath $(DESTDIR)/usr/lib/foo/basiclibrpath + install -m 755 -c basicshippedrpath $(DESTDIR)/usr/lib/foo/basicshippedrpath + install -m 755 -c ocaml-exec $(DESTDIR)/usr/lib/foo/ocaml-exec + install -m 744 -c basicshippedrpathmore $(DESTDIR)/usr/lib/foo/basicshippedrpathmore + objcopy --only-keep-debug basic $(DESTDIR)/usr/lib/debug/basic + install -d "$(DESTDIR)/usr/lib/debug/.build-id/"`$(GETBUILDID) -s basicdebug` + install -m 755 -c basicdebug $(DESTDIR)/usr/share/foo/basicdebug + # force fake buildid in order to have tag matching ok (deadbeefdeadbeef) + install -d "$(DESTDIR)/usr/lib/debug/.build-id/de" + objcopy --compress-debug-sections basicdebug \ + "$(DESTDIR)/usr/lib/debug/.build-id/de/deadbeefdeadbeef.debug" + install -d "$(DESTDIR)/usr/lib/debug/.build-id/"`$(GETBUILDID) -s basicdebug` + objcopy --compress-debug-sections --only-keep-debug basicdebug \ + "$(DESTDIR)/usr/lib/debug/.build-id/"`$(GETBUILDID) -s basicdebug`"/"`$(GETBUILDID) -f basicdebug`.debug + install -m 755 -c basic.static $(DESTDIR)/usr/lib/debug/ + # according to local debian rules unstripped in name avoid dh_strip to do the work + install -m 755 basicdebug $(DESTDIR)/usr/bin/unstripped + install -m 755 basic.static $(DESTDIR)/usr/bin/static + +clean distclean: + rm -f basic + +check test: diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/ORIGIN new file mode 100644 index 00000000..9d283001 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/location/binaries-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/basic.c b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/basic.c new file mode 100644 index 00000000..36180047 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/basic.c @@ -0,0 +1,12 @@ +#include +#include + +int +main(int argc, char *argv[]) +{ + char t[10]; + printf("Hello world!\n"); + /* forces a stack protector */ + (void) strcpy(t,argv[0]); + return (int) t[0]; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/debian/changelog new file mode 100644 index 00000000..dafd072a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/debian/changelog @@ -0,0 +1,17 @@ +binaries-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +binaries-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/debian/control new file mode 100644 index 00000000..7dec9ad2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/debian/control @@ -0,0 +1,17 @@ +Source: binaries-general +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: binaries-general +Architecture: any +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Misc errors related to binaries + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/debian/rules new file mode 100644 index 00000000..3ea7a636 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +override_dh_strip: + dh_strip -X usr/lib/debug -X unstripped -X ocaml + +override_dh_dwz: + # Can error with "deadbeefdeadbeef.debug: Found compressed .debug_info section, not attempting dwz compression" diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/eval/hints new file mode 100644 index 00000000..ae43fff0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/eval/hints @@ -0,0 +1,2 @@ +binaries-general (binary): arch-dependent-file-in-usr-share [usr/share/foo/basicdebug] +binaries-general (binary): arch-dependent-file-in-usr-share [usr/share/foo/basic] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/getbuildid b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/getbuildid new file mode 100755 index 00000000..0060d2b1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/getbuildid @@ -0,0 +1,30 @@ +#!/bin/sh +# get build-id of binary + +set -e + +usage() { + echo "Usage: getbuildid [flag] file"; + echo " print build-id of an object file" + echo "flags:" + echo " -f : full build-id (default)." + echo " -s : short build-id aka the first two characters." +} + +if test $# -lt 1; then usage; exit 77; fi +if test $# -gt 3; then usage; exit 77; fi + +if test $# -eq 1; then + LC_ALL=C readelf -n "$1" | grep -i 'Build Id:' | sed 's/.*:[[:blank:]]*\([[:digit:]|abcdef]*\).*/\1/g' +else + case "x$1" in + 'x-f') + LC_ALL=C readelf -n "$2" | grep -i 'Build Id:' | sed 's/.*:[[:blank:]]*\([[:digit:]|abcdef]*\).*/\1/g' ;; + 'x-s') + LC_ALL=C readelf -n "$2" | grep -i 'Build Id:' | sed 's/.*:[[:blank:]]*\([[:digit:]|abcdef]\{2\}\).*/\1/g' ;; + *) + exit 2; + esac +fi + +exit 0; diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/ocaml.c b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/ocaml.c new file mode 100644 index 00000000..370d17d9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-general/ocaml.c @@ -0,0 +1,11 @@ +#include + +int +main(int argc, char **argv) +{ + if (argc > 2) { + puts("Caml1999X000"); + } + puts("\n"); + return 0; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-misplaced/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-misplaced/ORIGIN new file mode 100644 index 00000000..cc36baa7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-misplaced/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/location/binaries-misplaced + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-misplaced/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-misplaced/debian/changelog new file mode 100644 index 00000000..9d0af290 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-misplaced/debian/changelog @@ -0,0 +1,17 @@ +binaries-misplaced (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-misplaced + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +binaries-misplaced (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-misplaced + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-misplaced/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-misplaced/debian/control new file mode 100644 index 00000000..d01c6f7c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-misplaced/debian/control @@ -0,0 +1,17 @@ +Source: binaries-misplaced +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: binaries-misplaced +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test binaries in /etc + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-misplaced/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-misplaced/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-misplaced/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-misplaced/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-misplaced/debian/rules new file mode 100755 index 00000000..f0cc5117 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-misplaced/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f +pkg=binaries-misplaced +%: + dh $@ + +override_dh_install: + mkdir -p debian/$(pkg)/etc/ + # --dereference in case /bin/true is a symlink + cp -a --dereference /bin/true debian/$(pkg)/etc/foo + # explicitly call dh_shlibdeps since debhelper is being + # "smart" and not calling it in newer versions (8.9.something) + dh_shlibdeps + dh_install diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-misplaced/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-misplaced/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-misplaced/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-misplaced/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-misplaced/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-misplaced/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-misplaced/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-misplaced/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-misplaced/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-misplaced/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-misplaced/eval/hints new file mode 100644 index 00000000..91f0ef7f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-misplaced/eval/hints @@ -0,0 +1 @@ +binaries-misplaced (binary): binary-in-etc [etc/foo] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/Makefile b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/Makefile new file mode 100644 index 00000000..ad7783bc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/Makefile @@ -0,0 +1,12 @@ + +all: + gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -fPIC -shared -Wl,-z,defs -Wl,-soname,libbasic.so.2 -o libbasic.so.2 basic.c + +install: + install -d $(DESTDIR)/usr/lib/ + install -m 644 -c -s libbasic.so.2 $(DESTDIR)/usr/lib/libbasic.so.2 + +clean distclean: + rm -f libbasic.so.2 + +check test: diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/ORIGIN new file mode 100644 index 00000000..c5d2c1d8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/location/binaries-multiarch-same + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/basic.c b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/basic.c new file mode 100644 index 00000000..27e93fcc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/basic.c @@ -0,0 +1,19 @@ +#include +#include + +static void +hardening_trigger(char *p, int i, void (*f)(char *)) +{ + char test[10]; + memcpy(test, p, i); + f(test); + printf("%s", test); +} + +int +lib_interface(void) +{ + printf("Hello world!\n"); + hardening_trigger(NULL, 0, NULL); + return 0; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/debian/changelog new file mode 100644 index 00000000..d38ebfa8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/debian/changelog @@ -0,0 +1,17 @@ +binaries-multiarch-same (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-multiarch-same + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +binaries-multiarch-same (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-multiarch-same + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/debian/compat b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/debian/compat @@ -0,0 +1 @@ +9 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/debian/control new file mode 100644 index 00000000..570e7252 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/debian/control @@ -0,0 +1,25 @@ +Source: binaries-multiarch-same +Priority: optional +Section: libs +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 9.20151004~) +Rules-Requires-Root: no + +Package: libbasic2 +Architecture: any +Pre-Depends: ${misc:Pre-Depends}, multiarch-support +Depends: ${misc:Depends}, ${shlibs:Depends} +Multi-Arch: same +Description: Test of multiarch same package with unsafe binaries + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + Note there is an explicitly pre-depends on multiarch-support, since + older versions of debhelper might not use it yet. dpkg-dev will + remove the duplicate entry (if any). + + + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/debian/libbasic2.symbols b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/debian/libbasic2.symbols new file mode 100644 index 00000000..c2b8fb33 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/debian/libbasic2.symbols @@ -0,0 +1,2 @@ +libbasic.so.2 libbasic2 #MINVER# + lib_interface@Base 1.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/eval/hints new file mode 100644 index 00000000..b482a074 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/location/binaries-multiarch-same/eval/hints @@ -0,0 +1 @@ +libbasic2 (binary): arch-dependent-file-not-in-arch-specific-directory [usr/lib/libbasic.so.2] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/Makefile b/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/Makefile new file mode 100644 index 00000000..99409d2a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/Makefile @@ -0,0 +1,52 @@ +# Makefile for the obsolete-des tests. + +# glibc 2.28 and greater try to prevent new programs from being linked +# against the obsolete functions we're testing for. This can be worked +# around, but we have to know the exact "symbol version" associated with +# the obsolete functions, which has to be dug out of libcrypt.so with nm. + +LIBCRYPT_FILE := $(shell $(CC) $(CFLAGS) $(LDFLAGS) -print-file-name=libcrypt.so) + +SYMVER := $(shell nm --dynamic --with-symbol-versions $(LIBCRYPT_FILE) | \ + grep ' setkey@' | cut -d@ -f2) + +# The output of the above nm | grep | cut pipeline will be the empty string +# if it is possible to link programs against 'setkey' without special magic, +# and a nonempty string if special magic is required. All five of the +# functions we are testing were introduced in the same release of glibc and +# disabled for new programs as a group in a single release of glibc, so it +# is only necessary to check how one of them is handled. +ifneq "$(SYMVER)" "" +SYMVER_DEFINE := -DSYMVER=\"$(SYMVER)\" +else +SYMVER_DEFINE := -USYMVER +endif + +CFLAGS := $(shell dpkg-buildflags --get CFLAGS) +CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS) $(SYMVER_DEFINE) +LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) + +PROGRAMS := uses-fcrypt uses-encrypt uses-encrypt_r uses-setkey uses-setkey_r +MANPAGES := $(PROGRAMS:=.1) + +all: $(PROGRAMS) $(MANPAGES) + +uses-%: uses-%.o + $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ -lcrypt + +%.1: dummy.pod + sed s/@NAME@/$(@F)/g < $< | \ + pod2man --name $(@F) --section 1 > $@ + +install: all + $(INSTALL) -d $(DESTDIR)/usr/bin + $(INSTALL) -d $(DESTDIR)/usr/share/man/man1 + $(INSTALL) -m 755 $(PROGRAMS) $(DESTDIR)/usr/bin + $(INSTALL) -m 644 $(MANPAGES) $(DESTDIR)/usr/share/man/man1 + +clean distclean: + -rm -f *.o $(PROGRAMS) $(MANPAGES) + +check test: + +.PRECIOUS: $(PROGRAMS:=.o) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/ORIGIN new file mode 100644 index 00000000..3b6a748e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/obsolete/crypt/binaries-obsolete-des + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/debian/changelog new file mode 100644 index 00000000..456ea2a4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/debian/changelog @@ -0,0 +1,17 @@ +binaries-obsolete-des (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-obsolete-des + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +binaries-obsolete-des (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-obsolete-des + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/debian/control new file mode 100644 index 00000000..ec41d785 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/debian/control @@ -0,0 +1,17 @@ +Source: binaries-obsolete-des +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), libcrypt-dev +Homepage: https://lintian.debian.org/ + +Package: binaries-obsolete-des +Architecture: any +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check detection of obsolete DES functions + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/dummy.pod b/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/dummy.pod new file mode 100644 index 00000000..224df4a4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/dummy.pod @@ -0,0 +1,11 @@ +=head1 NAME + +@NAME@ -- binary that does something + +=head1 SYNOPSIS + + @NAME@ [options] + +=head1 DESCRIPTION + +@NAME@ does something very useful. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/eval/hints new file mode 100644 index 00000000..a49c5208 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/eval/hints @@ -0,0 +1,5 @@ +binaries-obsolete-des (binary): obsolete-des-encryption setkey_r [usr/bin/uses-setkey_r] +binaries-obsolete-des (binary): obsolete-des-encryption setkey [usr/bin/uses-setkey] +binaries-obsolete-des (binary): obsolete-des-encryption encrypt_r [usr/bin/uses-encrypt_r] +binaries-obsolete-des (binary): obsolete-des-encryption encrypt [usr/bin/uses-encrypt] +binaries-obsolete-des (binary): obsolete-crypt-alias fcrypt [usr/bin/uses-fcrypt] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/uses-encrypt.c b/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/uses-encrypt.c new file mode 100644 index 00000000..b6ca0624 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/uses-encrypt.c @@ -0,0 +1,30 @@ +/* This program uses the obsolete function 'encrypt', which performs + DES encryption. */ + +#define _GNU_SOURCE 1 +#include +#include +#include + +/* The prototype of 'encrypt' may already have been removed from + unistd.h. */ +extern void encrypt(char block[64], int edflag); + +/* It may already not be possible to link new programs that use + 'encrypt' without special magic. */ +#ifdef SYMVER +__asm__ (".symver encrypt, encrypt@" SYMVER); +#endif + +int +main(void) +{ + char block[64]; + memset(block, 0, sizeof block); + encrypt(block, 0); + for (size_t i = 0; i < sizeof block; i++) { + putchar(block[i] ? '1' : '0'); + } + putchar('\n'); + return 0; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/uses-encrypt_r.c b/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/uses-encrypt_r.c new file mode 100644 index 00000000..a3826249 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/uses-encrypt_r.c @@ -0,0 +1,33 @@ +/* This program uses the obsolete function 'encrypt_r', which performs + DES encryption. */ + +#define _GNU_SOURCE 1 +#include +#include +#include + +/* The prototype of 'encrypt_r' may already have been removed from + crypt.h. */ +extern void encrypt_r(char block[64], int edflag, struct crypt_data *data); + +/* It may already not be possible to link new programs that use + 'encrypt_r' without special magic. */ +#ifdef SYMVER +__asm__ (".symver encrypt_r, encrypt_r@" SYMVER); +#endif + +int +main(void) +{ + struct crypt_data data; + char block[64]; + + memset(&data, 0, sizeof data); + memset(block, 0, sizeof block); + encrypt_r(block, 0, &data); + for (size_t i = 0; i < sizeof block; i++) { + putchar(block[i] ? '1' : '0'); + } + putchar('\n'); + return 0; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/uses-fcrypt.c b/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/uses-fcrypt.c new file mode 100644 index 00000000..d71a837a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/uses-fcrypt.c @@ -0,0 +1,21 @@ +/* This program uses the obsolete function 'fcrypt', + which is an alias for 'crypt'. */ + +#include +#include + +/* The prototype may already have been removed from crypt.h. */ +extern char *fcrypt(const char *, const char *); + +/* It may already not be possible to link new programs that use + 'fcrypt' without special magic. */ +#ifdef SYMVER +__asm__ (".symver fcrypt, fcrypt@" SYMVER); +#endif + +int +main(void) +{ + puts(fcrypt("password", "Dn")); + return 0; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/uses-setkey.c b/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/uses-setkey.c new file mode 100644 index 00000000..bdf70b0c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/uses-setkey.c @@ -0,0 +1,45 @@ +/* This program uses the obsolete function 'setkey', which sets a key for + DES encryption. */ + +#define _GNU_SOURCE 1 +#include +#include +#include + +/* The prototype of 'setkey' may already have been removed from + stdlib.h. */ +extern void setkey(const char *); + + +/* It may already not be possible to link new programs that use + 'setkey' without special magic. */ +#ifdef SYMVER +__asm__ (".symver setkey, setkey@" SYMVER); +#endif + +/* setkey uses a 1-bit-per-byte representation of a DES key. + Yes, really. */ +const char key[64] = { + 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, + 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, + 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, + 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, +}; + +int +main(void) +{ + /* The primary effects of calling 'setkey' are only visible by + calling 'encrypt', and we don't want to call 'encrypt' in this + program because we want to make sure Lintian detects programs + that call 'setkey' but not 'encrypt', even though that doesn't + make a whole lot of sense. So we just call it and then check + whether it changed errno, which is the documented way to check + whether it failed. */ + errno = 0; + setkey(key); + if (errno) { + perror("setkey"); + } + return 0; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/uses-setkey_r.c b/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/uses-setkey_r.c new file mode 100644 index 00000000..3ad3f357 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/obsolete/crypt/binaries-obsolete-des/uses-setkey_r.c @@ -0,0 +1,48 @@ +/* This program uses the obsolete function 'setkey_r', which sets a key for + DES encryption. */ + +#define _GNU_SOURCE 1 +#include +#include +#include +#include + +/* The prototype of 'setkey_r' may already have been removed from + crypt.h. */ +extern void setkey_r(const char *, struct crypt_data *); + +/* It may already not be possible to link new programs that use + 'setkey_r' without special magic. */ +#ifdef SYMVER +__asm__ (".symver setkey_r, setkey_r@" SYMVER); +#endif + +/* setkey_r uses a 1-bit-per-byte representation of a DES key. + Yes, really. */ +const char key[64] = { + 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, + 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, + 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, + 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, +}; + +int +main(void) +{ + struct crypt_data data; + memset(&data, 0, sizeof data); + + /* The primary effects of calling 'setkey_r' are only visible by + calling 'encrypt_r', and we don't want to call 'encrypt_r' in + this program because we want to make sure Lintian detects + programs that call 'setkey_r' but not 'encrypt_r', even though + that doesn't make a whole lot of sense. So we just call it and + then check whether it changed errno, which is the documented + way to check whether it failed. */ + errno = 0; + setkey_r(key, &data); + if (errno) { + perror("setkey_r"); + } + return 0; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/Makefile b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/Makefile new file mode 100644 index 00000000..daa4159d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/Makefile @@ -0,0 +1,35 @@ +# turn off PIE in CC in case we have a PIEful toolchain: +ifneq ($(findstring -no-pie,$(shell gcc -no-pie 2>&1)),) + CC := gcc +else + CC := gcc -fno-pie -no-pie +endif + +LINKER_FLAGS := -Wl,--no-copy-dt-needed-entries,--no-as-needed + +all: basic basic.1 libbasic-nodeps libbasic-nolibc + +basic.1: basic.pod + pod2man --section 1 $< > $@ + +basic: basic.o + $(CC) -nostdlib -o$@ $< $(LINKER_FLAGS) -lm $(LFLAGS) + +libbasic-nodeps: basic.o + $(CC) -nostdlib --shared -o$@ $< + +libbasic-nolibc: basic.o + $(CC) -nostdlib --shared -o$@ $< $(LINKER_FLAGS) -lm + +install: + install -d $(DESTDIR)/usr/bin + install -d $(DESTDIR)/usr/lib/basic + install -d $(DESTDIR)/usr/share/man/man1 + install -m 755 -c basic $(DESTDIR)/usr/bin/basic + install -m 755 -c libbasic-* $(DESTDIR)/usr/lib/basic + install -m 644 -c basic.1 $(DESTDIR)/usr/share/man/man1 + +clean distclean: + rm -f basic libbasic-* basic.1 + +check test: diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/ORIGIN new file mode 100644 index 00000000..e9b5d7f8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/prerequisites/binaries-libc-link + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/basic.c b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/basic.c new file mode 100644 index 00000000..77bc677e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/basic.c @@ -0,0 +1,5 @@ +int +main(void) +{ + return 0; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/basic.pod b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/basic.pod new file mode 100644 index 00000000..d395e966 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/basic.pod @@ -0,0 +1,14 @@ +=head1 NAME + +basic -- segfaults + +=head1 SYNOPSIS + + basic + +=head1 DESCRIPTION + +It tends to seg. fault, but if it doesn't it will return 0 like +/bin/true. + +=cut diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/debian/changelog new file mode 100644 index 00000000..9e3a5f2d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/debian/changelog @@ -0,0 +1,17 @@ +binaries-libc-link (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-libc-link + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +binaries-libc-link (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-libc-link + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/debian/control new file mode 100644 index 00000000..7c8a17fa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/debian/control @@ -0,0 +1,17 @@ +Source: binaries-libc-link +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: binaries-libc-link +Architecture: any +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Binaries not linked against libc + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/debian/rules new file mode 100755 index 00000000..fab80fa8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# dwz errors out; no .debug_info section present due to -nostdlib +override_dh_dwz: diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/eval/hints new file mode 100644 index 00000000..b31088cd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-libc-link/eval/hints @@ -0,0 +1,2 @@ +binaries-libc-link (binary): shared-library-lacks-prerequisites [usr/lib/basic/libbasic-nodeps] +binaries-libc-link (binary): program-not-linked-against-libc [usr/bin/basic] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/Makefile b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/Makefile new file mode 100644 index 00000000..fcf25f49 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/Makefile @@ -0,0 +1,14 @@ +all: + gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -fPIC -shared -Wl,-z,defs -Wl,-soname,libbasic.so.2 -o libbasic.so.2 basic.c + g++ $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) -fPIC -shared -Wl,-z,defs \ + -Wl,-soname,libbasic++.so.2 -olibbasic++.so.2 cpp.cxx + +install: + install -d $(DESTDIR)/usr/lib/ + install -m 644 -c -s libbasic.so.2 $(DESTDIR)/usr/lib/libbasic.so.2 + install -m 644 -c -s libbasic++.so.2 $(DESTDIR)/usr/lib/libbasic++.so.2 + +clean distclean: + rm -f libbasic.so.2 libbasic++.so.2 + +check test: diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/ORIGIN new file mode 100644 index 00000000..633c13b0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/prerequisites/binaries-missing-depends-on-libc + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/basic.c b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/basic.c new file mode 100644 index 00000000..27e93fcc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/basic.c @@ -0,0 +1,19 @@ +#include +#include + +static void +hardening_trigger(char *p, int i, void (*f)(char *)) +{ + char test[10]; + memcpy(test, p, i); + f(test); + printf("%s", test); +} + +int +lib_interface(void) +{ + printf("Hello world!\n"); + hardening_trigger(NULL, 0, NULL); + return 0; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/cpp.cxx b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/cpp.cxx new file mode 100644 index 00000000..1338e40b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/cpp.cxx @@ -0,0 +1,14 @@ +#include +#include + +using namespace std; + +template T +cxx_lib_interface(vector &v) +{ + cout << ":-) hello world" << endl; + return v[0]; +} + + + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/debian/changelog new file mode 100644 index 00000000..0b51c79b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/debian/changelog @@ -0,0 +1,17 @@ +binaries-missing-depends-on-libc (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-missing-depends-on-libc + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +binaries-missing-depends-on-libc (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-missing-depends-on-libc + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/debian/compat b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/debian/compat @@ -0,0 +1 @@ +9 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/debian/control new file mode 100644 index 00000000..e02144fa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/debian/control @@ -0,0 +1,17 @@ +Source: binaries-missing-depends-on-libc +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 9.20151004~), perl +Rules-Requires-Root: no + +Package: libbasic2 +Section: libs +Architecture: any +Depends: some-pkg, ${misc:Depends}, ${shlib:Depends} +Description: Test for missing libc depends + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/debian/libbasic2.symbols b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/debian/libbasic2.symbols new file mode 100644 index 00000000..0119bca8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/debian/libbasic2.symbols @@ -0,0 +1,4 @@ +libbasic.so.2 libbasic2 #MINVER# + lib_interface@Base 1.0 +libbasic++.so.2 libbasic2 #MINVER# + (c++)cxx_lib_interface@Base 1.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/debian/rules new file mode 100644 index 00000000..188f490e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/debian/rules @@ -0,0 +1,15 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +# Make sure the C++ library actually links to libc +export DEB_LDFLAGS_MAINT_APPEND=-Wl,--no-as-needed + +%: + dh $@ + +override_dh_gencontrol: + # Remove the shlib:Depends since it will contain libc + sed -i '/shlib:Depends=/ d' debian/libbasic2.substvars + echo "shlib:depends=" >> debian/libbasic2.substvars + dh_gencontrol diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/eval/hints new file mode 100644 index 00000000..5c512f2d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends-on-libc/eval/hints @@ -0,0 +1,2 @@ +libbasic2 (binary): missing-dependency-on-libstdc++ needed by usr/lib/libbasic++.so.2 +libbasic2 (binary): missing-dependency-on-libc needed by usr/lib/libbasic++.so.2 and 1 others diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/Makefile b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/Makefile new file mode 100644 index 00000000..6fc39688 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/Makefile @@ -0,0 +1,12 @@ +all: + gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -fPIC -shared -Wl,-z,defs -Wl,-soname,libbasic.so.2 -o libbasic.so.2 basic.c + +install: + # install it under the correct triplet directory + install -d $(DESTDIR)/usr/lib/ + install -m 644 -c -s libbasic.so.2 $(DESTDIR)/usr/lib/libbasic.so.2 + +clean distclean: + rm -f libbasic.so.2 + +check test: diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/ORIGIN new file mode 100644 index 00000000..e707634e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/prerequisites/binaries-missing-depends + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/basic.c b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/basic.c new file mode 100644 index 00000000..27e93fcc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/basic.c @@ -0,0 +1,19 @@ +#include +#include + +static void +hardening_trigger(char *p, int i, void (*f)(char *)) +{ + char test[10]; + memcpy(test, p, i); + f(test); + printf("%s", test); +} + +int +lib_interface(void) +{ + printf("Hello world!\n"); + hardening_trigger(NULL, 0, NULL); + return 0; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/debian/changelog new file mode 100644 index 00000000..596a881c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/debian/changelog @@ -0,0 +1,17 @@ +binaries-missing-depends (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-missing-depends + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +binaries-missing-depends (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-missing-depends + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/debian/compat b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/debian/compat @@ -0,0 +1 @@ +9 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/debian/control new file mode 100644 index 00000000..9869a6b7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/debian/control @@ -0,0 +1,17 @@ +Source: binaries-missing-depends +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 9.20151004~), perl +Rules-Requires-Root: no + +Package: libbasic2 +Architecture: any +Section: libs +Depends: ${misc:Depends}, ${shlib:Depends} +Description: Test for missing depends line + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/debian/libbasic2.symbols b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/debian/libbasic2.symbols new file mode 100644 index 00000000..c2b8fb33 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/debian/libbasic2.symbols @@ -0,0 +1,2 @@ +libbasic.so.2 libbasic2 #MINVER# + lib_interface@Base 1.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/debian/rules new file mode 100644 index 00000000..8a832551 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +override_dh_builddeb: + sed -i '/Depends:/ d' debian/libbasic2/DEBIAN/control + dh_builddeb diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/eval/hints new file mode 100644 index 00000000..db69d519 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/binaries-missing-depends/eval/hints @@ -0,0 +1 @@ +libbasic2 (binary): undeclared-elf-prerequisites (libc.so.6) [usr/lib/libbasic.so.2] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/ORIGIN new file mode 100644 index 00000000..d9196afe --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/prerequisites/legacy-debug + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/debian/_symbols b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/debian/_symbols new file mode 100644 index 00000000..46e6af1c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/debian/_symbols @@ -0,0 +1,23 @@ + This line should flag a syntax error +# but this one shouldn't +| although this one should, but for a different reason + and so should this + +libhello.so.0 libhello0 #MINVER# +| libhello0c2 (>= 1.2) , libhelloc0c2 (<< 1.3) +| hello-dbg3| libhelloc0c3|foobar (= 1.2) |hello-dbg2 +| hello-dbg + hello@Base 1.0 +* Build-Dep-Foo: bar + hello2@Base 2.0 4 + hello3@Base 2.0 1 + hello3@Base 2.0 A + dummy + +libhello.so.2 libhello2 #MINVER# +* Build-Depends-Package: libbar +| libhello2 (>= 1:2.3) + hello@Base 2.0 + +libhello.so.0 libhello0 #MINVER# + duplicate@Base 1.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/debian/changelog new file mode 100644 index 00000000..3e50d335 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/debian/changelog @@ -0,0 +1,13 @@ +debug (1.0) unstable; urgency=low + + * NMU. + (uploaded by the maintainer and with repeated version number) + + -- Russ Allbery Tue, 4 Apr 2006 20:27:22 +0000 + +debug (1.0) unstable; urgency=low + + * Initial version. + + -- Russ Allbery Sat, 4 Mar 2006 21:31:06 -0800 + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/debian/compat b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/debian/compat new file mode 100644 index 00000000..7f8f011e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/debian/compat @@ -0,0 +1 @@ +7 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/debian/control new file mode 100644 index 00000000..fcb2b867 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/debian/control @@ -0,0 +1,85 @@ +Source: debug +Section: utils +Priority: optional +Maintainer: Russ Allbery +Build-Depends: debhelper (>= 5.0.0) +Build-Depends-Indep: not-debhelper (>= 0.4.3) +Standards-Version: 3.7.0 + +Package: hello +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for external debugging information + Lintian regression test for external debugging file handling. This test + contains the binary. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: hello-dbg +Priority: optional +Section: debug +Architecture: any +Depends: hello (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} +Description: Test for external debugging information (symbols) + Lintian regression test for external debugging file handling. This test + contains the binary symbols. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libhello0 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for external debugging information (library) + Lintian regression test for external debugging file handling. This test + contains a library. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libhello0-dbg +Section: debug +Priority: optional +Architecture: any +Depends: libhello (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} +Description: Test for external debugging information (library symbols) + Lintian regression test for external debugging file handling. This test + contains the library symbols. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: hi-dbg +Section: debug +Priority: optional +Architecture: any +Depends: foo-pkg, not-libhello0 +Description: Test for external debugging symbols + Lintian regression test for external debugging files handling. This test + contains the library symbols. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: hello-hello-dbg +Section: debug +Priority: optional +Architecture: any +Depends: foo-pkg, not-libhello0, hello +Description: Test for external debugging symbols - another try + Lintian regression test for external debugging files handling. This test + contains the library symbols. This package actually tests a combination of + the above. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/debian/copyright new file mode 100644 index 00000000..5d4f6c29 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/debian/copyright @@ -0,0 +1,4 @@ +Written Sat, 04 Mar 2006 21:30:01 -0800 by Russ Allbery . + +Test for copyright in capital letters. (#464992) +COPYRIGHT RUSS ALLBERY 2006 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/debian/rules new file mode 100755 index 00000000..b6598955 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/debian/rules @@ -0,0 +1,99 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. + +# turn off PIE in CC in case we have a PIEful toolchain: +ifneq ($(findstring -no-pie,$(shell gcc -no-pie 2>&1)),) + CC := gcc +else + CC := gcc -fno-pie -no-pie +endif + +build-indep: + +build-arch: build-stamp + +build-stamp: + dh_testdir + $(CC) -D_REENTRANT -fPIC -c libhello.c + $(CC) -o libhello.so.0.0 -shared -Wl,-soname,libhello.so.0 libhello.o + ln -s libhello.so.0.0 libhello.so + $(CC) -o hello hello.c -L. -lhello + touch build-stamp + +build: build-arch build-indep + +clean: + dh_testdir + dh_testroot + rm -f build-stamp *.o libhello.so.0.0 libhello.so + dh_clean + +install: build-stamp + dh_testdir + dh_testroot + dh_clean -k + install -D hello $(CURDIR)/debian/hello/usr/bin/hello + install -D libhello.so.0.0 \ + $(CURDIR)/debian/libhello0/usr/lib/libhello.so.0.0 + ln -s libhello.so.0.0 \ + $(CURDIR)/debian/libhello0/usr/lib/libhello.so.0 + +# Build architecture-dependent files here. +export DH_OPTIONS +binary-arch: DH_OPTIONS=-a +binary-arch: build-stamp install + dh_testdir + dh_testroot + dh_installchangelogs -N hello-dbg + dh_installdocs + DH_OPTIONS= dh_strip -phello --dbg-package=hello-dbg + DH_OPTIONS= dh_strip -plibhello0 --dbg-package=libhello0-dbg + + # Now break a few things. Copy the debugging data into places it + # shouldn't be. + cp $(CURDIR)/debian/hello-dbg/usr/lib/debug/usr/bin/hello \ + $(CURDIR)/debian/hello/usr/bin/hello.dbg + cp $(CURDIR)/debian/libhello0-dbg/usr/lib/debug/usr/lib/libhello.so.0.0 \ + $(CURDIR)/debian/libhello0-dbg/usr/lib/libhello.so.dbg + + # Put a full copy of the library in libhello0-dbg in /usr/lib/debug, + # which is okay. + install -m 644 libhello.so.0.0 \ + $(CURDIR)/debian/libhello0-dbg/usr/lib/debug/libhello.so.0.0 + + # Also put it in /usr/lib/debug/lib, which isn't. + install -D -m 644 libhello.so.0.0 \ + $(CURDIR)/debian/libhello0-dbg/usr/lib/debug/lib/libhello.so.0.0 + + # Requires a versioned dependency. + dh_icons + + dh_link + dh_compress + dh_fixperms + dh_makeshlibs -X debug + dh_installdeb + dh_shlibdeps -X debug + + # We do this by hand as otherwise dpkg-gensymbols + # will error due to the broken symbols file + # and abort the build; similarly the file in + # the source tree is _symbols so that dpkg + # doesn't attempt to sanity check it + install -d $(CURDIR)/debian/libhello0/DEBIAN + install -m 644 $(CURDIR)/debian/_symbols \ + $(CURDIR)/debian/libhello0/DEBIAN/symbols + # hello doesn't contain any shlibs, but we + # make it contain a symbols file + install -d $(CURDIR)/debian/hello/DEBIAN + install -m 644 $(CURDIR)/debian/_symbols \ + $(CURDIR)/debian/hello/DEBIAN/symbols + + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-indep: +binary: binary-indep binary-arch +.PHONY: build-arch build-indep build binary binary-indep binary-arch clean install diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/eval/hints new file mode 100644 index 00000000..7cbded85 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/eval/hints @@ -0,0 +1,2 @@ +libhello0-dbg (binary): shared-library-lacks-prerequisites [usr/lib/libhello.so.dbg] +libhello0-dbg (binary): missing-dependency-on-libc needed by usr/lib/debug/lib/libhello.so.0.0 and 1 others diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/hello.c b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/hello.c new file mode 100644 index 00000000..76f83373 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/hello.c @@ -0,0 +1,9 @@ +#include +#include "libhello.h" + +int +main(void) +{ + hello(); + exit(0); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/libhello.c b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/libhello.c new file mode 100644 index 00000000..e2f84096 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/libhello.c @@ -0,0 +1,7 @@ +#include + +void +hello(void) +{ + printf("Hello, World!\n"); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/libhello.h b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/libhello.h new file mode 100644 index 00000000..ef774764 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-debug/libhello.h @@ -0,0 +1 @@ +void hello(void); diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/Makefile b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/Makefile new file mode 100644 index 00000000..657dc2ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/Makefile @@ -0,0 +1,55 @@ +# This is the correct way to build a lib + +CC=gcc +CFLAGS=-g -Wall -Winline -O2 +LDFLAGS=-Wl,--no-as-needed + +OBJS=baz.o extra.o +SHOBJS=baz.sho extra.sho +NOPICOBJS = $(SHOBJS) + +all: libbaz1.a libbaz2.a libbaz1.so.1.0.3b libbaz2.so libbaz3.so.1.0.3b \ + libbaz.so + +libbaz2.so: libbaz2.so.1.0 + ln -sf $^ $@ +libbaz2.so.1.0: libbaz2.so.1.0.3b + ln -sf $^ $@ + +# Oops, forget the soname altogether +libbaz1.so.1.0.3b: $(NOPICOBJS) + $(CC) $(LDFLAGS) -o $@ -shared $^ -lc + +libbaz2.so.1.0.3b: $(SHOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz2.so.1.0 $^ -lc + +# Non-PIC. We can't test this on all architectures +libbaz3.so.1.0.3b: $(NOPICOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz3.so.1 $^ -lc + +# Non-versioned SONAME. +libbaz.so: $(SHOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz.so $^ -lc + +#%.o-noreentrant: %.c +# $(CC) $(LDFLAGS) $(CFLAGS) -o $@ -c $< + +%.sho: %.c + $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -fPIC -o $@ -c $< + +%.o: %.c + $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -o $@ -c $< + +libbaz2.a: $(OBJS) + ar cq $@ $(OBJS) + strip --strip-unneeded --remove-section=.comment \ + --remove-section=-note $@ + ranlib $@ + +# The pic one in the .a (wrong), no archive table +libbaz1.a: $(SHOBJS) + ar cqS $@ $^ + strip --strip-unneeded --remove-section=.comment \ + --remove-section=-note $@ +clean: + rm -f *.a *.o *.so* *.sho diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/ORIGIN new file mode 100644 index 00000000..e830e6c6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/prerequisites/legacy-libbaz + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/baz.c b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/baz.c new file mode 100644 index 00000000..4d5fc458 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/baz.c @@ -0,0 +1,6 @@ +#include + +double pw(double p) +{ + return exp(p); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/changelog new file mode 100644 index 00000000..44c0a832 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/changelog @@ -0,0 +1,6 @@ +libbaz (1-1) unstable; urgency=low + + * Initial setup + + -- Sean 'Shaleh' Perry Tue, 30 Jan 2001 15:23:59 -0800 + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/compat b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/compat new file mode 100644 index 00000000..b1bd38b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/compat @@ -0,0 +1 @@ +13 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/control new file mode 100644 index 00000000..15066870 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/control @@ -0,0 +1,58 @@ +Source: libbaz +Section: libs +Priority: optional +Maintainer: Lintian Maintainer +Build-depends: debhelper (>=4) +Standards-Version: 3.2.1 + +Package: libbaz1 +Architecture: any +Provides: libbaz +Description: test handling of library packages + Regression test for lintian's handling of libraries. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz1-dev +Architecture: any +Depends: libbaz1 (= ${source:Version}), perlapi-5.8.8 +Description: development package + Regression test for lintian's handling of libraries (dev). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2 +Architecture: any +Depends: ${shlibs:Depends}, libssl0.9.8 +Description: test handling of library packages (good) + Regression test for lintian's handling of libraries (good). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2-dev +Architecture: any +Depends: ${shlibs:Depends}, libbaz2 (= ${source:Version}) +Description: development package (good) + Regression test for lintian's handling of libraries (dev good). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2-dbg +Architecture: any +Depends: libbaz2 (= ${binary:Version}) +Priority: optional +Description: debugging package + Regression test for lintian's handling of libraries (debug). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/copyright new file mode 100644 index 00000000..a874c878 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/copyright @@ -0,0 +1,8 @@ +This package is released under public domain. This is distributed in the hope +that it will be useful, but without any warranty; without even the implied +warranty of merchantability or fitness for a particular purpose. + +A reference to /usr/share/common-licenses/GPL-2 to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +However, this has an OpenSSL exception. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/dev.postinst b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/dev.postinst new file mode 100644 index 00000000..683e3cc5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/dev.postinst @@ -0,0 +1,4 @@ +#!/bin/sh -e + +$PKG=libbaz1-dev + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/dev.prerm b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/dev.prerm new file mode 100644 index 00000000..683e3cc5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/dev.prerm @@ -0,0 +1,4 @@ +#!/bin/sh -e + +$PKG=libbaz1-dev + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/lib.postinst b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/lib.postinst new file mode 100644 index 00000000..ec0b98ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/lib.postinst @@ -0,0 +1,10 @@ +#!/bin/sh -e + +$PKG=libbaz1 + +if [ "$1" = "configure" ]; then + if [ -d /usr/doc -a ! -e /usr/doc/$PKG -a -d /usr/share/doc/$PKG ] +; then + ln -sf ../share/doc/$PKG /usr/doc/$PKG + fi +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/lib.prerm b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/lib.prerm new file mode 100644 index 00000000..50e37c3b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/lib.prerm @@ -0,0 +1,7 @@ +#!/bin/sh -e + +$PKG=libbaz1 + +if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/$PKG ]; then + rm -f /usr/doc/$PKG +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/lib.shlibs b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/lib.shlibs new file mode 100644 index 00000000..b88e2882 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/lib.shlibs @@ -0,0 +1,8 @@ +libdoesntexist2 1.0 libbaz1 +libdoesntexist2 1.0 libbaz1 +libbaz2 1.1 libbaz +libbaz3 1 libbaz1 (>> 1-1) +libbaz4 1 libbaz1 (= 1-1) +libbaz5 1 libbaz2 +udeb: libdoesntexist2 1.0 libbaz2 +udeb: libdoesntexist2 1.0 libbaz2 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/lib.symbols b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/lib.symbols new file mode 100644 index 00000000..72f9d8ab --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/lib.symbols @@ -0,0 +1,3 @@ +libbaz.so.2 libbaz1 #MINVER# + pw 1-1 + foo 1.1-1 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/rules new file mode 100755 index 00000000..fa99bc8a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/rules @@ -0,0 +1,121 @@ +#!/usr/bin/make -f + +lib_tmp=debian/tmp-lib +dev_tmp=debian/tmp-dev + +LIB=libbaz1 +DEV=libbaz1-dev + +VENDORARCH := $(shell perl -MConfig -wE'say substr($$Config{vendorarch},1)') + +build-arch: + $(MAKE) + +build-indep: + +build: build-arch build-indep + +clean: + $(MAKE) clean + dh_clean -plibbaz2 -plibbaz2-dev + rm -f debian/files debian/substvars + rm -rf $(lib_tmp) $(dev_tmp) + +# Now the correct libbaz2-dev package +binary-correct: + install -d debian/libbaz2-dev/usr/lib + cp -a libbaz2.a libbaz2.so debian/libbaz2-dev/usr/lib + # usually, I'd also include some .h files to /usr/include + + # Now the correct libbaz2 package + install -d debian/libbaz2/usr/lib + cp -a libbaz2.so.* debian/libbaz2/usr/lib + chmod a-x debian/libbaz2/usr/lib/* + + # General stuff that is tested in other testsets: + dh_installdocs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_compress -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + + # Mess up the libbaz2 changelog files to test the symlink handling. + ln -s /usr/share/doc/lintian/changelog.gz \ + debian/libbaz2/usr/share/doc/libbaz2/changelog.gz + install -m 644 debian/changelog \ + debian/libbaz2-dev/usr/share/doc/libbaz2-dev/foo + ln -s foo debian/libbaz2-dev/usr/share/doc/libbaz2-dev/changelog + + # Okay, if either line is omitted, it should be noted + dh_strip --dbg-package=libbaz2-dbg -plibbaz2 -plibbaz2-dev + dh_makeshlibs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_shlibdeps -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + + # and again, regular packaging stuff + dh_installdeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + echo udeb: libbaz2 1.0 libbaz2 >> debian/libbaz2/DEBIAN/shlibs + dh_gencontrol -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_builddeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + +# and the incorrect one +binary-arch: build-arch binary-correct + # first, the lib package + install -d $(lib_tmp)/usr/lib + # resp. no soname (check), wrong soname (check), and no-pic (check) + cp -a libbaz1.so.1.0* $(lib_tmp)/usr/lib + cp -a libbaz2.so.1.0.3b $(lib_tmp)/usr/lib/libfoo2.so.1.0.3b + install -m644 libbaz3.so.1.0.3b $(lib_tmp)/usr/lib/libbaz3.so.1.0.3b + # let's include the .a in the non-dev too (TODO) + # Also, libbaz1.a hasn't a symbol table (TODO) + cp -a *.a $(lib_tmp)/usr/lib + # And a wrong .so symlink (wrong, only in -dev, TODO) + ln -s libfoo3.so.0.9 $(lib_tmp)/usr/lib/libfoo3.so + # And a wrong .so.X symlink (wrong, should point to a real existing + # shlib, TODO) + ln -s libfoo.so.0.9.1 $(lib_tmp)/usr/lib/libfoo.so.0.9 + # And a plain .so (wrong, TODO) + touch $(lib_tmp)/usr/lib/libbar2.so + # And a non-versioned SONAME. + install -m644 libbaz.so $(lib_tmp)/usr/lib/libbaz.so + strip --remove-section=.comment --strip-unneeded $(lib_tmp)/usr/lib/libbaz.so + # Pretend to be a Perl module to test a lack of Perl dependencies. + install -d $(lib_tmp)/$(VENDORARCH)/auto/Foo + install -m 644 libbaz2.so.1.0.3b $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + strip $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + + install -d $(lib_tmp)/usr/share/doc/$(LIB) + install -m 644 debian/copyright $(lib_tmp)/usr/share/doc/$(LIB) + install -m 644 debian/changelog $(lib_tmp)/usr/share/doc/$(LIB) + gzip -n -9 $(lib_tmp)/usr/share/doc/$(LIB)/changelog + install -d $(lib_tmp)/DEBIAN + install -m 755 debian/lib.postinst $(lib_tmp)/DEBIAN/postinst + install -m 755 debian/lib.prerm $(lib_tmp)/DEBIAN/prerm + touch $(lib_tmp)/usr/share/doc/README.Debian + #dpkg-shlibdeps $(lib_tmp)/usr/lib/libbaz.so.1.0 + install -m 755 debian/lib.shlibs $(lib_tmp)/DEBIAN/shlibs + install -m 755 debian/lib.symbols $(lib_tmp)/DEBIAN/symbols + dpkg-gencontrol -isp -p$(LIB) -P$(lib_tmp) + dpkg --build $(lib_tmp) .. + + # now the -dev package + install -d $(dev_tmp)/usr/include + install -d $(lib_tmp)/usr/lib + # let's also install the .so at the same time... (wrong, TODO) + cp -a *.a *.so.* $(lib_tmp)/usr/lib + # and fuck up permission (TODO) + chmod a+x $(lib_tmp)/usr/lib/*.a + # Pretend to be a Perl module to test a lack of Perl dependencies. + install -d $(dev_tmp)/$(VENDORARCH)/auto/Foo + install -m 644 libbaz2.so.1.0.3b $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + strip $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + install -d $(dev_tmp)/usr/share/doc + ln -s $(LIB) $(dev_tmp)/usr/share/doc/$(DEV) + install -d $(dev_tmp)/DEBIAN + install -m 755 debian/dev.postinst $(dev_tmp)/DEBIAN/postinst + install -m 755 debian/dev.prerm $(dev_tmp)/DEBIAN/prerm + dpkg-gencontrol -isp -p$(DEV) -P$(dev_tmp) + dpkg --build $(dev_tmp) .. + + +binary: binary-arch + +# The mention of binary-indep here should be sufficient to suppress the +# warning that it's not present. +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/source.lintian-overrides b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/source.lintian-overrides new file mode 100644 index 00000000..6008d271 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/source.lintian-overrides @@ -0,0 +1 @@ +libbaz source: maintainer-script-lacks-debhelper-token diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/watch b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/eval/hints new file mode 100644 index 00000000..0a04cbb4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/eval/hints @@ -0,0 +1,6 @@ +libbaz1-dev (binary): missing-dependency-on-libc needed by usr/lib/ma-dir/perl/version/auto/Foo/Foo.so +libbaz1 (binary): undeclared-elf-prerequisites (libc.so.6) [usr/lib/ma-dir/perl/version/auto/Foo/Foo.so] +libbaz1 (binary): undeclared-elf-prerequisites (libc.so.6) [usr/lib/libfoo2.so.1.0.3b] +libbaz1 (binary): undeclared-elf-prerequisites (libc.so.6) [usr/lib/libbaz3.so.1.0.3b] +libbaz1 (binary): undeclared-elf-prerequisites (libc.so.6) [usr/lib/libbaz1.so.1.0.3b] +libbaz1 (binary): undeclared-elf-prerequisites (libc.so.6) [usr/lib/libbaz.so] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/extra.c b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/legacy-libbaz/extra.c new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/numpy/binaries-missing-depends-on-numpy-abi/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/numpy/binaries-missing-depends-on-numpy-abi/ORIGIN new file mode 100644 index 00000000..53feb4d2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/numpy/binaries-missing-depends-on-numpy-abi/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/prerequisites/numpy/binaries-missing-depends-on-numpy-abi + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/numpy/binaries-missing-depends-on-numpy-abi/basic.c b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/numpy/binaries-missing-depends-on-numpy-abi/basic.c new file mode 100644 index 00000000..6b475c46 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/numpy/binaries-missing-depends-on-numpy-abi/basic.c @@ -0,0 +1,22 @@ +#include +#include +#include +#include + +#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION + +static void +hardening_trigger(char *p, int i, void (*f)(char *)) +{ + char test[10]; + memcpy(test, p, i); + f(test); + printf("%s", test); +} + +void * do_import_array(void) +{ + import_array(); + hardening_trigger(NULL, 0, NULL); + return NULL; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/numpy/binaries-missing-depends-on-numpy-abi/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/numpy/binaries-missing-depends-on-numpy-abi/debian/changelog new file mode 100644 index 00000000..ac391f74 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/numpy/binaries-missing-depends-on-numpy-abi/debian/changelog @@ -0,0 +1,17 @@ +binaries-missing-depends-on-numpy-abi (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-missing-depends-on-numpy-abi + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +binaries-missing-depends-on-numpy-abi (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-missing-depends-on-numpy-abi + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/numpy/binaries-missing-depends-on-numpy-abi/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/numpy/binaries-missing-depends-on-numpy-abi/debian/control new file mode 100644 index 00000000..57eb2af3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/numpy/binaries-missing-depends-on-numpy-abi/debian/control @@ -0,0 +1,17 @@ +Source: binaries-missing-depends-on-numpy-abi +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), python3-all-dev, python3-numpy, dh-python, python3-setuptools +Homepage: https://lintian.debian.org/ + +Package: binaries-missing-depends-on-numpy-abi +Architecture: any +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for missing dependency on python3-numpy-abiN + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/numpy/binaries-missing-depends-on-numpy-abi/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/numpy/binaries-missing-depends-on-numpy-abi/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/numpy/binaries-missing-depends-on-numpy-abi/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/numpy/binaries-missing-depends-on-numpy-abi/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/numpy/binaries-missing-depends-on-numpy-abi/debian/rules new file mode 100644 index 00000000..eb1e7883 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/numpy/binaries-missing-depends-on-numpy-abi/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie +export DEB_LDFLAGS_MAINT_APPEND=-Wl,--no-as-needed -fPIC + +%: + dh $@ --buildsystem pybuild diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/numpy/binaries-missing-depends-on-numpy-abi/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/numpy/binaries-missing-depends-on-numpy-abi/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/numpy/binaries-missing-depends-on-numpy-abi/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/numpy/binaries-missing-depends-on-numpy-abi/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/numpy/binaries-missing-depends-on-numpy-abi/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/numpy/binaries-missing-depends-on-numpy-abi/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/numpy/binaries-missing-depends-on-numpy-abi/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/numpy/binaries-missing-depends-on-numpy-abi/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/numpy/binaries-missing-depends-on-numpy-abi/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/numpy/binaries-missing-depends-on-numpy-abi/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/numpy/binaries-missing-depends-on-numpy-abi/eval/hints new file mode 100644 index 00000000..feadb980 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/numpy/binaries-missing-depends-on-numpy-abi/eval/hints @@ -0,0 +1 @@ +binaries-missing-depends-on-numpy-abi (binary): missing-dependency-on-numpy-abi diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/numpy/binaries-missing-depends-on-numpy-abi/setup.py b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/numpy/binaries-missing-depends-on-numpy-abi/setup.py new file mode 100644 index 00000000..675a9ea7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/numpy/binaries-missing-depends-on-numpy-abi/setup.py @@ -0,0 +1,9 @@ +import setuptools +import numpy + +setuptools.setup( + ext_modules=[ + setuptools.Extension('basic', ['basic.c'], + include_dirs=[numpy.get_include()]), + ], +) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/binaries-missing-depends-on-xapi/Makefile b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/binaries-missing-depends-on-xapi/Makefile new file mode 100644 index 00000000..5c9cbaf8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/binaries-missing-depends-on-xapi/Makefile @@ -0,0 +1,16 @@ +all: + gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -fPIC -shared -Wl,-z,defs -Wl,-soname,libbasic.so.2 -o libbasic.so basic.c + +VENDORARCH := $(shell perl -MConfig -wE'say substr($$Config{vendorarch},1)') + +install: + # install it under the correct triplet directory + install -d $(DESTDIR)/$(VENDORARCH) + install -m 644 -c -s libbasic.so $(DESTDIR)/$(VENDORARCH)/libbasic.so + install -d $(DESTDIR)/usr/lib/php5 + install -m 644 -c -s libbasic.so $(DESTDIR)/usr/lib/php5/libbasic.so + +clean distclean: + rm -f libbasic.so.2 + +check test: diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/binaries-missing-depends-on-xapi/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/binaries-missing-depends-on-xapi/ORIGIN new file mode 100644 index 00000000..d4b688ba --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/binaries-missing-depends-on-xapi/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/prerequisites/perl/binaries-missing-depends-on-xapi + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/binaries-missing-depends-on-xapi/basic.c b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/binaries-missing-depends-on-xapi/basic.c new file mode 100644 index 00000000..27e93fcc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/binaries-missing-depends-on-xapi/basic.c @@ -0,0 +1,19 @@ +#include +#include + +static void +hardening_trigger(char *p, int i, void (*f)(char *)) +{ + char test[10]; + memcpy(test, p, i); + f(test); + printf("%s", test); +} + +int +lib_interface(void) +{ + printf("Hello world!\n"); + hardening_trigger(NULL, 0, NULL); + return 0; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/binaries-missing-depends-on-xapi/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/binaries-missing-depends-on-xapi/debian/changelog new file mode 100644 index 00000000..5e6147b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/binaries-missing-depends-on-xapi/debian/changelog @@ -0,0 +1,17 @@ +binaries-missing-depends-on-xapi (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-missing-depends-on-xapi + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +binaries-missing-depends-on-xapi (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-missing-depends-on-xapi + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/binaries-missing-depends-on-xapi/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/binaries-missing-depends-on-xapi/debian/control new file mode 100644 index 00000000..aba172b4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/binaries-missing-depends-on-xapi/debian/control @@ -0,0 +1,17 @@ +Source: binaries-missing-depends-on-xapi +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: binaries-missing-depends-on-xapi +Architecture: any +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for missing perlapi depends + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/binaries-missing-depends-on-xapi/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/binaries-missing-depends-on-xapi/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/binaries-missing-depends-on-xapi/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/binaries-missing-depends-on-xapi/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/binaries-missing-depends-on-xapi/debian/rules new file mode 100644 index 00000000..7b559406 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/binaries-missing-depends-on-xapi/debian/rules @@ -0,0 +1,17 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +override_dh_perl: + +override_dh_builddeb: + # Work around debhelper bug (triggers useless call to ldconfig) + rm -f debian/*/DEBIAN/postinst debian/*/DEBIAN/postrm + rm -f debian/*/DEBIAN/triggers + dh_builddeb + +# errors out with: objcopy: '.../binaries-missing-depends-on-xapi.debug': No such file +override_dh_dwz: diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/binaries-missing-depends-on-xapi/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/binaries-missing-depends-on-xapi/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/binaries-missing-depends-on-xapi/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/binaries-missing-depends-on-xapi/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/binaries-missing-depends-on-xapi/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/binaries-missing-depends-on-xapi/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/binaries-missing-depends-on-xapi/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/binaries-missing-depends-on-xapi/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/binaries-missing-depends-on-xapi/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/binaries-missing-depends-on-xapi/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/binaries-missing-depends-on-xapi/eval/hints new file mode 100644 index 00000000..6d97760e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/binaries-missing-depends-on-xapi/eval/hints @@ -0,0 +1 @@ +binaries-missing-depends-on-xapi (binary): missing-dependency-on-perlapi diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/Makefile b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/Makefile new file mode 100644 index 00000000..657dc2ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/Makefile @@ -0,0 +1,55 @@ +# This is the correct way to build a lib + +CC=gcc +CFLAGS=-g -Wall -Winline -O2 +LDFLAGS=-Wl,--no-as-needed + +OBJS=baz.o extra.o +SHOBJS=baz.sho extra.sho +NOPICOBJS = $(SHOBJS) + +all: libbaz1.a libbaz2.a libbaz1.so.1.0.3b libbaz2.so libbaz3.so.1.0.3b \ + libbaz.so + +libbaz2.so: libbaz2.so.1.0 + ln -sf $^ $@ +libbaz2.so.1.0: libbaz2.so.1.0.3b + ln -sf $^ $@ + +# Oops, forget the soname altogether +libbaz1.so.1.0.3b: $(NOPICOBJS) + $(CC) $(LDFLAGS) -o $@ -shared $^ -lc + +libbaz2.so.1.0.3b: $(SHOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz2.so.1.0 $^ -lc + +# Non-PIC. We can't test this on all architectures +libbaz3.so.1.0.3b: $(NOPICOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz3.so.1 $^ -lc + +# Non-versioned SONAME. +libbaz.so: $(SHOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz.so $^ -lc + +#%.o-noreentrant: %.c +# $(CC) $(LDFLAGS) $(CFLAGS) -o $@ -c $< + +%.sho: %.c + $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -fPIC -o $@ -c $< + +%.o: %.c + $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -o $@ -c $< + +libbaz2.a: $(OBJS) + ar cq $@ $(OBJS) + strip --strip-unneeded --remove-section=.comment \ + --remove-section=-note $@ + ranlib $@ + +# The pic one in the .a (wrong), no archive table +libbaz1.a: $(SHOBJS) + ar cqS $@ $^ + strip --strip-unneeded --remove-section=.comment \ + --remove-section=-note $@ +clean: + rm -f *.a *.o *.so* *.sho diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/ORIGIN new file mode 100644 index 00000000..d8cc4751 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/prerequisites/perl/legacy-libbaz + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/baz.c b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/baz.c new file mode 100644 index 00000000..4d5fc458 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/baz.c @@ -0,0 +1,6 @@ +#include + +double pw(double p) +{ + return exp(p); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/changelog new file mode 100644 index 00000000..44c0a832 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/changelog @@ -0,0 +1,6 @@ +libbaz (1-1) unstable; urgency=low + + * Initial setup + + -- Sean 'Shaleh' Perry Tue, 30 Jan 2001 15:23:59 -0800 + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/compat b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/compat new file mode 100644 index 00000000..b1bd38b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/compat @@ -0,0 +1 @@ +13 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/control new file mode 100644 index 00000000..15066870 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/control @@ -0,0 +1,58 @@ +Source: libbaz +Section: libs +Priority: optional +Maintainer: Lintian Maintainer +Build-depends: debhelper (>=4) +Standards-Version: 3.2.1 + +Package: libbaz1 +Architecture: any +Provides: libbaz +Description: test handling of library packages + Regression test for lintian's handling of libraries. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz1-dev +Architecture: any +Depends: libbaz1 (= ${source:Version}), perlapi-5.8.8 +Description: development package + Regression test for lintian's handling of libraries (dev). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2 +Architecture: any +Depends: ${shlibs:Depends}, libssl0.9.8 +Description: test handling of library packages (good) + Regression test for lintian's handling of libraries (good). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2-dev +Architecture: any +Depends: ${shlibs:Depends}, libbaz2 (= ${source:Version}) +Description: development package (good) + Regression test for lintian's handling of libraries (dev good). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2-dbg +Architecture: any +Depends: libbaz2 (= ${binary:Version}) +Priority: optional +Description: debugging package + Regression test for lintian's handling of libraries (debug). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/copyright new file mode 100644 index 00000000..a874c878 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/copyright @@ -0,0 +1,8 @@ +This package is released under public domain. This is distributed in the hope +that it will be useful, but without any warranty; without even the implied +warranty of merchantability or fitness for a particular purpose. + +A reference to /usr/share/common-licenses/GPL-2 to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +However, this has an OpenSSL exception. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/dev.postinst b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/dev.postinst new file mode 100644 index 00000000..683e3cc5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/dev.postinst @@ -0,0 +1,4 @@ +#!/bin/sh -e + +$PKG=libbaz1-dev + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/dev.prerm b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/dev.prerm new file mode 100644 index 00000000..683e3cc5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/dev.prerm @@ -0,0 +1,4 @@ +#!/bin/sh -e + +$PKG=libbaz1-dev + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/lib.postinst b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/lib.postinst new file mode 100644 index 00000000..ec0b98ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/lib.postinst @@ -0,0 +1,10 @@ +#!/bin/sh -e + +$PKG=libbaz1 + +if [ "$1" = "configure" ]; then + if [ -d /usr/doc -a ! -e /usr/doc/$PKG -a -d /usr/share/doc/$PKG ] +; then + ln -sf ../share/doc/$PKG /usr/doc/$PKG + fi +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/lib.prerm b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/lib.prerm new file mode 100644 index 00000000..50e37c3b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/lib.prerm @@ -0,0 +1,7 @@ +#!/bin/sh -e + +$PKG=libbaz1 + +if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/$PKG ]; then + rm -f /usr/doc/$PKG +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/lib.shlibs b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/lib.shlibs new file mode 100644 index 00000000..b88e2882 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/lib.shlibs @@ -0,0 +1,8 @@ +libdoesntexist2 1.0 libbaz1 +libdoesntexist2 1.0 libbaz1 +libbaz2 1.1 libbaz +libbaz3 1 libbaz1 (>> 1-1) +libbaz4 1 libbaz1 (= 1-1) +libbaz5 1 libbaz2 +udeb: libdoesntexist2 1.0 libbaz2 +udeb: libdoesntexist2 1.0 libbaz2 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/lib.symbols b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/lib.symbols new file mode 100644 index 00000000..72f9d8ab --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/lib.symbols @@ -0,0 +1,3 @@ +libbaz.so.2 libbaz1 #MINVER# + pw 1-1 + foo 1.1-1 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/rules new file mode 100755 index 00000000..fa99bc8a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/rules @@ -0,0 +1,121 @@ +#!/usr/bin/make -f + +lib_tmp=debian/tmp-lib +dev_tmp=debian/tmp-dev + +LIB=libbaz1 +DEV=libbaz1-dev + +VENDORARCH := $(shell perl -MConfig -wE'say substr($$Config{vendorarch},1)') + +build-arch: + $(MAKE) + +build-indep: + +build: build-arch build-indep + +clean: + $(MAKE) clean + dh_clean -plibbaz2 -plibbaz2-dev + rm -f debian/files debian/substvars + rm -rf $(lib_tmp) $(dev_tmp) + +# Now the correct libbaz2-dev package +binary-correct: + install -d debian/libbaz2-dev/usr/lib + cp -a libbaz2.a libbaz2.so debian/libbaz2-dev/usr/lib + # usually, I'd also include some .h files to /usr/include + + # Now the correct libbaz2 package + install -d debian/libbaz2/usr/lib + cp -a libbaz2.so.* debian/libbaz2/usr/lib + chmod a-x debian/libbaz2/usr/lib/* + + # General stuff that is tested in other testsets: + dh_installdocs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_compress -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + + # Mess up the libbaz2 changelog files to test the symlink handling. + ln -s /usr/share/doc/lintian/changelog.gz \ + debian/libbaz2/usr/share/doc/libbaz2/changelog.gz + install -m 644 debian/changelog \ + debian/libbaz2-dev/usr/share/doc/libbaz2-dev/foo + ln -s foo debian/libbaz2-dev/usr/share/doc/libbaz2-dev/changelog + + # Okay, if either line is omitted, it should be noted + dh_strip --dbg-package=libbaz2-dbg -plibbaz2 -plibbaz2-dev + dh_makeshlibs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_shlibdeps -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + + # and again, regular packaging stuff + dh_installdeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + echo udeb: libbaz2 1.0 libbaz2 >> debian/libbaz2/DEBIAN/shlibs + dh_gencontrol -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_builddeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + +# and the incorrect one +binary-arch: build-arch binary-correct + # first, the lib package + install -d $(lib_tmp)/usr/lib + # resp. no soname (check), wrong soname (check), and no-pic (check) + cp -a libbaz1.so.1.0* $(lib_tmp)/usr/lib + cp -a libbaz2.so.1.0.3b $(lib_tmp)/usr/lib/libfoo2.so.1.0.3b + install -m644 libbaz3.so.1.0.3b $(lib_tmp)/usr/lib/libbaz3.so.1.0.3b + # let's include the .a in the non-dev too (TODO) + # Also, libbaz1.a hasn't a symbol table (TODO) + cp -a *.a $(lib_tmp)/usr/lib + # And a wrong .so symlink (wrong, only in -dev, TODO) + ln -s libfoo3.so.0.9 $(lib_tmp)/usr/lib/libfoo3.so + # And a wrong .so.X symlink (wrong, should point to a real existing + # shlib, TODO) + ln -s libfoo.so.0.9.1 $(lib_tmp)/usr/lib/libfoo.so.0.9 + # And a plain .so (wrong, TODO) + touch $(lib_tmp)/usr/lib/libbar2.so + # And a non-versioned SONAME. + install -m644 libbaz.so $(lib_tmp)/usr/lib/libbaz.so + strip --remove-section=.comment --strip-unneeded $(lib_tmp)/usr/lib/libbaz.so + # Pretend to be a Perl module to test a lack of Perl dependencies. + install -d $(lib_tmp)/$(VENDORARCH)/auto/Foo + install -m 644 libbaz2.so.1.0.3b $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + strip $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + + install -d $(lib_tmp)/usr/share/doc/$(LIB) + install -m 644 debian/copyright $(lib_tmp)/usr/share/doc/$(LIB) + install -m 644 debian/changelog $(lib_tmp)/usr/share/doc/$(LIB) + gzip -n -9 $(lib_tmp)/usr/share/doc/$(LIB)/changelog + install -d $(lib_tmp)/DEBIAN + install -m 755 debian/lib.postinst $(lib_tmp)/DEBIAN/postinst + install -m 755 debian/lib.prerm $(lib_tmp)/DEBIAN/prerm + touch $(lib_tmp)/usr/share/doc/README.Debian + #dpkg-shlibdeps $(lib_tmp)/usr/lib/libbaz.so.1.0 + install -m 755 debian/lib.shlibs $(lib_tmp)/DEBIAN/shlibs + install -m 755 debian/lib.symbols $(lib_tmp)/DEBIAN/symbols + dpkg-gencontrol -isp -p$(LIB) -P$(lib_tmp) + dpkg --build $(lib_tmp) .. + + # now the -dev package + install -d $(dev_tmp)/usr/include + install -d $(lib_tmp)/usr/lib + # let's also install the .so at the same time... (wrong, TODO) + cp -a *.a *.so.* $(lib_tmp)/usr/lib + # and fuck up permission (TODO) + chmod a+x $(lib_tmp)/usr/lib/*.a + # Pretend to be a Perl module to test a lack of Perl dependencies. + install -d $(dev_tmp)/$(VENDORARCH)/auto/Foo + install -m 644 libbaz2.so.1.0.3b $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + strip $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + install -d $(dev_tmp)/usr/share/doc + ln -s $(LIB) $(dev_tmp)/usr/share/doc/$(DEV) + install -d $(dev_tmp)/DEBIAN + install -m 755 debian/dev.postinst $(dev_tmp)/DEBIAN/postinst + install -m 755 debian/dev.prerm $(dev_tmp)/DEBIAN/prerm + dpkg-gencontrol -isp -p$(DEV) -P$(dev_tmp) + dpkg --build $(dev_tmp) .. + + +binary: binary-arch + +# The mention of binary-indep here should be sufficient to suppress the +# warning that it's not present. +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/source.lintian-overrides b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/source.lintian-overrides new file mode 100644 index 00000000..6008d271 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/source.lintian-overrides @@ -0,0 +1 @@ +libbaz source: maintainer-script-lacks-debhelper-token diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/watch b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/eval/hints new file mode 100644 index 00000000..423e913a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/eval/hints @@ -0,0 +1 @@ +libbaz1 (binary): missing-dependency-on-perlapi diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/extra.c b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/perl/legacy-libbaz/extra.c new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/php/binaries-missing-depends-on-xapi/Makefile b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/php/binaries-missing-depends-on-xapi/Makefile new file mode 100644 index 00000000..5c9cbaf8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/php/binaries-missing-depends-on-xapi/Makefile @@ -0,0 +1,16 @@ +all: + gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -fPIC -shared -Wl,-z,defs -Wl,-soname,libbasic.so.2 -o libbasic.so basic.c + +VENDORARCH := $(shell perl -MConfig -wE'say substr($$Config{vendorarch},1)') + +install: + # install it under the correct triplet directory + install -d $(DESTDIR)/$(VENDORARCH) + install -m 644 -c -s libbasic.so $(DESTDIR)/$(VENDORARCH)/libbasic.so + install -d $(DESTDIR)/usr/lib/php5 + install -m 644 -c -s libbasic.so $(DESTDIR)/usr/lib/php5/libbasic.so + +clean distclean: + rm -f libbasic.so.2 + +check test: diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/php/binaries-missing-depends-on-xapi/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/php/binaries-missing-depends-on-xapi/ORIGIN new file mode 100644 index 00000000..39d9e60e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/php/binaries-missing-depends-on-xapi/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/prerequisites/php/binaries-missing-depends-on-xapi + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/php/binaries-missing-depends-on-xapi/basic.c b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/php/binaries-missing-depends-on-xapi/basic.c new file mode 100644 index 00000000..27e93fcc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/php/binaries-missing-depends-on-xapi/basic.c @@ -0,0 +1,19 @@ +#include +#include + +static void +hardening_trigger(char *p, int i, void (*f)(char *)) +{ + char test[10]; + memcpy(test, p, i); + f(test); + printf("%s", test); +} + +int +lib_interface(void) +{ + printf("Hello world!\n"); + hardening_trigger(NULL, 0, NULL); + return 0; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/php/binaries-missing-depends-on-xapi/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/php/binaries-missing-depends-on-xapi/debian/changelog new file mode 100644 index 00000000..5e6147b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/php/binaries-missing-depends-on-xapi/debian/changelog @@ -0,0 +1,17 @@ +binaries-missing-depends-on-xapi (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-missing-depends-on-xapi + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +binaries-missing-depends-on-xapi (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-missing-depends-on-xapi + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/php/binaries-missing-depends-on-xapi/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/php/binaries-missing-depends-on-xapi/debian/control new file mode 100644 index 00000000..aba172b4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/php/binaries-missing-depends-on-xapi/debian/control @@ -0,0 +1,17 @@ +Source: binaries-missing-depends-on-xapi +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: binaries-missing-depends-on-xapi +Architecture: any +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for missing perlapi depends + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/php/binaries-missing-depends-on-xapi/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/php/binaries-missing-depends-on-xapi/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/php/binaries-missing-depends-on-xapi/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/php/binaries-missing-depends-on-xapi/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/php/binaries-missing-depends-on-xapi/debian/rules new file mode 100644 index 00000000..7b559406 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/php/binaries-missing-depends-on-xapi/debian/rules @@ -0,0 +1,17 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +override_dh_perl: + +override_dh_builddeb: + # Work around debhelper bug (triggers useless call to ldconfig) + rm -f debian/*/DEBIAN/postinst debian/*/DEBIAN/postrm + rm -f debian/*/DEBIAN/triggers + dh_builddeb + +# errors out with: objcopy: '.../binaries-missing-depends-on-xapi.debug': No such file +override_dh_dwz: diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/php/binaries-missing-depends-on-xapi/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/php/binaries-missing-depends-on-xapi/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/php/binaries-missing-depends-on-xapi/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/php/binaries-missing-depends-on-xapi/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/php/binaries-missing-depends-on-xapi/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/php/binaries-missing-depends-on-xapi/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/php/binaries-missing-depends-on-xapi/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/php/binaries-missing-depends-on-xapi/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/php/binaries-missing-depends-on-xapi/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/php/binaries-missing-depends-on-xapi/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/php/binaries-missing-depends-on-xapi/eval/hints new file mode 100644 index 00000000..0791fd8e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/php/binaries-missing-depends-on-xapi/eval/hints @@ -0,0 +1 @@ +binaries-missing-depends-on-xapi (binary): missing-dependency-on-phpapi diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/Makefile b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/Makefile new file mode 100644 index 00000000..bf92eaf5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/Makefile @@ -0,0 +1,37 @@ +# This test works on amd64 when the cross-compiler for armhf is installed. +# +# The build prerequisite was not added to Lintian, however, since it was +# not clear how the architecture would be enabled in the Gitlab CI +# runner. +# +# On amd64 or i386, please follow these steps to run the test: +# +# dpkg --add-architecture armhf +# apt update +# apt install gcc-arm-linux-gnueabihf +# +# On all other architectures this may work, but was not tested: +# +# dpkg --add-architecture amd64 +# apt update +# apt install gcc-x86-64-linux-gnu +# +# (Taken from: https://wiki.debian.org/CrossToolchains) + +ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH) + +ifeq ($(ARCH),amd64) +CC := arm-linux-gnueabihf-gcc +else +CC := x86_64-linux-gnu-gcc +endif + +foreign-binary: hello.c + $(CC) $^ -o $@ + +.PHONY: clean +clean: + rm -f foreign-binary + +.PHONY: clean +distclean: clean diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/ORIGIN new file mode 100644 index 00000000..42f8562e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/prerequisites/wrong-binary-architecture + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/debian/changelog new file mode 100644 index 00000000..8ee38570 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/debian/changelog @@ -0,0 +1,17 @@ +wrong-binary-architecture (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: wrong-binary-architecture + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +wrong-binary-architecture (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: wrong-binary-architecture + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/debian/control new file mode 100644 index 00000000..9ae403c4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/debian/control @@ -0,0 +1,17 @@ +Source: wrong-binary-architecture +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), gcc-arm-linux-gnueabihf [amd64 i386], gcc-x86-64-linux-gnu [!amd64 !i386] +Homepage: https://lintian.debian.org/ + +Package: wrong-binary-architecture +Architecture: any +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Binary architecture does not match package declaration + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/debian/install b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/debian/install new file mode 100644 index 00000000..c10e5786 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/debian/install @@ -0,0 +1 @@ +foreign-binary usr/bin diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/debian/rules new file mode 100755 index 00000000..2ce6f536 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/debian/rules @@ -0,0 +1,22 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +override_dh_strip: + # do not try to strip cross-compiled binaries with native tooling + +override_dh_shlibdeps: + # do not try to include missing libraries + +override_dh_dwz: + # cross-compiled binaries do not always seem to have a debug section + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/eval/hints new file mode 100644 index 00000000..d0ee0e7c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/eval/hints @@ -0,0 +1 @@ +wrong-binary-architecture (binary): undeclared-elf-prerequisites (libc.so.6) [usr/bin/foreign-binary] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/hello.c b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/hello.c new file mode 100644 index 00000000..2fb04e17 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/prerequisites/wrong-binary-architecture/hello.c @@ -0,0 +1,8 @@ +#include +#include + +int main(int argc, char *argv[]) { + + printf("Hello, World!\n"); + exit(0); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/Makefile b/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/Makefile new file mode 100644 index 00000000..9884f492 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/Makefile @@ -0,0 +1,66 @@ +# turn off PIE in CC in case we have a PIEful toolchain: +ifneq ($(findstring -no-pie,$(shell gcc -no-pie 2>&1)),) + CC := gcc +else + CC := gcc -fno-pie -no-pie +endif + +NOPIE_CFLAGS = $(filter-out -fPIE,$(CFLAGS)) +NOPIE_LDFLAGS = $(filter-out -fPIE -pie,$(LDFLAGS)) +COMPILE:= $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) +COMPILE_NOPIE:= $(CC) $(NOPIE_CFLAGS) $(CPPFLAGS) $(NOPIE_LDFLAGS) +# extract from readelf +GETBUILDID:=./getbuildid + +all: + # rpath not matching any of the exceptions to the rpath checks + # - with profiling enabled. + $(COMPILE_NOPIE) -o basic basic.c -pg -Wl,--rpath,/usr/local/lib + $(COMPILE_NOPIE) -o basic.nofentry basic.c -pg $(NO_FENTRY) -Wl,--rpath,/usr/local/lib + # rpath shipped in the package, but one of {/usr}?/lib + $(COMPILE) -o basiclibrpath basic.c -Wl,--rpath,/usr/lib + # non-special rpath shipped in the package + $(COMPILE) -o basicshippedrpath basic.c -Wl,--rpath,/usr/share/foo + # special rpath shipped in the package, multiple paths + $(COMPILE) -o basicshippedrpathmore basic.c -Wl,--rpath,/usr/lib/binaries-general:/usr/lib/binaries-general/bar + # static version of basic for debugging checks + $(COMPILE_NOPIE) -static -o basic.static basic.c + # static executable to trigger ocaml check + $(COMPILE_NOPIE) -o ocaml-exec ocaml.c + # version with debug + $(COMPILE) -o basicdebug -g3 -Wl,--build-id basic.c + +install: + # according to local debian rules /usr/lib/debug is unstripped + install -d $(DESTDIR)/usr/share/foo/ + install -d $(DESTDIR)/usr/lib/debug/usr/share/foo/ + install -d $(DESTDIR)/usr/lib/foo/ + install -d $(DESTDIR)/usr/bin + + install -m 755 -c basic $(DESTDIR)/usr/share/foo/basic + install -m 755 -c basic.nofentry $(DESTDIR)/usr/share/foo/basic.nofentry + objcopy --only-keep-debug basic $(DESTDIR)/usr/lib/debug/usr/share/foo/basic + strip -s $(DESTDIR)/usr/lib/debug/usr/share/foo/basic + install -m 755 -c basiclibrpath $(DESTDIR)/usr/lib/foo/basiclibrpath + install -m 755 -c basicshippedrpath $(DESTDIR)/usr/lib/foo/basicshippedrpath + install -m 755 -c ocaml-exec $(DESTDIR)/usr/lib/foo/ocaml-exec + install -m 744 -c basicshippedrpathmore $(DESTDIR)/usr/lib/foo/basicshippedrpathmore + objcopy --only-keep-debug basic $(DESTDIR)/usr/lib/debug/basic + install -d "$(DESTDIR)/usr/lib/debug/.build-id/"`$(GETBUILDID) -s basicdebug` + install -m 755 -c basicdebug $(DESTDIR)/usr/share/foo/basicdebug + # force fake buildid in order to have tag matching ok (deadbeefdeadbeef) + install -d "$(DESTDIR)/usr/lib/debug/.build-id/de" + objcopy --compress-debug-sections basicdebug \ + "$(DESTDIR)/usr/lib/debug/.build-id/de/deadbeefdeadbeef.debug" + install -d "$(DESTDIR)/usr/lib/debug/.build-id/"`$(GETBUILDID) -s basicdebug` + objcopy --compress-debug-sections --only-keep-debug basicdebug \ + "$(DESTDIR)/usr/lib/debug/.build-id/"`$(GETBUILDID) -s basicdebug`"/"`$(GETBUILDID) -f basicdebug`.debug + install -m 755 -c basic.static $(DESTDIR)/usr/lib/debug/ + # according to local debian rules unstripped in name avoid dh_strip to do the work + install -m 755 basicdebug $(DESTDIR)/usr/bin/unstripped + install -m 755 basic.static $(DESTDIR)/usr/bin/static + +clean distclean: + rm -f basic basic.nofentry + +check test: diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/ORIGIN new file mode 100644 index 00000000..b3adc701 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/profiling/binaries-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/basic.c b/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/basic.c new file mode 100644 index 00000000..36180047 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/basic.c @@ -0,0 +1,12 @@ +#include +#include + +int +main(int argc, char *argv[]) +{ + char t[10]; + printf("Hello world!\n"); + /* forces a stack protector */ + (void) strcpy(t,argv[0]); + return (int) t[0]; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/debian/changelog new file mode 100644 index 00000000..dafd072a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/debian/changelog @@ -0,0 +1,17 @@ +binaries-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +binaries-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/debian/control new file mode 100644 index 00000000..7dec9ad2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/debian/control @@ -0,0 +1,17 @@ +Source: binaries-general +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: binaries-general +Architecture: any +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Misc errors related to binaries + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/debian/rules new file mode 100644 index 00000000..07050ebd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/debian/rules @@ -0,0 +1,15 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all +ifeq ($(DEB_HOST_ARCH), amd64) +export NO_FENTRY := -mno-fentry +endif + +%: + dh $@ + +override_dh_strip: + dh_strip -X usr/lib/debug -X unstripped -X ocaml + +override_dh_dwz: + # Can error with "deadbeefdeadbeef.debug: Found compressed .debug_info section, not attempting dwz compression" diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/eval/hints new file mode 100644 index 00000000..aace022c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/eval/hints @@ -0,0 +1,2 @@ +binaries-general (binary): binary-compiled-with-profiling-enabled [usr/share/foo/basic] +binaries-general (binary): binary-compiled-with-profiling-enabled [usr/share/foo/basic.nofentry] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/getbuildid b/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/getbuildid new file mode 100755 index 00000000..0060d2b1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/getbuildid @@ -0,0 +1,30 @@ +#!/bin/sh +# get build-id of binary + +set -e + +usage() { + echo "Usage: getbuildid [flag] file"; + echo " print build-id of an object file" + echo "flags:" + echo " -f : full build-id (default)." + echo " -s : short build-id aka the first two characters." +} + +if test $# -lt 1; then usage; exit 77; fi +if test $# -gt 3; then usage; exit 77; fi + +if test $# -eq 1; then + LC_ALL=C readelf -n "$1" | grep -i 'Build Id:' | sed 's/.*:[[:blank:]]*\([[:digit:]|abcdef]*\).*/\1/g' +else + case "x$1" in + 'x-f') + LC_ALL=C readelf -n "$2" | grep -i 'Build Id:' | sed 's/.*:[[:blank:]]*\([[:digit:]|abcdef]*\).*/\1/g' ;; + 'x-s') + LC_ALL=C readelf -n "$2" | grep -i 'Build Id:' | sed 's/.*:[[:blank:]]*\([[:digit:]|abcdef]\{2\}\).*/\1/g' ;; + *) + exit 2; + esac +fi + +exit 0; diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/ocaml.c b/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/ocaml.c new file mode 100644 index 00000000..370d17d9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/profiling/binaries-general/ocaml.c @@ -0,0 +1,11 @@ +#include + +int +main(int argc, char **argv) +{ + if (argc > 2) { + puts("Caml1999X000"); + } + puts("\n"); + return 0; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/Makefile b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/Makefile new file mode 100644 index 00000000..cf0f2114 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/Makefile @@ -0,0 +1,64 @@ +# turn off PIE in CC in case we have a PIEful toolchain: +ifneq ($(findstring -no-pie,$(shell gcc -no-pie 2>&1)),) + CC := gcc +else + CC := gcc -fno-pie -no-pie +endif + +NOPIE_CFLAGS = $(filter-out -fPIE,$(CFLAGS)) +NOPIE_LDFLAGS = $(filter-out -fPIE -pie,$(LDFLAGS)) +COMPILE:= $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) +COMPILE_NOPIE:= $(CC) $(NOPIE_CFLAGS) $(CPPFLAGS) $(NOPIE_LDFLAGS) +# extract from readelf +GETBUILDID:=./getbuildid + +all: + # rpath not matching any of the exceptions to the rpath checks + # - with profiling enabled. + $(COMPILE_NOPIE) -o basic basic.c -pg -Wl,--rpath,/usr/local/lib + # rpath shipped in the package, but one of {/usr}?/lib + $(COMPILE) -o basiclibrpath basic.c -Wl,--rpath,/usr/lib + # non-special rpath shipped in the package + $(COMPILE) -o basicshippedrpath basic.c -Wl,--rpath,/usr/share/foo + # special rpath shipped in the package, multiple paths + $(COMPILE) -o basicshippedrpathmore basic.c -Wl,--rpath,/usr/lib/binaries-general:/usr/lib/binaries-general/bar + # static version of basic for debugging checks + $(COMPILE_NOPIE) -static -o basic.static basic.c + # static executable to trigger ocaml check + $(COMPILE_NOPIE) -o ocaml-exec ocaml.c + # version with debug + $(COMPILE) -o basicdebug -g3 -Wl,--build-id basic.c + +install: + # according to local debian rules /usr/lib/debug is unstripped + install -d $(DESTDIR)/usr/share/foo/ + install -d $(DESTDIR)/usr/lib/debug/usr/share/foo/ + install -d $(DESTDIR)/usr/lib/foo/ + install -d $(DESTDIR)/usr/bin + + install -m 755 -c basic $(DESTDIR)/usr/share/foo/basic + objcopy --only-keep-debug basic $(DESTDIR)/usr/lib/debug/usr/share/foo/basic + strip -s $(DESTDIR)/usr/lib/debug/usr/share/foo/basic + install -m 755 -c basiclibrpath $(DESTDIR)/usr/lib/foo/basiclibrpath + install -m 755 -c basicshippedrpath $(DESTDIR)/usr/lib/foo/basicshippedrpath + install -m 755 -c ocaml-exec $(DESTDIR)/usr/lib/foo/ocaml-exec + install -m 744 -c basicshippedrpathmore $(DESTDIR)/usr/lib/foo/basicshippedrpathmore + objcopy --only-keep-debug basic $(DESTDIR)/usr/lib/debug/basic + install -d "$(DESTDIR)/usr/lib/debug/.build-id/"`$(GETBUILDID) -s basicdebug` + install -m 755 -c basicdebug $(DESTDIR)/usr/share/foo/basicdebug + # force fake buildid in order to have tag matching ok (deadbeefdeadbeef) + install -d "$(DESTDIR)/usr/lib/debug/.build-id/de" + objcopy --compress-debug-sections basicdebug \ + "$(DESTDIR)/usr/lib/debug/.build-id/de/deadbeefdeadbeef.debug" + install -d "$(DESTDIR)/usr/lib/debug/.build-id/"`$(GETBUILDID) -s basicdebug` + objcopy --compress-debug-sections --only-keep-debug basicdebug \ + "$(DESTDIR)/usr/lib/debug/.build-id/"`$(GETBUILDID) -s basicdebug`"/"`$(GETBUILDID) -f basicdebug`.debug + install -m 755 -c basic.static $(DESTDIR)/usr/lib/debug/ + # according to local debian rules unstripped in name avoid dh_strip to do the work + install -m 755 basicdebug $(DESTDIR)/usr/bin/unstripped + install -m 755 basic.static $(DESTDIR)/usr/bin/static + +clean distclean: + rm -f basic + +check test: diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/ORIGIN new file mode 100644 index 00000000..43eb9dd4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/rpath/binaries-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/basic.c b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/basic.c new file mode 100644 index 00000000..36180047 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/basic.c @@ -0,0 +1,12 @@ +#include +#include + +int +main(int argc, char *argv[]) +{ + char t[10]; + printf("Hello world!\n"); + /* forces a stack protector */ + (void) strcpy(t,argv[0]); + return (int) t[0]; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/debian/changelog new file mode 100644 index 00000000..dafd072a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/debian/changelog @@ -0,0 +1,17 @@ +binaries-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +binaries-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/debian/control new file mode 100644 index 00000000..7dec9ad2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/debian/control @@ -0,0 +1,17 @@ +Source: binaries-general +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: binaries-general +Architecture: any +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Misc errors related to binaries + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/debian/rules new file mode 100644 index 00000000..3ea7a636 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +override_dh_strip: + dh_strip -X usr/lib/debug -X unstripped -X ocaml + +override_dh_dwz: + # Can error with "deadbeefdeadbeef.debug: Found compressed .debug_info section, not attempting dwz compression" diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/eval/hints new file mode 100644 index 00000000..367a9a39 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/eval/hints @@ -0,0 +1,3 @@ +binaries-general (binary): custom-library-search-path RUNPATH /usr/share/foo [usr/lib/foo/basicshippedrpath] +binaries-general (binary): custom-library-search-path RUNPATH /usr/local/lib [usr/share/foo/basic] +binaries-general (binary): custom-library-search-path RUNPATH /usr/lib [usr/lib/foo/basiclibrpath] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/getbuildid b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/getbuildid new file mode 100755 index 00000000..0060d2b1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/getbuildid @@ -0,0 +1,30 @@ +#!/bin/sh +# get build-id of binary + +set -e + +usage() { + echo "Usage: getbuildid [flag] file"; + echo " print build-id of an object file" + echo "flags:" + echo " -f : full build-id (default)." + echo " -s : short build-id aka the first two characters." +} + +if test $# -lt 1; then usage; exit 77; fi +if test $# -gt 3; then usage; exit 77; fi + +if test $# -eq 1; then + LC_ALL=C readelf -n "$1" | grep -i 'Build Id:' | sed 's/.*:[[:blank:]]*\([[:digit:]|abcdef]*\).*/\1/g' +else + case "x$1" in + 'x-f') + LC_ALL=C readelf -n "$2" | grep -i 'Build Id:' | sed 's/.*:[[:blank:]]*\([[:digit:]|abcdef]*\).*/\1/g' ;; + 'x-s') + LC_ALL=C readelf -n "$2" | grep -i 'Build Id:' | sed 's/.*:[[:blank:]]*\([[:digit:]|abcdef]\{2\}\).*/\1/g' ;; + *) + exit 2; + esac +fi + +exit 0; diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/ocaml.c b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/ocaml.c new file mode 100644 index 00000000..370d17d9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/binaries-general/ocaml.c @@ -0,0 +1,11 @@ +#include + +int +main(int argc, char **argv) +{ + if (argc > 2) { + puts("Caml1999X000"); + } + puts("\n"); + return 0; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/Makefile b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/Makefile new file mode 100644 index 00000000..f2eed80f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/Makefile @@ -0,0 +1,64 @@ +# turn off PIE in CC in case we have a PIEful toolchain: +ifneq ($(findstring -no-pie,$(shell gcc -no-pie 2>&1)),) + CC := gcc +else + CC := gcc -fno-pie -no-pie +endif + +NOPIE_CFLAGS = $(filter-out -fPIE,$(CFLAGS)) +NOPIE_LDFLAGS = $(filter-out -fPIE -pie,$(LDFLAGS)) +COMPILE:= $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) +COMPILE_NOPIE:= $(CC) $(NOPIE_CFLAGS) $(CPPFLAGS) $(NOPIE_LDFLAGS) +# extract from readelf +GETBUILDID:=./getbuildid + +all: + # rpath not matching any of the exceptions to the rpath checks + # - with profiling enabled. + $(COMPILE_NOPIE) -o basic basic.c -pg -Wl,--rpath,\"/usr/local/lib\" + # rpath shipped in the package, but one of {/usr}?/lib + $(COMPILE) -o basiclibrpath basic.c -Wl,--rpath,\"/usr/lib\" + # non-special rpath shipped in the package + $(COMPILE) -o basicshippedrpath basic.c -Wl,--rpath,\"/usr/share/foo\" + # special rpath shipped in the package, multiple paths + $(COMPILE) -o basicshippedrpathmore basic.c -Wl,--rpath,\"/usr/lib/binaries-general\":\"/usr/lib/binaries-general/bar\" + # static version of basic for debugging checks + $(COMPILE_NOPIE) -static -o basic.static basic.c + # static executable to trigger ocaml check + $(COMPILE_NOPIE) -o ocaml-exec ocaml.c + # version with debug + $(COMPILE) -o basicdebug -g3 -Wl,--build-id basic.c + +install: + # according to local debian rules /usr/lib/debug is unstripped + install -d $(DESTDIR)/usr/share/foo/ + install -d $(DESTDIR)/usr/lib/debug/usr/share/foo/ + install -d $(DESTDIR)/usr/lib/foo/ + install -d $(DESTDIR)/usr/bin + + install -m 755 -c basic $(DESTDIR)/usr/share/foo/basic + objcopy --only-keep-debug basic $(DESTDIR)/usr/lib/debug/usr/share/foo/basic + strip -s $(DESTDIR)/usr/lib/debug/usr/share/foo/basic + install -m 755 -c basiclibrpath $(DESTDIR)/usr/lib/foo/basiclibrpath + install -m 755 -c basicshippedrpath $(DESTDIR)/usr/lib/foo/basicshippedrpath + install -m 755 -c ocaml-exec $(DESTDIR)/usr/lib/foo/ocaml-exec + install -m 744 -c basicshippedrpathmore $(DESTDIR)/usr/lib/foo/basicshippedrpathmore + objcopy --only-keep-debug basic $(DESTDIR)/usr/lib/debug/basic + install -d "$(DESTDIR)/usr/lib/debug/.build-id/"`$(GETBUILDID) -s basicdebug` + install -m 755 -c basicdebug $(DESTDIR)/usr/share/foo/basicdebug + # force fake buildid in order to have tag matching ok (deadbeefdeadbeef) + install -d "$(DESTDIR)/usr/lib/debug/.build-id/de" + objcopy --compress-debug-sections basicdebug \ + "$(DESTDIR)/usr/lib/debug/.build-id/de/deadbeefdeadbeef.debug" + install -d "$(DESTDIR)/usr/lib/debug/.build-id/"`$(GETBUILDID) -s basicdebug` + objcopy --compress-debug-sections --only-keep-debug basicdebug \ + "$(DESTDIR)/usr/lib/debug/.build-id/"`$(GETBUILDID) -s basicdebug`"/"`$(GETBUILDID) -f basicdebug`.debug + install -m 755 -c basic.static $(DESTDIR)/usr/lib/debug/ + # according to local debian rules unstripped in name avoid dh_strip to do the work + install -m 755 basicdebug $(DESTDIR)/usr/bin/unstripped + install -m 755 basic.static $(DESTDIR)/usr/bin/static + +clean distclean: + rm -f basic + +check test: diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/ORIGIN new file mode 100644 index 00000000..7bc9aef6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/rpath/quoted + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/basic.c b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/basic.c new file mode 100644 index 00000000..36180047 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/basic.c @@ -0,0 +1,12 @@ +#include +#include + +int +main(int argc, char *argv[]) +{ + char t[10]; + printf("Hello world!\n"); + /* forces a stack protector */ + (void) strcpy(t,argv[0]); + return (int) t[0]; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/debian/changelog new file mode 100644 index 00000000..88c7e073 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/debian/changelog @@ -0,0 +1,17 @@ +quoted (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: quoted + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +quoted (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: quoted + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/debian/control new file mode 100644 index 00000000..10c33de6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/debian/control @@ -0,0 +1,17 @@ +Source: quoted +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: quoted +Architecture: any +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: RPATH in double quotes + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/debian/rules new file mode 100644 index 00000000..3ea7a636 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +override_dh_strip: + dh_strip -X usr/lib/debug -X unstripped -X ocaml + +override_dh_dwz: + # Can error with "deadbeefdeadbeef.debug: Found compressed .debug_info section, not attempting dwz compression" diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/eval/hints new file mode 100644 index 00000000..074ceebf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/eval/hints @@ -0,0 +1,5 @@ +quoted (binary): relative-library-search-path RUNPATH "/usr/share/foo" [usr/lib/foo/basicshippedrpath] +quoted (binary): relative-library-search-path RUNPATH "/usr/local/lib" [usr/share/foo/basic] +quoted (binary): relative-library-search-path RUNPATH "/usr/lib/binaries-general/bar" [usr/lib/foo/basicshippedrpathmore] +quoted (binary): relative-library-search-path RUNPATH "/usr/lib/binaries-general" [usr/lib/foo/basicshippedrpathmore] +quoted (binary): relative-library-search-path RUNPATH "/usr/lib" [usr/lib/foo/basiclibrpath] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/getbuildid b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/getbuildid new file mode 100755 index 00000000..0060d2b1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/getbuildid @@ -0,0 +1,30 @@ +#!/bin/sh +# get build-id of binary + +set -e + +usage() { + echo "Usage: getbuildid [flag] file"; + echo " print build-id of an object file" + echo "flags:" + echo " -f : full build-id (default)." + echo " -s : short build-id aka the first two characters." +} + +if test $# -lt 1; then usage; exit 77; fi +if test $# -gt 3; then usage; exit 77; fi + +if test $# -eq 1; then + LC_ALL=C readelf -n "$1" | grep -i 'Build Id:' | sed 's/.*:[[:blank:]]*\([[:digit:]|abcdef]*\).*/\1/g' +else + case "x$1" in + 'x-f') + LC_ALL=C readelf -n "$2" | grep -i 'Build Id:' | sed 's/.*:[[:blank:]]*\([[:digit:]|abcdef]*\).*/\1/g' ;; + 'x-s') + LC_ALL=C readelf -n "$2" | grep -i 'Build Id:' | sed 's/.*:[[:blank:]]*\([[:digit:]|abcdef]\{2\}\).*/\1/g' ;; + *) + exit 2; + esac +fi + +exit 0; diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/ocaml.c b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/ocaml.c new file mode 100644 index 00000000..370d17d9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/quoted/ocaml.c @@ -0,0 +1,11 @@ +#include + +int +main(int argc, char **argv) +{ + if (argc > 2) { + puts("Caml1999X000"); + } + puts("\n"); + return 0; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/Makefile b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/Makefile new file mode 100644 index 00000000..b7758c64 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/Makefile @@ -0,0 +1,64 @@ +# turn off PIE in CC in case we have a PIEful toolchain: +ifneq ($(findstring -no-pie,$(shell gcc -no-pie 2>&1)),) + CC := gcc +else + CC := gcc -fno-pie -no-pie +endif + +NOPIE_CFLAGS = $(filter-out -fPIE,$(CFLAGS)) +NOPIE_LDFLAGS = $(filter-out -fPIE -pie,$(LDFLAGS)) +COMPILE:= $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) +COMPILE_NOPIE:= $(CC) $(NOPIE_CFLAGS) $(CPPFLAGS) $(NOPIE_LDFLAGS) +# extract from readelf +GETBUILDID:=./getbuildid + +all: + # rpath not matching any of the exceptions to the rpath checks + # - with profiling enabled. + $(COMPILE_NOPIE) -o basic basic.c -pg -Wl,--rpath,usr/local/lib + # rpath shipped in the package, but one of {/usr}?/lib + $(COMPILE) -o basiclibrpath basic.c -Wl,--rpath,usr/lib + # non-special rpath shipped in the package + $(COMPILE) -o basicshippedrpath basic.c -Wl,--rpath,usr/share/foo + # special rpath shipped in the package, multiple paths + $(COMPILE) -o basicshippedrpathmore basic.c -Wl,--rpath,usr/lib/binaries-general:usr/lib/binaries-general/bar + # static version of basic for debugging checks + $(COMPILE_NOPIE) -static -o basic.static basic.c + # static executable to trigger ocaml check + $(COMPILE_NOPIE) -o ocaml-exec ocaml.c + # version with debug + $(COMPILE) -o basicdebug -g3 -Wl,--build-id basic.c + +install: + # according to local debian rules /usr/lib/debug is unstripped + install -d $(DESTDIR)/usr/share/foo/ + install -d $(DESTDIR)/usr/lib/debug/usr/share/foo/ + install -d $(DESTDIR)/usr/lib/foo/ + install -d $(DESTDIR)/usr/bin + + install -m 755 -c basic $(DESTDIR)/usr/share/foo/basic + objcopy --only-keep-debug basic $(DESTDIR)/usr/lib/debug/usr/share/foo/basic + strip -s $(DESTDIR)/usr/lib/debug/usr/share/foo/basic + install -m 755 -c basiclibrpath $(DESTDIR)/usr/lib/foo/basiclibrpath + install -m 755 -c basicshippedrpath $(DESTDIR)/usr/lib/foo/basicshippedrpath + install -m 755 -c ocaml-exec $(DESTDIR)/usr/lib/foo/ocaml-exec + install -m 744 -c basicshippedrpathmore $(DESTDIR)/usr/lib/foo/basicshippedrpathmore + objcopy --only-keep-debug basic $(DESTDIR)/usr/lib/debug/basic + install -d "$(DESTDIR)/usr/lib/debug/.build-id/"`$(GETBUILDID) -s basicdebug` + install -m 755 -c basicdebug $(DESTDIR)/usr/share/foo/basicdebug + # force fake buildid in order to have tag matching ok (deadbeefdeadbeef) + install -d "$(DESTDIR)/usr/lib/debug/.build-id/de" + objcopy --compress-debug-sections basicdebug \ + "$(DESTDIR)/usr/lib/debug/.build-id/de/deadbeefdeadbeef.debug" + install -d "$(DESTDIR)/usr/lib/debug/.build-id/"`$(GETBUILDID) -s basicdebug` + objcopy --compress-debug-sections --only-keep-debug basicdebug \ + "$(DESTDIR)/usr/lib/debug/.build-id/"`$(GETBUILDID) -s basicdebug`"/"`$(GETBUILDID) -f basicdebug`.debug + install -m 755 -c basic.static $(DESTDIR)/usr/lib/debug/ + # according to local debian rules unstripped in name avoid dh_strip to do the work + install -m 755 basicdebug $(DESTDIR)/usr/bin/unstripped + install -m 755 basic.static $(DESTDIR)/usr/bin/static + +clean distclean: + rm -f basic + +check test: diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/ORIGIN new file mode 100644 index 00000000..3b75c9e3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/rpath/relative + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/basic.c b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/basic.c new file mode 100644 index 00000000..36180047 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/basic.c @@ -0,0 +1,12 @@ +#include +#include + +int +main(int argc, char *argv[]) +{ + char t[10]; + printf("Hello world!\n"); + /* forces a stack protector */ + (void) strcpy(t,argv[0]); + return (int) t[0]; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/debian/changelog new file mode 100644 index 00000000..156b7017 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/debian/changelog @@ -0,0 +1,17 @@ +relative (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: relative + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +relative (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: relative + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/debian/control new file mode 100644 index 00000000..bcfe6f00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/debian/control @@ -0,0 +1,17 @@ +Source: relative +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: relative +Architecture: any +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Relative RPATH + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/debian/rules new file mode 100644 index 00000000..3ea7a636 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +override_dh_strip: + dh_strip -X usr/lib/debug -X unstripped -X ocaml + +override_dh_dwz: + # Can error with "deadbeefdeadbeef.debug: Found compressed .debug_info section, not attempting dwz compression" diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/eval/hints new file mode 100644 index 00000000..3151df23 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/eval/hints @@ -0,0 +1,5 @@ +relative (binary): relative-library-search-path RUNPATH usr/share/foo [usr/lib/foo/basicshippedrpath] +relative (binary): relative-library-search-path RUNPATH usr/local/lib [usr/share/foo/basic] +relative (binary): relative-library-search-path RUNPATH usr/lib/binaries-general/bar [usr/lib/foo/basicshippedrpathmore] +relative (binary): relative-library-search-path RUNPATH usr/lib/binaries-general [usr/lib/foo/basicshippedrpathmore] +relative (binary): relative-library-search-path RUNPATH usr/lib [usr/lib/foo/basiclibrpath] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/getbuildid b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/getbuildid new file mode 100755 index 00000000..0060d2b1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/getbuildid @@ -0,0 +1,30 @@ +#!/bin/sh +# get build-id of binary + +set -e + +usage() { + echo "Usage: getbuildid [flag] file"; + echo " print build-id of an object file" + echo "flags:" + echo " -f : full build-id (default)." + echo " -s : short build-id aka the first two characters." +} + +if test $# -lt 1; then usage; exit 77; fi +if test $# -gt 3; then usage; exit 77; fi + +if test $# -eq 1; then + LC_ALL=C readelf -n "$1" | grep -i 'Build Id:' | sed 's/.*:[[:blank:]]*\([[:digit:]|abcdef]*\).*/\1/g' +else + case "x$1" in + 'x-f') + LC_ALL=C readelf -n "$2" | grep -i 'Build Id:' | sed 's/.*:[[:blank:]]*\([[:digit:]|abcdef]*\).*/\1/g' ;; + 'x-s') + LC_ALL=C readelf -n "$2" | grep -i 'Build Id:' | sed 's/.*:[[:blank:]]*\([[:digit:]|abcdef]\{2\}\).*/\1/g' ;; + *) + exit 2; + esac +fi + +exit 0; diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/ocaml.c b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/ocaml.c new file mode 100644 index 00000000..370d17d9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/rpath/relative/ocaml.c @@ -0,0 +1,11 @@ +#include + +int +main(int argc, char **argv) +{ + if (argc > 2) { + puts("Caml1999X000"); + } + puts("\n"); + return 0; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/spelling/binaries-spelling/Makefile b/packages/debmagic/tests/lintian-parity/checks/binaries/spelling/binaries-spelling/Makefile new file mode 100644 index 00000000..0c856163 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/spelling/binaries-spelling/Makefile @@ -0,0 +1,11 @@ +all: + gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o basic basic.c + +install: + install -d $(DESTDIR)/usr/bin + install -m 755 -c basic $(DESTDIR)/usr/bin/basic + +clean distclean: + rm -f basic + +check test: diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/spelling/binaries-spelling/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/spelling/binaries-spelling/ORIGIN new file mode 100644 index 00000000..f3be2d21 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/spelling/binaries-spelling/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/spelling/binaries-spelling + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/spelling/binaries-spelling/basic.c b/packages/debmagic/tests/lintian-parity/checks/binaries/spelling/binaries-spelling/basic.c new file mode 100644 index 00000000..2cec53e5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/spelling/binaries-spelling/basic.c @@ -0,0 +1,23 @@ +#include +#include + +static void +hardening_trigger(char *p, int i, void (*f)(char *)) +{ + char test[10]; + memcpy(test, p, i); + f(test); + printf("%s", test); +} + +int +main(void) +{ + printf("I iz an exprimental speling error!\n"); + printf("I also have teh broken teh!\n"); + printf("But tEH non-broken tEh needs to be on its own line!\n"); + printf("res.size is okay!\n"); /* #818003 */ + printf("Georg Nees was early pioneer of computer art and generative graphics.\n"); + hardening_trigger(NULL, 0, NULL); + return 0; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/spelling/binaries-spelling/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/spelling/binaries-spelling/debian/changelog new file mode 100644 index 00000000..8a6d009e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/spelling/binaries-spelling/debian/changelog @@ -0,0 +1,17 @@ +binaries-spelling (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-spelling + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +binaries-spelling (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-spelling + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/spelling/binaries-spelling/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/spelling/binaries-spelling/debian/control new file mode 100644 index 00000000..77a6feda --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/spelling/binaries-spelling/debian/control @@ -0,0 +1,17 @@ +Source: binaries-spelling +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: binaries-spelling +Architecture: any +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Spelling errors in binaries + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/spelling/binaries-spelling/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/spelling/binaries-spelling/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/spelling/binaries-spelling/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/spelling/binaries-spelling/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/spelling/binaries-spelling/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/spelling/binaries-spelling/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/spelling/binaries-spelling/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/spelling/binaries-spelling/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/spelling/binaries-spelling/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/spelling/binaries-spelling/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/spelling/binaries-spelling/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/spelling/binaries-spelling/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/spelling/binaries-spelling/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/spelling/binaries-spelling/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/spelling/binaries-spelling/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/spelling/binaries-spelling/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/spelling/binaries-spelling/eval/hints new file mode 100644 index 00000000..49c0ea42 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/spelling/binaries-spelling/eval/hints @@ -0,0 +1,3 @@ +binaries-spelling (binary): spelling-error-in-binary teh the [usr/bin/basic] +binaries-spelling (binary): spelling-error-in-binary speling spelling [usr/bin/basic] +binaries-spelling (binary): spelling-error-in-binary exprimental experimental [usr/bin/basic] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-from-other-arch/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-from-other-arch/ORIGIN new file mode 100644 index 00000000..9c3945a9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-from-other-arch/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/static/binaries-from-other-arch + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-from-other-arch/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-from-other-arch/debian/changelog new file mode 100644 index 00000000..5920ae9d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-from-other-arch/debian/changelog @@ -0,0 +1,17 @@ +binaries-from-other-arch (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-from-other-arch + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +binaries-from-other-arch (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-from-other-arch + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-from-other-arch/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-from-other-arch/debian/control new file mode 100644 index 00000000..329dd6b9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-from-other-arch/debian/control @@ -0,0 +1,17 @@ +Source: binaries-from-other-arch +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 10) +Homepage: https://lintian.debian.org/ + +Package: binaries-from-other-arch +Architecture: any +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package with a pseudo binary from a different architecture + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-from-other-arch/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-from-other-arch/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-from-other-arch/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-from-other-arch/debian/dumpobj b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-from-other-arch/debian/dumpobj new file mode 100644 index 00000000..afdf68ec --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-from-other-arch/debian/dumpobj @@ -0,0 +1,22 @@ +#!/bin/sh +set -e + +DEB_BUILD_GNU_TYPE="$(dpkg-architecture -qDEB_BUILD_GNU_TYPE)" + +case $DEB_BUILD_GNU_TYPE in +i486-linux-gnu|i586-linux-gnu|i686-linux-gnu|x86_64-linux-gnu) + base64 -d < debian/elfobject + sh debian/dumpobj > debian/fake-guile-object.go + dh binary diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-from-other-arch/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-from-other-arch/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-from-other-arch/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-from-other-arch/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-from-other-arch/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-from-other-arch/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-from-other-arch/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-from-other-arch/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-from-other-arch/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-from-other-arch/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-from-other-arch/eval/hints new file mode 100644 index 00000000..1de058b8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-from-other-arch/eval/hints @@ -0,0 +1,2 @@ +binaries-from-other-arch (binary): statically-linked-binary [usr/lib/foo/binaries-from-other-arch/guile/2.2/fake-guile-object.go] +binaries-from-other-arch (binary): statically-linked-binary [usr/bin/elfobject] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/Makefile b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/Makefile new file mode 100644 index 00000000..cf0f2114 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/Makefile @@ -0,0 +1,64 @@ +# turn off PIE in CC in case we have a PIEful toolchain: +ifneq ($(findstring -no-pie,$(shell gcc -no-pie 2>&1)),) + CC := gcc +else + CC := gcc -fno-pie -no-pie +endif + +NOPIE_CFLAGS = $(filter-out -fPIE,$(CFLAGS)) +NOPIE_LDFLAGS = $(filter-out -fPIE -pie,$(LDFLAGS)) +COMPILE:= $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) +COMPILE_NOPIE:= $(CC) $(NOPIE_CFLAGS) $(CPPFLAGS) $(NOPIE_LDFLAGS) +# extract from readelf +GETBUILDID:=./getbuildid + +all: + # rpath not matching any of the exceptions to the rpath checks + # - with profiling enabled. + $(COMPILE_NOPIE) -o basic basic.c -pg -Wl,--rpath,/usr/local/lib + # rpath shipped in the package, but one of {/usr}?/lib + $(COMPILE) -o basiclibrpath basic.c -Wl,--rpath,/usr/lib + # non-special rpath shipped in the package + $(COMPILE) -o basicshippedrpath basic.c -Wl,--rpath,/usr/share/foo + # special rpath shipped in the package, multiple paths + $(COMPILE) -o basicshippedrpathmore basic.c -Wl,--rpath,/usr/lib/binaries-general:/usr/lib/binaries-general/bar + # static version of basic for debugging checks + $(COMPILE_NOPIE) -static -o basic.static basic.c + # static executable to trigger ocaml check + $(COMPILE_NOPIE) -o ocaml-exec ocaml.c + # version with debug + $(COMPILE) -o basicdebug -g3 -Wl,--build-id basic.c + +install: + # according to local debian rules /usr/lib/debug is unstripped + install -d $(DESTDIR)/usr/share/foo/ + install -d $(DESTDIR)/usr/lib/debug/usr/share/foo/ + install -d $(DESTDIR)/usr/lib/foo/ + install -d $(DESTDIR)/usr/bin + + install -m 755 -c basic $(DESTDIR)/usr/share/foo/basic + objcopy --only-keep-debug basic $(DESTDIR)/usr/lib/debug/usr/share/foo/basic + strip -s $(DESTDIR)/usr/lib/debug/usr/share/foo/basic + install -m 755 -c basiclibrpath $(DESTDIR)/usr/lib/foo/basiclibrpath + install -m 755 -c basicshippedrpath $(DESTDIR)/usr/lib/foo/basicshippedrpath + install -m 755 -c ocaml-exec $(DESTDIR)/usr/lib/foo/ocaml-exec + install -m 744 -c basicshippedrpathmore $(DESTDIR)/usr/lib/foo/basicshippedrpathmore + objcopy --only-keep-debug basic $(DESTDIR)/usr/lib/debug/basic + install -d "$(DESTDIR)/usr/lib/debug/.build-id/"`$(GETBUILDID) -s basicdebug` + install -m 755 -c basicdebug $(DESTDIR)/usr/share/foo/basicdebug + # force fake buildid in order to have tag matching ok (deadbeefdeadbeef) + install -d "$(DESTDIR)/usr/lib/debug/.build-id/de" + objcopy --compress-debug-sections basicdebug \ + "$(DESTDIR)/usr/lib/debug/.build-id/de/deadbeefdeadbeef.debug" + install -d "$(DESTDIR)/usr/lib/debug/.build-id/"`$(GETBUILDID) -s basicdebug` + objcopy --compress-debug-sections --only-keep-debug basicdebug \ + "$(DESTDIR)/usr/lib/debug/.build-id/"`$(GETBUILDID) -s basicdebug`"/"`$(GETBUILDID) -f basicdebug`.debug + install -m 755 -c basic.static $(DESTDIR)/usr/lib/debug/ + # according to local debian rules unstripped in name avoid dh_strip to do the work + install -m 755 basicdebug $(DESTDIR)/usr/bin/unstripped + install -m 755 basic.static $(DESTDIR)/usr/bin/static + +clean distclean: + rm -f basic + +check test: diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/ORIGIN new file mode 100644 index 00000000..675213aa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/static/binaries-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/basic.c b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/basic.c new file mode 100644 index 00000000..36180047 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/basic.c @@ -0,0 +1,12 @@ +#include +#include + +int +main(int argc, char *argv[]) +{ + char t[10]; + printf("Hello world!\n"); + /* forces a stack protector */ + (void) strcpy(t,argv[0]); + return (int) t[0]; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/debian/changelog new file mode 100644 index 00000000..dafd072a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/debian/changelog @@ -0,0 +1,17 @@ +binaries-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +binaries-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/debian/control new file mode 100644 index 00000000..7dec9ad2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/debian/control @@ -0,0 +1,17 @@ +Source: binaries-general +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: binaries-general +Architecture: any +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Misc errors related to binaries + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/debian/rules new file mode 100644 index 00000000..3ea7a636 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +override_dh_strip: + dh_strip -X usr/lib/debug -X unstripped -X ocaml + +override_dh_dwz: + # Can error with "deadbeefdeadbeef.debug: Found compressed .debug_info section, not attempting dwz compression" diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/eval/hints new file mode 100644 index 00000000..3e9929d1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/eval/hints @@ -0,0 +1 @@ +binaries-general (binary): statically-linked-binary [usr/bin/static] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/getbuildid b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/getbuildid new file mode 100755 index 00000000..0060d2b1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/getbuildid @@ -0,0 +1,30 @@ +#!/bin/sh +# get build-id of binary + +set -e + +usage() { + echo "Usage: getbuildid [flag] file"; + echo " print build-id of an object file" + echo "flags:" + echo " -f : full build-id (default)." + echo " -s : short build-id aka the first two characters." +} + +if test $# -lt 1; then usage; exit 77; fi +if test $# -gt 3; then usage; exit 77; fi + +if test $# -eq 1; then + LC_ALL=C readelf -n "$1" | grep -i 'Build Id:' | sed 's/.*:[[:blank:]]*\([[:digit:]|abcdef]*\).*/\1/g' +else + case "x$1" in + 'x-f') + LC_ALL=C readelf -n "$2" | grep -i 'Build Id:' | sed 's/.*:[[:blank:]]*\([[:digit:]|abcdef]*\).*/\1/g' ;; + 'x-s') + LC_ALL=C readelf -n "$2" | grep -i 'Build Id:' | sed 's/.*:[[:blank:]]*\([[:digit:]|abcdef]\{2\}\).*/\1/g' ;; + *) + exit 2; + esac +fi + +exit 0; diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/ocaml.c b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/ocaml.c new file mode 100644 index 00000000..370d17d9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-general/ocaml.c @@ -0,0 +1,11 @@ +#include + +int +main(int argc, char **argv) +{ + if (argc > 2) { + puts("Caml1999X000"); + } + puts("\n"); + return 0; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-golang/Makefile b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-golang/Makefile new file mode 100644 index 00000000..66c9d6f3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-golang/Makefile @@ -0,0 +1,16 @@ +NOPIE_CFLAGS = $(filter-out -fPIE,$(CFLAGS)) +NOPIE_LDFLAGS = $(filter-out -fPIE -pie,$(LDFLAGS)) +COMPILE:= $(CC) $(NOPIE_CFLAGS) $(CPPFLAGS) $(NOPIE_LDFLAGS) + +all: + # static version + $(COMPILE) -std=c99 -static -o basic.static basic.c + +install: + install -d $(DESTDIR)/usr/lib/foo/ + install -m 755 basic.static $(DESTDIR)/usr/lib/foo/static + +clean distclean: + rm -f basic + +check test: diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-golang/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-golang/ORIGIN new file mode 100644 index 00000000..ce6c2311 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-golang/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/static/binaries-golang + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-golang/basic.c b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-golang/basic.c new file mode 100644 index 00000000..7dea5a03 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-golang/basic.c @@ -0,0 +1,12 @@ +#include + +int +main(void) +{ + char t[10]; + printf("Hello world!\n"); + /* Bad choice for reading from stdin, but it forces a stack + protector, so meh. + */ + gets (t); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-golang/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-golang/debian/changelog new file mode 100644 index 00000000..96e634d0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-golang/debian/changelog @@ -0,0 +1,17 @@ +binaries-golang (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-golang + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +binaries-golang (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-golang + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-golang/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-golang/debian/control new file mode 100644 index 00000000..af534566 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-golang/debian/control @@ -0,0 +1,17 @@ +Source: binaries-golang +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), golang-go (>= 2:1.1.1-4) +Homepage: https://lintian.debian.org/ + +Package: binaries-golang +Architecture: any +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Misc errors related to golang binaries + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-golang/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-golang/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-golang/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-golang/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-golang/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-golang/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-golang/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-golang/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-golang/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-golang/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-golang/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-golang/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-golang/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-golang/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-golang/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-golang/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-golang/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/binaries-golang/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/INSTALL b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/INSTALL new file mode 100644 index 00000000..3b50ea95 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/INSTALL @@ -0,0 +1,176 @@ +Basic Installation +================== + + These are generic installation instructions. + + The `configure' shell script attempts to guess correct values for +various system-dependent variables used during compilation. It uses +those values to create a `Makefile' in each directory of the package. +It may also create one or more `.h' files containing system-dependent +definitions. Finally, it creates a shell script `config.status' that +you can run in the future to recreate the current configuration, a file +`config.cache' that saves the results of its tests to speed up +reconfiguring, and a file `config.log' containing compiler output +(useful mainly for debugging `configure'). + + If you need to do unusual things to compile the package, please try +to figure out how `configure' could check whether to do them, and mail +diffs or instructions to the address given in the `README' so they can +be considered for the next release. If at some point `config.cache' +contains results you don't want to keep, you may remove or edit it. + + The file `configure.in' is used to create `configure' by a program +called `autoconf'. You only need `configure.in' if you want to change +it or regenerate `configure' using a newer version of `autoconf'. + +The simplest way to compile this package is: + + 1. `cd' to the directory containing the package's source code and type + `./configure' to configure the package for your system. If you're + using `csh' on an old version of System V, you might need to type + `sh ./configure' instead to prevent `csh' from trying to execute + `configure' itself. + + Running `configure' takes a while. While running, it prints some + messages telling which features it is checking for. + + 2. Type `make' to compile the package. + + 3. Optionally, type `make check' to run any self-tests that come with + the package. + + 4. Type `make install' to install the programs and any data files and + documentation. + + 5. You can remove the program binaries and object files from the + source code directory by typing `make clean'. To also remove the + files that `configure' created (so you can compile the package for + a different kind of computer), type `make distclean'. There is + also a `make maintainer-clean' target, but that is intended mainly + for the package's developers. If you use it, you may have to get + all sorts of other programs in order to regenerate files that came + with the distribution. + +Compilers and Options +===================== + + Some systems require unusual options for compilation or linking that +the `configure' script does not know about. You can give `configure' +initial values for variables by setting them in the environment. Using +a Bourne-compatible shell, you can do that on the command line like +this: + CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure + +Or on systems that have the `env' program, you can do it like this: + env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure + +Compiling For Multiple Architectures +==================================== + + You can compile the package for more than one kind of computer at the +same time, by placing the object files for each architecture in their +own directory. To do this, you must use a version of `make' that +supports the `VPATH' variable, such as GNU `make'. `cd' to the +directory where you want the object files and executables to go and run +the `configure' script. `configure' automatically checks for the +source code in the directory that `configure' is in and in `..'. + + If you have to use a `make' that does not supports the `VPATH' +variable, you have to compile the package for one architecture at a time +in the source code directory. After you have installed the package for +one architecture, use `make distclean' before reconfiguring for another +architecture. + +Installation Names +================== + + By default, `make install' will install the package's files in +`/usr/local/bin', `/usr/local/man', etc. You can specify an +installation prefix other than `/usr/local' by giving `configure' the +option `--prefix=PATH'. + + You can specify separate installation prefixes for +architecture-specific files and architecture-independent files. If you +give `configure' the option `--exec-prefix=PATH', the package will use +PATH as the prefix for installing programs and libraries. +Documentation and other data files will still use the regular prefix. + + If the package supports it, you can cause programs to be installed +with an extra prefix or suffix on their names by giving `configure' the +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. + +Optional Features +================= + + Some packages pay attention to `--enable-FEATURE' options to +`configure', where FEATURE indicates an optional part of the package. +They may also pay attention to `--with-PACKAGE' options, where PACKAGE +is something like `gnu-as' or `x' (for the X Window System). The +`README' should mention any `--enable-' and `--with-' options that the +package recognizes. + + For packages that use the X Window System, `configure' can usually +find the X include and library files automatically, but if it doesn't, +you can use the `configure' options `--x-includes=DIR' and +`--x-libraries=DIR' to specify their locations. + +Specifying the System Type +========================== + + There may be some features `configure' can not figure out +automatically, but needs to determine by the type of host the package +will run on. Usually `configure' can figure that out, but if it prints +a message saying it can not guess the host type, give it the +`--host=TYPE' option. TYPE can either be a short name for the system +type, such as `sun4', or a canonical name with three fields: + CPU-COMPANY-SYSTEM + +See the file `config.sub' for the possible values of each field. If +`config.sub' isn't included in this package, then this package doesn't +need to know the host type. + + If you are building compiler tools for cross-compiling, you can also +use the `--target=TYPE' option to select the type of system they will +produce code for and the `--build=TYPE' option to select the type of +system on which you are compiling the package. + +Sharing Defaults +================ + + If you want to set default values for `configure' scripts to share, +you can create a site shell script called `config.site' that gives +default values for variables like `CC', `cache_file', and `prefix'. +`configure' looks for `PREFIX/share/config.site' if it exists, then +`PREFIX/etc/config.site' if it exists. Or, you can set the +`CONFIG_SITE' environment variable to the location of the site script. +A warning: not all `configure' scripts look for a site script. + +Operation Controls +================== + + `configure' recognizes the following options to control how it +operates. + +`--cache-file=FILE' + Use and save the results of the tests in FILE instead of + `./config.cache'. Set FILE to `/dev/null' to disable caching, for + debugging `configure'. + +`--help' + Print a summary of the options to `configure', and exit. + +`--quiet' +`--silent' +`-q' + Do not print messages saying which checks are being made. + +`--srcdir=DIR' + Look for the package's source code in directory DIR. Usually + `configure' can determine that directory automatically. + +`--version' + Print the version of Autoconf used to generate the `configure' + script, and exit. + +`configure' also accepts some other, not widely useful, options. + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/Makefile b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/Makefile new file mode 100644 index 00000000..da1dc555 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/Makefile @@ -0,0 +1,12 @@ +all: hello hello-static + +hello: hello.c + gcc hello.c -o hello + +hello-static: hello.c + gcc -static hello.c -o hello-static + +clean: + rm -f hello hello-static + +distclean: clean diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/ORIGIN new file mode 100644 index 00000000..d1173422 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/static/legacy-binary + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/NEWS.Debian b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/NEWS.Debian new file mode 100644 index 00000000..29f561c4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/NEWS.Debian @@ -0,0 +1,12 @@ +binary (4-1.1) UNRELEASED; urgency=high + + This is a Debian NEWS entry that isn't encoded properly in UTF-8: . + It also has a usefull speling error. + + -- Russ Allbery Sun, 14 Oct 2007 17:11:36 -0700 + +binary (1) unstable; urgency=low + + This is another entry but this one isn't syntactically valid. + + -- Russ Allbery 2007-10-14 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/README.Debian b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/README.Debian new file mode 100644 index 00000000..94bcc0ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/README.Debian @@ -0,0 +1,5 @@ +this is a binary package to test lintian's handling of bins. +Check handling of D-Bus and dbus (neither of which should produce +warnings). + + -- Russ Allbery , Wed, 6 Feb 2008 18:35:11 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/changelog new file mode 100644 index 00000000..35b8c0bf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/changelog @@ -0,0 +1,47 @@ +binary (4-1.1) unstable; urgency=low + + * I'm doing an comaintainer-upload, acknowledging a NMU, but with a version + number which suggests I'm doing a NMU myself. + + Lintian-maintainers: Please don't update this changelog, otherwise you'll + probably break the checks/nmu checks. + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 01:49:42 +0200 + +binary (4-1) unstable; urgency=low + + * Weird version number for the new check for accidents with native + packaging. + * Date was fixed by BR and this test was put on changelog-file-strange-date + due to dpkg bug, see #794674. + + -- Marc 'HE' Brockschmidt Thu, 15 Apr 2004 23:33:51 +0200 + +binary (4) unstable; urgency=low + + * Add big file to /usr/share to trigger the big-usr-share check + + -- Jeroen van Wolffelaar Fri, 27 Feb 2004 10:15:59 +0100 + +binary (3) unstable; urgency=unlimited + + * Add some bogus menu entries using su-to-root in a bogus way + + -- Jeroen van Wolffelaar Thu, 12 Feb 2004 20:11:22 +0100 + +binary (2) unstable; urgency=low + + * Added an INSTALL document which policy 6.3 suggests not to do + + -- Sean 'Shaleh' Perry Tue, 30 Jan 2001 15:23:59 -0800 + +binary (1) unstable; urgency=low + + * hello.c added + * hello-static is same as hello, but compiled statically + * added a menu entry which lacks a Section + * added a postinst + * postinst calls suidregister which is no longer policy compliant + + -- Sean 'Shaleh' Perry Wed, 10 Jan 2001 08:55:34 -0800 + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/conffiles b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/conffiles new file mode 100644 index 00000000..d1a08433 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/conffiles @@ -0,0 +1 @@ +/etc/menu-methods/lintian diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/control new file mode 100644 index 00000000..c797357b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/control @@ -0,0 +1,42 @@ +Source: binary +Section: misc +Priority: optional +Maintainer: Lintian Maintainers +Uploaders: Co-maintainer one , Jeroen van Wolffelaar , Co-maintainer three +Standards-Version: 3.2.1 +Homepage: http://lintian.debian.org/ +Vcs-Svn: http://svn.wolffelaar.nl/lintian/trunk +XS-Vcs-Browser: http://svn.wolffelaar.nl/lintian/trunk +XS-Dm-Upload-Allowed: yes + +Package: binary +Architecture: any +Pre-Depends: ${shlibs:Depends}, xorg, binary-data (= ${source:Version}), libssl0.9.8 +Homepage: +Vcs-Svn: http://svn.wolffelaar.nl/lintian/trunk +Description: test handling of binary files + Regression test for lintian's handling of binary files for debian. This + is checked for picky spelling errors. + . + This package list [ subversion | gconf ] should not be flagged as a spelling + mistake. The spelling correction for dont should be correct. + . + Homepage: http://lintian.debian.org/ + +Package: binary-data +Architecture: all +Depends: binary (= ${source:Version}), libssl-not-openssl, + libssl0.9.8 | or-something-else +Description: test handling of binary relationships + Regression test for lintian's checking of package relationships between + arch:any and arch:all packages. + . + This mention of subversion should be flagged as a spelling mistake. + +#Package: binary-comment +#Architecture: space-almonds +#Depends: * +#Depends: * +#Description: test comment support +# Yes, comments are actually allowed in debian/control, so none of the +# above should produce errors. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/copyright new file mode 100644 index 00000000..1d6806de --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/copyright @@ -0,0 +1,15 @@ +hello.c is released under public domain. This is distributed in the hope that +it will be useful, but without any warranty; without even the implied warranty +of merchantability or fitness for a particular purpose. + +A reference to /usr/share/common-licenses/GPL-2 to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +Test for old FSF address: + +Free Software Foundation, Inc., 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. + +Test for deprecated ntionl ncoding. + +Improper capitalization of linux or debian isn't caught here. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/doc-base b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/doc-base new file mode 100644 index 00000000..7e5b38f2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/doc-base @@ -0,0 +1,41 @@ +Document: binary!docs +Title: Broken debian binary doc-base control file +Author: Russ Allbery +Abstract: This control file exercises various tests of doc-base control + files, including several things that aren't tested yet. The third and + fourth one has trailing whitespace. + . + This section has a speling error and bad character. + . + The above separator was fine. +Section: Non/Existant +Unknown: Some field + + + +Format: debiandoc-sgML +Files: /usr/share/doc/binary/binary.sgml.gz +Unknown: Some field + +Format: ESP +Index: /usr/share/doc/binary/binary.txt + +Index: /usr/share/doc/binary/html/index.html + /usr/share/doc/binary/html/ch1.html + /usr/share/doc/binary/html/ch4.html + + +Format: HTML +Index: /usr/share/doc/binary/html/index.html +Files: /usr/share/doc/binary/html/ch?.h*l + /usr/share/doc/binary/hml/*.html + +Format: inFO +Files: /usr/share/info/binary.info.gz + +Format: HTML +Index: /usr/share/doc/binary/html/index.html +Files: /usr/share/doc/binary/html/ch5.html + /usr/share/doc/binary/html/ch6.html + + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/goodbye.desktop b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/goodbye.desktop new file mode 100644 index 00000000..f6ce8e3f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/goodbye.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Name:Goodbye +# Name=Goodbye +Comment=Say hello! +SpecialTag=This doesn't exist! +Exec=goodbye +icon=hello +Terminal=true +Type=Application +Categories=WeirdStuff;Screensaver; +Encoding=ISO-10646-1 +[Other Entry] +Name=Goodbye diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/hello.desktop b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/hello.desktop new file mode 100644 index 00000000..f7954685 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/hello.desktop @@ -0,0 +1,14 @@ +# some random comment + +# [Foo Bar] +[KDE Desktop Entry] +Name=Hello +Name[en_US]=Hello +Comment=Say hello! +Exec=kdesu hello +Icon=hello +Terminal=true +Type=Application +Categories=GNOME;GTK;System;Applet;X-Foo;Settings; +Encoding=UTF-8 +OnlyShowIn=GNOME; diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/menu b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/menu new file mode 100644 index 00000000..e8972f4f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/menu @@ -0,0 +1,26 @@ +?package(binary):needs=text title="Hello World" command="/usr/bin/hello" +?package(binary):needs=text section="Applications/System" title="Run cfdisk (0)" command="/usr/bin/su-to-root cfdisk" +?package(binary):needs="text" section="Applications/System/Hardware" title="Run cfdisk (1)" command="sux -p cfdisk" +?package(binary):needs="x11" section="Window Managers" title="Run xfdisk" command="/usr/sbin/su-to-root -c xfdisk" +?package(binary):needs="wm" section="Applications/System/Administration" title="Run fdisk-wm" command="su-to-root -c hello" +?package(binary):section="Apps/Games" title="I'm not root!" command="su-to-root -c imnothere" +?package(binary):needs="text" section="Apps/System" title="I'm not here!" command="/imnothere" +?package(binary,other-binary):\ + needs="text"\ + section="Applications/Shells"\ + title="more than one required"\ + command="other-bin -s omething" +?package(binary):needs="wmmodule" section="WindowManagers/Modules" title="somemodule" command="ModuleCmd" +?package(binary):needs="wmmodule" section="FVWM Modules" title="somemodule" command="ModuleCmd" +?package(binary):needs="text" section="Applications/System/Administration" title="I'm not in /usr/bin!" command="iminusrbin" +?package(binary):needs="text"\ + section="Applications/System/Administration"\ + title="I'm not root!" command="su-to-root -c imnothere" +?package(binary):needs="text" section="Applications/System/Administration"\ + title="Run cfdisk (0)" command="cfdisk" +?package(binary):needs="text" section="Applications/System/Administration" title="Hello World" command="/usr/bin/hello" +?package(binary):needs="wm" section="FVWM Modules" title="Fake Module" command="hello" +?package(binary):needs="fvwmmodule" section="Window Maker" title="Fake Module"\ + command="hello" +?package(binary):needs="x11" section="Applications/System/Hardware" title="Run xfdisk" command="su-to-root -c 'xfdisk -f'" +?package(binary):needs="text" section="Applications/System/Administration" title="foo" command="sh /path/to/foo" diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/menu-method b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/menu-method new file mode 100644 index 00000000..9f07bd73 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/menu-method @@ -0,0 +1,22 @@ +#!/usr/bin/install-menu + +# -*- mode: shell-script; -*- +#I need menu-1! +# + +!include notmenu.h + +compat="menu-2" + +outputencoding="UTF-8"; +outputlanguage="C"; + +x11 = AppEntry("false"); +text = AppEntry("true"); + +startmenu = ""; +endmenu = ""; +submenutitle = ""; +rootprefix = "/var/lib/lintian/menu"; +userprefix = ".local/share/lintian/menu"; + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/postinst new file mode 100644 index 00000000..29e18619 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/postinst @@ -0,0 +1,6 @@ +#! /bin/bash -e + +if [ $1 eq 'configure' ] +then + suidregister hello-static root root 4755 +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/rules new file mode 100755 index 00000000..a962ea92 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/rules @@ -0,0 +1,92 @@ +#!/usr/bin/make -f + +tmp=debian/tmp + +# This reference to $(PWD) should not cause an error but the one below +# should. +build-arch: + make + echo $(PWD) + +build: build-arch + +clean: + make -i clean + [ ! -f debian/files ] || rm -f debian/files + [ ! -f debian/substvars ] || rm -f debian/substvars + [ ! -d debian/tmp ] || rm -rf debian/tmp + [ ! -d debian/binary ] || rm -rf debian/binary + [ ! -d debian/binary-data ] || rm -rf debian/binary-data + +binary-arch: build + install -d $(tmp)/usr/bin + install -d $(tmp)/boot/hello + install -m 755 hello $(tmp)/usr/bin + touch $(tmp)/usr/bin/iminusrbin + chmod 755 $(tmp)/usr/bin/iminusrbin + install -m 755 hello-static $(tmp)/usr/bin + strip $(tmp)/usr/bin/hello-static + install -m 755 hello-static $(tmp)/usr/bin/hello.static + strip --remove-section=.comment --remove-section=.note $(tmp)/usr/bin/hello.static + ln $(tmp)/usr/bin/hello.static $(tmp)/usr/bin/static-hello + install -m 755 hello-static $(tmp)/boot/hello + strip --remove-section=.comment --remove-section=.note $(tmp)/boot/hello/hello-static + install -d $(tmp)/usr/share/doc/binary + install -m 644 INSTALL $(tmp)/usr/share/doc/binary + install -d $(tmp)/usr/share/doc/binary/html + echo '' > $(tmp)/usr/share/doc/binary/html/index.html + echo '' > $(tmp)/usr/share/doc/binary/html/ch1.html + ln -s ../html/./ch1.html $(tmp)/usr/share/doc/binary/html/ch2.html + ln -s /usr/share/doc/binary/htm/ch1.html $(tmp)/usr/share/doc/binary/html/ch3.html + echo '' > $(tmp)/usr/share/doc/binary/html/ch5.html + ln $(tmp)/usr/share/doc/binary/html/ch5.html \ + $(tmp)/usr/share/doc/binary/html/ch6.html + install -d $(tmp)/usr/share/menu + install -d $(tmp)/usr/lib/menu + install -d $(tmp)/usr/share/binary + install -m 644 debian/menu $(tmp)/usr/share/menu/binary + install -m 644 debian/menu $(tmp)/usr/lib/menu/binary + install -d $(tmp)/etc/menu-methods + install -m 755 debian/menu-method $(tmp)/etc/menu-methods/lintian + install -d $(tmp)/usr/share/doc-base + install -m 644 debian/doc-base $(tmp)/usr/share/doc-base/binary + touch '$(tmp)/usr/share/doc-base/space ' + install -m 644 debian/README.Debian $(tmp)/usr/share/doc/binary + install -m 644 debian/NEWS.Debian $(tmp)/usr/share/doc/binary + gzip -n -9 $(tmp)/usr/share/doc/binary/NEWS.Debian + install -m 644 debian/copyright $(tmp)/usr/share/doc/binary + install -m 644 debian/changelog $(tmp)/usr/share/doc/binary + #gzip -n -9 $(tmp)/usr/share/doc/binary/changelog + install -d $(tmp)/DEBIAN + install -m 755 debian/postinst $(tmp)/DEBIAN + install -m 644 debian/conffiles $(tmp)/DEBIAN + + install -d $(tmp)/usr/share/applications + install -m 644 debian/hello.desktop \ + $(tmp)/usr/share/applications/hello.desktop + install -m 755 debian/goodbye.desktop \ + $(tmp)/usr/share/applications/goodbye.desktop + + # should be ok... + echo boe > $(tmp)/usr/bar + ln $(tmp)/usr/bar $(tmp)/usr/foo + # but this isn't + echo boe > $(tmp)/usr/bar2 + ln $(tmp)/usr/bar2 $(tmp)/usr/share/baz + + dd if=/dev/zero of=$(tmp)/usr/share/binary/largefile bs=1024 count=4000 + + install -d debian/binary-data/DEBIAN + install -d debian/binary-data/usr/share/doc + ln -s binary debian/binary-data/usr/share/doc/binary-data + + dpkg-shlibdeps $(tmp)/usr/bin/hello + dpkg-gencontrol -pbinary -isp + dpkg-gencontrol -pbinary-data -Pdebian/binary-data -isp + + dpkg --build debian/tmp .. + dpkg --build debian/binary-data .. + +binary: binary-arch + +.PHONY: build-arch build binary-arch binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/templates b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/templates new file mode 100644 index 00000000..3d928614 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/templates @@ -0,0 +1,16 @@ +# The debconf templates defined here are the sort that you'd use if +# providing a wordlist and an ispell dictionary for the language +# "perl". This shouldn't trigger warnings about not using debconf-po. + +Template: shared/packages-ispell +Type: text +Description: + +Template: shared/packages-wordlist +Type: text +Description: + +Template: miscfiles/languages +Type: text +Default: perl (Pathologically Eclectic Rubbish Lister) +Description: diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/watch b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/eval/hints new file mode 100644 index 00000000..6f29ed7b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/eval/hints @@ -0,0 +1 @@ +binary (binary): statically-linked-binary [usr/bin/static-hello] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/hello.c b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/hello.c new file mode 100644 index 00000000..2fb04e17 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-binary/hello.c @@ -0,0 +1,8 @@ +#include +#include + +int main(int argc, char *argv[]) { + + printf("Hello, World!\n"); + exit(0); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/ORIGIN new file mode 100644 index 00000000..8980ee2f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/static/legacy-debug + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/debian/_symbols b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/debian/_symbols new file mode 100644 index 00000000..46e6af1c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/debian/_symbols @@ -0,0 +1,23 @@ + This line should flag a syntax error +# but this one shouldn't +| although this one should, but for a different reason + and so should this + +libhello.so.0 libhello0 #MINVER# +| libhello0c2 (>= 1.2) , libhelloc0c2 (<< 1.3) +| hello-dbg3| libhelloc0c3|foobar (= 1.2) |hello-dbg2 +| hello-dbg + hello@Base 1.0 +* Build-Dep-Foo: bar + hello2@Base 2.0 4 + hello3@Base 2.0 1 + hello3@Base 2.0 A + dummy + +libhello.so.2 libhello2 #MINVER# +* Build-Depends-Package: libbar +| libhello2 (>= 1:2.3) + hello@Base 2.0 + +libhello.so.0 libhello0 #MINVER# + duplicate@Base 1.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/debian/changelog new file mode 100644 index 00000000..3e50d335 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/debian/changelog @@ -0,0 +1,13 @@ +debug (1.0) unstable; urgency=low + + * NMU. + (uploaded by the maintainer and with repeated version number) + + -- Russ Allbery Tue, 4 Apr 2006 20:27:22 +0000 + +debug (1.0) unstable; urgency=low + + * Initial version. + + -- Russ Allbery Sat, 4 Mar 2006 21:31:06 -0800 + diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/debian/compat b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/debian/compat new file mode 100644 index 00000000..7f8f011e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/debian/compat @@ -0,0 +1 @@ +7 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/debian/control new file mode 100644 index 00000000..fcb2b867 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/debian/control @@ -0,0 +1,85 @@ +Source: debug +Section: utils +Priority: optional +Maintainer: Russ Allbery +Build-Depends: debhelper (>= 5.0.0) +Build-Depends-Indep: not-debhelper (>= 0.4.3) +Standards-Version: 3.7.0 + +Package: hello +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for external debugging information + Lintian regression test for external debugging file handling. This test + contains the binary. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: hello-dbg +Priority: optional +Section: debug +Architecture: any +Depends: hello (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} +Description: Test for external debugging information (symbols) + Lintian regression test for external debugging file handling. This test + contains the binary symbols. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libhello0 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for external debugging information (library) + Lintian regression test for external debugging file handling. This test + contains a library. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libhello0-dbg +Section: debug +Priority: optional +Architecture: any +Depends: libhello (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} +Description: Test for external debugging information (library symbols) + Lintian regression test for external debugging file handling. This test + contains the library symbols. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: hi-dbg +Section: debug +Priority: optional +Architecture: any +Depends: foo-pkg, not-libhello0 +Description: Test for external debugging symbols + Lintian regression test for external debugging files handling. This test + contains the library symbols. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: hello-hello-dbg +Section: debug +Priority: optional +Architecture: any +Depends: foo-pkg, not-libhello0, hello +Description: Test for external debugging symbols - another try + Lintian regression test for external debugging files handling. This test + contains the library symbols. This package actually tests a combination of + the above. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/debian/copyright new file mode 100644 index 00000000..5d4f6c29 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/debian/copyright @@ -0,0 +1,4 @@ +Written Sat, 04 Mar 2006 21:30:01 -0800 by Russ Allbery . + +Test for copyright in capital letters. (#464992) +COPYRIGHT RUSS ALLBERY 2006 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/debian/rules new file mode 100755 index 00000000..b6598955 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/debian/rules @@ -0,0 +1,99 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. + +# turn off PIE in CC in case we have a PIEful toolchain: +ifneq ($(findstring -no-pie,$(shell gcc -no-pie 2>&1)),) + CC := gcc +else + CC := gcc -fno-pie -no-pie +endif + +build-indep: + +build-arch: build-stamp + +build-stamp: + dh_testdir + $(CC) -D_REENTRANT -fPIC -c libhello.c + $(CC) -o libhello.so.0.0 -shared -Wl,-soname,libhello.so.0 libhello.o + ln -s libhello.so.0.0 libhello.so + $(CC) -o hello hello.c -L. -lhello + touch build-stamp + +build: build-arch build-indep + +clean: + dh_testdir + dh_testroot + rm -f build-stamp *.o libhello.so.0.0 libhello.so + dh_clean + +install: build-stamp + dh_testdir + dh_testroot + dh_clean -k + install -D hello $(CURDIR)/debian/hello/usr/bin/hello + install -D libhello.so.0.0 \ + $(CURDIR)/debian/libhello0/usr/lib/libhello.so.0.0 + ln -s libhello.so.0.0 \ + $(CURDIR)/debian/libhello0/usr/lib/libhello.so.0 + +# Build architecture-dependent files here. +export DH_OPTIONS +binary-arch: DH_OPTIONS=-a +binary-arch: build-stamp install + dh_testdir + dh_testroot + dh_installchangelogs -N hello-dbg + dh_installdocs + DH_OPTIONS= dh_strip -phello --dbg-package=hello-dbg + DH_OPTIONS= dh_strip -plibhello0 --dbg-package=libhello0-dbg + + # Now break a few things. Copy the debugging data into places it + # shouldn't be. + cp $(CURDIR)/debian/hello-dbg/usr/lib/debug/usr/bin/hello \ + $(CURDIR)/debian/hello/usr/bin/hello.dbg + cp $(CURDIR)/debian/libhello0-dbg/usr/lib/debug/usr/lib/libhello.so.0.0 \ + $(CURDIR)/debian/libhello0-dbg/usr/lib/libhello.so.dbg + + # Put a full copy of the library in libhello0-dbg in /usr/lib/debug, + # which is okay. + install -m 644 libhello.so.0.0 \ + $(CURDIR)/debian/libhello0-dbg/usr/lib/debug/libhello.so.0.0 + + # Also put it in /usr/lib/debug/lib, which isn't. + install -D -m 644 libhello.so.0.0 \ + $(CURDIR)/debian/libhello0-dbg/usr/lib/debug/lib/libhello.so.0.0 + + # Requires a versioned dependency. + dh_icons + + dh_link + dh_compress + dh_fixperms + dh_makeshlibs -X debug + dh_installdeb + dh_shlibdeps -X debug + + # We do this by hand as otherwise dpkg-gensymbols + # will error due to the broken symbols file + # and abort the build; similarly the file in + # the source tree is _symbols so that dpkg + # doesn't attempt to sanity check it + install -d $(CURDIR)/debian/libhello0/DEBIAN + install -m 644 $(CURDIR)/debian/_symbols \ + $(CURDIR)/debian/libhello0/DEBIAN/symbols + # hello doesn't contain any shlibs, but we + # make it contain a symbols file + install -d $(CURDIR)/debian/hello/DEBIAN + install -m 644 $(CURDIR)/debian/_symbols \ + $(CURDIR)/debian/hello/DEBIAN/symbols + + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-indep: +binary: binary-indep binary-arch +.PHONY: build-arch build-indep build binary binary-indep binary-arch clean install diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/eval/hints new file mode 100644 index 00000000..0e446adc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/eval/hints @@ -0,0 +1 @@ +hello (binary): statically-linked-binary [usr/bin/hello.dbg] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/hello.c b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/hello.c new file mode 100644 index 00000000..76f83373 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/hello.c @@ -0,0 +1,9 @@ +#include +#include "libhello.h" + +int +main(void) +{ + hello(); + exit(0); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/libhello.c b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/libhello.c new file mode 100644 index 00000000..e2f84096 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/libhello.c @@ -0,0 +1,7 @@ +#include + +void +hello(void) +{ + printf("Hello, World!\n"); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/libhello.h b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/libhello.h new file mode 100644 index 00000000..ef774764 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/legacy-debug/libhello.h @@ -0,0 +1 @@ +void hello(void); diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/Makefile b/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/Makefile new file mode 100644 index 00000000..6f3f0813 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/Makefile @@ -0,0 +1,16 @@ +all: hello + +ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH) + +ifneq (,$(filter $(ARCH), amd64 arm64 s390x riscv64 loong64)) +hello: hello.c + gcc -static-pie hello.c -o hello +else +hello: + touch hello +endif + +clean: + rm -f hello + +distclean: clean diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/ORIGIN new file mode 100644 index 00000000..a5e8e3c0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/binaries/static/static-pie-binary + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/debian/changelog new file mode 100644 index 00000000..fbdeed33 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/debian/changelog @@ -0,0 +1,17 @@ +binary (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: static-pie-binary + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +binary (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: static-pie-binary + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/debian/control b/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/debian/control new file mode 100644 index 00000000..e570ae93 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/debian/control @@ -0,0 +1,17 @@ +Source: binary +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: binary +Architecture: any +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check a static-pie "binary" + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/debian/install b/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/debian/install new file mode 100644 index 00000000..6a91285a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/debian/install @@ -0,0 +1 @@ +hello usr/bin diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/debian/rules b/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/debian/rules new file mode 100644 index 00000000..2d33f6ac --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/debian/watch b/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/eval/hints b/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/eval/hints new file mode 100644 index 00000000..a1c4c287 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/eval/hints @@ -0,0 +1 @@ +binary (binary): statically-linked-binary [usr/bin/hello] diff --git a/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/hello.c b/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/hello.c new file mode 100644 index 00000000..2fb04e17 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/binaries/static/static-pie-binary/hello.c @@ -0,0 +1,8 @@ +#include +#include + +int main(int argc, char *argv[]) { + + printf("Hello, World!\n"); + exit(0); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/automake/automake-general/Makefile.am b/packages/debmagic/tests/lintian-parity/checks/build-systems/automake/automake-general/Makefile.am new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/automake/automake-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/build-systems/automake/automake-general/ORIGIN new file mode 100644 index 00000000..a6bbdf12 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/automake/automake-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/build-systems/automake/automake-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/automake/automake-general/configure.in b/packages/debmagic/tests/lintian-parity/checks/build-systems/automake/automake-general/configure.in new file mode 100644 index 00000000..575a30d5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/automake/automake-general/configure.in @@ -0,0 +1 @@ +AC_INIT diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/automake/automake-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/build-systems/automake/automake-general/debian/changelog new file mode 100644 index 00000000..57cb5c7f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/automake/automake-general/debian/changelog @@ -0,0 +1,17 @@ +automake-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: automake-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +automake-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: automake-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/automake/automake-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/automake/automake-general/debian/control new file mode 100644 index 00000000..fc3cfa4b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/automake/automake-general/debian/control @@ -0,0 +1,17 @@ +Source: automake-general +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: automake-general +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test if the package uses the deprecated configure.in for automake + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/automake/automake-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/build-systems/automake/automake-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/automake/automake-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/automake/automake-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/build-systems/automake/automake-general/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/automake/automake-general/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/automake/automake-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/build-systems/automake/automake-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/automake/automake-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/automake/automake-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/automake/automake-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/automake/automake-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/automake/automake-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/build-systems/automake/automake-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/automake/automake-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/automake/automake-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/build-systems/automake/automake-general/eval/hints new file mode 100644 index 00000000..4d3dfa61 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/automake/automake-general/eval/hints @@ -0,0 +1 @@ +automake-general (source): deprecated-configure-filename [configure.in] diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/ORIGIN new file mode 100644 index 00000000..2e81798d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/build-systems/autotools/cruft-general-test-suite + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/bar/test/{arch}/foo b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/bar/test/{arch}/foo new file mode 100644 index 00000000..624a865f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/bar/test/{arch}/foo @@ -0,0 +1 @@ +source-contains-arch-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/baz/foo/tests/.hg/foo b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/baz/foo/tests/.hg/foo new file mode 100644 index 00000000..0c10a1a6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/baz/foo/tests/.hg/foo @@ -0,0 +1 @@ +source-contains-hg-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/debian/changelog new file mode 100644 index 00000000..2ddd800a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/debian/changelog @@ -0,0 +1,17 @@ +cruft-general-test-suite (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-general-test-suite + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +cruft-general-test-suite (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-general-test-suite + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/debian/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/debian/control new file mode 100644 index 00000000..472b1791 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/debian/control @@ -0,0 +1,17 @@ +Source: cruft-general-test-suite +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: cruft-general-test-suite +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check that cruft in test suites is okay + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/debian/rules b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/debian/watch b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/eval/hints b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/eval/hints new file mode 100644 index 00000000..5f7a858b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/eval/hints @@ -0,0 +1 @@ +cruft-general-test-suite (source): configure-generated-file-in-source [tests/config.cache] diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/foo/t/.svn/format b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/foo/t/.svn/format new file mode 100644 index 00000000..695e71ed --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/foo/t/.svn/format @@ -0,0 +1 @@ +source-contains-svn-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/hello.c b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/hello.c new file mode 100644 index 00000000..1b47b80a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/hello.c @@ -0,0 +1,8 @@ +#include + +int +main(void) +{ + printf("Hello world!\n"); + return 0; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/t/.arch-inventory b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/t/.arch-inventory new file mode 100644 index 00000000..f564fd19 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/t/.arch-inventory @@ -0,0 +1 @@ +source-contains-arch-inventory-file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/t/.hgtags b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/t/.hgtags new file mode 100644 index 00000000..52803789 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/t/.hgtags @@ -0,0 +1 @@ +source-contains-hg-tags-file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/t/CVS/Entries b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/t/CVS/Entries new file mode 100644 index 00000000..029cdeff --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/t/CVS/Entries @@ -0,0 +1 @@ +source-contains-cvs-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/t/foo.r1352 b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/t/foo.r1352 new file mode 100644 index 00000000..b51042df --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/t/foo.r1352 @@ -0,0 +1 @@ +source-contains-svn-conflict-file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/t/hello b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/t/hello new file mode 100755 index 00000000..5237210e Binary files /dev/null and b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/t/hello differ diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/t/svk-commit444.tmp b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/t/svk-commit444.tmp new file mode 100644 index 00000000..9640a42d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/t/svk-commit444.tmp @@ -0,0 +1 @@ +source-contains-svk-commit-file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/t/svn-commit.tmp b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/t/svn-commit.tmp new file mode 100644 index 00000000..fa384930 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/t/svn-commit.tmp @@ -0,0 +1 @@ +source-contains-svn-commit-file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/test/.bzr/foo b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/test/.bzr/foo new file mode 100644 index 00000000..20eb04e0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/test/.bzr/foo @@ -0,0 +1 @@ +source-contains-bzr-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/tests/config.cache b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/tests/config.cache new file mode 100644 index 00000000..c9ab77bb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/tests/config.cache @@ -0,0 +1 @@ +configure-generated-file-in-source diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/testset/.be/foo b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/testset/.be/foo new file mode 100644 index 00000000..ffc2bd59 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/cruft-general-test-suite/testset/.be/foo @@ -0,0 +1 @@ +source-contains-bts-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/ORIGIN new file mode 100644 index 00000000..ac4ac39d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2 + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/debian/changelog new file mode 100644 index 00000000..b365de1d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/debian/changelog @@ -0,0 +1,17 @@ +cruft-ancient-libtool-2 (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-ancient-libtool-2 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +cruft-ancient-libtool-2 (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-ancient-libtool-2 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/debian/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/debian/control new file mode 100644 index 00000000..99d883c4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/debian/control @@ -0,0 +1,17 @@ +Source: cruft-ancient-libtool-2 +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: cruft-ancient-libtool-2 +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test that an old (1.5.2) ltmain.sh is detected correctly + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/debian/rules b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/eval/hints b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/eval/hints new file mode 100644 index 00000000..1cc18202 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/eval/hints @@ -0,0 +1 @@ +cruft-ancient-libtool-2 (source): ancient-libtool 1.5.2 [ltmain.sh] diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/ltmain.sh b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/ltmain.sh new file mode 100644 index 00000000..662c6f0b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool-2/ltmain.sh @@ -0,0 +1,62 @@ +# ltmain.sh - Provide generalized library-building support services. +# NOTE: Changing this file will not affect anything until you rerun configure. +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003 +# Free Software Foundation, Inc. +# Originally by Gordon Matzigkeit , 1996 +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Check that we have a working $echo. +if test "X$1" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift +elif test "X$1" = X--fallback-echo; then + # Avoid inline document here, it may be left over + : +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then + # Yippee, $echo works! + : +else + # Restart under the correct shell, and then maybe $echo will work. + exec $SHELL "$0" --no-reexec ${1+"$@"} +fi + +if test "X$1" = X--fallback-echo; then + # used as fallback echo + shift + cat < Tue, 31 Mar 2026 17:46:22 +0200 + +cruft-ancient-libtool (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-ancient-libtool + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool/debian/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool/debian/control new file mode 100644 index 00000000..be125025 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool/debian/control @@ -0,0 +1,17 @@ +Source: cruft-ancient-libtool +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: cruft-ancient-libtool +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test that a very old ltmain.sh/ltconfig is detected correctly + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool/debian/rules b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool/eval/hints b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool/eval/hints new file mode 100644 index 00000000..c81096c1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool/eval/hints @@ -0,0 +1,2 @@ +cruft-ancient-libtool (source): ancient-libtool [ltconfig] +cruft-ancient-libtool (source): ancient-libtool 1.3.5 [ltmain.sh] diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool/ltconfig b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool/ltconfig new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool/ltmain.sh b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool/ltmain.sh new file mode 100644 index 00000000..c7b800bd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-ancient-libtool/ltmain.sh @@ -0,0 +1,59 @@ +# ltmain.sh - Provide generalized library-building support services. +# NOTE: Changing this file will not affect anything until you rerun ltconfig. +# +# Copyright (C) 1996-1999 Free Software Foundation, Inc. +# Originally by Gordon Matzigkeit , 1996 +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Check that we have a working $echo. +if test "X$1" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift +elif test "X$1" = X--fallback-echo; then + # Avoid inline document here, it may be left over + : +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then + # Yippee, $echo works! + : +else + # Restart under the correct shell, and then maybe $echo will work. + exec $SHELL "$0" --no-reexec ${1+"$@"} +fi + +if test "X$1" = X--fallback-echo; then + # used as fallback echo + shift + cat < Tue, 31 Mar 2026 17:46:22 +0200 + +cruft-current-libtool (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-current-libtool + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-current-libtool/debian/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-current-libtool/debian/control new file mode 100644 index 00000000..e9113d30 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-current-libtool/debian/control @@ -0,0 +1,17 @@ +Source: cruft-current-libtool +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: cruft-current-libtool +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test that a current ltmain.sh is detected correctly + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-current-libtool/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-current-libtool/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-current-libtool/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-current-libtool/debian/rules b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-current-libtool/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-current-libtool/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-current-libtool/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-current-libtool/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-current-libtool/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-current-libtool/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-current-libtool/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-current-libtool/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-current-libtool/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-current-libtool/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-current-libtool/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-current-libtool/eval/hints b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-current-libtool/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-current-libtool/ltmain.sh b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-current-libtool/ltmain.sh new file mode 100644 index 00000000..c5f7e110 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-current-libtool/ltmain.sh @@ -0,0 +1,48 @@ +# ltmain.sh - Provide generalized library-building support services. +# NOTE: Changing this file will not affect anything until you rerun configure. +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, +# 2007 Free Software Foundation, Inc. +# Originally by Gordon Matzigkeit , 1996 +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +basename="s,^.*/,,g" + +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh +# is ksh but when the shell is invoked as "sh" and the current value of +# the _XPG environment variable is not equal to 1 (one), the special +# positional parameter $0, within a function call, is the name of the +# function. +progpath="$0" + +# The name of this program: +progname=`echo "$progpath" | $SED $basename` +modename="$progname" + +# Global variables: +EXIT_SUCCESS=0 +EXIT_FAILURE=1 + +PROGRAM=ltmain.sh +PACKAGE=libtool +VERSION="1.5.24 Debian 1.5.24-1ubuntu1" +TIMESTAMP=" (1.1220.2.456 2007/06/24 02:25:32)" + diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-updated-libtool/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-updated-libtool/ORIGIN new file mode 100644 index 00000000..e4ae4729 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-updated-libtool/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/build-systems/autotools/libtool/cruft-updated-libtool + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-updated-libtool/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-updated-libtool/debian/changelog new file mode 100644 index 00000000..ea5c6a6a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-updated-libtool/debian/changelog @@ -0,0 +1,17 @@ +cruft-updated-libtool (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-updated-libtool + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +cruft-updated-libtool (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-updated-libtool + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-updated-libtool/debian/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-updated-libtool/debian/control new file mode 100644 index 00000000..7546a5d7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-updated-libtool/debian/control @@ -0,0 +1,17 @@ +Source: cruft-updated-libtool +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), libtool +Homepage: https://lintian.debian.org/ + +Package: cruft-updated-libtool +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Old ltmain.sh/ltconfig is fine with build-depend + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-updated-libtool/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-updated-libtool/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-updated-libtool/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-updated-libtool/debian/rules b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-updated-libtool/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-updated-libtool/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-updated-libtool/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-updated-libtool/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-updated-libtool/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-updated-libtool/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-updated-libtool/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-updated-libtool/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-updated-libtool/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-updated-libtool/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-updated-libtool/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-updated-libtool/eval/hints b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-updated-libtool/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-updated-libtool/ltconfig b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-updated-libtool/ltconfig new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-updated-libtool/ltmain.sh b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-updated-libtool/ltmain.sh new file mode 100644 index 00000000..c7b800bd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/libtool/cruft-updated-libtool/ltmain.sh @@ -0,0 +1,59 @@ +# ltmain.sh - Provide generalized library-building support services. +# NOTE: Changing this file will not affect anything until you rerun ltconfig. +# +# Copyright (C) 1996-1999 Free Software Foundation, Inc. +# Originally by Gordon Matzigkeit , 1996 +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Check that we have a working $echo. +if test "X$1" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift +elif test "X$1" = X--fallback-echo; then + # Avoid inline document here, it may be left over + : +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then + # Yippee, $echo works! + : +else + # Restart under the correct shell, and then maybe $echo will work. + exec $SHELL "$0" --no-reexec ${1+"$@"} +fi + +if test "X$1" = X--fallback-echo; then + # used as fallback echo + shift + cat < Tue, 31 Mar 2026 17:46:22 +0200 + +macro-not-cross-compilation-safe-old-filename (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: macro-not-cross-compilation-safe-old-filename + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/debian/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/debian/control new file mode 100644 index 00000000..350f98b1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/debian/control @@ -0,0 +1,17 @@ +Source: macro-not-cross-compilation-safe-old-filename +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: macro-not-cross-compilation-safe-old-filename +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for packages that look for pkg-config incorrectly + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/debian/rules b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/eval/hints b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/eval/hints new file mode 100644 index 00000000..8e6791b4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/eval/hints @@ -0,0 +1,2 @@ +macro-not-cross-compilation-safe-old-filename (source): autotools-pkg-config-macro-not-cross-compilation-safe AC_PATH_PROG [src/configure.in:1] +macro-not-cross-compilation-safe-old-filename (source): autotools-pkg-config-macro-not-cross-compilation-safe AC_PATH_PROG [configure.in:3] diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/src/configure.in b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/src/configure.in new file mode 100644 index 00000000..eeb7274c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe-old-filename/src/configure.in @@ -0,0 +1 @@ +AC_PATH_PROG(PKGCONFIG, pkg-config, no, $PATH:/usr/bin:/usr/local/bin) diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe/ORIGIN new file mode 100644 index 00000000..66590262 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/build-systems/autotools/macro-not-cross-compilation-safe + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe/configure.ac b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe/configure.ac new file mode 100644 index 00000000..4e448c86 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe/configure.ac @@ -0,0 +1,5 @@ +AC_INIT + +AC_PATH_PROG(PKG_CONFIG, pkg-config, no) + +dnl AC_PATH_PROG(PKG_CONFIG, pkg-config, no) diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe/debian/changelog new file mode 100644 index 00000000..c3c1f6e2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe/debian/changelog @@ -0,0 +1,17 @@ +macro-not-cross-compilation-safe (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: macro-not-cross-compilation-safe + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +macro-not-cross-compilation-safe (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: macro-not-cross-compilation-safe + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe/debian/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe/debian/control new file mode 100644 index 00000000..b1c37538 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe/debian/control @@ -0,0 +1,17 @@ +Source: macro-not-cross-compilation-safe +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: macro-not-cross-compilation-safe +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for packages that look for pkg-config incorrectly + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe/debian/rules b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe/eval/hints b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe/eval/hints new file mode 100644 index 00000000..caf4c75c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe/eval/hints @@ -0,0 +1,2 @@ +macro-not-cross-compilation-safe (source): autotools-pkg-config-macro-not-cross-compilation-safe AC_PATH_PROG [src/configure.ac:1] +macro-not-cross-compilation-safe (source): autotools-pkg-config-macro-not-cross-compilation-safe AC_PATH_PROG [configure.ac:3] diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe/src/configure.ac b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe/src/configure.ac new file mode 100644 index 00000000..0250f9b8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/autotools/macro-not-cross-compilation-safe/src/configure.ac @@ -0,0 +1 @@ +AC_PATH_PROG(PKG_CONFIG, pkg-config, no) diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/.arch-inventory b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/.arch-inventory new file mode 100644 index 00000000..db895b7f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/.arch-inventory @@ -0,0 +1 @@ +diff-contains-arch-inventory-file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/.be/foo b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/.be/foo new file mode 100644 index 00000000..c64bbe85 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/.be/foo @@ -0,0 +1 @@ +diff-contains-bts-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/.bzr/foo b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/.bzr/foo new file mode 100644 index 00000000..f8270b6b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/.bzr/foo @@ -0,0 +1 @@ +diff-contains-bzr-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/.hg/foo b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/.hg/foo new file mode 100644 index 00000000..5cd5b94f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/.hg/foo @@ -0,0 +1 @@ +diff-contains-hg-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/.hgtags b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/.hgtags new file mode 100644 index 00000000..3187d159 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/.hgtags @@ -0,0 +1 @@ +diff-contains-hg-tags-file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/.pc/foo b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/.pc/foo new file mode 100644 index 00000000..b688c751 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/.pc/foo @@ -0,0 +1 @@ +diff-contains-quilt-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/.svn/format b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/.svn/format new file mode 100644 index 00000000..d9d5d1b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/.svn/format @@ -0,0 +1 @@ +diff-contains-svn-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/CMakeCache.txt b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/CMakeCache.txt new file mode 100644 index 00000000..f21f3894 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/CMakeCache.txt @@ -0,0 +1 @@ +diff-contains-cmake-cache-file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/CVS/Entries b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/CVS/Entries new file mode 100644 index 00000000..ed6f152a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/CVS/Entries @@ -0,0 +1 @@ +diff-contains-cvs-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/ORIGIN new file mode 100644 index 00000000..edb09d1b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/build-systems/cmake/cruft-general-diff + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/debian/changelog new file mode 100644 index 00000000..0ab24e36 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/debian/changelog @@ -0,0 +1,17 @@ +cruft-general-diff (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-general-diff + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +cruft-general-diff (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-general-diff + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/debian/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/debian/control new file mode 100644 index 00000000..c2d5e985 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/debian/control @@ -0,0 +1,17 @@ +Source: cruft-general-diff +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: cruft-general-diff +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for cruft added in the diff + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/debian/rules b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/debian/rules new file mode 100755 index 00000000..413418b3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_prep: + dh_prep -X~ -Xrej + +clean: + @echo 'Do nothing' diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/debian/somepackage.substvars b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/debian/somepackage.substvars new file mode 100644 index 00000000..abd3ebeb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/debian/somepackage.substvars @@ -0,0 +1 @@ +misc:Depends= diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/debian/source/format new file mode 100644 index 00000000..d3827e75 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/debian/source/format @@ -0,0 +1 @@ +1.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/debian/substvars b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/debian/substvars new file mode 100644 index 00000000..abd3ebeb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/debian/substvars @@ -0,0 +1 @@ +misc:Depends= diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/debian/watch b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/eval/hints b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/eval/hints new file mode 100644 index 00000000..483fd144 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/eval/hints @@ -0,0 +1 @@ +cruft-general-diff (source): source-contains-cmake-cache-file [CMakeCache.txt] diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/foo.r1352 b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/foo.r1352 new file mode 100644 index 00000000..4249927e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/foo.r1352 @@ -0,0 +1 @@ +diff-contains-svn-conflict-file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/foo.rej b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/foo.rej new file mode 100644 index 00000000..02ef3beb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/foo.rej @@ -0,0 +1 @@ +diff-contains-patch-failure-file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/svk-commit444.tmp b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/svk-commit444.tmp new file mode 100644 index 00000000..3025663f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/svk-commit444.tmp @@ -0,0 +1 @@ +diff-contains-svk-commit-file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/svn-commit.tmp b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/svn-commit.tmp new file mode 100644 index 00000000..4a26aa0c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/svn-commit.tmp @@ -0,0 +1 @@ +diff-contains-svn-commit-file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/{arch}/foo b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/{arch}/foo new file mode 100644 index 00000000..ca1b833e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-diff/{arch}/foo @@ -0,0 +1 @@ +diff-contains-arch-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/.arch-inventory b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/.arch-inventory new file mode 100644 index 00000000..db895b7f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/.arch-inventory @@ -0,0 +1 @@ +diff-contains-arch-inventory-file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/.be/foo b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/.be/foo new file mode 100644 index 00000000..c64bbe85 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/.be/foo @@ -0,0 +1 @@ +diff-contains-bts-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/.bzr/foo b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/.bzr/foo new file mode 100644 index 00000000..f8270b6b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/.bzr/foo @@ -0,0 +1 @@ +diff-contains-bzr-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/.hg/foo b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/.hg/foo new file mode 100644 index 00000000..5cd5b94f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/.hg/foo @@ -0,0 +1 @@ +diff-contains-hg-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/.hgtags b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/.hgtags new file mode 100644 index 00000000..3187d159 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/.hgtags @@ -0,0 +1 @@ +diff-contains-hg-tags-file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/.svn/format b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/.svn/format new file mode 100644 index 00000000..d9d5d1b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/.svn/format @@ -0,0 +1 @@ +diff-contains-svn-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/CMakeCache.txt b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/CMakeCache.txt new file mode 100644 index 00000000..f21f3894 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/CMakeCache.txt @@ -0,0 +1 @@ +diff-contains-cmake-cache-file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/CVS/Entries b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/CVS/Entries new file mode 100644 index 00000000..ed6f152a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/CVS/Entries @@ -0,0 +1 @@ +diff-contains-cvs-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/ORIGIN new file mode 100644 index 00000000..c4a6d5b0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/build-systems/cmake/cruft-general-native + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/debian/changelog new file mode 100644 index 00000000..5f416166 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/debian/changelog @@ -0,0 +1,17 @@ +cruft-general-native (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-general-native + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +cruft-general-native (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-general-native + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/debian/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/debian/control new file mode 100644 index 00000000..a85f3351 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/debian/control @@ -0,0 +1,17 @@ +Source: cruft-general-native +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: cruft-general-native +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for cruft in a native package + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/debian/rules b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/debian/rules new file mode 100755 index 00000000..413418b3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_prep: + dh_prep -X~ -Xrej + +clean: + @echo 'Do nothing' diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/debian/substvars b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/debian/substvars new file mode 100644 index 00000000..abd3ebeb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/debian/substvars @@ -0,0 +1 @@ +misc:Depends= diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/eval/hints b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/eval/hints new file mode 100644 index 00000000..352bbe8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/eval/hints @@ -0,0 +1 @@ +cruft-general-native (source): source-contains-cmake-cache-file [CMakeCache.txt] diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/foo.r1352 b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/foo.r1352 new file mode 100644 index 00000000..4249927e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/foo.r1352 @@ -0,0 +1 @@ +diff-contains-svn-conflict-file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/foo.rej b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/foo.rej new file mode 100644 index 00000000..02ef3beb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/foo.rej @@ -0,0 +1 @@ +diff-contains-patch-failure-file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/svk-commit444.tmp b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/svk-commit444.tmp new file mode 100644 index 00000000..3025663f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/svk-commit444.tmp @@ -0,0 +1 @@ +diff-contains-svk-commit-file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/svn-commit.tmp b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/svn-commit.tmp new file mode 100644 index 00000000..4a26aa0c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/svn-commit.tmp @@ -0,0 +1 @@ +diff-contains-svn-commit-file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/{arch}/foo b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/{arch}/foo new file mode 100644 index 00000000..ca1b833e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-native/{arch}/foo @@ -0,0 +1 @@ +diff-contains-arch-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/ORIGIN new file mode 100644 index 00000000..e6e4bdae --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/build-systems/cmake/cruft-general-quilt + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/.arch-inventory b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/.arch-inventory new file mode 100644 index 00000000..db895b7f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/.arch-inventory @@ -0,0 +1 @@ +diff-contains-arch-inventory-file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/.be/foo b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/.be/foo new file mode 100644 index 00000000..c64bbe85 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/.be/foo @@ -0,0 +1 @@ +diff-contains-bts-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/.bzr/foo b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/.bzr/foo new file mode 100644 index 00000000..f8270b6b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/.bzr/foo @@ -0,0 +1 @@ +diff-contains-bzr-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/.hg/foo b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/.hg/foo new file mode 100644 index 00000000..5cd5b94f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/.hg/foo @@ -0,0 +1 @@ +diff-contains-hg-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/.hgtags b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/.hgtags new file mode 100644 index 00000000..3187d159 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/.hgtags @@ -0,0 +1 @@ +diff-contains-hg-tags-file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/.pc/foo b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/.pc/foo new file mode 100644 index 00000000..b688c751 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/.pc/foo @@ -0,0 +1 @@ +diff-contains-quilt-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/.svn/format b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/.svn/format new file mode 100644 index 00000000..d9d5d1b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/.svn/format @@ -0,0 +1 @@ +diff-contains-svn-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/CMakeCache.txt b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/CMakeCache.txt new file mode 100644 index 00000000..f21f3894 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/CMakeCache.txt @@ -0,0 +1 @@ +diff-contains-cmake-cache-file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/CVS/Entries b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/CVS/Entries new file mode 100644 index 00000000..ed6f152a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/CVS/Entries @@ -0,0 +1 @@ +diff-contains-cvs-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/README.source b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/README.source new file mode 100644 index 00000000..0bbaa60a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/README.source @@ -0,0 +1 @@ +Some information about the patch system diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/changelog new file mode 100644 index 00000000..fd8cfbee --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/changelog @@ -0,0 +1,17 @@ +cruft-general-quilt (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-general-quilt + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +cruft-general-quilt (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-general-quilt + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/control new file mode 100644 index 00000000..5593c9d8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/control @@ -0,0 +1,17 @@ +Source: cruft-general-quilt +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: cruft-general-quilt +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for cruft added in a 3.0 (quilt) package + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/foo.r1352 b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/foo.r1352 new file mode 100644 index 00000000..4249927e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/foo.r1352 @@ -0,0 +1 @@ +diff-contains-svn-conflict-file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/foo.rej b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/foo.rej new file mode 100644 index 00000000..02ef3beb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/foo.rej @@ -0,0 +1 @@ +diff-contains-patch-failure-file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/rules b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/rules new file mode 100755 index 00000000..413418b3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_prep: + dh_prep -X~ -Xrej + +clean: + @echo 'Do nothing' diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/somepackage.substvars b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/somepackage.substvars new file mode 100644 index 00000000..abd3ebeb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/somepackage.substvars @@ -0,0 +1 @@ +misc:Depends= diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/substvars b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/substvars new file mode 100644 index 00000000..abd3ebeb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/substvars @@ -0,0 +1 @@ +misc:Depends= diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/svk-commit444.tmp b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/svk-commit444.tmp new file mode 100644 index 00000000..3025663f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/svk-commit444.tmp @@ -0,0 +1 @@ +diff-contains-svk-commit-file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/svn-commit.tmp b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/svn-commit.tmp new file mode 100644 index 00000000..4a26aa0c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/svn-commit.tmp @@ -0,0 +1 @@ +diff-contains-svn-commit-file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/watch b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/{arch}/foo b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/{arch}/foo new file mode 100644 index 00000000..ca1b833e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/debian/{arch}/foo @@ -0,0 +1 @@ +diff-contains-arch-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/eval/hints b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/eval/hints new file mode 100644 index 00000000..f47e7ff3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-quilt/eval/hints @@ -0,0 +1 @@ +cruft-general-quilt (source): source-contains-cmake-cache-file [debian/CMakeCache.txt] diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/ORIGIN new file mode 100644 index 00000000..7cd2d620 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/build-systems/cmake/cruft-general-wig-pen + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/README b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/README new file mode 100644 index 00000000..e845566c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/README @@ -0,0 +1 @@ +README diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/.arch-inventory b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/.arch-inventory new file mode 100644 index 00000000..db895b7f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/.arch-inventory @@ -0,0 +1 @@ +diff-contains-arch-inventory-file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/.be/foo b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/.be/foo new file mode 100644 index 00000000..c64bbe85 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/.be/foo @@ -0,0 +1 @@ +diff-contains-bts-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/.bzr/foo b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/.bzr/foo new file mode 100644 index 00000000..f8270b6b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/.bzr/foo @@ -0,0 +1 @@ +diff-contains-bzr-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/.hg/foo b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/.hg/foo new file mode 100644 index 00000000..5cd5b94f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/.hg/foo @@ -0,0 +1 @@ +diff-contains-hg-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/.hgtags b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/.hgtags new file mode 100644 index 00000000..3187d159 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/.hgtags @@ -0,0 +1 @@ +diff-contains-hg-tags-file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/.svn/format b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/.svn/format new file mode 100644 index 00000000..d9d5d1b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/.svn/format @@ -0,0 +1 @@ +diff-contains-svn-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/CMakeCache.txt b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/CMakeCache.txt new file mode 100644 index 00000000..f21f3894 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/CMakeCache.txt @@ -0,0 +1 @@ +diff-contains-cmake-cache-file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/CVS/Entries b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/CVS/Entries new file mode 100644 index 00000000..ed6f152a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/CVS/Entries @@ -0,0 +1 @@ +diff-contains-cvs-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/changelog new file mode 100644 index 00000000..a2b9a01d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/changelog @@ -0,0 +1,17 @@ +cruft-general-wig-pen (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-general-wig-pen + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +cruft-general-wig-pen (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-general-wig-pen + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/control new file mode 100644 index 00000000..3831bd21 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/control @@ -0,0 +1,17 @@ +Source: cruft-general-wig-pen +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: cruft-general-wig-pen +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for cruft added in a 2.0 package + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/foo.r1352 b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/foo.r1352 new file mode 100644 index 00000000..4249927e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/foo.r1352 @@ -0,0 +1 @@ +diff-contains-svn-conflict-file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/foo.rej b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/foo.rej new file mode 100644 index 00000000..02ef3beb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/foo.rej @@ -0,0 +1 @@ +diff-contains-patch-failure-file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/patches/wig-pen b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/patches/wig-pen new file mode 100644 index 00000000..a452b539 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/patches/wig-pen @@ -0,0 +1,5 @@ +--- upstream/README ++++ debian/README +@@ -1 +1 @@ +-README ++README for wig&pen diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/rules b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/rules new file mode 100755 index 00000000..413418b3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_prep: + dh_prep -X~ -Xrej + +clean: + @echo 'Do nothing' diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/source/format new file mode 100644 index 00000000..cd5ac039 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/source/format @@ -0,0 +1 @@ +2.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/substvars b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/substvars new file mode 100644 index 00000000..abd3ebeb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/substvars @@ -0,0 +1 @@ +misc:Depends= diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/svk-commit444.tmp b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/svk-commit444.tmp new file mode 100644 index 00000000..3025663f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/svk-commit444.tmp @@ -0,0 +1 @@ +diff-contains-svk-commit-file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/svn-commit.tmp b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/svn-commit.tmp new file mode 100644 index 00000000..4a26aa0c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/svn-commit.tmp @@ -0,0 +1 @@ +diff-contains-svn-commit-file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/watch b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/{arch}/foo b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/{arch}/foo new file mode 100644 index 00000000..ca1b833e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/debian/{arch}/foo @@ -0,0 +1 @@ +diff-contains-arch-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/eval/hints b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/eval/hints new file mode 100644 index 00000000..00b6c078 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/cruft-general-wig-pen/eval/hints @@ -0,0 +1 @@ +cruft-general-wig-pen (source): source-contains-cmake-cache-file [debian/CMakeCache.txt] diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/files-package-contains-foo/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/files-package-contains-foo/ORIGIN new file mode 100644 index 00000000..d6e8ac3d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/files-package-contains-foo/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/build-systems/cmake/files-package-contains-foo + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/files-package-contains-foo/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/files-package-contains-foo/debian/changelog new file mode 100644 index 00000000..acfbefc7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/files-package-contains-foo/debian/changelog @@ -0,0 +1,17 @@ +files-package-contains-foo (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: files-package-contains-foo + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +files-package-contains-foo (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: files-package-contains-foo + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/files-package-contains-foo/debian/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/files-package-contains-foo/debian/control new file mode 100644 index 00000000..ea65cf8c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/files-package-contains-foo/debian/control @@ -0,0 +1,17 @@ +Source: files-package-contains-foo +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: files-package-contains-foo +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test tags about cruft in binary packages + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/files-package-contains-foo/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/files-package-contains-foo/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/files-package-contains-foo/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/files-package-contains-foo/debian/rules b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/files-package-contains-foo/debian/rules new file mode 100644 index 00000000..8e0b207a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/files-package-contains-foo/debian/rules @@ -0,0 +1,71 @@ +#!/usr/bin/make -f + +PKG :=$(shell dh_listpackages) +SHARE:= debian/$(PKG)/usr/share +DATA := $(SHARE)/$(PKG) +DOC := $(SHARE)/doc/$(PKG) + +%: + dh $@ + +override_dh_install: + dh_install + mkdir -p $(DOC) $(DATA) + + # Vcs stuff + mkdir $(DATA)/.svn $(DATA)/.git + touch $(DATA)/.svn/file + touch $(DATA)/.git/file + touch $(DATA)/.gitignore + touch $(DATA)/.git_ignore + mkdir $(DATA)/sub-git1/ + echo '*.old' | gzip -9n > $(DATA)/sub-git1/.gitignore.gz + touch $(DATA)/sub-git1/.gitattributes + touch $(DATA)/sub-git1/.gitmodules + + touch $(DATA)/svn-commit-yeehaa.tmp + touch $(DATA)/svk-commit-yeehaa.tmp + + # bts control dir + mkdir $(DATA)/.be + touch $(DATA)/.be/file + + # macos stuff + touch $(DATA)/.DS_Store + touch $(DATA)/._stuff + + # windows + touch $(DATA)/Thumbs.db + + # Foreign READMEs + echo "Hallo World Mac" > $(DOC)/README.mac + echo "Hallo World Win" > $(DOC)/README.windows + + # Linda override + mkdir -p $(SHARE)/linda/overrides + touch $(SHARE)/linda/overrides/$(PKG) + + # CMake private files + mkdir -p $(SHARE)/cmake-3.1/Modules + touch $(SHARE)/cmake-3.1/FindFoo.cmake + touch $(SHARE)/cmake-3.1/Modules/FindVar.cmake + + # Ignored Cargo sources + mkdir -p $(SHARE)/cargo/registry/crate-1.0.0/templates + touch $(SHARE)/cargo/registry/crate-1.0.0/.gitignore + touch $(SHARE)/cargo/registry/crate-1.0.0/LICENSE + touch $(SHARE)/cargo/registry/crate-1.0.0/templates/readme.tmpl + mkdir -p $(SHARE)/cargo/registry/crate-1.0.0/foo_templates + touch $(SHARE)/cargo/registry/crate-1.0.0/foo_templates/readme.tmpl + mkdir -p $(SHARE)/cargo/registry/crate-1.0.0/my-templates.d + touch $(SHARE)/cargo/registry/crate-1.0.0/my-templates.d/readme.tmpl + echo '#!/bin/sh' > $(SHARE)/cargo/registry/crate-1.0.0/test.sh + + # Documentation outside /usr/share/doc + touch $(DATA)/readme.txt + touch $(DATA)/readme1.1.txt + touch $(DATA)/readme1.1.txt + touch $(DATA)/readme_1.1.txt + touch $(DATA)/readme-1.1.txt + touch $(DATA)/readmefirst.txt + touch $(DATA)/readMesh_off.m # False-positive from #914500 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/files-package-contains-foo/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/files-package-contains-foo/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/files-package-contains-foo/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/files-package-contains-foo/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/files-package-contains-foo/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/files-package-contains-foo/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/files-package-contains-foo/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/files-package-contains-foo/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/files-package-contains-foo/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/files-package-contains-foo/eval/hints b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/files-package-contains-foo/eval/hints new file mode 100644 index 00000000..92de4987 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/cmake/files-package-contains-foo/eval/hints @@ -0,0 +1,2 @@ +files-package-contains-foo (binary): package-contains-cmake-private-file [usr/share/cmake-3.1/Modules/FindVar.cmake] +files-package-contains-foo (binary): package-contains-cmake-private-file [usr/share/cmake-3.1/FindFoo.cmake] diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/ORIGIN new file mode 100644 index 00000000..41ec93c6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/csh-foo b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/csh-foo new file mode 100644 index 00000000..eaf47a15 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/csh-foo @@ -0,0 +1,2 @@ +#! /bin/csh + diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/changelog new file mode 100644 index 00000000..9c6bc545 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/changelog @@ -0,0 +1,41 @@ +scripts (6ds-1ubuntu0.5.10.1) unstable; urgency=low + + * I'm also not able to write my name. + * Added a script in /etc/Xsession.d + * Bizarre version number courtesy of + https://wiki.ubuntu.com/SecurityUpdateProcedures#Prepare + + -- Mark 'HE' Brokschmitt Thu, 23 Jun 2005 14:32:39 +0200 + +scripts (5-1) unstable; urgency=low + + * I'm making a typo in my own name... And I want lintian to warn me about + it. + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 02:26:34 +0200 + +scripts (4-1) unstable; urgency=low + + * Add new example to check that not executable files with a shebang line + called *in don't trigger the script-not-executable warning. + + -- Marc 'HE' Brockschmidt Wed, 14 Apr 2004 19:44:04 +0200 + +scripts (3-3) unstable; urgency=low + + * Add suidperlfoo and some code in debian/rules to + check the new suidperl checks + + -- Frank Lichtenheld Wed, 31 Mar 2004 21:06:20 +0000 + +scripts (2-1) unstable; urgency=low + + * Add tkfoo script for tk checkings + + -- Lintian Maintainers Sat, 21 Feb 2004 17:13:36 +0100 + +scripts (1-0) unstable; urgency=low + + * Initial version + + -- Lintian Maintainers Sat, 10 Feb 2001 15:37:31 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/control new file mode 100644 index 00000000..710e75b0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/control @@ -0,0 +1,16 @@ +Source: scripts +Section: interpreters +Priority: optional +Maintainer: Lintian Maintainers +Uploaders: Jeroen van Wolfelaar , Marc 'HE' Brockschmidt +Build-Depends-Indep: python3 (>= 3.1), python3 (<< 3.2) +Standards-Version: 3.2.1 + +Package: scripts +Architecture: all +Depends: test, ruby1.8, build-essential, libssl0.9.7, php7.0-cli +Recommends: tk8.4 | wish +Description: test lintian's script file checks + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/copyright new file mode 100644 index 00000000..ad8a119e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/copyright @@ -0,0 +1,5 @@ +This file contains the phrase "under the same terms as Perl itself" to +trigger warnings about not having common-licenses references. + +This file contains the phrase "public domain" which should suppress +warnings about no copyright date. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/postinst new file mode 100644 index 00000000..7c5baf1f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/postinst @@ -0,0 +1,14 @@ +#!/bin/sh + +if [ -x "/etc/init.d/lsb-broken" ] ; then + update-rc.d lsb-broken defaults >/dev/null +fi +if [ -x "/etc/init.d/no-lsb" ] ; then + update-rc.d no-lsb defaults >/dev/null +fi +if [ -x "/etc/init.d/skeleton" ] ; then + update-rc.d skeleton defaults >/dev/null +fi +if [ -x "/etc/init.d/lsb-other" ] ; then + update-rc.d lsb-other defaults >/dev/null +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/postrm b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/postrm new file mode 100644 index 00000000..8fa75a25 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/postrm @@ -0,0 +1,9 @@ +#!/bin/sh -e + +if [ "$1" = purge ] ; then + update-rc.d lsb-broken remove >/dev/null + update-rc.d no-lsb remove >/dev/null + update-rc.d skeleton remove >/dev/null + update-rc.d lsb-other remove >/dev/null + update-rc.d lsb-other remove >/dev/null +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/preinst b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/preinst new file mode 100644 index 00000000..07995570 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/preinst @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e +set -x + +# +# Some comments here +# + +# This serves as an example of an "empty" script, so +# please do not add any real code here, thank you :) + +#DEBHELPER# + +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/rules b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/rules new file mode 100755 index 00000000..18b17a38 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/rules @@ -0,0 +1,108 @@ +#!/usr/bin/make -f + +tmp=debian/tmp + +build-arch: + echo "Hi, in an arch: all package, I am a bug!" + +build-indep: + +build: build-arch build-indep + +binary-arch: + echo "Hi, in an arch: all package, I am a bug!" + +binary-indep: + install -d $(tmp)/usr/bin/ + install -d $(tmp)/etc/X11/Xsession.d/ + install -d $(tmp)/etc/init.d/ + install -d $(tmp)/etc/csh/login.d/ + install -d $(tmp)/etc/fish.d/ + install -d $(tmp)/usr/share/scripts/ + install -d $(tmp)/usr/share/doc/scripts/ + install -d $(tmp)/usr/lib/cgi-bin + install -d $(tmp)/DEBIAN + + install -m 755 csh-foo $(tmp)/etc/csh/login.d/ + install -m 755 envfoo $(tmp)/usr/bin/ + install -m 755 fish-foo $(tmp)/etc/fish.d/ + install -m 755 jruby-broken $(tmp)/usr/bin/ + install -m 755 py3.Xfoo $(tmp)/usr/bin/ +# This uses "env" and should trigger script-in-usr-share-doc + install -m 755 py3.Xfoo $(tmp)/usr/share/doc/scripts/ + install -m 755 py3foo $(tmp)/usr/bin/ +# This uses "env" and should trigger script-in-usr-share-doc + install -m 755 py3foo $(tmp)/usr/share/doc/scripts/ + install -m 755 perlfoo $(tmp)/usr/bin/ + install -m 755 rubyfoo $(tmp)/usr/bin/ +# This doesn't use "env" but should also trigger script-in-usr-share-doc + install -m 755 rubyfoo $(tmp)/usr/share/doc/scripts/ + install -m 755 make-foo $(tmp)/usr/bin/ + install -m 755 lefty-foo $(tmp)/usr/bin/ + install -m 4751 perlfoo $(tmp)/usr/bin/suidperlfoo2 + install -m 755 sh-broken $(tmp)/usr/bin/ + install -m 4555 suidperlfoo $(tmp)/usr/bin/ + install -m 755 tkfoo $(tmp)/usr/bin/ + install -m 755 wishfoo $(tmp)/usr/bin/ + install -m 644 xsession-test $(tmp)/etc/X11/Xsession.d/ + +# Permissions here aren't part of what's being tested, but let us exercise +# some other errors. + install -m 755 perl-bizarre-1 $(tmp)/usr/bin/ + install -m 750 perl-bizarre-2 $(tmp)/usr/bin/ + install -m 754 perl-bizarre-3 $(tmp)/usr/bin/ + install -m 705 guile-bizarre $(tmp)/usr/bin/ + +# First one should produce a warning; second one shouldn't. + + install -m 644 init-skeleton $(tmp)/etc/init.d/skeleton + install -m 755 init-no-lsb $(tmp)/etc/init.d/no-lsb + install -m 755 init-lsb-broken $(tmp)/etc/init.d/lsb-broken + install -m 755 init-lsb-other $(tmp)/etc/init.d/lsb-other + + install -m 755 phpfoo $(tmp)/usr/share/scripts/ + sed 's/php$$/php7.0/' phpfoo > $(tmp)/usr/share/scripts/php7.0foo + chmod 755 $(tmp)/usr/share/scripts/php7.0foo + + install -m 755 phpenvfoo $(tmp)/usr/share/scripts/ + sed 's/php$$/php7.0/' phpenvfoo > $(tmp)/usr/share/scripts/php7.0envfoo + chmod 755 $(tmp)/usr/share/scripts/php7.0envfoo + + echo "#!/usr/bin/perl" >> $(tmp)/usr/share/scripts/foobar.in + chmod 644 $(tmp)/usr/share/scripts/foobar.in + + touch $(tmp)/usr/share/scripts/mono.exe + chmod 755 $(tmp)/usr/share/scripts/mono.exe + + echo "#!/bin/sh" > $(tmp)/usr/share/scripts/foo\$$bar + chmod 755 $(tmp)/usr/share/scripts/foo\$$bar + + echo "#!/bin/sh" > $(tmp)/usr/lib/cgi-bin/cgi-script + chmod 755 $(tmp)/usr/lib/cgi-bin/cgi-script + + echo "#!/bin/sh" > $(tmp)/usr/bin/test.sh + chmod 755 $(tmp)/usr/bin/test.sh + + + dh_testroot # dummy to test missing debhelper dependency + + + install -m 644 debian/changelog $(tmp)/usr/share/doc/scripts/changelog.Debian + gzip -n -9 $(tmp)/usr/share/doc/scripts/changelog.Debian + install -m 644 debian/copyright $(tmp)/usr/share/doc/scripts/copyright + + install -m 644 debian/scripts.conffiles $(tmp)/DEBIAN/conffiles + install -m 755 debian/preinst $(tmp)/DEBIAN/preinst + install -m 755 debian/postinst $(tmp)/DEBIAN/postinst + install -m 755 debian/postrm $(tmp)/DEBIAN/postrm + touch $(tmp)/DEBIAN/prerm + chmod 755 $(tmp)/DEBIAN/prerm + dpkg-gencontrol -isp + dpkg --build $(tmp) .. + +binary: binary-arch binary-indep + +clean: + rm -rf debian/files $(tmp) debian/substvars + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/scripts.conffiles b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/scripts.conffiles new file mode 100644 index 00000000..01a371a6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/scripts.conffiles @@ -0,0 +1,6 @@ +/etc/init.d/lsb-broken +/etc/init.d/lsb-other +/etc/init.d/no-lsb +/etc/X11/Xsession.d/xsession-test +/etc/csh/login.d/csh-foo +/etc/fish.d/fish-foo diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/watch b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/watch new file mode 100644 index 00000000..dba58153 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/debian/watch @@ -0,0 +1,8 @@ +# watch file with upstream version mangling + +version=2 +opts="uversionmangle=s/$/ds/" \ +http://qa.debian.org/watch/sf.php?project=foo scripts\.([\d.]+)\.tar\.gz debian uupdate + +version=3 +http://ftp.sf.net/foo/foo_bar(.+)\.Z 5 uupdate \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/envfoo b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/envfoo new file mode 100755 index 00000000..e005037f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/envfoo @@ -0,0 +1,4 @@ +#! /bin/env python + +if __name__ == '__main__': + print 'Hi there' diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/eval/hints b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/eval/hints new file mode 100644 index 00000000..9fe82fbd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/eval/hints @@ -0,0 +1 @@ +scripts (binary): maintainer-script-has-unexpanded-debhelper-token #DEBHELPER# [preinst:13] diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/fish-foo b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/fish-foo new file mode 100644 index 00000000..7f59139a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/fish-foo @@ -0,0 +1,2 @@ +#! /usr/bin/fish + diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/guile-bizarre b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/guile-bizarre new file mode 100644 index 00000000..70e2c745 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/guile-bizarre @@ -0,0 +1,6 @@ +#! /bin/sh +# -*- scheme -*- +exec guile -s $0 $* +# Seen in the wild as build-guile-gtk in libguilegtk-1.2-dev (0.31-5.1) +# Tests script_is_evil_and_wrong +!# diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/init-lsb-broken b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/init-lsb-broken new file mode 100644 index 00000000..e4dfa92b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/init-lsb-broken @@ -0,0 +1,34 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: bad-lsb +# Required-Start: $local_fs $remote_fs +# Required-Stop: +# Default-Start: 1 2 3 4 5 +# Default-Stop: S 0 1 6 X +# Short-Description: Example Lintian initscript +# but this can't be continued +# Description: An example of a bad LSB section in an init script. +# This continuation is allowed (with spaces). +# This one is too (with tabs). +# X-Debian-Foo: Some unknown but valid keyword. +# Foo: Some invalid keyword. + +# Whoops, no terminating line. + +# And then we have this duplicate section. +### BEGIN INIT INFO +# Required-Start: This one doesn't count. +### END INIT INFO + +# Hey, look at all of those missing actions! But stop isn't missing. +case "$1" in + start|stop) + echo "Blah" + ;; + *) + echo "Usage: foo start" >&2 + exit 3 + ;; +esac + +: diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/init-lsb-other b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/init-lsb-other new file mode 100644 index 00000000..adb47959 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/init-lsb-other @@ -0,0 +1,22 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: lsb-other +# Required-Start: $local_fs $remote_fs +# Required-Stop: $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Description: This is another LSB script test, which has a missing +# Short-Description. +### END INIT INFO + +case "$1" in + start|stop|restart|reload|force-reload) + echo "Blah" + ;; + *) + echo "Usage: foo start" >&2 + exit 3 + ;; +esac + +: diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/init-no-lsb b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/init-no-lsb new file mode 100644 index 00000000..6b994dd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/init-no-lsb @@ -0,0 +1,17 @@ +#! /bin/sh +# No LSB section, but otherwise okay. (Well, the messages are bad, but we +# don't check that yet.) + +case "$1" in + start) + echo "Blah starting" + ;; + stop) + echo "Blah stopping" + ;; + restart|force-reload) + echo "Blah restarting" + ;; +esac + +: diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/init-skeleton b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/init-skeleton new file mode 100644 index 00000000..c868508f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/init-skeleton @@ -0,0 +1,150 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: skeleton +# Required-Start: $local_fs $remote_fs +# Required-Stop: $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: S 0 1 6 +# Short-Description: Example Lintian initscript +# Description: This file should be used to construct scripts to be +# placed in /etc/init.d. +### END INIT INFO + +# Do NOT "set -e" + +# PATH should only include /usr/* if it runs after the mountnfs.sh script +PATH=/usr/sbin:/usr/bin:/sbin:/bin +DESC="Description of the service" +NAME=daemonexecutablename +DAEMON=/usr/sbin/$NAME +DAEMON_ARGS="--options args" +PIDFILE=/var/run/$NAME.pid +SCRIPTNAME=/etc/init.d/$NAME + +# Exit if the package is not installed +[ -x "$DAEMON" ] || exit 0 + +# Read configuration variable file if it is present +[ -r /etc/default/$NAME ] && . /etc/default/$NAME + +# Load the VERBOSE setting and other rcS variables +[ -f /etc/default/rcS ] && . /etc/default/rcS + +# Define LSB log_* functions. +# Depend on lsb-base (>= 3.0-6) to ensure that this file is present. +. /lib/lsb/init-functions + +# +# Function that starts the daemon/service +# +do_start() +{ + # Return + # 0 if daemon has been started + # 1 if daemon was already running + # 2 if daemon could not be started + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ + || return 1 + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ + $DAEMON_ARGS \ + || return 2 + # Add code here, if necessary, that waits for the process to be ready + # to handle requests from services started subsequently which depend + # on this one. As a last resort, sleep for some time. +} + +# +# Function that stops the daemon/service +# +do_stop() +{ + # Return + # 0 if daemon has been stopped + # 1 if daemon was already stopped + # 2 if daemon could not be stopped + # other if a failure occurred + start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME + RETVAL="$?" + [ "$RETVAL" = 2 ] && return 2 + # Wait for children to finish too if this is a daemon that forks + # and if the daemon is only ever run from this initscript. + # If the above conditions are not satisfied then add some other code + # that waits for the process to drop all resources that could be + # needed by services started subsequently. A last resort is to + # sleep for some time. + start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON + [ "$?" = 2 ] && return 2 + # Many daemons don't delete their pidfiles when they exit. + rm -f $PIDFILE + return "$RETVAL" +} + +# +# Function that sends a SIGHUP to the daemon/service +# +do_reload() { + # + # If the daemon can reload its configuration without + # restarting (for example, when it is sent a SIGHUP), + # then implement that here. + # + start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME + return 0 +} + +case "$1" in + start) + [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" + do_start + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + stop) + [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" + do_stop + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + #reload|force-reload) + # + # If do_reload() is not implemented then leave this commented out + # and leave 'force-reload' as an alias for 'restart'. + # + #log_daemon_msg "Reloading $DESC" "$NAME" + #do_reload + #log_end_msg $? + #;; + restart|force-reload) + # + # If the "reload" option is implemented then remove the + # 'force-reload' alias + # + log_daemon_msg "Restarting $DESC" "$NAME" + do_stop + case "$?" in + 0|1) + do_start + case "$?" in + 0) log_end_msg 0 ;; + 1) log_end_msg 1 ;; # Old process is still running + *) log_end_msg 1 ;; # Failed to start + esac + ;; + *) + # Failed to stop + log_end_msg 1 + ;; + esac + ;; + *) + #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 + exit 3 + ;; +esac + +: diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/jruby-broken b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/jruby-broken new file mode 100644 index 00000000..56f574df --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/jruby-broken @@ -0,0 +1,2 @@ +#!/usr/bin/jruby +# There's no non-versioned jruby, so this should be an error. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/lefty-foo b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/lefty-foo new file mode 100644 index 00000000..52c003ed --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/lefty-foo @@ -0,0 +1,2 @@ +#!/usr/local/bin/lefty + diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/make-foo b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/make-foo new file mode 100644 index 00000000..6b787b50 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/make-foo @@ -0,0 +1,3 @@ +#!/usr/bin/make + + diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/perl-bizarre-1 b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/perl-bizarre-1 new file mode 100644 index 00000000..fc632c85 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/perl-bizarre-1 @@ -0,0 +1,11 @@ +#! /bin/sh +eval '(exit $?0)' && eval 'PERL_BADLANG=x;export PERL_BADLANG;: \ +;exec perl -x -S -- "$0" ${1+"$@"};#'if 0; +eval 'setenv PERL_BADLANG x;exec perl -x -S -- "$0" $argv:q;#'.q+ +#!perl -w +package Htex::a2ping; $0=~/(.*)/s;unshift@INC,'.';do($1);die$@if$@;__END__+if !1; +# This Perl script was generated by JustLib2 at Wed Apr 23 09:14:13 2003. +# Don't touch/remove any lines above; http://www.inf.bme.hu/~pts/justlib + +# The above was actually seen in the wild and stresses the +# script_is_evil_and_wrong test. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/perl-bizarre-2 b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/perl-bizarre-2 new file mode 100644 index 00000000..afd9cfe5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/perl-bizarre-2 @@ -0,0 +1,7 @@ +#!/bin/sh +eval 'exec /usr/bin/perl -wS $0 ${1+"$@"}' + if $running_under_some_shell; + +# I'm someone following perlrun except without using the Perl #! line. +# Now something to choke bash. +while (<>) { if (/%#/) { print } } diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/perl-bizarre-3 b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/perl-bizarre-3 new file mode 100644 index 00000000..44baf75e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/perl-bizarre-3 @@ -0,0 +1,6 @@ +eval '(exit $?0)' && eval 'exec perl -wS $0 ${1+"$@"}' +& eval 'exec /usr/bin/perl -wS $0 $argv:q' + if $running_under_some_shell; + +# More utterly bizarreness from perlrun. This one even doesn't work if +# there's a valid #! line on the first line. I don't understand why.... diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/perlfoo b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/perlfoo new file mode 100644 index 00000000..5b27ed0b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/perlfoo @@ -0,0 +1,3 @@ +#! /usr/bin/perl + +print "Hello, World!"; diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/phpenvfoo b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/phpenvfoo new file mode 100644 index 00000000..cbbfb2eb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/phpenvfoo @@ -0,0 +1,7 @@ +#!/usr/bin/env php + + +Dumb PHP script + + + diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/phpfoo b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/phpfoo new file mode 100644 index 00000000..e0595e65 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/phpfoo @@ -0,0 +1,7 @@ +#!/usr/bin/php + + +Dumb PHP script + + + diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/py3.Xfoo b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/py3.Xfoo new file mode 100755 index 00000000..7f105e6d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/py3.Xfoo @@ -0,0 +1,4 @@ +#! /usr/bin/env python3.7 + +if __name__ == '__main__': + print 'Hi there' diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/py3foo b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/py3foo new file mode 100755 index 00000000..02b0444b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/py3foo @@ -0,0 +1,4 @@ +#! /usr/bin/env python3 + +if __name__ == '__main__': + print 'Hi there' diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/rubyfoo b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/rubyfoo new file mode 100644 index 00000000..80246058 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/rubyfoo @@ -0,0 +1,4 @@ +#!/bin/ruby1.8 + +# Ok, that example is really pathetic, but until we have +# some better code in checks/scripts, it will do diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/sh-broken b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/sh-broken new file mode 100644 index 00000000..7b790744 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/sh-broken @@ -0,0 +1,2 @@ +#!/bin/sh +if fi diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/suidperlfoo b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/suidperlfoo new file mode 100644 index 00000000..bcbc471d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/suidperlfoo @@ -0,0 +1,3 @@ +#! /usr/bin/suidperl + +print "Hello, World!"; diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/tkfoo b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/tkfoo new file mode 100755 index 00000000..533595a5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/tkfoo @@ -0,0 +1,31 @@ +#!/bin/sh +# +# Insane amount of empty lines and comments + +# +# +# +# + +# +# + +# +# +# + +# +# + +# +# This line makes the next one a comment in Tcl \ +exec wish "$0" -- ${1+"$@"} + +# lintian should not check the following for syntax +# if it detects the line above correctly +# Code snippet taken from eTkTab + +if { [array names prefs keybindings] != "" } { + # Read in the file + array set unparsed_bindings [ read_settings_file $prefs(keybindings)] +} diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/wishfoo b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/wishfoo new file mode 100644 index 00000000..035c9ad1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/wishfoo @@ -0,0 +1,4 @@ +#!/usr/bin/wish +# +# This is not actually a wish script, here to force a test of wish +# dependencies. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/xsession-test b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/xsession-test new file mode 100644 index 00000000..ca49d729 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/legacy-scripts/xsession-test @@ -0,0 +1,3 @@ +#!/bin/sh + +echo "Foo." diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/ORIGIN new file mode 100644 index 00000000..74c9fc18 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/debian/changelog new file mode 100644 index 00000000..675d52ca --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/debian/changelog @@ -0,0 +1,17 @@ +scripts-maintainer-general (1.0) precise; urgency=low + + * Lintian Test Suite. + * Test: scripts-maintainer-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +scripts-maintainer-general (0.0.1) precise; urgency=low + + * Lintian Test Suite. + * Test: scripts-maintainer-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/debian/control new file mode 100644 index 00000000..9e109b22 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/debian/control @@ -0,0 +1,17 @@ +Source: scripts-maintainer-general +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: scripts-maintainer-general +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check general problems in maintainer scripts + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/debian/maintscript b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/debian/maintscript new file mode 100644 index 00000000..c3dcfac4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/debian/maintscript @@ -0,0 +1 @@ +mv_conffile /etc/foo/old.conf /etc/foo/new.conf 0~ diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/debian/postinst new file mode 100755 index 00000000..492f84ac --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/debian/postinst @@ -0,0 +1,255 @@ +#!/bin/sh + +# This file contains a pile of random junk in maintainer scripts that we +# should be checking for in checks/scripts. Don't put bashisms in this file, +# though; those should go into scripts-bashisms. + +set -e + +print "Hit enter to continue" +read foo + +echo Please use update-rc.d or invoke-rc.d to set up blah blah. + +chown root.root /usr/share/doc/maintainer-scripts/changelog +chown root:root /usr/share/doc/maintainer-scripts/changelog + +# valid +FOO=/tmp +FOO=/var/tmp +: ${FOO:=/tmp} +FOO=`mktemp /tmp/scripts.XXXXXX` +rm "$FOO" +FOO=`tempfile -n/tmp/scripts.tmp` +mkdir /var/tmp/scripts +# invalid +echo foo >>/tmp/scripts.tmp +rm /tmp/scripts.tmp +rmdir /var/tmp/scripts + +# invalid, maintainer-script-hides-init-failure +invoke-rc.d foo start || exit 0 + +# The right way to invoke an rc script +if which invoke-rc.d >/dev/null 2>&1; then + invoke-rc.d package start +else + /etc/init.d/package start +fi + +# Example ucf invocation. +ucf /usr/share/foo/configuration /etc/foo.conf + +# Calling gconftool directly. +gconftool-2 --makefile-install-rule foo.schema + +# Calling gconf-schemas with no dependency. +gconf-schemas --register foo.schema + +# Calling update-xmlcatalog with no dependency. +update-xmlcatalog --add --type system --id "/usr/share/sgml/dtd/foo" \ + --package maintainer-scripts --root + +# Maintainer scripts shouldn't touch /var/lib/dpkg/status. This is the old +# recipe from the dpkg wiki that should be replaced with dpkg-query. +sed -n -e \"/^Conffiles:/,/^[^ ]/{\\\\' /etc/conffile'{s/.* //;p}}\" \ + /var/lib/dpkg/status + +# Don't modify these files. +echo 'broken 6714/tcp' >> /etc/services +cp /nonexistent /etc/protocols +mv /usr/share/doc/rpc /etc/rpc + +# But this is okay. +cp /etc/protocols /etc/protocols.new + +# This is also wrong. +echo 'broken' > /etc/inetd.conf +cp /etc/inetd.conf.new /etc/inetd.conf + +# But this is fine. +cp /etc/inetd.conf /srv/chroot/etc/inetd.conf + +# Deprecated and not allowed except the second one. +install-sgmlcatalog --install package +install-sgmlcatalog --remove package + +# Calling start-stop-daemon directly in an init script. +start-stop-daemon --start --quiet --name foo --startas /usr/bin/foo + +# But stopping it is fine -- we may be working around something else. +start-stop-daemon --stop --quiet --name foo --startas /usr/bin/foo + +# Deprecated chown use with flags. +chown -R root.root /usr/share/doc/maintainer-scripts + +# The first should not trigger an error about a command with a path, but the +# second should. +case $mainscript in + /usr/bin/foo) foobarbaz;; +esac +/usr/bin/baz; echo bar + +# fc-cache shouldn't be called directly, but make sure we don't see it in a +# heredoc. +fc-cache +cat <> /etc/ld.so.conf +( cat /etc/ld.so.conf ; echo '/usr/local/lib' ) > /etc/ld.so.conf.new +mv /etc/ld.so.conf.new /etc/ld.so.conf + +# Further tests for commands with paths in maintainer scripts. The following +# should not trigger a tag (Bug#536397). +chmod `dpkg-statoverride --list /usr/sbin/apache2 | cut -f 3` /usr/sbin/apache2 + +# These, however, should. +true `basename "$0"` `/usr/bin/foo bar` +true `/usr/bin/foo "$0"` + +# This line should not trigger a warning about no dependency on ucf because of +# the || true. (Bug#541372) +ucf -p /etc/sensors3.conf || true + +if false ; then + mknod some thing +fi + +# Calling update alternative --set see #643602 +update-alternatives --set editor /usr/bin/nano + +# false positive +start-stop-daemon--stop --quiet --name foo --startas /usr/bin/foo + +# false positive +start-stop-daemon --quiet --stop --name foo --startas /usr/bin/foo + +# false negative +start-stop-daemon --quiet --start --name foo --startas /usr/bin/foo + +# remove device file +rm /dev/null + +# false positive +rm /dev/shm/test +rm /dev/.hiddenfile + +# adduser system +adduser --system foo +adduser --system foo2 --home /home/foo2 +adduser --system bar --home /var/lib/bar +adduser --home /var/lib/fnord --system fnord +adduser --home /home/fnord2 --system fnord2 + +# other test case for gconftool +/usr/bin/gconftool-2 --makefile-install-rule foo.schema + +# service +service apache2 start + +# adduser through variable +DEVNULL=/dev/null +adduser --system bar1 --home $DEVNULL +adduser --system bar2 --home ${DEVNULL} + +# this is a false positive due to quoting +adduser --system bar2 --home "${DEVNULL}" +adduser --system --ingroup smmta --home "/var/lib/sendmail" \ + --disabled-password \ + --quiet --gecos 'Mail Transfer Agent' smmta; + +# false positive +echo "You can use update-alternatives --config runsystem to select" +echo "the runsystem to use." + +# false negative +DIVERSIONS=`env LC_ALL=C /usr/sbin/dpkg-divert --list | grep -E 'by amule(-utils)?$'` || true +DIVERSIONS=`env LC_ALL="C" /usr/sbin/dpkg-divert --list | grep -E 'by amule(-utils)?$'` || true +DIVERSIONS=`env LC_ALL='C' /usr/sbin/dpkg-divert --list | grep -E 'by amule(-utils)?$'` || true + +if [ ! -x /usr/sbin/dpkg-state-override ] || \ + ! dpkg-state-override > /dev/null +then + true; +fi + +# bad +dpkg-maintscript-helper symlink_to_dir \ + /usr/share/autoconf-archive/html/ \ + ../../autoconf-archive/html \ + 20111221-2~ -- "$@" + +# good +dpkg-maintscript-helper symlink_to_dir \ + /usr/share/autoconf-archive/html \ + ../../autoconf-archive/html \ + 20111221-2~ -- "$@" + +# true positive +adduser --system --quiet --ingroup ntp --no-create-home ntp +adduser festival --quiet --system --ingroup audio --no-create-home + +# detect usage that could be replaced by dpkg-maintscript-helper +if [ -d /usr/share/doc/tworld ]; then + if rmdir /usr/share/doc/tworld 2>/dev/null; then + ln -s tworld-data /usr/share/doc/tworld + fi +fi + +chown root:root /good +chmod 777 /good +chown -R root:root /bad +chown root:root -R /bad +chown root:root --recursive /bad +chown --recursive root:root /bad +chmod -R 777 /bad +chmod 777 -R /bad +chmod 777 --recursive /bad +chmod --recursive 777 /bad +find /bad -maxdepth 2 -type d -exec chown root:root {} \; # (#895370) +find /bad -maxdepth 2 -type d -exec chmod 777 # (#895370) + +echo /var/lib/dpkg/info/other-package.conffiles +echo /var/lib/dpkg/info/other-package.md5sums +echo /var/lib/dpkg/info/other-package.shlibs +echo /var/lib/dpkg/info/other-package.postinst +echo /var/lib/dpkg/info/other-package.preinst +echo /var/lib/dpkg/info/other-package.list +echo /var/lib/dpkg/triggers/other-package + +getent passwd good || true +getent group good || true +getent passwd good || true # grep /etc/passwd false-positive +getent group good || true # grep /etc/group false-positive +grep bad /etc/passwd || true +grep bad /etc/group || true +grep -E bad /etc/passwd || true +grep -E bad /etc/passwd || true +grep -F bad /etc/group || true +grep -F bad /etc/group || true +# grep /etc/passwd false-positive +# grep /etc/group false-positive + +echo $PIUPARTS_TEST # bad +echo ${PIUPARTS_OBJECTS} +echo ${PIUPARTS_PHASE} +echo ${PIUPARTS_DISTRIBUTION} +echo ${PIUPARTS_DISTRIBUTION_NEXT} +echo ${PIUPARTS_DISTRIBUTION_PREV} +echo $PIUPARTS_IS_AWESOME # good + +#DEBHELPER# + +# Automatically added by dh_dummy/12 +true `/usr/bin/false-positive "$0"` +# End automatically added section diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/debian/postrm b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/debian/postrm new file mode 100644 index 00000000..21ce89ef --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/debian/postrm @@ -0,0 +1,9 @@ +#!/bin/sh +# we do not set -e + +echo "ok" > /dev/null + +# not allowed +update-alternatives --remove foo + +#DEBHELPER# \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/debian/prerm b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/debian/prerm new file mode 100644 index 00000000..fcbd64e5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/debian/prerm @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +# This script should fail a syntax check + +if [ "$1" = configure ] then # oh look - I forgot a ; + echo "Hallo world" +fi + +#DEBHELPER# diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/debian/rules new file mode 100644 index 00000000..6f66b826 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_installdeb: + dh_installdeb + echo "#DEBHELPER#" >> debian/$(shell dh_listpackages)/DEBIAN/postinst diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/eval/hints new file mode 100644 index 00000000..bdf2623d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/debhelper/maintainer-script/token/scripts-maintainer-general/eval/hints @@ -0,0 +1 @@ +scripts-maintainer-general (binary): maintainer-script-has-unexpanded-debhelper-token #DEBHELPER# [postinst:259] diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/Makefile b/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/Makefile new file mode 100644 index 00000000..b4900410 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/Makefile @@ -0,0 +1,9 @@ +LA_FILES:=kio_locate.la _python_module.la trailing-slash.la dependency_libs.la + +%.la: %.txt + cp "$<" "$@" + +all: $(LA_FILES) + +clean: + rm -f $(LA_FILES) diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/ORIGIN new file mode 100644 index 00000000..27fc3648 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/build-systems/libtool/la-file/shared-libs-la-files + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/_python_module.txt b/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/_python_module.txt new file mode 100644 index 00000000..6b425c04 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/_python_module.txt @@ -0,0 +1,12 @@ +dlname='_python_module.so' +library_names='_python_module.so' +old_library='' +dependency_libs='' +current=0 +age=0 +revision=0 +installed=yes +shouldnotlink=no +dlopen='' +dlpreopen='' +libdir='/usr/lib/python2.5/site-packages' diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/debian/changelog new file mode 100644 index 00000000..5f46f4f4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/debian/changelog @@ -0,0 +1,17 @@ +shared-libs-la-files (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-la-files + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +shared-libs-la-files (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-la-files + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/debian/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/debian/control new file mode 100644 index 00000000..4ecb2b9e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/debian/control @@ -0,0 +1,17 @@ +Source: shared-libs-la-files +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: shared-libs-la-files +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test checks related to libtool .la files + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/debian/install b/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/debian/install new file mode 100644 index 00000000..fdf1d81f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/debian/install @@ -0,0 +1,4 @@ +dependency_libs.la usr/lib +kio_locate.la usr/lib/kde3 +trailing-slash.la usr/lib/lintian +_python_module.la usr/share/pyshared diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/debian/links b/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/debian/links new file mode 100644 index 00000000..c34baaf7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/debian/links @@ -0,0 +1 @@ +var/lib/kde3/kio_locate.la var/lib/kde3/foo.la diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/debian/rules b/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/dependency_libs.txt b/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/dependency_libs.txt new file mode 100644 index 00000000..34b08634 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/dependency_libs.txt @@ -0,0 +1,15 @@ +# Generated by ltmain.sh - GNU libtool 1.5.18 - (pwn3d by bksys) +# +# +dlname='dependency_libs.so' +library_names='dependency_libs.so' +old_library='' +dependency_libs='/usr/lib/libdep.la' +current=0 +age=0 +revision=0 +installed=yes +shouldnotlink=no +dlopen='' +dlpreopen='' +libdir='/usr/lib' diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/eval/hints b/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/eval/hints new file mode 100644 index 00000000..cf80cd07 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/eval/hints @@ -0,0 +1,2 @@ +shared-libs-la-files (binary): non-empty-dependency_libs-in-la-file /usr/lib/libdep.la [usr/lib/dependency_libs.la:7] +shared-libs-la-files (binary): incorrect-libdir-in-la-file build/buildd/kio-locate-0.4.5+ds/debian/kio-locate/usr/lib/kde3/ != usr/lib/kde3/ [usr/lib/kde3/kio_locate.la:15] diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/kio_locate.txt b/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/kio_locate.txt new file mode 100644 index 00000000..4391635f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/kio_locate.txt @@ -0,0 +1,15 @@ +# Generated by ltmain.sh - GNU libtool 1.5.18 - (pwn3d by bksys) +# +# +dlname='kio_locate.so' +library_names='kio_locate.so kio_locate.so kio_locate.so' +old_library='' +dependency_libs='' +current=0 +age=0 +revision=0 +installed=yes +shouldnotlink=no +dlopen='' +dlpreopen='' +libdir='/build/buildd/kio-locate-0.4.5+ds/debian/kio-locate/usr/lib/kde3' \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/trailing-slash.txt b/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/trailing-slash.txt new file mode 100644 index 00000000..736610e2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/libtool/la-file/shared-libs-la-files/trailing-slash.txt @@ -0,0 +1,12 @@ +dlname='trailing-slash.so' +library_names='trailing-slash.so' +old_library='' +dependency_libs='' +current=0 +age=0 +revision=0 +installed=yes +shouldnotlink=no +dlopen='' +dlpreopen='' +libdir='/usr/lib/lintian/' diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/ORIGIN new file mode 100644 index 00000000..00e8bd30 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/build-systems/waf/cruft-contains-waf-stripped + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/debian/changelog new file mode 100644 index 00000000..2059b5a2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/debian/changelog @@ -0,0 +1,17 @@ +cruft-contains-waf-stripped (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-contains-waf-stripped + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +cruft-contains-waf-stripped (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-contains-waf-stripped + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/debian/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/debian/control new file mode 100644 index 00000000..07d4814e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/debian/control @@ -0,0 +1,17 @@ +Source: cruft-contains-waf-stripped +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: cruft-contains-waf-stripped +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for sources with waf + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/debian/rules b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/debian/watch b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/eval/hints b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/waf b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/waf new file mode 100644 index 00000000..1f95f10c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf-stripped/waf @@ -0,0 +1,15 @@ +#!/usr/bin/python3 +# encoding: ISO-8859-1 +# + +# We just do a little python... for the show + +import os, sys +if sys.hexversion<0x203000f: raise ImportError("Waf requires python >= 2.3") + # and we are pretending to be a waf script + +# okay, that's enough... + +#==> +# Here one would expect to find a tar.bz2 file... +#<== diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/ORIGIN new file mode 100644 index 00000000..b3d7811c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/build-systems/waf/cruft-contains-waf + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/debian/changelog new file mode 100644 index 00000000..86b69042 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/debian/changelog @@ -0,0 +1,17 @@ +cruft-contains-waf (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-contains-waf + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +cruft-contains-waf (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-contains-waf + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/debian/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/debian/control new file mode 100644 index 00000000..cf850f49 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/debian/control @@ -0,0 +1,17 @@ +Source: cruft-contains-waf +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: cruft-contains-waf +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for sources with waf + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/debian/rules b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/debian/watch b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/eval/hints b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/eval/hints new file mode 100644 index 00000000..4ae22a22 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/eval/hints @@ -0,0 +1 @@ +cruft-contains-waf (source): source-contains-waf-binary [waf] diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/some-source.c b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/some-source.c new file mode 100644 index 00000000..6691108c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/some-source.c @@ -0,0 +1,5 @@ +int fun(int a) { + /* There is a valid use for this... probably */ + return (a * a) >> a; +} + diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/waf b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/waf new file mode 100644 index 00000000..79811d05 Binary files /dev/null and b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/waf differ diff --git a/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/waf.in b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/waf.in new file mode 100644 index 00000000..4fc0412a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/build-systems/waf/cruft-contains-waf/waf.in @@ -0,0 +1,13 @@ +#!/usr/bin/python3 +# encoding: ISO-8859-1 +# + +# We just do a little python... for the show + +import os, sys +if sys.hexversion<0x203000f: raise ImportError("Waf requires python >= 2.3") + # and we are pretending to be a waf script + +# okay, that's enough... below we will include a binary tarball... +# That is as fun as it sounds (which is to say not a lot). + diff --git a/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-file-size-checksum-mismatch/Makefile b/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-file-size-checksum-mismatch/Makefile new file mode 100644 index 00000000..74b0d370 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-file-size-checksum-mismatch/Makefile @@ -0,0 +1,17 @@ +ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) + +product = test.changes + +references = $(ROOT_DIR)/referenced-files + +.DEFAULT_GOAL := $(product) + +$(product): $(ROOT_DIR)/$(product) + if [ -d $(references) ] ; then \ + cp -rp $(references)/. . ; \ + fi + cp $(ROOT_DIR)/$(product) $(product) + +.PHONY: clean +clean: + rm -f $(product) diff --git a/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-file-size-checksum-mismatch/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-file-size-checksum-mismatch/ORIGIN new file mode 100644 index 00000000..d5a7019d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-file-size-checksum-mismatch/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/changes-file/changes-file-size-checksum-mismatch +Skeleton: changes + +Filled test-package sources from t/templates + t/skeletons and the +build-spec overlay. Does not build .deb / .dsc / .changes; tests do that. +eval/hints is transcribed verbatim. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-file-size-checksum-mismatch/eval/desc b/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-file-size-checksum-mismatch/eval/desc new file mode 100644 index 00000000..0a4c5d0d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-file-size-checksum-mismatch/eval/desc @@ -0,0 +1,2 @@ +Testname: changes-file-size-checksum-mismatch +Check: changes-file diff --git a/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-file-size-checksum-mismatch/eval/hints b/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-file-size-checksum-mismatch/eval/hints new file mode 100644 index 00000000..f614fbe2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-file-size-checksum-mismatch/eval/hints @@ -0,0 +1,4 @@ +changes-file-size-checksum-mismatch (changes): file-size-mismatch-in-changes-file __some-file__ 0 != 12 +changes-file-size-checksum-mismatch (changes): checksum-mismatch-in-changes-file Checksum-Sha256 __some-file__ +changes-file-size-checksum-mismatch (changes): checksum-mismatch-in-changes-file Checksum-Sha1 __some-file__ +changes-file-size-checksum-mismatch (changes): checksum-mismatch-in-changes-file Checksum-Md5 __some-file__ diff --git a/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-file-size-checksum-mismatch/referenced-files/__some-file__ b/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-file-size-checksum-mismatch/referenced-files/__some-file__ new file mode 100644 index 00000000..336f590a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-file-size-checksum-mismatch/referenced-files/__some-file__ @@ -0,0 +1 @@ +Hallo World diff --git a/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-file-size-checksum-mismatch/test.changes b/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-file-size-checksum-mismatch/test.changes new file mode 100644 index 00000000..9f4b48f4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-file-size-checksum-mismatch/test.changes @@ -0,0 +1,18 @@ +Format: 1.8 +Date: Tue, 31 Mar 2026 17:46:22 +0200 +Source: changes-file-size-checksum-mismatch +Binary: changes-file-size-checksum-mismatch +Architecture: source all +Version: 1.0 +Distribution: unstable +Urgency: low +Maintainer: Debian Lintian Maintainers +Changed-By: Debian Lintian Maintainers +Files: + d41d8cd98f00b204e9800998ecf8427e 0 devel optional __some-file__ +Checksums-Sha1: + da39a3ee5e6b4b0d3255bfef95601890afd80709 0 __some-file__ +Checksums-Sha256: + e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 0 __some-file__ +Description: + changes-file-size-checksum-mismatch - Test for file size and checksums check diff --git a/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/ORIGIN new file mode 100644 index 00000000..5481fce3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/debian/changelog new file mode 100644 index 00000000..c237d34d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/debian/changelog @@ -0,0 +1,17 @@ +changes-files-package-builds-dbg-and-dbgsym-variants (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: changes-files-package-builds-dbg-and-dbgsym-variants + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changes-files-package-builds-dbg-and-dbgsym-variants (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: changes-files-package-builds-dbg-and-dbgsym-variants + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/debian/control b/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/debian/control new file mode 100644 index 00000000..c04c2e63 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/debian/control @@ -0,0 +1,36 @@ +Source: changes-files-package-builds-dbg-and-dbgsym-variants +Section: devel +Priority: optional +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no + +Package: changes-files-package-builds-dbg-and-dbgsym-variants +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Package builds -dbg and -dbgsym + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: changes-files-package-builds-dbg-and-dbgsym-variants-dbg +Section: debug +Architecture: all +Depends: changes-files-package-builds-dbg-and-dbgsym-variants, ${shlibs:Depends}, ${misc:Depends} +Description: Manual dbg package + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It + may be an empty package. + +Package: changes-files-package-builds-dbg-and-dbgsym-variants-dbgsym +Section: debug +Architecture: all +Depends: changes-files-package-builds-dbg-and-dbgsym-variants, ${shlibs:Depends}, ${misc:Depends} +Description: Manual dbgsym package + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + even be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/debian/rules b/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/eval/hints b/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/eval/hints new file mode 100644 index 00000000..3a2ae574 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/changes-file/changes-files-package-builds-dbg-and-dbgsym-variants/eval/hints @@ -0,0 +1 @@ +changes-files-package-builds-dbg-and-dbgsym-variants (changes): package-builds-dbg-and-dbgsym-variants changes-files-package-builds-dbg-and-dbgsym-variants-dbg changes-files-package-builds-dbg-and-dbgsym-variants-dbgsym diff --git a/packages/debmagic/tests/lintian-parity/checks/changes-file/checksum-count-mismatch/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/changes-file/checksum-count-mismatch/ORIGIN new file mode 100644 index 00000000..3d208370 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/changes-file/checksum-count-mismatch/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/changes-file/checksum-count-mismatch + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/changes-file/checksum-count-mismatch/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/changes-file/checksum-count-mismatch/debian/changelog new file mode 100644 index 00000000..e7eeec64 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/changes-file/checksum-count-mismatch/debian/changelog @@ -0,0 +1,17 @@ +checksum-count-mismatch (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: checksum-count-mismatch + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +checksum-count-mismatch (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: checksum-count-mismatch + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/changes-file/checksum-count-mismatch/debian/control b/packages/debmagic/tests/lintian-parity/checks/changes-file/checksum-count-mismatch/debian/control new file mode 100644 index 00000000..d4a8962b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/changes-file/checksum-count-mismatch/debian/control @@ -0,0 +1,17 @@ +Source: checksum-count-mismatch +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: checksum-count-mismatch +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for changes file with missing checksum entry + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/changes-file/checksum-count-mismatch/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/changes-file/checksum-count-mismatch/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/changes-file/checksum-count-mismatch/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/changes-file/checksum-count-mismatch/debian/rules b/packages/debmagic/tests/lintian-parity/checks/changes-file/checksum-count-mismatch/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/changes-file/checksum-count-mismatch/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/changes-file/checksum-count-mismatch/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/changes-file/checksum-count-mismatch/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/changes-file/checksum-count-mismatch/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/changes-file/checksum-count-mismatch/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/changes-file/checksum-count-mismatch/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/changes-file/checksum-count-mismatch/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/changes-file/checksum-count-mismatch/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/changes-file/checksum-count-mismatch/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/changes-file/checksum-count-mismatch/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/changes-file/checksum-count-mismatch/eval/hints b/packages/debmagic/tests/lintian-parity/checks/changes-file/checksum-count-mismatch/eval/hints new file mode 100644 index 00000000..b493656c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/changes-file/checksum-count-mismatch/eval/hints @@ -0,0 +1 @@ +checksum-count-mismatch (changes): checksum-count-mismatch-in-changes-file 3 Checksum-Sha256 checksums != 4 files diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/ORIGIN new file mode 100644 index 00000000..29e85692 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/conffiles/conffile-removed-but-present + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/debian/changelog new file mode 100644 index 00000000..8db0eaaa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/debian/changelog @@ -0,0 +1,17 @@ +conffile-removed-but-present (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: conffile-removed-but-present + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +conffile-removed-but-present (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: conffile-removed-but-present + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/debian/conffiles b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/debian/conffiles new file mode 100644 index 00000000..bcbd3691 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/debian/conffiles @@ -0,0 +1 @@ +remove-on-upgrade /etc/some.config diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/debian/control b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/debian/control new file mode 100644 index 00000000..3a2a045e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/debian/control @@ -0,0 +1,17 @@ +Source: conffile-removed-but-present +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: conffile-removed-but-present +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Instruction 'remove-on-upgrade' in DEBIAN/conffiles but file shipped + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/debian/install b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/debian/install new file mode 100644 index 00000000..ee19d5d1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/debian/install @@ -0,0 +1 @@ +etc diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/debian/rules b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/debian/rules new file mode 100755 index 00000000..c8e5e695 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f +pkg=conffile-removed-but-present + +%: + dh $@ + +override_dh_builddeb: + mkdir -p debian/$(pkg)/DEBIAN + cp debian/conffiles debian/$(pkg)/DEBIAN + dpkg-deb --nocheck --build debian/$(pkg) ../$(pkg)_1.0-1_all.deb diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/debian/watch b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/etc/some.config b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/etc/some.config new file mode 100644 index 00000000..75e946e0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/etc/some.config @@ -0,0 +1 @@ +A CONFIGURATION. diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/eval/hints b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/eval/hints new file mode 100644 index 00000000..5b746d60 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffile-removed-but-present/eval/hints @@ -0,0 +1 @@ +conffile-removed-but-present (binary): unexpected-conffile etc/some.config [conffiles:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-etc-not-marked/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-etc-not-marked/ORIGIN new file mode 100644 index 00000000..d68ea501 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-etc-not-marked/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/conffiles/conffiles-etc-not-marked + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-etc-not-marked/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-etc-not-marked/debian/changelog new file mode 100644 index 00000000..ad878c93 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-etc-not-marked/debian/changelog @@ -0,0 +1,17 @@ +conffiles-etc-not-marked (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: conffiles-etc-not-marked + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +conffiles-etc-not-marked (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: conffiles-etc-not-marked + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-etc-not-marked/debian/control b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-etc-not-marked/debian/control new file mode 100644 index 00000000..0763f355 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-etc-not-marked/debian/control @@ -0,0 +1,17 @@ +Source: conffiles-etc-not-marked +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: conffiles-etc-not-marked +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test checking etc files not being marked as conffiles + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-etc-not-marked/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-etc-not-marked/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-etc-not-marked/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-etc-not-marked/debian/install b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-etc-not-marked/debian/install new file mode 100644 index 00000000..ec665e8c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-etc-not-marked/debian/install @@ -0,0 +1 @@ +something.conf etc/ diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-etc-not-marked/debian/rules b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-etc-not-marked/debian/rules new file mode 100644 index 00000000..5afe3f7a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-etc-not-marked/debian/rules @@ -0,0 +1,11 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_builddeb: + DIR=$$(find -name 'DEBIAN'); \ + rm "$$DIR/conffiles" && \ + md5sum something.conf | sed 's/ s/ etc\/s/' >> "$$DIR/md5sums" + dh_builddeb + diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-etc-not-marked/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-etc-not-marked/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-etc-not-marked/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-etc-not-marked/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-etc-not-marked/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-etc-not-marked/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-etc-not-marked/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-etc-not-marked/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-etc-not-marked/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-etc-not-marked/eval/hints b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-etc-not-marked/eval/hints new file mode 100644 index 00000000..6415828f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-etc-not-marked/eval/hints @@ -0,0 +1 @@ +conffiles-etc-not-marked (binary): file-in-etc-not-marked-as-conffile [etc/something.conf] diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-etc-not-marked/something.conf b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-etc-not-marked/something.conf new file mode 100644 index 00000000..432ea479 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-etc-not-marked/something.conf @@ -0,0 +1 @@ +hello=world diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/ORIGIN new file mode 100644 index 00000000..68d97ab5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/conffiles/conffiles-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/changelog new file mode 100644 index 00000000..d0b32cef --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/changelog @@ -0,0 +1,17 @@ +conffiles-general (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: conffiles-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +conffiles-general (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: conffiles-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/conffiles b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/conffiles new file mode 100644 index 00000000..51222d69 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/conffiles @@ -0,0 +1,9 @@ +/etc/foo +/etc/rc2.d/file +/etc/symlink +/usr/share/foo +/var/cache/foo +etc/foo +/etc/thin-air +/usr/gone +/var/bye diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/control new file mode 100644 index 00000000..f79c4dca --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/control @@ -0,0 +1,17 @@ +Source: conffiles-general +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: conffiles-general +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for conffile-related checks + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/install b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/install new file mode 100644 index 00000000..46dd330f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/install @@ -0,0 +1,3 @@ +usr +var +etc diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/links b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/links new file mode 100644 index 00000000..01a5497f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/links @@ -0,0 +1 @@ +etc/foo etc/symlink diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/rules new file mode 100755 index 00000000..02d8017f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f +pkg=conffiles-general + +%: + dh $@ + +override_dh_builddeb: + mkdir -p debian/$(pkg)/etc/ + echo "Hallo World" > debian/$(pkg)/etc/foo + mkdir -p debian/$(pkg)/DEBIAN + cp debian/conffiles debian/$(pkg)/DEBIAN + dpkg-deb --nocheck --build debian/$(pkg) ../$(pkg)_1.0-1_all.deb diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/watch b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/etc/rc2.d/file b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/etc/rc2.d/file new file mode 100644 index 00000000..87eb7807 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/etc/rc2.d/file @@ -0,0 +1 @@ +DUMMY INIT. diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/eval/hints new file mode 100644 index 00000000..44959bb6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/eval/hints @@ -0,0 +1,13 @@ +conffiles-general (binary): relative-conffile etc/foo [conffiles:6] +conffiles-general (binary): non-etc-file-marked-as-conffile var/cache/foo [conffiles:5] +conffiles-general (binary): non-etc-file-marked-as-conffile var/bye [conffiles:9] +conffiles-general (binary): non-etc-file-marked-as-conffile usr/share/foo [conffiles:4] +conffiles-general (binary): non-etc-file-marked-as-conffile usr/gone [conffiles:8] +conffiles-general (binary): missing-conffile var/bye [conffiles:9] +conffiles-general (binary): missing-conffile usr/gone [conffiles:8] +conffiles-general (binary): missing-conffile etc/thin-air [conffiles:7] +conffiles-general (binary): file-in-usr-marked-as-conffile usr/share/foo [conffiles:4] +conffiles-general (binary): file-in-usr-marked-as-conffile usr/gone [conffiles:8] +conffiles-general (binary): file-in-etc-rc.d-marked-as-conffile etc/rc2.d/file [conffiles:2] +conffiles-general (binary): duplicate-conffile etc/foo (lines 1 6) [conffiles] +conffiles-general (binary): conffile-has-bad-file-type [etc/symlink] diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/usr/share/foo b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/usr/share/foo new file mode 100644 index 00000000..563ac092 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/usr/share/foo @@ -0,0 +1 @@ +MEANINGFUL CONTENTS. diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/var/cache/foo b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/var/cache/foo new file mode 100644 index 00000000..59a262aa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/conffiles-general/var/cache/foo @@ -0,0 +1 @@ +ALSO MEANINGFUL. diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/ORIGIN new file mode 100644 index 00000000..e749c867 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/conffiles/instruction-chicken-soup + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/debian/changelog new file mode 100644 index 00000000..b5042096 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/debian/changelog @@ -0,0 +1,17 @@ +instruction-chicken-soup (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: instruction-chicken-soup + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +instruction-chicken-soup (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: instruction-chicken-soup + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/debian/conffiles b/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/debian/conffiles new file mode 100644 index 00000000..6bac7c19 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/debian/conffiles @@ -0,0 +1 @@ +chicken-soup /etc/some.config diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/debian/control b/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/debian/control new file mode 100644 index 00000000..7864e08e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/debian/control @@ -0,0 +1,17 @@ +Source: instruction-chicken-soup +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: instruction-chicken-soup +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Instruction 'chicken-soup' in DEBIAN/conffiles + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/debian/install b/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/debian/install new file mode 100644 index 00000000..ee19d5d1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/debian/install @@ -0,0 +1 @@ +etc diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/debian/rules b/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/debian/rules new file mode 100755 index 00000000..9de9df46 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f +pkg=instruction-chicken-soup + +%: + dh $@ + +override_dh_builddeb: + mkdir -p debian/$(pkg)/DEBIAN + cp debian/conffiles debian/$(pkg)/DEBIAN + dpkg-deb --nocheck --build debian/$(pkg) ../$(pkg)_1.0-1_all.deb diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/debian/watch b/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/etc/some.config b/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/etc/some.config new file mode 100644 index 00000000..75e946e0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/etc/some.config @@ -0,0 +1 @@ +A CONFIGURATION. diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/eval/hints b/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/eval/hints new file mode 100644 index 00000000..07fcbcbd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/instruction-chicken-soup/eval/hints @@ -0,0 +1 @@ +instruction-chicken-soup (binary): unknown-conffile-instruction chicken-soup [conffiles:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/ORIGIN new file mode 100644 index 00000000..8eebb7af --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/conffiles/legacy-etcfiles + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/debian/README.Debian b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/debian/README.Debian new file mode 100644 index 00000000..e289bfb2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/debian/README.Debian @@ -0,0 +1,5 @@ +this is a package to test lintian's handling of files in /etc. +Also, there's a random mention of /usr/doc here to prompt a warning. +But /usr/documentation doesn't. + + -- Russ Allbery , Mon, 18 Feb 2008 16:40:55 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/debian/changelog new file mode 100644 index 00000000..4f047b64 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/debian/changelog @@ -0,0 +1,7 @@ +etcfiles (1) unstable; urgency=low + + * Acknowledge NMU (Closes: #123456). + * initial setup + + -- Lintian Maintainers Fri, 21 Sep 2001 11:56:02 -0700 + diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/debian/conffiles b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/debian/conffiles new file mode 100644 index 00000000..76032b78 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/debian/conffiles @@ -0,0 +1,5 @@ +/etc/proper +/var/lib/foo +/etc/cron.daily/cronfile-normal +/etc/cron.daily/.cronfile-begins-with-fullstop +/etc/cron.daily/cronfile-contains.fullstop diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/debian/conffiles.only b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/debian/conffiles.only new file mode 100644 index 00000000..a4b38954 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/debian/conffiles.only @@ -0,0 +1,2 @@ +/etc/etcfiles/foo +/etc/etcfiles/bar diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/debian/control b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/debian/control new file mode 100644 index 00000000..f3dbda7f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/debian/control @@ -0,0 +1,20 @@ +Source: etcfiles +Section: misc +Priority: optional +Maintainer: Lintian Maintainers +Standards-Version: 3.5.0 + +Package: etcfiles +Architecture: any +Depends: ${shlibs:Depends} +Description: test handling of files in /etc + Regression test for lintian's handling of files in /etc. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: only-etcfiles +Architecture: all +Depends: etcfiles (= ${source:Version}) +Description: test handling of conffile-only package diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/debian/rules b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/debian/rules new file mode 100755 index 00000000..97ff09fc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/debian/rules @@ -0,0 +1,64 @@ +#!/usr/bin/make -f + +tmp=debian/tmp +tmponly=debian/only-etcfiles + +clean: + rm -f debian/files debian/substvars + rm -rf debian/tmp + rm -rf debian/only-etcfiles + +build: +build-arch: +build-indep: +binary-indep: + install -d $(tmp)/etc + install -m 644 proper $(tmp)/etc + install -m 644 improper $(tmp)/etc + mkdir $(tmp)/etc/cron.daily + touch $(tmp)/etc/cron.daily/cronfile-normal + touch $(tmp)/etc/cron.daily/.cronfile-begins-with-fullstop + touch $(tmp)/etc/cron.daily/cronfile-contains.fullstop + ln $(tmp)/etc/improper $(tmp)/etc/improper-link + install -d $(tmp)/usr/share/doc/etcfiles + install -d $(tmp)/var/lib + install -m 644 proper $(tmp)/var/lib/foo + install -m 644 debian/README.Debian $(tmp)/usr/share/doc/etcfiles + install -m 644 debian/changelog $(tmp)/usr/share/doc/etcfiles + #gzip -9 $(tmp)/usr/share/doc/etcfiles/changelog + install -d $(tmp)/DEBIAN + install -m 644 debian/conffiles $(tmp)/DEBIAN + + echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/cronfile-normal' \ + > debian/tmp/DEBIAN/md5sums + echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/.cronfile-begins-with-fullstop' \ + >> debian/tmp/DEBIAN/md5sums + echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/cronfile-contains.fullstop' \ + >> debian/tmp/DEBIAN/md5sums + echo '05c72cacce994208128b7d081116b04a ./etc/proper' \ + >> debian/tmp/DEBIAN/md5sums + echo 'ab371382468880299e5ebd05921764ce etc/improper' \ + >> debian/tmp/DEBIAN/md5sums + echo 'ab371382468880299e5ebd05921764ce usr/bin/foo' \ + >> debian/tmp/DEBIAN/md5sums + echo 'this is a malformed line' \ + >> debian/tmp/DEBIAN/md5sums + echo '56fb27e455dd86d8801f1ecd3a4cee49 usr/share/doc/etcfiles/README.Debian' \ + >> debian/tmp/DEBIAN/md5sums + + install -d $(tmponly)/etc/etcfiles + touch $(tmponly)/etc/etcfiles/foo + touch $(tmponly)/etc/etcfiles/bar + install -d $(tmponly)/usr/share/doc + cd $(tmponly)/usr/share/doc && ln -s etcfiles only-etcfiles + install -d $(tmponly)/DEBIAN + install -m 644 debian/conffiles.only $(tmponly)/DEBIAN/conffiles + + dpkg-gencontrol -isp -petcfiles + dpkg-gencontrol -isp -ponly-etcfiles -P$(tmponly) + dpkg --build $(tmp) .. + dpkg --build $(tmponly) .. + +binary: binary-indep + +.PHONY: binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/eval/hints b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/eval/hints new file mode 100644 index 00000000..b5286d92 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/eval/hints @@ -0,0 +1,3 @@ +etcfiles (binary): non-etc-file-marked-as-conffile var/lib/foo [conffiles:2] +etcfiles (binary): file-in-etc-not-marked-as-conffile [etc/improper] +etcfiles (binary): file-in-etc-not-marked-as-conffile [etc/improper-link] diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/improper b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/improper new file mode 100644 index 00000000..23656f41 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/improper @@ -0,0 +1,2 @@ +[config] + var = value \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/proper b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/proper new file mode 100644 index 00000000..f3dc68bf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-etcfiles/proper @@ -0,0 +1,2 @@ +# i am a config file +foo = var \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/ORIGIN new file mode 100644 index 00000000..e5774248 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/conffiles/legacy-filenames + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/data/ .tif b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/data/ .tif new file mode 100644 index 00000000..07fd9140 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/data/ .tif @@ -0,0 +1,2 @@ +This filename was inspired by the ".tif used by fnlib. The real package +uses space.tif. diff --git "a/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/data/\".tif" "b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/data/\".tif" new file mode 100644 index 00000000..e0057757 --- /dev/null +++ "b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/data/\".tif" @@ -0,0 +1 @@ +This filename is really used, by fnlib. diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/data/Maelstrom Sound b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/data/Maelstrom Sound new file mode 100644 index 00000000..41104109 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/data/Maelstrom Sound @@ -0,0 +1 @@ +This filename occurs in the maelstrom package. diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/debian/changelog new file mode 100644 index 00000000..f501faaa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/debian/changelog @@ -0,0 +1,78 @@ +filenames (1:12-0.1) unstable; urgency=low + + * /me is doing a correct NMU of this package, bumping the epoch too. + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 02:04:39 +0200 + +filenames (11) unstable; urgency=low + + * Add a README.macos. + + -- Marc 'HE' Brockschmidt Mon, 12 Apr 2004 23:35:24 +0200 + +filenames (10) unstable; urgency=low + + * Some new files to check the checks for the use of /usr/*/X11 and + /usr/X11R6/*. + + -- Marc 'HE' Brockschmidt Sun, 11 Apr 2004 17:35:20 +0200 + +filenames (9) unstable; urgency=low + + * Add a two *.ali files, one with the right permission, one with + the more common, but false one. + + -- Marc 'HE' Brockschmidt Sun, 11 Apr 2004 00:18:16 +0200 + +filenames (8) unstable; urgency=low + + * Add a real ancient file + + -- Frank Lichtenheld Thu, 8 Apr 2004 22:22:40 +0200 + +filenames (7) unstable; urgency=low + + * Add a dozen symlinks, some correct, some not + + -- Jeroen van Wolffelaar Fri, 27 Feb 2004 01:28:42 +0100 + +filenames (6) unstable; urgency=low + + * Add perl files to check if + package-installs-nonbinary-perl-in-usr-lib-perl5 is correctly + issued even after attempting to suppress it in some cases + + -- Frank Lichtenheld Fri, 27 Feb 2004 00:49:44 +0100 + +filenames (5) unstable; urgency=low + + * Added check for too long symlink + + -- Sean 'Shaleh' Perry Wed, 3 Jan 2001 13:20:31 -0800 + +filenames (4) unstable; urgency=low + + * Add /usr/lib/menu/menu file to test the bad-menu-file-name tag. + * Add /usr/lib/menu/README to test the new execption for it. + + -- Richard Braakman Thu, 22 Oct 1998 15:42:52 +0200 + +filenames (3) unstable; urgency=low + + * Don't rely on the installer's umask. + + -- Richard Braakman Thu, 20 Aug 1998 12:45:47 +0200 + +filenames (2) unstable; urgency=low + + * Noted more limitations on what filenames lintian handles. + * Added Changes.gz in /usr/doc/filenames and made a symlink from changelog.gz + to Changes.gz. + + -- Richard Braakman Sat, 4 Jul 1998 15:46:11 +0200 + +filenames (1) unstable; urgency=low + + * Initial version + + -- Richard Braakman Sat, 4 Jul 1998 15:25:01 +0200 diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/debian/control b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/debian/control new file mode 100644 index 00000000..1ff9c503 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/debian/control @@ -0,0 +1,42 @@ +Source: filenames +Maintainer: Lintian Maintainer +Standards-Version: 3.1.1 +Rules-Requires-Root: binary-targets + +Package: filenames +Architecture: any +Description: see how lintian reacts to weird filenames + This package contains files with the most evil names I could find, + except for ones that lintian is explicitly not designed to handle. + . + Lintian does not handle filenames containing newlines, or filenames + that contain the strings " link to ", " -> ", or ": ". The last one + is used as a separator by the file command, the others are used as + separators by tar. + . + Lintian also does not handle filenames that contain backslashes, or + other characters that are mangled by tar's -tv output. + +Package: filename-games +Architecture: all +Depends: filenames +Section: games +Description: Test game filename/location checks + This package contains files with slightly less evil names than + filenames. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: more-filename-games +Architecture: all +Depends: filenames, filename-games +Section: games +Priority: optional +Description: More test for game filename/location checks + This package contains no evil names, only evil locations. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/debian/doc-base b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/debian/doc-base new file mode 100644 index 00000000..e5a611ba --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/debian/doc-base @@ -0,0 +1,11 @@ +Document: testing +Title: Working doc-base control file +Author: Russ Allbery +Abstract: This control file ensures that we don't get false positives for + correct doc-base files. + . + There isn't anything wrong with this one. +Section: Education + +Format: Text +Files: /usr/share/doc/filenames/README.macosx diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/debian/rules b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/debian/rules new file mode 100755 index 00000000..fd86970b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/debian/rules @@ -0,0 +1,213 @@ +#!/usr/bin/make -f + +# Copyright (C) 1998 Richard Braakman +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, you can find it on the World Wide +# Web at https://www.gnu.org/copyleft/gpl.html, or write to the Free +# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +# MA 02110-1301, USA. + +VENDORARCH := $(shell perl -MConfig -wE'say substr($$Config{vendorarch},1)') + +clean: + mkdir -p .svn CVS "{arch}" .arch-ids .bzr + touch data/.cvsignore data/svn-commit.tmp data/svk-commitsEr9P.tmp + touch data/.arch-inventory + touch 'data/.#Maelstrom Sound.1.1.1' 'data/Maelstrom Sounce.r121' + touch 'data/Maelstrom Sound.mine' + touch "data/'\\ " + touch filenames.c~ + +build-arch: + +build-indep: + +build: build-arch build-indep + + +binary-arch: + +binary-indep: + install -d debian/tmp/DEBIAN + cp -a data debian/tmp/files + chmod -R go=rX debian/tmp/files + + install -d debian/tmp/usr/lib/filenames + install -m 555 -d debian/tmp/usr/lib/filenames/readonly + touch debian/tmp/usr/lib/filenames/readonly/test + + install -d debian/tmp/usr/lib/menu + install -d debian/tmp/usr/share/menu + touch debian/tmp/usr/lib/menu/README + touch debian/tmp/usr/share/menu/README + touch debian/tmp/usr/lib/menu/menu + touch debian/tmp/usr/share/menu/menu + chmod 644 debian/tmp/usr/lib/menu/* + + install -d debian/tmp/$(VENDORARCH)/foo + mkdir debian/tmp/$(VENDORARCH)/.svn + mkdir debian/tmp/$(VENDORARCH)/CVS + mkdir "debian/tmp/$(VENDORARCH)/{arch}" + mkdir debian/tmp/$(VENDORARCH)/.arch-ids + mkdir debian/tmp/$(VENDORARCH)/.bzr + mkdir debian/tmp/$(VENDORARCH)/.be + mkdir debian/tmp/$(VENDORARCH)/.ditrack + install -d debian/tmp/usr/share/perl5 + echo foo > debian/tmp/$(VENDORARCH)/foo/.gitignore + echo foo > debian/tmp/$(VENDORARCH)/foo/.hgignore + echo foo > debian/tmp/$(VENDORARCH)/foo/.hgtags + echo foo > debian/tmp/$(VENDORARCH)/foo/.hg_archival.txt + + touch debian/tmp/$(VENDORARCH)/foo/.packlist + chmod 644 debian/tmp/$(VENDORARCH)/foo/.packlist + touch debian/tmp/$(VENDORARCH)/foo/bar.pm + TZ=UTC touch -t 197501010101 debian/tmp/$(VENDORARCH)/foo/ancient.pm + chmod 644 debian/tmp/$(VENDORARCH)/foo/bar.pm + + install -d debian/tmp/usr/share/pixmaps + install -d debian/tmp/usr/share/pixmaps/foo + touch debian/tmp/usr/share/pixmaps/license.jpeg + touch debian/tmp/usr/share/pixmaps/licence.jpg + touch debian/tmp/usr/share/pixmaps/copying.xpm + touch debian/tmp/usr/share/pixmaps/foo/COPYING.svg + touch debian/tmp/usr/share/pixmaps/foo/copying.png + touch debian/tmp/usr/share/pixmaps/license.txt + touch debian/tmp/usr/share/pixmaps/license.foo + touch debian/tmp/usr/share/pixmaps/COPYING + + install -d debian/tmp/usr/share/linda/overrides + echo 'foo' > debian/tmp/usr/share/linda/overrides/filenames + + install -d debian/tmp/usr/share/doc/filenames + touch debian/tmp/usr/share/doc/filenames/README.macosx + + echo foo > debian/tmp/usr/share/doc/filenames/bokmål + echo foo > debian/tmp/usr/share/doc/filenames/bokm\\ål + echo foo > debian/tmp/usr/share/doc/filenames/bokml + echo foo > debian/tmp/usr/share/doc/filenames/bokm\\l + + echo foo > debian/tmp/usr/share/doc/filenames/Thumbs.db + echo foo > debian/tmp/usr/share/doc/filenames/.DS_Store + echo foo > debian/tmp/usr/share/doc/filenames/._NEWS.Debian + + touch debian/tmp/usr/share/doc/filenames/news.debian + gzip -n debian/tmp/usr/share/doc/filenames/news.debian + touch debian/tmp/usr/share/doc/filenames/NEWS.Debian + + echo foo > debian/tmp/usr/share/doc/filenames/link-one + ln debian/tmp/usr/share/doc/filenames/link-one \ + debian/tmp/usr/share/doc/filenames/link-two + + install -d debian/tmp/usr/share/doc/filenames/examples + touch debian/tmp/usr/share/doc/filenames/examples/__init__.py + touch debian/tmp/usr/share/doc/filenames/examples/very_interesting_example + touch debian/tmp/usr/share/doc/filenames/examples/very_interesting_example2 + gzip -n debian/tmp/usr/share/doc/filenames/examples/very_interesting_example2 + + install -d debian/tmp/usr/lib/ada/adalib/ + touch debian/tmp/usr/lib/ada/adalib/test.ali debian/tmp/usr/lib/ada/adalib/test2.ali + chmod 0644 debian/tmp/usr/lib/ada/adalib/test.ali + chmod 0444 debian/tmp/usr/lib/ada/adalib/test2.ali + + install -d debian/tmp/usr/bin/X11/ + touch debian/tmp/usr/bin/X11/testxbin + install -d debian/tmp/usr/X11R6/bin + touch debian/tmp/usr/X11R6/bin/testxbin2 + install -d debian/tmp/usr/include/X11 + touch debian/tmp/usr/include/X11/foo.h + + install -d debian/tmp/usr/bin/mh + touch debian/tmp/usr/bin/mh/read + chmod 755 debian/tmp/usr/bin/mh/read + install -d debian/tmp/usr/bin/bin + touch debian/tmp/usr/bin/bin/bad + chmod 755 debian/tmp/usr/bin/bin/bad + + install -m 644 debian/changelog debian/tmp/usr/share/doc/filenames/Changes + gzip -n -9 debian/tmp/usr/share/doc/filenames/Changes + ln -s Changes.gz debian/tmp/usr/share/doc/filenames/changelog.gz + + install -d debian/tmp/var/www + echo foo > debian/tmp/var/www/foo + + install -d debian/tmp/srv/foo + touch debian/tmp/srv/foo/bar + install -d debian/tmp/opt/foo + touch debian/tmp/opt/foo/bar + + install -d debian/tmp/etc/gconf/schemas + touch debian/tmp/etc/gconf/schemas/test.schema + + install -d debian/tmp/usr/lib/sgml + touch debian/tmp/usr/lib/sgml/package + + install -d debian/tmp/usr/share/gnome/apps/System + touch debian/tmp/usr/share/gnome/apps/System/foo.desktop + + install -d debian/tmp/usr/share/filenames + touch debian/tmp/usr/share/filenames/jquery.js + touch debian/tmp/usr/share/filenames/jquery.lite.js + touch debian/tmp/usr/share/filenames/jquery.min.js + touch debian/tmp/usr/share/filenames/jquery.pack.js + touch debian/tmp/usr/share/filenames/mochikit.js + touch debian/tmp/usr/share/filenames/prototype-1.2.3.4.js + touch debian/tmp/usr/share/filenames/prototype.js + touch debian/tmp/usr/share/filenames/prototype.js.gz + touch debian/tmp/usr/share/filenames/scriptaculous.js + touch debian/tmp/usr/share/filenames/yahoo-dom-event.js + touch debian/tmp/usr/share/filenames/yahoo-min.js + + ln -s '../filenames/doc/version6.txt.gz' debian/tmp/usr/share/doc/filenames/version.txt.gz + ln -s ../../share/symlink debian/tmp/usr/lib/filenames/symlink1ok + ln -s ../../../etc/symlink debian/tmp/usr/lib/filenames/symlink1wrong + ln -s ../../../../etc/symlink debian/tmp/usr/lib/filenames/symlink2wrong + ln -s /etc/symlink debian/tmp/usr/lib/filenames/symlink2ok + ln -s /usr/lib/filenames/symlink2 debian/tmp/usr/lib/filenames/symlink3wrong + ln -s test debian/tmp/usr/lib/filenames/symlink3ok + ln -s ../filenames/symlink2 debian/tmp/usr/lib/filenames/symlink4wrong + ln -s ../menu/../somethingelse debian/tmp/usr/lib/filenames/symlink5wrong + ln -s ../menu/somethingelse debian/tmp/usr/lib/filenames/symlink4ok + ln -s ./file4 debian/tmp/usr/lib/filenames/symlink6wrong + ln -s ../menu/./something debian/tmp/usr/lib/filenames/symlink7wrong + ln -s ../menu//something debian/tmp/usr/lib/filenames/symlink8wrong + ln -s ../menu/something/ debian/tmp/usr/lib/filenames/symlink9wrong + ln -s .. debian/tmp/usr/lib/filenames/symlink5ok+warn + ln -s . debian/tmp/usr/lib/filenames/symlink6ok+warn + ln -s / debian/tmp/usr/lib/filenames/symlink7ok+warn + ln -s ../../.. debian/tmp/usr/lib/filenames/symlink10wrong + + install -d debian/tmp/usr/share/doc-base + install -m 644 debian/doc-base debian/tmp/usr/share/doc-base/filenames + + dpkg-gencontrol -pfilenames -Pdebian/tmp + dpkg --build debian/tmp .. + + install -d debian/filename-games debian/filename-games/DEBIAN + install -d debian/filename-games/usr debian/filename-games/usr/games debian/filename-games/usr/bin + echo '#! /bin/sh' > debian/filename-games/usr/bin/test-game + chmod 755 debian/filename-games/usr/bin/test-game + dpkg-gencontrol -pfilename-games -Pdebian/filename-games + dpkg --build debian/filename-games .. + + install -d debian/more-filename-games debian/more-filename-games/DEBIAN + install -d debian/more-filename-games/usr debian/more-filename-games/usr/games debian/more-filename-games/usr/bin + echo '#! /bin/sh' > debian/more-filename-games/usr/bin/another-test-game + echo '#! /bin/sh' > debian/more-filename-games/usr/games/yet-another-test-game + chmod 755 debian/more-filename-games/usr/bin/another-test-game debian/more-filename-games/usr/games/yet-another-test-game + dpkg-gencontrol -pmore-filename-games -Pdebian/more-filename-games + dpkg --build debian/more-filename-games .. + +binary: binary-arch binary-indep + +.PHONY: build-indep build-arch build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/debian/watch b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/eval/hints b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/eval/hints new file mode 100644 index 00000000..fbb5997a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/conffiles/legacy-filenames/eval/hints @@ -0,0 +1 @@ +filenames (binary): file-in-etc-not-marked-as-conffile [etc/gconf/schemas/test.schema] diff --git a/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/first-level-array/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/first-level-array/ORIGIN new file mode 100644 index 00000000..d5daf49c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/first-level-array/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/continuous-integration/salsa/first-level-array + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/first-level-array/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/first-level-array/debian/changelog new file mode 100644 index 00000000..f4afa783 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/first-level-array/debian/changelog @@ -0,0 +1,17 @@ +first-level-array (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: first-level-array + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +first-level-array (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: first-level-array + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/first-level-array/debian/control b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/first-level-array/debian/control new file mode 100644 index 00000000..aeda6fe5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/first-level-array/debian/control @@ -0,0 +1,17 @@ +Source: first-level-array +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: first-level-array +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Salsa CI includes at the array level below root. + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/first-level-array/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/first-level-array/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/first-level-array/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/first-level-array/debian/gitlab-ci.yml b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/first-level-array/debian/gitlab-ci.yml new file mode 100644 index 00000000..7205be03 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/first-level-array/debian/gitlab-ci.yml @@ -0,0 +1,5 @@ +# taken from ncurses_6.2-1.dsc + +include: + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml diff --git a/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/first-level-array/debian/rules b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/first-level-array/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/first-level-array/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/first-level-array/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/first-level-array/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/first-level-array/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/first-level-array/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/first-level-array/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/first-level-array/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/first-level-array/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/first-level-array/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/first-level-array/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/first-level-array/eval/hints b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/first-level-array/eval/hints new file mode 100644 index 00000000..5bb58893 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/first-level-array/eval/hints @@ -0,0 +1,3 @@ +first-level-array (source): continuous-integration/salsa/specification [debian/gitlab-ci.yml] +first-level-array (source): continuous-integration/salsa/include https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml [debian/gitlab-ci.yml] +first-level-array (source): continuous-integration/salsa/include https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml [debian/gitlab-ci.yml] diff --git a/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/root-scalar/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/root-scalar/ORIGIN new file mode 100644 index 00000000..ca482ac6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/root-scalar/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/continuous-integration/salsa/root-scalar + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/root-scalar/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/root-scalar/debian/changelog new file mode 100644 index 00000000..6e8050c5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/root-scalar/debian/changelog @@ -0,0 +1,17 @@ +root-scalar (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: root-scalar + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +root-scalar (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: root-scalar + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/root-scalar/debian/control b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/root-scalar/debian/control new file mode 100644 index 00000000..13bc367b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/root-scalar/debian/control @@ -0,0 +1,17 @@ +Source: root-scalar +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: root-scalar +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Salsa CI include as scalar at root level + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/root-scalar/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/root-scalar/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/root-scalar/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/root-scalar/debian/gitlab-ci.yml b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/root-scalar/debian/gitlab-ci.yml new file mode 100644 index 00000000..d15ffba7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/root-scalar/debian/gitlab-ci.yml @@ -0,0 +1 @@ +include: https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml diff --git a/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/root-scalar/debian/rules b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/root-scalar/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/root-scalar/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/root-scalar/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/root-scalar/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/root-scalar/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/root-scalar/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/root-scalar/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/root-scalar/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/root-scalar/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/root-scalar/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/root-scalar/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/root-scalar/eval/hints b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/root-scalar/eval/hints new file mode 100644 index 00000000..6059644e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/root-scalar/eval/hints @@ -0,0 +1,2 @@ +root-scalar (source): continuous-integration/salsa/specification [debian/gitlab-ci.yml] +root-scalar (source): continuous-integration/salsa/include https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml [debian/gitlab-ci.yml] diff --git a/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/salsaci-invalid-yaml/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/salsaci-invalid-yaml/ORIGIN new file mode 100644 index 00000000..95758b49 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/salsaci-invalid-yaml/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/continuous-integration/salsa/salsaci-invalid-yaml + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/salsaci-invalid-yaml/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/salsaci-invalid-yaml/debian/changelog new file mode 100644 index 00000000..ea93f125 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/salsaci-invalid-yaml/debian/changelog @@ -0,0 +1,17 @@ +salsaci-invalid-yaml (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: salsaci-invalid-yaml + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +salsaci-invalid-yaml (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: salsaci-invalid-yaml + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/salsaci-invalid-yaml/debian/control b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/salsaci-invalid-yaml/debian/control new file mode 100644 index 00000000..75213425 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/salsaci-invalid-yaml/debian/control @@ -0,0 +1,17 @@ +Source: salsaci-invalid-yaml +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: salsaci-invalid-yaml +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Salsa CI file contains invalid YAML + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/salsaci-invalid-yaml/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/salsaci-invalid-yaml/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/salsaci-invalid-yaml/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/salsaci-invalid-yaml/debian/rules b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/salsaci-invalid-yaml/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/salsaci-invalid-yaml/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/salsaci-invalid-yaml/debian/salsa-ci.yml b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/salsaci-invalid-yaml/debian/salsa-ci.yml new file mode 100644 index 00000000..3660d91e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/salsaci-invalid-yaml/debian/salsa-ci.yml @@ -0,0 +1,7 @@ +--- +include: + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml + +# Does not build on i386 + SALSA_CI_DISABLE_BUILD_PACKAGE_I386: 1 diff --git a/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/salsaci-invalid-yaml/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/salsaci-invalid-yaml/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/salsaci-invalid-yaml/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/salsaci-invalid-yaml/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/salsaci-invalid-yaml/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/salsaci-invalid-yaml/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/salsaci-invalid-yaml/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/salsaci-invalid-yaml/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/salsaci-invalid-yaml/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/salsaci-invalid-yaml/eval/hints b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/salsaci-invalid-yaml/eval/hints new file mode 100644 index 00000000..39470ce6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/continuous-integration/salsa/salsaci-invalid-yaml/eval/hints @@ -0,0 +1,2 @@ +salsaci-invalid-yaml (source): continuous-integration/salsa/specification [debian/salsa-ci.yml] +salsaci-invalid-yaml (source): continuous-integration/salsa/invalid-yaml [debian/salsa-ci.yml] diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-ctrl-script/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-ctrl-script/ORIGIN new file mode 100644 index 00000000..c5fa67c0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-ctrl-script/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/control-files/control-files-classifications-ctrl-script + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-ctrl-script/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-ctrl-script/debian/changelog new file mode 100644 index 00000000..f4e4ecce --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-ctrl-script/debian/changelog @@ -0,0 +1,17 @@ +control-files-classifications-ctrl-script (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-files-classifications-ctrl-script + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +control-files-classifications-ctrl-script (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-files-classifications-ctrl-script + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-ctrl-script/debian/control b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-ctrl-script/debian/control new file mode 100644 index 00000000..744a8949 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-ctrl-script/debian/control @@ -0,0 +1,17 @@ +Source: control-files-classifications-ctrl-script +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: control-files-classifications-ctrl-script +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for control-files classifications + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-ctrl-script/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-ctrl-script/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-ctrl-script/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-ctrl-script/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-ctrl-script/debian/postinst new file mode 100644 index 00000000..690173c3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-ctrl-script/debian/postinst @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +if [ "$1" = "configure" ] && which bar 2>/dev/null >/dev/null; then + bar configure +fi + +#DEBHELPER# diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-ctrl-script/debian/prerm b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-ctrl-script/debian/prerm new file mode 100644 index 00000000..a1666181 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-ctrl-script/debian/prerm @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +if [ "$1" = "remove" ] && which bar 2>/dev/null >/dev/null; then + bar remove +fi + +#DEBHELPER# diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-ctrl-script/debian/rules b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-ctrl-script/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-ctrl-script/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-ctrl-script/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-ctrl-script/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-ctrl-script/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-ctrl-script/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-ctrl-script/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-ctrl-script/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-ctrl-script/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-ctrl-script/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-ctrl-script/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-ctrl-script/eval/hints b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-ctrl-script/eval/hints new file mode 100644 index 00000000..70e73ea2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-ctrl-script/eval/hints @@ -0,0 +1,2 @@ +control-files-classifications-ctrl-script (binary): ctrl-script [prerm] +control-files-classifications-ctrl-script (binary): ctrl-script [postinst] diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-no-ctrl-scripts/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-no-ctrl-scripts/ORIGIN new file mode 100644 index 00000000..cf83f5c9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-no-ctrl-scripts/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/control-files/control-files-classifications-no-ctrl-scripts + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-no-ctrl-scripts/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-no-ctrl-scripts/debian/changelog new file mode 100644 index 00000000..dc1d5db1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-no-ctrl-scripts/debian/changelog @@ -0,0 +1,17 @@ +control-files-classifications-no-ctrl-scripts (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-files-classifications-no-ctrl-scripts + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +control-files-classifications-no-ctrl-scripts (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-files-classifications-no-ctrl-scripts + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-no-ctrl-scripts/debian/control b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-no-ctrl-scripts/debian/control new file mode 100644 index 00000000..62116a05 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-no-ctrl-scripts/debian/control @@ -0,0 +1,17 @@ +Source: control-files-classifications-no-ctrl-scripts +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: control-files-classifications-no-ctrl-scripts +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for control-files classifications + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-no-ctrl-scripts/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-no-ctrl-scripts/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-no-ctrl-scripts/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-no-ctrl-scripts/debian/rules b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-no-ctrl-scripts/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-no-ctrl-scripts/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-no-ctrl-scripts/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-no-ctrl-scripts/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-no-ctrl-scripts/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-no-ctrl-scripts/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-no-ctrl-scripts/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-no-ctrl-scripts/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-no-ctrl-scripts/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-no-ctrl-scripts/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-no-ctrl-scripts/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-no-ctrl-scripts/eval/hints b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-no-ctrl-scripts/eval/hints new file mode 100644 index 00000000..5edb0060 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/control-files-classifications-no-ctrl-scripts/eval/hints @@ -0,0 +1 @@ +control-files-classifications-no-ctrl-scripts (binary): no-ctrl-scripts diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/INSTALL b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/INSTALL new file mode 100644 index 00000000..3b50ea95 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/INSTALL @@ -0,0 +1,176 @@ +Basic Installation +================== + + These are generic installation instructions. + + The `configure' shell script attempts to guess correct values for +various system-dependent variables used during compilation. It uses +those values to create a `Makefile' in each directory of the package. +It may also create one or more `.h' files containing system-dependent +definitions. Finally, it creates a shell script `config.status' that +you can run in the future to recreate the current configuration, a file +`config.cache' that saves the results of its tests to speed up +reconfiguring, and a file `config.log' containing compiler output +(useful mainly for debugging `configure'). + + If you need to do unusual things to compile the package, please try +to figure out how `configure' could check whether to do them, and mail +diffs or instructions to the address given in the `README' so they can +be considered for the next release. If at some point `config.cache' +contains results you don't want to keep, you may remove or edit it. + + The file `configure.in' is used to create `configure' by a program +called `autoconf'. You only need `configure.in' if you want to change +it or regenerate `configure' using a newer version of `autoconf'. + +The simplest way to compile this package is: + + 1. `cd' to the directory containing the package's source code and type + `./configure' to configure the package for your system. If you're + using `csh' on an old version of System V, you might need to type + `sh ./configure' instead to prevent `csh' from trying to execute + `configure' itself. + + Running `configure' takes a while. While running, it prints some + messages telling which features it is checking for. + + 2. Type `make' to compile the package. + + 3. Optionally, type `make check' to run any self-tests that come with + the package. + + 4. Type `make install' to install the programs and any data files and + documentation. + + 5. You can remove the program binaries and object files from the + source code directory by typing `make clean'. To also remove the + files that `configure' created (so you can compile the package for + a different kind of computer), type `make distclean'. There is + also a `make maintainer-clean' target, but that is intended mainly + for the package's developers. If you use it, you may have to get + all sorts of other programs in order to regenerate files that came + with the distribution. + +Compilers and Options +===================== + + Some systems require unusual options for compilation or linking that +the `configure' script does not know about. You can give `configure' +initial values for variables by setting them in the environment. Using +a Bourne-compatible shell, you can do that on the command line like +this: + CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure + +Or on systems that have the `env' program, you can do it like this: + env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure + +Compiling For Multiple Architectures +==================================== + + You can compile the package for more than one kind of computer at the +same time, by placing the object files for each architecture in their +own directory. To do this, you must use a version of `make' that +supports the `VPATH' variable, such as GNU `make'. `cd' to the +directory where you want the object files and executables to go and run +the `configure' script. `configure' automatically checks for the +source code in the directory that `configure' is in and in `..'. + + If you have to use a `make' that does not supports the `VPATH' +variable, you have to compile the package for one architecture at a time +in the source code directory. After you have installed the package for +one architecture, use `make distclean' before reconfiguring for another +architecture. + +Installation Names +================== + + By default, `make install' will install the package's files in +`/usr/local/bin', `/usr/local/man', etc. You can specify an +installation prefix other than `/usr/local' by giving `configure' the +option `--prefix=PATH'. + + You can specify separate installation prefixes for +architecture-specific files and architecture-independent files. If you +give `configure' the option `--exec-prefix=PATH', the package will use +PATH as the prefix for installing programs and libraries. +Documentation and other data files will still use the regular prefix. + + If the package supports it, you can cause programs to be installed +with an extra prefix or suffix on their names by giving `configure' the +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. + +Optional Features +================= + + Some packages pay attention to `--enable-FEATURE' options to +`configure', where FEATURE indicates an optional part of the package. +They may also pay attention to `--with-PACKAGE' options, where PACKAGE +is something like `gnu-as' or `x' (for the X Window System). The +`README' should mention any `--enable-' and `--with-' options that the +package recognizes. + + For packages that use the X Window System, `configure' can usually +find the X include and library files automatically, but if it doesn't, +you can use the `configure' options `--x-includes=DIR' and +`--x-libraries=DIR' to specify their locations. + +Specifying the System Type +========================== + + There may be some features `configure' can not figure out +automatically, but needs to determine by the type of host the package +will run on. Usually `configure' can figure that out, but if it prints +a message saying it can not guess the host type, give it the +`--host=TYPE' option. TYPE can either be a short name for the system +type, such as `sun4', or a canonical name with three fields: + CPU-COMPANY-SYSTEM + +See the file `config.sub' for the possible values of each field. If +`config.sub' isn't included in this package, then this package doesn't +need to know the host type. + + If you are building compiler tools for cross-compiling, you can also +use the `--target=TYPE' option to select the type of system they will +produce code for and the `--build=TYPE' option to select the type of +system on which you are compiling the package. + +Sharing Defaults +================ + + If you want to set default values for `configure' scripts to share, +you can create a site shell script called `config.site' that gives +default values for variables like `CC', `cache_file', and `prefix'. +`configure' looks for `PREFIX/share/config.site' if it exists, then +`PREFIX/etc/config.site' if it exists. Or, you can set the +`CONFIG_SITE' environment variable to the location of the site script. +A warning: not all `configure' scripts look for a site script. + +Operation Controls +================== + + `configure' recognizes the following options to control how it +operates. + +`--cache-file=FILE' + Use and save the results of the tests in FILE instead of + `./config.cache'. Set FILE to `/dev/null' to disable caching, for + debugging `configure'. + +`--help' + Print a summary of the options to `configure', and exit. + +`--quiet' +`--silent' +`-q' + Do not print messages saying which checks are being made. + +`--srcdir=DIR' + Look for the package's source code in directory DIR. Usually + `configure' can determine that directory automatically. + +`--version' + Print the version of Autoconf used to generate the `configure' + script, and exit. + +`configure' also accepts some other, not widely useful, options. + diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/Makefile b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/Makefile new file mode 100644 index 00000000..da1dc555 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/Makefile @@ -0,0 +1,12 @@ +all: hello hello-static + +hello: hello.c + gcc hello.c -o hello + +hello-static: hello.c + gcc -static hello.c -o hello-static + +clean: + rm -f hello hello-static + +distclean: clean diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/ORIGIN new file mode 100644 index 00000000..73b0ad24 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/control-files/legacy-binary + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/NEWS.Debian b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/NEWS.Debian new file mode 100644 index 00000000..29f561c4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/NEWS.Debian @@ -0,0 +1,12 @@ +binary (4-1.1) UNRELEASED; urgency=high + + This is a Debian NEWS entry that isn't encoded properly in UTF-8: . + It also has a usefull speling error. + + -- Russ Allbery Sun, 14 Oct 2007 17:11:36 -0700 + +binary (1) unstable; urgency=low + + This is another entry but this one isn't syntactically valid. + + -- Russ Allbery 2007-10-14 diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/README.Debian b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/README.Debian new file mode 100644 index 00000000..94bcc0ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/README.Debian @@ -0,0 +1,5 @@ +this is a binary package to test lintian's handling of bins. +Check handling of D-Bus and dbus (neither of which should produce +warnings). + + -- Russ Allbery , Wed, 6 Feb 2008 18:35:11 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/changelog new file mode 100644 index 00000000..35b8c0bf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/changelog @@ -0,0 +1,47 @@ +binary (4-1.1) unstable; urgency=low + + * I'm doing an comaintainer-upload, acknowledging a NMU, but with a version + number which suggests I'm doing a NMU myself. + + Lintian-maintainers: Please don't update this changelog, otherwise you'll + probably break the checks/nmu checks. + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 01:49:42 +0200 + +binary (4-1) unstable; urgency=low + + * Weird version number for the new check for accidents with native + packaging. + * Date was fixed by BR and this test was put on changelog-file-strange-date + due to dpkg bug, see #794674. + + -- Marc 'HE' Brockschmidt Thu, 15 Apr 2004 23:33:51 +0200 + +binary (4) unstable; urgency=low + + * Add big file to /usr/share to trigger the big-usr-share check + + -- Jeroen van Wolffelaar Fri, 27 Feb 2004 10:15:59 +0100 + +binary (3) unstable; urgency=unlimited + + * Add some bogus menu entries using su-to-root in a bogus way + + -- Jeroen van Wolffelaar Thu, 12 Feb 2004 20:11:22 +0100 + +binary (2) unstable; urgency=low + + * Added an INSTALL document which policy 6.3 suggests not to do + + -- Sean 'Shaleh' Perry Tue, 30 Jan 2001 15:23:59 -0800 + +binary (1) unstable; urgency=low + + * hello.c added + * hello-static is same as hello, but compiled statically + * added a menu entry which lacks a Section + * added a postinst + * postinst calls suidregister which is no longer policy compliant + + -- Sean 'Shaleh' Perry Wed, 10 Jan 2001 08:55:34 -0800 + diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/conffiles b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/conffiles new file mode 100644 index 00000000..d1a08433 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/conffiles @@ -0,0 +1 @@ +/etc/menu-methods/lintian diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/control b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/control new file mode 100644 index 00000000..c797357b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/control @@ -0,0 +1,42 @@ +Source: binary +Section: misc +Priority: optional +Maintainer: Lintian Maintainers +Uploaders: Co-maintainer one , Jeroen van Wolffelaar , Co-maintainer three +Standards-Version: 3.2.1 +Homepage: http://lintian.debian.org/ +Vcs-Svn: http://svn.wolffelaar.nl/lintian/trunk +XS-Vcs-Browser: http://svn.wolffelaar.nl/lintian/trunk +XS-Dm-Upload-Allowed: yes + +Package: binary +Architecture: any +Pre-Depends: ${shlibs:Depends}, xorg, binary-data (= ${source:Version}), libssl0.9.8 +Homepage: +Vcs-Svn: http://svn.wolffelaar.nl/lintian/trunk +Description: test handling of binary files + Regression test for lintian's handling of binary files for debian. This + is checked for picky spelling errors. + . + This package list [ subversion | gconf ] should not be flagged as a spelling + mistake. The spelling correction for dont should be correct. + . + Homepage: http://lintian.debian.org/ + +Package: binary-data +Architecture: all +Depends: binary (= ${source:Version}), libssl-not-openssl, + libssl0.9.8 | or-something-else +Description: test handling of binary relationships + Regression test for lintian's checking of package relationships between + arch:any and arch:all packages. + . + This mention of subversion should be flagged as a spelling mistake. + +#Package: binary-comment +#Architecture: space-almonds +#Depends: * +#Depends: * +#Description: test comment support +# Yes, comments are actually allowed in debian/control, so none of the +# above should produce errors. diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/copyright new file mode 100644 index 00000000..1d6806de --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/copyright @@ -0,0 +1,15 @@ +hello.c is released under public domain. This is distributed in the hope that +it will be useful, but without any warranty; without even the implied warranty +of merchantability or fitness for a particular purpose. + +A reference to /usr/share/common-licenses/GPL-2 to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +Test for old FSF address: + +Free Software Foundation, Inc., 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. + +Test for deprecated ntionl ncoding. + +Improper capitalization of linux or debian isn't caught here. diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/doc-base b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/doc-base new file mode 100644 index 00000000..7e5b38f2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/doc-base @@ -0,0 +1,41 @@ +Document: binary!docs +Title: Broken debian binary doc-base control file +Author: Russ Allbery +Abstract: This control file exercises various tests of doc-base control + files, including several things that aren't tested yet. The third and + fourth one has trailing whitespace. + . + This section has a speling error and bad character. + . + The above separator was fine. +Section: Non/Existant +Unknown: Some field + + + +Format: debiandoc-sgML +Files: /usr/share/doc/binary/binary.sgml.gz +Unknown: Some field + +Format: ESP +Index: /usr/share/doc/binary/binary.txt + +Index: /usr/share/doc/binary/html/index.html + /usr/share/doc/binary/html/ch1.html + /usr/share/doc/binary/html/ch4.html + + +Format: HTML +Index: /usr/share/doc/binary/html/index.html +Files: /usr/share/doc/binary/html/ch?.h*l + /usr/share/doc/binary/hml/*.html + +Format: inFO +Files: /usr/share/info/binary.info.gz + +Format: HTML +Index: /usr/share/doc/binary/html/index.html +Files: /usr/share/doc/binary/html/ch5.html + /usr/share/doc/binary/html/ch6.html + + diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/goodbye.desktop b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/goodbye.desktop new file mode 100644 index 00000000..f6ce8e3f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/goodbye.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Name:Goodbye +# Name=Goodbye +Comment=Say hello! +SpecialTag=This doesn't exist! +Exec=goodbye +icon=hello +Terminal=true +Type=Application +Categories=WeirdStuff;Screensaver; +Encoding=ISO-10646-1 +[Other Entry] +Name=Goodbye diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/hello.desktop b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/hello.desktop new file mode 100644 index 00000000..f7954685 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/hello.desktop @@ -0,0 +1,14 @@ +# some random comment + +# [Foo Bar] +[KDE Desktop Entry] +Name=Hello +Name[en_US]=Hello +Comment=Say hello! +Exec=kdesu hello +Icon=hello +Terminal=true +Type=Application +Categories=GNOME;GTK;System;Applet;X-Foo;Settings; +Encoding=UTF-8 +OnlyShowIn=GNOME; diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/menu b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/menu new file mode 100644 index 00000000..e8972f4f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/menu @@ -0,0 +1,26 @@ +?package(binary):needs=text title="Hello World" command="/usr/bin/hello" +?package(binary):needs=text section="Applications/System" title="Run cfdisk (0)" command="/usr/bin/su-to-root cfdisk" +?package(binary):needs="text" section="Applications/System/Hardware" title="Run cfdisk (1)" command="sux -p cfdisk" +?package(binary):needs="x11" section="Window Managers" title="Run xfdisk" command="/usr/sbin/su-to-root -c xfdisk" +?package(binary):needs="wm" section="Applications/System/Administration" title="Run fdisk-wm" command="su-to-root -c hello" +?package(binary):section="Apps/Games" title="I'm not root!" command="su-to-root -c imnothere" +?package(binary):needs="text" section="Apps/System" title="I'm not here!" command="/imnothere" +?package(binary,other-binary):\ + needs="text"\ + section="Applications/Shells"\ + title="more than one required"\ + command="other-bin -s omething" +?package(binary):needs="wmmodule" section="WindowManagers/Modules" title="somemodule" command="ModuleCmd" +?package(binary):needs="wmmodule" section="FVWM Modules" title="somemodule" command="ModuleCmd" +?package(binary):needs="text" section="Applications/System/Administration" title="I'm not in /usr/bin!" command="iminusrbin" +?package(binary):needs="text"\ + section="Applications/System/Administration"\ + title="I'm not root!" command="su-to-root -c imnothere" +?package(binary):needs="text" section="Applications/System/Administration"\ + title="Run cfdisk (0)" command="cfdisk" +?package(binary):needs="text" section="Applications/System/Administration" title="Hello World" command="/usr/bin/hello" +?package(binary):needs="wm" section="FVWM Modules" title="Fake Module" command="hello" +?package(binary):needs="fvwmmodule" section="Window Maker" title="Fake Module"\ + command="hello" +?package(binary):needs="x11" section="Applications/System/Hardware" title="Run xfdisk" command="su-to-root -c 'xfdisk -f'" +?package(binary):needs="text" section="Applications/System/Administration" title="foo" command="sh /path/to/foo" diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/menu-method b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/menu-method new file mode 100644 index 00000000..9f07bd73 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/menu-method @@ -0,0 +1,22 @@ +#!/usr/bin/install-menu + +# -*- mode: shell-script; -*- +#I need menu-1! +# + +!include notmenu.h + +compat="menu-2" + +outputencoding="UTF-8"; +outputlanguage="C"; + +x11 = AppEntry("false"); +text = AppEntry("true"); + +startmenu = ""; +endmenu = ""; +submenutitle = ""; +rootprefix = "/var/lib/lintian/menu"; +userprefix = ".local/share/lintian/menu"; + diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/postinst new file mode 100644 index 00000000..29e18619 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/postinst @@ -0,0 +1,6 @@ +#! /bin/bash -e + +if [ $1 eq 'configure' ] +then + suidregister hello-static root root 4755 +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/rules b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/rules new file mode 100755 index 00000000..a962ea92 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/rules @@ -0,0 +1,92 @@ +#!/usr/bin/make -f + +tmp=debian/tmp + +# This reference to $(PWD) should not cause an error but the one below +# should. +build-arch: + make + echo $(PWD) + +build: build-arch + +clean: + make -i clean + [ ! -f debian/files ] || rm -f debian/files + [ ! -f debian/substvars ] || rm -f debian/substvars + [ ! -d debian/tmp ] || rm -rf debian/tmp + [ ! -d debian/binary ] || rm -rf debian/binary + [ ! -d debian/binary-data ] || rm -rf debian/binary-data + +binary-arch: build + install -d $(tmp)/usr/bin + install -d $(tmp)/boot/hello + install -m 755 hello $(tmp)/usr/bin + touch $(tmp)/usr/bin/iminusrbin + chmod 755 $(tmp)/usr/bin/iminusrbin + install -m 755 hello-static $(tmp)/usr/bin + strip $(tmp)/usr/bin/hello-static + install -m 755 hello-static $(tmp)/usr/bin/hello.static + strip --remove-section=.comment --remove-section=.note $(tmp)/usr/bin/hello.static + ln $(tmp)/usr/bin/hello.static $(tmp)/usr/bin/static-hello + install -m 755 hello-static $(tmp)/boot/hello + strip --remove-section=.comment --remove-section=.note $(tmp)/boot/hello/hello-static + install -d $(tmp)/usr/share/doc/binary + install -m 644 INSTALL $(tmp)/usr/share/doc/binary + install -d $(tmp)/usr/share/doc/binary/html + echo '' > $(tmp)/usr/share/doc/binary/html/index.html + echo '' > $(tmp)/usr/share/doc/binary/html/ch1.html + ln -s ../html/./ch1.html $(tmp)/usr/share/doc/binary/html/ch2.html + ln -s /usr/share/doc/binary/htm/ch1.html $(tmp)/usr/share/doc/binary/html/ch3.html + echo '' > $(tmp)/usr/share/doc/binary/html/ch5.html + ln $(tmp)/usr/share/doc/binary/html/ch5.html \ + $(tmp)/usr/share/doc/binary/html/ch6.html + install -d $(tmp)/usr/share/menu + install -d $(tmp)/usr/lib/menu + install -d $(tmp)/usr/share/binary + install -m 644 debian/menu $(tmp)/usr/share/menu/binary + install -m 644 debian/menu $(tmp)/usr/lib/menu/binary + install -d $(tmp)/etc/menu-methods + install -m 755 debian/menu-method $(tmp)/etc/menu-methods/lintian + install -d $(tmp)/usr/share/doc-base + install -m 644 debian/doc-base $(tmp)/usr/share/doc-base/binary + touch '$(tmp)/usr/share/doc-base/space ' + install -m 644 debian/README.Debian $(tmp)/usr/share/doc/binary + install -m 644 debian/NEWS.Debian $(tmp)/usr/share/doc/binary + gzip -n -9 $(tmp)/usr/share/doc/binary/NEWS.Debian + install -m 644 debian/copyright $(tmp)/usr/share/doc/binary + install -m 644 debian/changelog $(tmp)/usr/share/doc/binary + #gzip -n -9 $(tmp)/usr/share/doc/binary/changelog + install -d $(tmp)/DEBIAN + install -m 755 debian/postinst $(tmp)/DEBIAN + install -m 644 debian/conffiles $(tmp)/DEBIAN + + install -d $(tmp)/usr/share/applications + install -m 644 debian/hello.desktop \ + $(tmp)/usr/share/applications/hello.desktop + install -m 755 debian/goodbye.desktop \ + $(tmp)/usr/share/applications/goodbye.desktop + + # should be ok... + echo boe > $(tmp)/usr/bar + ln $(tmp)/usr/bar $(tmp)/usr/foo + # but this isn't + echo boe > $(tmp)/usr/bar2 + ln $(tmp)/usr/bar2 $(tmp)/usr/share/baz + + dd if=/dev/zero of=$(tmp)/usr/share/binary/largefile bs=1024 count=4000 + + install -d debian/binary-data/DEBIAN + install -d debian/binary-data/usr/share/doc + ln -s binary debian/binary-data/usr/share/doc/binary-data + + dpkg-shlibdeps $(tmp)/usr/bin/hello + dpkg-gencontrol -pbinary -isp + dpkg-gencontrol -pbinary-data -Pdebian/binary-data -isp + + dpkg --build debian/tmp .. + dpkg --build debian/binary-data .. + +binary: binary-arch + +.PHONY: build-arch build binary-arch binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/templates b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/templates new file mode 100644 index 00000000..3d928614 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/templates @@ -0,0 +1,16 @@ +# The debconf templates defined here are the sort that you'd use if +# providing a wordlist and an ispell dictionary for the language +# "perl". This shouldn't trigger warnings about not using debconf-po. + +Template: shared/packages-ispell +Type: text +Description: + +Template: shared/packages-wordlist +Type: text +Description: + +Template: miscfiles/languages +Type: text +Default: perl (Pathologically Eclectic Rubbish Lister) +Description: diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/watch b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/eval/hints b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/eval/hints new file mode 100644 index 00000000..aa51bebb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/eval/hints @@ -0,0 +1,2 @@ +binary-data (binary): no-ctrl-scripts +binary (binary): ctrl-script [postinst] diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/hello.c b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/hello.c new file mode 100644 index 00000000..2fb04e17 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-binary/hello.c @@ -0,0 +1,8 @@ +#include +#include + +int main(int argc, char *argv[]) { + + printf("Hello, World!\n"); + exit(0); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/Makefile b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/Makefile new file mode 100644 index 00000000..657dc2ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/Makefile @@ -0,0 +1,55 @@ +# This is the correct way to build a lib + +CC=gcc +CFLAGS=-g -Wall -Winline -O2 +LDFLAGS=-Wl,--no-as-needed + +OBJS=baz.o extra.o +SHOBJS=baz.sho extra.sho +NOPICOBJS = $(SHOBJS) + +all: libbaz1.a libbaz2.a libbaz1.so.1.0.3b libbaz2.so libbaz3.so.1.0.3b \ + libbaz.so + +libbaz2.so: libbaz2.so.1.0 + ln -sf $^ $@ +libbaz2.so.1.0: libbaz2.so.1.0.3b + ln -sf $^ $@ + +# Oops, forget the soname altogether +libbaz1.so.1.0.3b: $(NOPICOBJS) + $(CC) $(LDFLAGS) -o $@ -shared $^ -lc + +libbaz2.so.1.0.3b: $(SHOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz2.so.1.0 $^ -lc + +# Non-PIC. We can't test this on all architectures +libbaz3.so.1.0.3b: $(NOPICOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz3.so.1 $^ -lc + +# Non-versioned SONAME. +libbaz.so: $(SHOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz.so $^ -lc + +#%.o-noreentrant: %.c +# $(CC) $(LDFLAGS) $(CFLAGS) -o $@ -c $< + +%.sho: %.c + $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -fPIC -o $@ -c $< + +%.o: %.c + $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -o $@ -c $< + +libbaz2.a: $(OBJS) + ar cq $@ $(OBJS) + strip --strip-unneeded --remove-section=.comment \ + --remove-section=-note $@ + ranlib $@ + +# The pic one in the .a (wrong), no archive table +libbaz1.a: $(SHOBJS) + ar cqS $@ $^ + strip --strip-unneeded --remove-section=.comment \ + --remove-section=-note $@ +clean: + rm -f *.a *.o *.so* *.sho diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/ORIGIN new file mode 100644 index 00000000..efa68ecf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/control-files/legacy-libbaz + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/baz.c b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/baz.c new file mode 100644 index 00000000..4d5fc458 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/baz.c @@ -0,0 +1,6 @@ +#include + +double pw(double p) +{ + return exp(p); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/changelog new file mode 100644 index 00000000..44c0a832 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/changelog @@ -0,0 +1,6 @@ +libbaz (1-1) unstable; urgency=low + + * Initial setup + + -- Sean 'Shaleh' Perry Tue, 30 Jan 2001 15:23:59 -0800 + diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/compat b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/compat new file mode 100644 index 00000000..b1bd38b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/compat @@ -0,0 +1 @@ +13 diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/control b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/control new file mode 100644 index 00000000..15066870 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/control @@ -0,0 +1,58 @@ +Source: libbaz +Section: libs +Priority: optional +Maintainer: Lintian Maintainer +Build-depends: debhelper (>=4) +Standards-Version: 3.2.1 + +Package: libbaz1 +Architecture: any +Provides: libbaz +Description: test handling of library packages + Regression test for lintian's handling of libraries. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz1-dev +Architecture: any +Depends: libbaz1 (= ${source:Version}), perlapi-5.8.8 +Description: development package + Regression test for lintian's handling of libraries (dev). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2 +Architecture: any +Depends: ${shlibs:Depends}, libssl0.9.8 +Description: test handling of library packages (good) + Regression test for lintian's handling of libraries (good). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2-dev +Architecture: any +Depends: ${shlibs:Depends}, libbaz2 (= ${source:Version}) +Description: development package (good) + Regression test for lintian's handling of libraries (dev good). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2-dbg +Architecture: any +Depends: libbaz2 (= ${binary:Version}) +Priority: optional +Description: debugging package + Regression test for lintian's handling of libraries (debug). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/copyright new file mode 100644 index 00000000..a874c878 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/copyright @@ -0,0 +1,8 @@ +This package is released under public domain. This is distributed in the hope +that it will be useful, but without any warranty; without even the implied +warranty of merchantability or fitness for a particular purpose. + +A reference to /usr/share/common-licenses/GPL-2 to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +However, this has an OpenSSL exception. diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/dev.postinst b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/dev.postinst new file mode 100644 index 00000000..683e3cc5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/dev.postinst @@ -0,0 +1,4 @@ +#!/bin/sh -e + +$PKG=libbaz1-dev + diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/dev.prerm b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/dev.prerm new file mode 100644 index 00000000..683e3cc5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/dev.prerm @@ -0,0 +1,4 @@ +#!/bin/sh -e + +$PKG=libbaz1-dev + diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/lib.postinst b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/lib.postinst new file mode 100644 index 00000000..ec0b98ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/lib.postinst @@ -0,0 +1,10 @@ +#!/bin/sh -e + +$PKG=libbaz1 + +if [ "$1" = "configure" ]; then + if [ -d /usr/doc -a ! -e /usr/doc/$PKG -a -d /usr/share/doc/$PKG ] +; then + ln -sf ../share/doc/$PKG /usr/doc/$PKG + fi +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/lib.prerm b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/lib.prerm new file mode 100644 index 00000000..50e37c3b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/lib.prerm @@ -0,0 +1,7 @@ +#!/bin/sh -e + +$PKG=libbaz1 + +if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/$PKG ]; then + rm -f /usr/doc/$PKG +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/lib.shlibs b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/lib.shlibs new file mode 100644 index 00000000..b88e2882 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/lib.shlibs @@ -0,0 +1,8 @@ +libdoesntexist2 1.0 libbaz1 +libdoesntexist2 1.0 libbaz1 +libbaz2 1.1 libbaz +libbaz3 1 libbaz1 (>> 1-1) +libbaz4 1 libbaz1 (= 1-1) +libbaz5 1 libbaz2 +udeb: libdoesntexist2 1.0 libbaz2 +udeb: libdoesntexist2 1.0 libbaz2 diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/lib.symbols b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/lib.symbols new file mode 100644 index 00000000..72f9d8ab --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/lib.symbols @@ -0,0 +1,3 @@ +libbaz.so.2 libbaz1 #MINVER# + pw 1-1 + foo 1.1-1 diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/rules b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/rules new file mode 100755 index 00000000..fa99bc8a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/rules @@ -0,0 +1,121 @@ +#!/usr/bin/make -f + +lib_tmp=debian/tmp-lib +dev_tmp=debian/tmp-dev + +LIB=libbaz1 +DEV=libbaz1-dev + +VENDORARCH := $(shell perl -MConfig -wE'say substr($$Config{vendorarch},1)') + +build-arch: + $(MAKE) + +build-indep: + +build: build-arch build-indep + +clean: + $(MAKE) clean + dh_clean -plibbaz2 -plibbaz2-dev + rm -f debian/files debian/substvars + rm -rf $(lib_tmp) $(dev_tmp) + +# Now the correct libbaz2-dev package +binary-correct: + install -d debian/libbaz2-dev/usr/lib + cp -a libbaz2.a libbaz2.so debian/libbaz2-dev/usr/lib + # usually, I'd also include some .h files to /usr/include + + # Now the correct libbaz2 package + install -d debian/libbaz2/usr/lib + cp -a libbaz2.so.* debian/libbaz2/usr/lib + chmod a-x debian/libbaz2/usr/lib/* + + # General stuff that is tested in other testsets: + dh_installdocs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_compress -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + + # Mess up the libbaz2 changelog files to test the symlink handling. + ln -s /usr/share/doc/lintian/changelog.gz \ + debian/libbaz2/usr/share/doc/libbaz2/changelog.gz + install -m 644 debian/changelog \ + debian/libbaz2-dev/usr/share/doc/libbaz2-dev/foo + ln -s foo debian/libbaz2-dev/usr/share/doc/libbaz2-dev/changelog + + # Okay, if either line is omitted, it should be noted + dh_strip --dbg-package=libbaz2-dbg -plibbaz2 -plibbaz2-dev + dh_makeshlibs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_shlibdeps -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + + # and again, regular packaging stuff + dh_installdeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + echo udeb: libbaz2 1.0 libbaz2 >> debian/libbaz2/DEBIAN/shlibs + dh_gencontrol -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_builddeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + +# and the incorrect one +binary-arch: build-arch binary-correct + # first, the lib package + install -d $(lib_tmp)/usr/lib + # resp. no soname (check), wrong soname (check), and no-pic (check) + cp -a libbaz1.so.1.0* $(lib_tmp)/usr/lib + cp -a libbaz2.so.1.0.3b $(lib_tmp)/usr/lib/libfoo2.so.1.0.3b + install -m644 libbaz3.so.1.0.3b $(lib_tmp)/usr/lib/libbaz3.so.1.0.3b + # let's include the .a in the non-dev too (TODO) + # Also, libbaz1.a hasn't a symbol table (TODO) + cp -a *.a $(lib_tmp)/usr/lib + # And a wrong .so symlink (wrong, only in -dev, TODO) + ln -s libfoo3.so.0.9 $(lib_tmp)/usr/lib/libfoo3.so + # And a wrong .so.X symlink (wrong, should point to a real existing + # shlib, TODO) + ln -s libfoo.so.0.9.1 $(lib_tmp)/usr/lib/libfoo.so.0.9 + # And a plain .so (wrong, TODO) + touch $(lib_tmp)/usr/lib/libbar2.so + # And a non-versioned SONAME. + install -m644 libbaz.so $(lib_tmp)/usr/lib/libbaz.so + strip --remove-section=.comment --strip-unneeded $(lib_tmp)/usr/lib/libbaz.so + # Pretend to be a Perl module to test a lack of Perl dependencies. + install -d $(lib_tmp)/$(VENDORARCH)/auto/Foo + install -m 644 libbaz2.so.1.0.3b $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + strip $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + + install -d $(lib_tmp)/usr/share/doc/$(LIB) + install -m 644 debian/copyright $(lib_tmp)/usr/share/doc/$(LIB) + install -m 644 debian/changelog $(lib_tmp)/usr/share/doc/$(LIB) + gzip -n -9 $(lib_tmp)/usr/share/doc/$(LIB)/changelog + install -d $(lib_tmp)/DEBIAN + install -m 755 debian/lib.postinst $(lib_tmp)/DEBIAN/postinst + install -m 755 debian/lib.prerm $(lib_tmp)/DEBIAN/prerm + touch $(lib_tmp)/usr/share/doc/README.Debian + #dpkg-shlibdeps $(lib_tmp)/usr/lib/libbaz.so.1.0 + install -m 755 debian/lib.shlibs $(lib_tmp)/DEBIAN/shlibs + install -m 755 debian/lib.symbols $(lib_tmp)/DEBIAN/symbols + dpkg-gencontrol -isp -p$(LIB) -P$(lib_tmp) + dpkg --build $(lib_tmp) .. + + # now the -dev package + install -d $(dev_tmp)/usr/include + install -d $(lib_tmp)/usr/lib + # let's also install the .so at the same time... (wrong, TODO) + cp -a *.a *.so.* $(lib_tmp)/usr/lib + # and fuck up permission (TODO) + chmod a+x $(lib_tmp)/usr/lib/*.a + # Pretend to be a Perl module to test a lack of Perl dependencies. + install -d $(dev_tmp)/$(VENDORARCH)/auto/Foo + install -m 644 libbaz2.so.1.0.3b $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + strip $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + install -d $(dev_tmp)/usr/share/doc + ln -s $(LIB) $(dev_tmp)/usr/share/doc/$(DEV) + install -d $(dev_tmp)/DEBIAN + install -m 755 debian/dev.postinst $(dev_tmp)/DEBIAN/postinst + install -m 755 debian/dev.prerm $(dev_tmp)/DEBIAN/prerm + dpkg-gencontrol -isp -p$(DEV) -P$(dev_tmp) + dpkg --build $(dev_tmp) .. + + +binary: binary-arch + +# The mention of binary-indep here should be sufficient to suppress the +# warning that it's not present. +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/source.lintian-overrides b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/source.lintian-overrides new file mode 100644 index 00000000..6008d271 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/source.lintian-overrides @@ -0,0 +1 @@ +libbaz source: maintainer-script-lacks-debhelper-token diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/watch b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/eval/hints b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/eval/hints new file mode 100644 index 00000000..83003be2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/eval/hints @@ -0,0 +1,11 @@ +libbaz2-dev (binary): no-ctrl-scripts +libbaz2-dbg (binary): no-ctrl-scripts +libbaz2 (binary): no-ctrl-scripts +libbaz1-dev (binary): ctrl-script [prerm] +libbaz1-dev (binary): ctrl-script [postinst] +libbaz1 (binary): ctrl-script [symbols] +libbaz1 (binary): ctrl-script [shlibs] +libbaz1 (binary): ctrl-script [prerm] +libbaz1 (binary): ctrl-script [postinst] +libbaz1 (binary): control-file-has-bad-permissions 0755 != 0644 [symbols] +libbaz1 (binary): control-file-has-bad-permissions 0755 != 0644 [shlibs] diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/extra.c b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-libbaz/extra.c new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/ORIGIN new file mode 100644 index 00000000..fdf5fa65 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/control-files/legacy-scripts + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/csh-foo b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/csh-foo new file mode 100644 index 00000000..eaf47a15 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/csh-foo @@ -0,0 +1,2 @@ +#! /bin/csh + diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/changelog new file mode 100644 index 00000000..9c6bc545 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/changelog @@ -0,0 +1,41 @@ +scripts (6ds-1ubuntu0.5.10.1) unstable; urgency=low + + * I'm also not able to write my name. + * Added a script in /etc/Xsession.d + * Bizarre version number courtesy of + https://wiki.ubuntu.com/SecurityUpdateProcedures#Prepare + + -- Mark 'HE' Brokschmitt Thu, 23 Jun 2005 14:32:39 +0200 + +scripts (5-1) unstable; urgency=low + + * I'm making a typo in my own name... And I want lintian to warn me about + it. + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 02:26:34 +0200 + +scripts (4-1) unstable; urgency=low + + * Add new example to check that not executable files with a shebang line + called *in don't trigger the script-not-executable warning. + + -- Marc 'HE' Brockschmidt Wed, 14 Apr 2004 19:44:04 +0200 + +scripts (3-3) unstable; urgency=low + + * Add suidperlfoo and some code in debian/rules to + check the new suidperl checks + + -- Frank Lichtenheld Wed, 31 Mar 2004 21:06:20 +0000 + +scripts (2-1) unstable; urgency=low + + * Add tkfoo script for tk checkings + + -- Lintian Maintainers Sat, 21 Feb 2004 17:13:36 +0100 + +scripts (1-0) unstable; urgency=low + + * Initial version + + -- Lintian Maintainers Sat, 10 Feb 2001 15:37:31 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/control b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/control new file mode 100644 index 00000000..e172d446 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/control @@ -0,0 +1,15 @@ +Source: scripts +Section: interpreters +Priority: optional +Maintainer: Lintian Maintainers +Uploaders: Jeroen van Wolfelaar , Marc 'HE' Brockschmidt +Standards-Version: 3.2.1 + +Package: scripts +Architecture: all +Depends: test, ruby1.8, build-essential, libssl0.9.7, php7.0-cli +Recommends: tk8.4 | wish +Description: test lintian's script file checks + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/copyright new file mode 100644 index 00000000..ad8a119e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/copyright @@ -0,0 +1,5 @@ +This file contains the phrase "under the same terms as Perl itself" to +trigger warnings about not having common-licenses references. + +This file contains the phrase "public domain" which should suppress +warnings about no copyright date. diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/postinst new file mode 100644 index 00000000..7c5baf1f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/postinst @@ -0,0 +1,14 @@ +#!/bin/sh + +if [ -x "/etc/init.d/lsb-broken" ] ; then + update-rc.d lsb-broken defaults >/dev/null +fi +if [ -x "/etc/init.d/no-lsb" ] ; then + update-rc.d no-lsb defaults >/dev/null +fi +if [ -x "/etc/init.d/skeleton" ] ; then + update-rc.d skeleton defaults >/dev/null +fi +if [ -x "/etc/init.d/lsb-other" ] ; then + update-rc.d lsb-other defaults >/dev/null +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/postrm b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/postrm new file mode 100644 index 00000000..8fa75a25 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/postrm @@ -0,0 +1,9 @@ +#!/bin/sh -e + +if [ "$1" = purge ] ; then + update-rc.d lsb-broken remove >/dev/null + update-rc.d no-lsb remove >/dev/null + update-rc.d skeleton remove >/dev/null + update-rc.d lsb-other remove >/dev/null + update-rc.d lsb-other remove >/dev/null +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/preinst b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/preinst new file mode 100644 index 00000000..07995570 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/preinst @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e +set -x + +# +# Some comments here +# + +# This serves as an example of an "empty" script, so +# please do not add any real code here, thank you :) + +#DEBHELPER# + +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/rules b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/rules new file mode 100755 index 00000000..0b3bf4f5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/rules @@ -0,0 +1,102 @@ +#!/usr/bin/make -f + +tmp=debian/tmp + +build-arch: + echo "Hi, in an arch: all package, I am a bug!" + +build-indep: + +build: build-arch build-indep + +binary-arch: + echo "Hi, in an arch: all package, I am a bug!" + +binary-indep: + install -d $(tmp)/usr/bin/ + install -d $(tmp)/etc/X11/Xsession.d/ + install -d $(tmp)/etc/init.d/ + install -d $(tmp)/etc/csh/login.d/ + install -d $(tmp)/etc/fish.d/ + install -d $(tmp)/usr/share/scripts/ + install -d $(tmp)/usr/share/doc/scripts/ + install -d $(tmp)/usr/lib/cgi-bin + install -d $(tmp)/DEBIAN + + install -m 755 csh-foo $(tmp)/etc/csh/login.d/ + install -m 755 envfoo $(tmp)/usr/bin/ + install -m 755 fish-foo $(tmp)/etc/fish.d/ + install -m 755 jruby-broken $(tmp)/usr/bin/ + install -m 755 perlfoo $(tmp)/usr/bin/ + install -m 755 rubyfoo $(tmp)/usr/bin/ +# This doesn't use "env" but should also trigger script-in-usr-share-doc + install -m 755 rubyfoo $(tmp)/usr/share/doc/scripts/ + install -m 755 make-foo $(tmp)/usr/bin/ + install -m 755 lefty-foo $(tmp)/usr/bin/ + install -m 4751 perlfoo $(tmp)/usr/bin/suidperlfoo2 + install -m 755 sh-broken $(tmp)/usr/bin/ + install -m 4555 suidperlfoo $(tmp)/usr/bin/ + install -m 755 tkfoo $(tmp)/usr/bin/ + install -m 755 wishfoo $(tmp)/usr/bin/ + install -m 644 xsession-test $(tmp)/etc/X11/Xsession.d/ + +# Permissions here aren't part of what's being tested, but let us exercise +# some other errors. + install -m 755 perl-bizarre-1 $(tmp)/usr/bin/ + install -m 750 perl-bizarre-2 $(tmp)/usr/bin/ + install -m 754 perl-bizarre-3 $(tmp)/usr/bin/ + install -m 705 guile-bizarre $(tmp)/usr/bin/ + +# First one should produce a warning; second one shouldn't. + + install -m 644 init-skeleton $(tmp)/etc/init.d/skeleton + install -m 755 init-no-lsb $(tmp)/etc/init.d/no-lsb + install -m 755 init-lsb-broken $(tmp)/etc/init.d/lsb-broken + install -m 755 init-lsb-other $(tmp)/etc/init.d/lsb-other + + install -m 755 phpfoo $(tmp)/usr/share/scripts/ + sed 's/php$$/php7.0/' phpfoo > $(tmp)/usr/share/scripts/php7.0foo + chmod 755 $(tmp)/usr/share/scripts/php7.0foo + + install -m 755 phpenvfoo $(tmp)/usr/share/scripts/ + sed 's/php$$/php7.0/' phpenvfoo > $(tmp)/usr/share/scripts/php7.0envfoo + chmod 755 $(tmp)/usr/share/scripts/php7.0envfoo + + echo "#!/usr/bin/perl" >> $(tmp)/usr/share/scripts/foobar.in + chmod 644 $(tmp)/usr/share/scripts/foobar.in + + touch $(tmp)/usr/share/scripts/mono.exe + chmod 755 $(tmp)/usr/share/scripts/mono.exe + + echo "#!/bin/sh" > $(tmp)/usr/share/scripts/foo\$$bar + chmod 755 $(tmp)/usr/share/scripts/foo\$$bar + + echo "#!/bin/sh" > $(tmp)/usr/lib/cgi-bin/cgi-script + chmod 755 $(tmp)/usr/lib/cgi-bin/cgi-script + + echo "#!/bin/sh" > $(tmp)/usr/bin/test.sh + chmod 755 $(tmp)/usr/bin/test.sh + + + dh_testroot # dummy to test missing debhelper dependency + + + install -m 644 debian/changelog $(tmp)/usr/share/doc/scripts/changelog.Debian + gzip -n -9 $(tmp)/usr/share/doc/scripts/changelog.Debian + install -m 644 debian/copyright $(tmp)/usr/share/doc/scripts/copyright + + install -m 644 debian/scripts.conffiles $(tmp)/DEBIAN/conffiles + install -m 755 debian/preinst $(tmp)/DEBIAN/preinst + install -m 755 debian/postinst $(tmp)/DEBIAN/postinst + install -m 755 debian/postrm $(tmp)/DEBIAN/postrm + touch $(tmp)/DEBIAN/prerm + chmod 755 $(tmp)/DEBIAN/prerm + dpkg-gencontrol -isp + dpkg --build $(tmp) .. + +binary: binary-arch binary-indep + +clean: + rm -rf debian/files $(tmp) debian/substvars + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/scripts.conffiles b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/scripts.conffiles new file mode 100644 index 00000000..01a371a6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/scripts.conffiles @@ -0,0 +1,6 @@ +/etc/init.d/lsb-broken +/etc/init.d/lsb-other +/etc/init.d/no-lsb +/etc/X11/Xsession.d/xsession-test +/etc/csh/login.d/csh-foo +/etc/fish.d/fish-foo diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/watch b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/watch new file mode 100644 index 00000000..dba58153 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/debian/watch @@ -0,0 +1,8 @@ +# watch file with upstream version mangling + +version=2 +opts="uversionmangle=s/$/ds/" \ +http://qa.debian.org/watch/sf.php?project=foo scripts\.([\d.]+)\.tar\.gz debian uupdate + +version=3 +http://ftp.sf.net/foo/foo_bar(.+)\.Z 5 uupdate \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/envfoo b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/envfoo new file mode 100755 index 00000000..e005037f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/envfoo @@ -0,0 +1,4 @@ +#! /bin/env python + +if __name__ == '__main__': + print 'Hi there' diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/eval/hints b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/eval/hints new file mode 100644 index 00000000..8e2a5701 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/eval/hints @@ -0,0 +1,5 @@ +scripts (binary): ctrl-script [prerm] +scripts (binary): ctrl-script [preinst] +scripts (binary): ctrl-script [postrm] +scripts (binary): ctrl-script [postinst] +scripts (binary): control-file-is-empty [prerm] diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/fish-foo b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/fish-foo new file mode 100644 index 00000000..7f59139a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/fish-foo @@ -0,0 +1,2 @@ +#! /usr/bin/fish + diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/guile-bizarre b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/guile-bizarre new file mode 100644 index 00000000..70e2c745 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/guile-bizarre @@ -0,0 +1,6 @@ +#! /bin/sh +# -*- scheme -*- +exec guile -s $0 $* +# Seen in the wild as build-guile-gtk in libguilegtk-1.2-dev (0.31-5.1) +# Tests script_is_evil_and_wrong +!# diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/init-lsb-broken b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/init-lsb-broken new file mode 100644 index 00000000..e4dfa92b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/init-lsb-broken @@ -0,0 +1,34 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: bad-lsb +# Required-Start: $local_fs $remote_fs +# Required-Stop: +# Default-Start: 1 2 3 4 5 +# Default-Stop: S 0 1 6 X +# Short-Description: Example Lintian initscript +# but this can't be continued +# Description: An example of a bad LSB section in an init script. +# This continuation is allowed (with spaces). +# This one is too (with tabs). +# X-Debian-Foo: Some unknown but valid keyword. +# Foo: Some invalid keyword. + +# Whoops, no terminating line. + +# And then we have this duplicate section. +### BEGIN INIT INFO +# Required-Start: This one doesn't count. +### END INIT INFO + +# Hey, look at all of those missing actions! But stop isn't missing. +case "$1" in + start|stop) + echo "Blah" + ;; + *) + echo "Usage: foo start" >&2 + exit 3 + ;; +esac + +: diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/init-lsb-other b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/init-lsb-other new file mode 100644 index 00000000..adb47959 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/init-lsb-other @@ -0,0 +1,22 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: lsb-other +# Required-Start: $local_fs $remote_fs +# Required-Stop: $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Description: This is another LSB script test, which has a missing +# Short-Description. +### END INIT INFO + +case "$1" in + start|stop|restart|reload|force-reload) + echo "Blah" + ;; + *) + echo "Usage: foo start" >&2 + exit 3 + ;; +esac + +: diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/init-no-lsb b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/init-no-lsb new file mode 100644 index 00000000..6b994dd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/init-no-lsb @@ -0,0 +1,17 @@ +#! /bin/sh +# No LSB section, but otherwise okay. (Well, the messages are bad, but we +# don't check that yet.) + +case "$1" in + start) + echo "Blah starting" + ;; + stop) + echo "Blah stopping" + ;; + restart|force-reload) + echo "Blah restarting" + ;; +esac + +: diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/init-skeleton b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/init-skeleton new file mode 100644 index 00000000..c868508f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/init-skeleton @@ -0,0 +1,150 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: skeleton +# Required-Start: $local_fs $remote_fs +# Required-Stop: $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: S 0 1 6 +# Short-Description: Example Lintian initscript +# Description: This file should be used to construct scripts to be +# placed in /etc/init.d. +### END INIT INFO + +# Do NOT "set -e" + +# PATH should only include /usr/* if it runs after the mountnfs.sh script +PATH=/usr/sbin:/usr/bin:/sbin:/bin +DESC="Description of the service" +NAME=daemonexecutablename +DAEMON=/usr/sbin/$NAME +DAEMON_ARGS="--options args" +PIDFILE=/var/run/$NAME.pid +SCRIPTNAME=/etc/init.d/$NAME + +# Exit if the package is not installed +[ -x "$DAEMON" ] || exit 0 + +# Read configuration variable file if it is present +[ -r /etc/default/$NAME ] && . /etc/default/$NAME + +# Load the VERBOSE setting and other rcS variables +[ -f /etc/default/rcS ] && . /etc/default/rcS + +# Define LSB log_* functions. +# Depend on lsb-base (>= 3.0-6) to ensure that this file is present. +. /lib/lsb/init-functions + +# +# Function that starts the daemon/service +# +do_start() +{ + # Return + # 0 if daemon has been started + # 1 if daemon was already running + # 2 if daemon could not be started + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ + || return 1 + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ + $DAEMON_ARGS \ + || return 2 + # Add code here, if necessary, that waits for the process to be ready + # to handle requests from services started subsequently which depend + # on this one. As a last resort, sleep for some time. +} + +# +# Function that stops the daemon/service +# +do_stop() +{ + # Return + # 0 if daemon has been stopped + # 1 if daemon was already stopped + # 2 if daemon could not be stopped + # other if a failure occurred + start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME + RETVAL="$?" + [ "$RETVAL" = 2 ] && return 2 + # Wait for children to finish too if this is a daemon that forks + # and if the daemon is only ever run from this initscript. + # If the above conditions are not satisfied then add some other code + # that waits for the process to drop all resources that could be + # needed by services started subsequently. A last resort is to + # sleep for some time. + start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON + [ "$?" = 2 ] && return 2 + # Many daemons don't delete their pidfiles when they exit. + rm -f $PIDFILE + return "$RETVAL" +} + +# +# Function that sends a SIGHUP to the daemon/service +# +do_reload() { + # + # If the daemon can reload its configuration without + # restarting (for example, when it is sent a SIGHUP), + # then implement that here. + # + start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME + return 0 +} + +case "$1" in + start) + [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" + do_start + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + stop) + [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" + do_stop + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + #reload|force-reload) + # + # If do_reload() is not implemented then leave this commented out + # and leave 'force-reload' as an alias for 'restart'. + # + #log_daemon_msg "Reloading $DESC" "$NAME" + #do_reload + #log_end_msg $? + #;; + restart|force-reload) + # + # If the "reload" option is implemented then remove the + # 'force-reload' alias + # + log_daemon_msg "Restarting $DESC" "$NAME" + do_stop + case "$?" in + 0|1) + do_start + case "$?" in + 0) log_end_msg 0 ;; + 1) log_end_msg 1 ;; # Old process is still running + *) log_end_msg 1 ;; # Failed to start + esac + ;; + *) + # Failed to stop + log_end_msg 1 + ;; + esac + ;; + *) + #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 + exit 3 + ;; +esac + +: diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/jruby-broken b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/jruby-broken new file mode 100644 index 00000000..56f574df --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/jruby-broken @@ -0,0 +1,2 @@ +#!/usr/bin/jruby +# There's no non-versioned jruby, so this should be an error. diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/lefty-foo b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/lefty-foo new file mode 100644 index 00000000..52c003ed --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/lefty-foo @@ -0,0 +1,2 @@ +#!/usr/local/bin/lefty + diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/make-foo b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/make-foo new file mode 100644 index 00000000..6b787b50 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/make-foo @@ -0,0 +1,3 @@ +#!/usr/bin/make + + diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/perl-bizarre-1 b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/perl-bizarre-1 new file mode 100644 index 00000000..fc632c85 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/perl-bizarre-1 @@ -0,0 +1,11 @@ +#! /bin/sh +eval '(exit $?0)' && eval 'PERL_BADLANG=x;export PERL_BADLANG;: \ +;exec perl -x -S -- "$0" ${1+"$@"};#'if 0; +eval 'setenv PERL_BADLANG x;exec perl -x -S -- "$0" $argv:q;#'.q+ +#!perl -w +package Htex::a2ping; $0=~/(.*)/s;unshift@INC,'.';do($1);die$@if$@;__END__+if !1; +# This Perl script was generated by JustLib2 at Wed Apr 23 09:14:13 2003. +# Don't touch/remove any lines above; http://www.inf.bme.hu/~pts/justlib + +# The above was actually seen in the wild and stresses the +# script_is_evil_and_wrong test. diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/perl-bizarre-2 b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/perl-bizarre-2 new file mode 100644 index 00000000..afd9cfe5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/perl-bizarre-2 @@ -0,0 +1,7 @@ +#!/bin/sh +eval 'exec /usr/bin/perl -wS $0 ${1+"$@"}' + if $running_under_some_shell; + +# I'm someone following perlrun except without using the Perl #! line. +# Now something to choke bash. +while (<>) { if (/%#/) { print } } diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/perl-bizarre-3 b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/perl-bizarre-3 new file mode 100644 index 00000000..44baf75e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/perl-bizarre-3 @@ -0,0 +1,6 @@ +eval '(exit $?0)' && eval 'exec perl -wS $0 ${1+"$@"}' +& eval 'exec /usr/bin/perl -wS $0 $argv:q' + if $running_under_some_shell; + +# More utterly bizarreness from perlrun. This one even doesn't work if +# there's a valid #! line on the first line. I don't understand why.... diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/perlfoo b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/perlfoo new file mode 100644 index 00000000..5b27ed0b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/perlfoo @@ -0,0 +1,3 @@ +#! /usr/bin/perl + +print "Hello, World!"; diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/phpenvfoo b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/phpenvfoo new file mode 100644 index 00000000..cbbfb2eb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/phpenvfoo @@ -0,0 +1,7 @@ +#!/usr/bin/env php + + +Dumb PHP script + + + diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/phpfoo b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/phpfoo new file mode 100644 index 00000000..e0595e65 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/phpfoo @@ -0,0 +1,7 @@ +#!/usr/bin/php + + +Dumb PHP script + + + diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/rubyfoo b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/rubyfoo new file mode 100644 index 00000000..80246058 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/rubyfoo @@ -0,0 +1,4 @@ +#!/bin/ruby1.8 + +# Ok, that example is really pathetic, but until we have +# some better code in checks/scripts, it will do diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/sh-broken b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/sh-broken new file mode 100644 index 00000000..7b790744 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/sh-broken @@ -0,0 +1,2 @@ +#!/bin/sh +if fi diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/suidperlfoo b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/suidperlfoo new file mode 100644 index 00000000..bcbc471d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/suidperlfoo @@ -0,0 +1,3 @@ +#! /usr/bin/suidperl + +print "Hello, World!"; diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/tkfoo b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/tkfoo new file mode 100755 index 00000000..533595a5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/tkfoo @@ -0,0 +1,31 @@ +#!/bin/sh +# +# Insane amount of empty lines and comments + +# +# +# +# + +# +# + +# +# +# + +# +# + +# +# This line makes the next one a comment in Tcl \ +exec wish "$0" -- ${1+"$@"} + +# lintian should not check the following for syntax +# if it detects the line above correctly +# Code snippet taken from eTkTab + +if { [array names prefs keybindings] != "" } { + # Read in the file + array set unparsed_bindings [ read_settings_file $prefs(keybindings)] +} diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/wishfoo b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/wishfoo new file mode 100644 index 00000000..035c9ad1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/wishfoo @@ -0,0 +1,4 @@ +#!/usr/bin/wish +# +# This is not actually a wish script, here to force a test of wish +# dependencies. diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/xsession-test b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/xsession-test new file mode 100644 index 00000000..ca49d729 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/legacy-scripts/xsession-test @@ -0,0 +1,3 @@ +#!/bin/sh + +echo "Foo." diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/md5sums-empty/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/control-files/md5sums-empty/ORIGIN new file mode 100644 index 00000000..8c08719b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/md5sums-empty/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/control-files/md5sums-empty + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/md5sums-empty/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/control-files/md5sums-empty/debian/changelog new file mode 100644 index 00000000..ea5f4bf2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/md5sums-empty/debian/changelog @@ -0,0 +1,17 @@ +md5sums-empty (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: md5sums-empty + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +md5sums-empty (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: md5sums-empty + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/md5sums-empty/debian/control b/packages/debmagic/tests/lintian-parity/checks/control-files/md5sums-empty/debian/control new file mode 100644 index 00000000..555c1add --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/md5sums-empty/debian/control @@ -0,0 +1,17 @@ +Source: md5sums-empty +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: md5sums-empty +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test of empty md5sums file + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/md5sums-empty/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/control-files/md5sums-empty/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/md5sums-empty/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/md5sums-empty/debian/rules b/packages/debmagic/tests/lintian-parity/checks/control-files/md5sums-empty/debian/rules new file mode 100644 index 00000000..2bcc816a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/md5sums-empty/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f + +TMP=debian/$(shell dh_listpackages) + +%: + dh $@ + +override_dh_builddeb: + :>$(TMP)/DEBIAN/md5sums + dh_builddeb diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/md5sums-empty/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/control-files/md5sums-empty/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/md5sums-empty/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/md5sums-empty/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/control-files/md5sums-empty/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/md5sums-empty/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/md5sums-empty/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/control-files/md5sums-empty/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/md5sums-empty/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/md5sums-empty/eval/hints b/packages/debmagic/tests/lintian-parity/checks/control-files/md5sums-empty/eval/hints new file mode 100644 index 00000000..77e5018a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/md5sums-empty/eval/hints @@ -0,0 +1 @@ +md5sums-empty (binary): no-ctrl-scripts diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/DEBIAN/control b/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/DEBIAN/control new file mode 100644 index 00000000..97a5fffd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/DEBIAN/control @@ -0,0 +1,12 @@ +Package: unpack-numerical-owner +Version: 1.0 +Architecture: all +Maintainer: Debian Lintian Maintainers +Section: devel +Priority: optional +Description: Test for tarballs with numerical owner only + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/Makefile b/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/Makefile new file mode 100644 index 00000000..c8d4c640 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/Makefile @@ -0,0 +1,121 @@ +ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) + +name = unpack-numerical-owner + +package = $(name).deb + +datadir = $(ROOT_DIR)/root +controldir = $(ROOT_DIR)/DEBIAN + +builddir = build +debiandir = $(builddir)/DEBIAN +rootdir = $(builddir)/root +docdir = $(rootdir)/usr/share/doc/$(name) + +mandatorydir = $(ROOT_DIR)/doc +changelogfile = $(mandatorydir)/changelog +copyrightfile = $(mandatorydir)/copyright + +version = 1.0 + +ifeq "$(findstring -, $(version))" "" +changelogtarget = $(docdir)/changelog +else +changelogtarget = $(docdir)/changelog.Debian +endif + +pre_build = $(ROOT_DIR)/pre-build +pre_data = $(ROOT_DIR)/pre-data +tar_data = $(ROOT_DIR)/tar-data +pre_control = $(ROOT_DIR)/pre-control +tar_control = $(ROOT_DIR)/tar-control +post_build = $(ROOT_DIR)/post-build + +deb_member_source_path = $(ROOT_DIR)/members +deb_member_build_path = members + +debmembers = $(shell tr '\n' ' ' < $(ROOT_DIR)/deb-members) +controlmembers = $(shell tr '\n' ' ' < $(ROOT_DIR)/control-members) + +$(package): fix-perm + -mkdir -p $(deb_member_build_path) + if [ -d $(deb_member_source_path) \ + -a $(deb_member_source_path) != $(deb_member_build_path) ] ; then \ + cp -rp $(deb_member_source_path)/. $(deb_member_build_path) ; \ + fi + + -mkdir -p $(rootdir) + if [ -d $(datadir) ] ; then \ + cp -rp $(datadir)/. $(rootdir) ; \ + fi + + if [ -x $(pre_build) ] ; then \ + $(pre_build) "$(rootdir)" "$(name)" ; \ + fi + + -mkdir -p $(docdir) + -if [ -f $(changelogfile) ] ; then \ + install --mode 0644 $(changelogfile) $(changelogtarget) ; \ + gzip -9nf $(changelogtarget) ; \ + fi + if [ -f $(copyrightfile) ] ; then \ + install --mode 0644 $(copyrightfile) $(docdir) ; \ + fi + + # pass package name to pre-data script + if [ -x $(pre_data) ] ; then \ + $(pre_data) "$(rootdir)" "$(name)" ; \ + fi + + if [ -x $(tar_data) ] ; then \ + $(tar_data) "$(rootdir)" ; \ + fi + + -mkdir $(debiandir) + if [ -d $(controldir) ] ; then \ + cp -rp $(controldir)/. $(debiandir) ; \ + fi + + # prevents 'control-file-has-bad-permissions' on CI runners with strange umasks + find $(debiandir) -type d -exec chmod 0755 \{\} + + find $(debiandir) -type f -exec chmod 0644 \{\} + + + (cd $(rootdir); find . -type f -a -! -ipath etc -exec md5sum -- \{\} +) > $(debiandir)/md5sums + + # pass package name to pre-control script + if [ -x $(pre_control) ] ; then \ + $(pre_control) "$(debiandir)" "$(name)" ; \ + fi + if [ -x $(tar_control) ] ; then \ + $(tar_control) "$(debiandir)" "$(controlmembers)" ; \ + fi + + ar rc $(package) $(debmembers) + + # pass package name to post-build script + if [ -x $(post_build) ] ; then \ + $(post_build) "$(name)" ; \ + fi + + +.PHONY: clean +clean: + rm -f $(package) + rm -rf $(builddir) + +# If root/ exists, it is because the test ships with it. Since the +# test may have been checked out (or unpacked) with a "whack umask" +# (anything but 0022), we reset the permissions to a reasonable +# default. +# +# The contents of the deb usually is not what is tested by this suite +# (t/tests is preferred for this), so the below merely handles the +# AVERAGE CASE. Tests that need special permissions (anything but +# 0644 for files and 0755 for dirs) require manually setting the +# permissions. +.PHONY: fix-perm +fix-perm: + if [ -d $(datadir) ] ; then \ + find $(datadir) -type d | xargs -r chmod 0755 ; \ + find $(datadir) -type f | xargs -r chmod 0644 ; \ + fi diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/ORIGIN new file mode 100644 index 00000000..f7d4801b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/control-files/unpack-numerical-owner +Skeleton: deb + +Filled test-package sources from t/templates + t/skeletons and the +build-spec overlay. Does not build .deb / .dsc / .changes; tests do that. +eval/hints is transcribed verbatim. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/control-members b/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/control-members new file mode 100644 index 00000000..cf97afed --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/control-members @@ -0,0 +1,2 @@ +control +md5sums diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/deb-members b/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/deb-members new file mode 100644 index 00000000..57c72d44 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/deb-members @@ -0,0 +1,3 @@ +members/debian-binary +members/control.tar.gz +members/data.tar.gz diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/doc/changelog b/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/doc/changelog new file mode 100644 index 00000000..826a4892 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/doc/changelog @@ -0,0 +1,17 @@ +unpack-numerical-owner (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: unpack-numerical-owner + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +unpack-numerical-owner (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: unpack-numerical-owner + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/doc/copyright b/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/doc/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/doc/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/eval/desc b/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/eval/desc new file mode 100644 index 00000000..535eb15f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/eval/desc @@ -0,0 +1,3 @@ +Testname: unpack-numerical-owner +Test-Against: control-file-has-bad-owner +Check: control-files diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/eval/hints b/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/eval/hints new file mode 100644 index 00000000..60d1461f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/eval/hints @@ -0,0 +1 @@ +unpack-numerical-owner (binary): no-ctrl-scripts diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/members/debian-binary b/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/members/debian-binary new file mode 100644 index 00000000..cd5ac039 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/members/debian-binary @@ -0,0 +1 @@ +2.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/tar-control b/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/tar-control new file mode 100755 index 00000000..19b6369c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/tar-control @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e + +debiandir="$1" +controlmembers="$2" + +tar --create --file members/control.tar.gz --gzip --numeric-owner --directory "$debiandir" $controlmembers diff --git a/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/tar-data b/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/tar-data new file mode 100755 index 00000000..56598224 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/control-files/unpack-numerical-owner/tar-data @@ -0,0 +1,7 @@ +#!/bin/sh + +set -e + +rootdir="$1" + +tar --create --file members/data.tar.gz --gzip --numeric-owner --directory "$rootdir" . diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/ORIGIN new file mode 100644 index 00000000..41f3d888 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/cron/files-bad-perm-owner + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/README b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/README new file mode 100644 index 00000000..336f590a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/README @@ -0,0 +1 @@ +Hallo World diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/binary.docs b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/binary.docs new file mode 100644 index 00000000..42f92eaa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/binary.docs @@ -0,0 +1,3 @@ +read-only +README +some-file diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/binary.init b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/binary.init new file mode 100644 index 00000000..4ebbdf5b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/binary.init @@ -0,0 +1,21 @@ +#!/bin/sh + +set -e + +### BEGIN INIT INFO +# Provides: binary +# Required-Start: +# Required-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Useless +# Description: Does nothing +### END INIT INFO + +. /lib/lsb/init-functions + +case "$1" in + start|stop|force-reload|restart|status|*) + echo hello world + ;; +esac diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/binary.install b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/binary.install new file mode 100644 index 00000000..c759290e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/binary.install @@ -0,0 +1,9 @@ +sample.ali usr/lib/some-where/ +script-uid usr/bin/ +script-ugid usr/bin/ +script-gid usr/bin/ +script-wexec usr/bin/ +script-wuid usr/bin/ +script-ro usr/bin/ +script etc/cron.d/ +script etc/emacs.d/ diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/binary.manpages b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/binary.manpages new file mode 100644 index 00000000..ad3e7357 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/binary.manpages @@ -0,0 +1 @@ +script-*.1 diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/changelog new file mode 100644 index 00000000..2ea4347b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/changelog @@ -0,0 +1,17 @@ +files-bad-perm-owner (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: files-bad-perm-owner + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +files-bad-perm-owner (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: files-bad-perm-owner + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/clean b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/clean new file mode 100644 index 00000000..1e7cec6a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/clean @@ -0,0 +1 @@ +script*.1 diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/control b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/control new file mode 100644 index 00000000..5494612d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/control @@ -0,0 +1,30 @@ +Source: files-bad-perm-owner +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: binary-targets + +Package: binary +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${misc:Depends}, lsb-base (>= 3.0-6) +Description: General permissions and owner tests + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: game +Architecture: all +Section: games +Depends: ${misc:Depends} +Description: General permissions and owner tests - game + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + Game package. + diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/game.install b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/game.install new file mode 100644 index 00000000..f708f99b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/game.install @@ -0,0 +1 @@ +script usr/games/ diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/game.manpages b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/game.manpages new file mode 100644 index 00000000..8d16fb4e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/game.manpages @@ -0,0 +1 @@ +script.1 diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/rules b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/rules new file mode 100644 index 00000000..951f84c3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/rules @@ -0,0 +1,31 @@ +#!/usr/bin/make -f + +GPKG:=game +PKG:=binary + +%: + dh $@ + +override_dh_auto_build: + for N in uid gid ugid wexec wuid ro; do \ + sed s/script/script-$$N/ < script > script-$$N ; \ + pod2man --section 1 script-$$N > script-$$N.1 ; \ + done + pod2man --section 1 script > script.1 + +override_dh_fixperms: + dh_fixperms + + chmod 0444 debian/$(PKG)/usr/share/doc/$(PKG)/read-only + chmod 4755 debian/$(PKG)/usr/bin/script-uid + chmod 2755 debian/$(PKG)/usr/bin/script-gid + chmod 6755 debian/$(PKG)/usr/bin/script-ugid + chmod 0775 debian/$(PKG)/usr/bin/script-wexec + chmod 4744 debian/$(PKG)/usr/bin/script-wuid + chmod 0751 debian/$(PKG)/usr/bin/script-ro + chmod 0644 debian/$(PKG)/usr/lib/some-where/sample.ali + chmod 0744 debian/$(PKG)/usr/share/doc/$(PKG) + chmod 0755 debian/$(PKG)/usr/share/doc/$(PKG)/some-file + chmod 0755 debian/$(PKG)/etc/cron.d/script + chmod 0755 debian/$(PKG)/etc/emacs.d/script + chmod 0765 debian/$(PKG)/etc/init.d/binary diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/eval/hints b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/eval/hints new file mode 100644 index 00000000..c371cc7b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/eval/hints @@ -0,0 +1 @@ +binary (binary): bad-permissions-for-etc-cron.d-script 0755 != 0644 [etc/cron.d/script] diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/read-only b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/read-only new file mode 100644 index 00000000..1a3fca16 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/read-only @@ -0,0 +1 @@ +Fadango on the core diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/sample.ali b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/sample.ali new file mode 100644 index 00000000..fec3fc83 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/sample.ali @@ -0,0 +1 @@ +This is not a valid ali file diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/script b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/script new file mode 100755 index 00000000..85210133 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/script @@ -0,0 +1,20 @@ +#!/bin/sh + +set -e + +echo "Aloha" + +exit 0 + +=head1 NAME + +script -- prints Aloha to stdout + +=head1 SYNOPSIS + + script + +=head1 DESCRIPTION + +Prints Aloha to stdout and that is it. + diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/some-file b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/some-file new file mode 100644 index 00000000..0dfa8ff7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/files-bad-perm-owner/some-file @@ -0,0 +1,2 @@ +This is executable and should not be. :) + - Unfortunately it triggers an extra tag... oh well. diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/ORIGIN new file mode 100644 index 00000000..4c970855 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/cron/files-foo-violates-expected-naming + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/_bad-pkcs11.module b/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/_bad-pkcs11.module new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/cron-script.hourly b/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/cron-script.hourly new file mode 100755 index 00000000..ad6e1292 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/cron-script.hourly @@ -0,0 +1,3 @@ +#!/bin/sh + +echo "Hallo World" diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/debian/changelog new file mode 100644 index 00000000..b0ec43a8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/debian/changelog @@ -0,0 +1,17 @@ +files-foo-violates-expected-naming (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: files-foo-violates-expected-naming + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +files-foo-violates-expected-naming (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: files-foo-violates-expected-naming + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/debian/control b/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/debian/control new file mode 100644 index 00000000..16f27e5a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/debian/control @@ -0,0 +1,17 @@ +Source: files-foo-violates-expected-naming +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: files-foo-violates-expected-naming +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test naming conventions not being followed + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/debian/install b/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/debian/install new file mode 100644 index 00000000..02c3f92b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/debian/install @@ -0,0 +1,2 @@ +_bad-pkcs11.module usr/share/p11-kit/modules/ +cron-script.hourly etc/cron.hourly/ diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/debian/rules b/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/eval/hints b/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/eval/hints new file mode 100644 index 00000000..7d9bb337 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/files-foo-violates-expected-naming/eval/hints @@ -0,0 +1 @@ +files-foo-violates-expected-naming (binary): run-parts-cron-filename-contains-illegal-chars [etc/cron.hourly/cron-script.hourly] diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/ORIGIN new file mode 100644 index 00000000..e33f2f63 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/cron/legacy-etcfiles + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/debian/README.Debian b/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/debian/README.Debian new file mode 100644 index 00000000..e289bfb2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/debian/README.Debian @@ -0,0 +1,5 @@ +this is a package to test lintian's handling of files in /etc. +Also, there's a random mention of /usr/doc here to prompt a warning. +But /usr/documentation doesn't. + + -- Russ Allbery , Mon, 18 Feb 2008 16:40:55 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/debian/changelog new file mode 100644 index 00000000..4f047b64 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/debian/changelog @@ -0,0 +1,7 @@ +etcfiles (1) unstable; urgency=low + + * Acknowledge NMU (Closes: #123456). + * initial setup + + -- Lintian Maintainers Fri, 21 Sep 2001 11:56:02 -0700 + diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/debian/conffiles b/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/debian/conffiles new file mode 100644 index 00000000..76032b78 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/debian/conffiles @@ -0,0 +1,5 @@ +/etc/proper +/var/lib/foo +/etc/cron.daily/cronfile-normal +/etc/cron.daily/.cronfile-begins-with-fullstop +/etc/cron.daily/cronfile-contains.fullstop diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/debian/conffiles.only b/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/debian/conffiles.only new file mode 100644 index 00000000..a4b38954 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/debian/conffiles.only @@ -0,0 +1,2 @@ +/etc/etcfiles/foo +/etc/etcfiles/bar diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/debian/control b/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/debian/control new file mode 100644 index 00000000..f3dbda7f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/debian/control @@ -0,0 +1,20 @@ +Source: etcfiles +Section: misc +Priority: optional +Maintainer: Lintian Maintainers +Standards-Version: 3.5.0 + +Package: etcfiles +Architecture: any +Depends: ${shlibs:Depends} +Description: test handling of files in /etc + Regression test for lintian's handling of files in /etc. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: only-etcfiles +Architecture: all +Depends: etcfiles (= ${source:Version}) +Description: test handling of conffile-only package diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/debian/rules b/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/debian/rules new file mode 100755 index 00000000..97ff09fc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/debian/rules @@ -0,0 +1,64 @@ +#!/usr/bin/make -f + +tmp=debian/tmp +tmponly=debian/only-etcfiles + +clean: + rm -f debian/files debian/substvars + rm -rf debian/tmp + rm -rf debian/only-etcfiles + +build: +build-arch: +build-indep: +binary-indep: + install -d $(tmp)/etc + install -m 644 proper $(tmp)/etc + install -m 644 improper $(tmp)/etc + mkdir $(tmp)/etc/cron.daily + touch $(tmp)/etc/cron.daily/cronfile-normal + touch $(tmp)/etc/cron.daily/.cronfile-begins-with-fullstop + touch $(tmp)/etc/cron.daily/cronfile-contains.fullstop + ln $(tmp)/etc/improper $(tmp)/etc/improper-link + install -d $(tmp)/usr/share/doc/etcfiles + install -d $(tmp)/var/lib + install -m 644 proper $(tmp)/var/lib/foo + install -m 644 debian/README.Debian $(tmp)/usr/share/doc/etcfiles + install -m 644 debian/changelog $(tmp)/usr/share/doc/etcfiles + #gzip -9 $(tmp)/usr/share/doc/etcfiles/changelog + install -d $(tmp)/DEBIAN + install -m 644 debian/conffiles $(tmp)/DEBIAN + + echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/cronfile-normal' \ + > debian/tmp/DEBIAN/md5sums + echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/.cronfile-begins-with-fullstop' \ + >> debian/tmp/DEBIAN/md5sums + echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/cronfile-contains.fullstop' \ + >> debian/tmp/DEBIAN/md5sums + echo '05c72cacce994208128b7d081116b04a ./etc/proper' \ + >> debian/tmp/DEBIAN/md5sums + echo 'ab371382468880299e5ebd05921764ce etc/improper' \ + >> debian/tmp/DEBIAN/md5sums + echo 'ab371382468880299e5ebd05921764ce usr/bin/foo' \ + >> debian/tmp/DEBIAN/md5sums + echo 'this is a malformed line' \ + >> debian/tmp/DEBIAN/md5sums + echo '56fb27e455dd86d8801f1ecd3a4cee49 usr/share/doc/etcfiles/README.Debian' \ + >> debian/tmp/DEBIAN/md5sums + + install -d $(tmponly)/etc/etcfiles + touch $(tmponly)/etc/etcfiles/foo + touch $(tmponly)/etc/etcfiles/bar + install -d $(tmponly)/usr/share/doc + cd $(tmponly)/usr/share/doc && ln -s etcfiles only-etcfiles + install -d $(tmponly)/DEBIAN + install -m 644 debian/conffiles.only $(tmponly)/DEBIAN/conffiles + + dpkg-gencontrol -isp -petcfiles + dpkg-gencontrol -isp -ponly-etcfiles -P$(tmponly) + dpkg --build $(tmp) .. + dpkg --build $(tmponly) .. + +binary: binary-indep + +.PHONY: binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/eval/hints b/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/eval/hints new file mode 100644 index 00000000..733886c7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/eval/hints @@ -0,0 +1 @@ +etcfiles (binary): run-parts-cron-filename-contains-illegal-chars [etc/cron.daily/cronfile-contains.fullstop] diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/improper b/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/improper new file mode 100644 index 00000000..23656f41 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/improper @@ -0,0 +1,2 @@ +[config] + var = value \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/proper b/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/proper new file mode 100644 index 00000000..f3dc68bf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cron/legacy-etcfiles/proper @@ -0,0 +1,2 @@ +# i am a config file +foo = var \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/ORIGIN new file mode 100644 index 00000000..14e45554 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/cruft/cruft-autogenerated + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/debian/changelog new file mode 100644 index 00000000..4fe659cb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/debian/changelog @@ -0,0 +1,17 @@ +cruft-autogenerated (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-autogenerated + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +cruft-autogenerated (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-autogenerated + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/debian/control b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/debian/control new file mode 100644 index 00000000..22c9ecdf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/debian/control @@ -0,0 +1,17 @@ +Source: cruft-autogenerated +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: cruft-autogenerated +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for autogenerated file + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/debian/rules b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/eval/hints b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/eval/hints new file mode 100644 index 00000000..3003675d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/eval/hints @@ -0,0 +1,4 @@ +cruft-autogenerated (source): source-contains-data-from-ieee-data-oui-db [src/oui.db/oui.db] +cruft-autogenerated (source): source-contains-autogenerated-visual-c++-file [src/visualc++/positive.cpp] +cruft-autogenerated (source): source-contains-autogenerated-gperf-data [src/gperf/gperf.cpp] +cruft-autogenerated (source): source-contains-autogenerated-gperf-data [src/gperf/gperf.c] diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/src/gperf/gperf.c b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/src/gperf/gperf.c new file mode 100644 index 00000000..115d756d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/src/gperf/gperf.c @@ -0,0 +1 @@ +/* ANSI-C code produced by gperf version 2.7.2 */ diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/src/gperf/gperf.cpp b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/src/gperf/gperf.cpp new file mode 100644 index 00000000..8971eafc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/src/gperf/gperf.cpp @@ -0,0 +1 @@ +/* C++ code produced by gperf version 3.0.3 */ diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/src/oui.db/oui.db b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/src/oui.db/oui.db new file mode 100644 index 00000000..ebf41068 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/src/oui.db/oui.db @@ -0,0 +1,20 @@ +# part of oui database + +00-00-56 (hex) DR. B. STRUCK +000056 (base 16) DR. B. STRUCK + POB 1147 BAECKERBARG 6 + D-2000 TANGSTEDT/HAMBURG + W-GERMANY + GERMANY + +00-00-57 (hex) SCITEX CORPORATION LTD. +000057 (base 16) SCITEX CORPORATION LTD. + P.O. BOX 330 + 46103 HERZLIA B + ISRAEL + +00-00-58 (hex) RACORE COMPUTER PRODUCTS INC. +000058 (base 16) RACORE COMPUTER PRODUCTS INC. + 2355 SOUTH 1070 WEST + SALT LAKE CITY UT 84119 + UNITED STATES \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/src/visualc++/negative.py b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/src/visualc++/negative.py new file mode 100644 index 00000000..3c7da652 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/src/visualc++/negative.py @@ -0,0 +1,5 @@ +def realwork(vars, moddefns, target): + version_suffix = "%r%r" % sys.version_info[:2] + print "# Makefile for Microsoft Visual C++ generated by freeze.py script" + print + print 'target = %s' % target \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/src/visualc++/positive.cpp b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/src/visualc++/positive.cpp new file mode 100644 index 00000000..5d3f004c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-autogenerated/src/visualc++/positive.cpp @@ -0,0 +1,4 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ generated include file. +// Used by vtkDLG.rc +// \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/ORIGIN new file mode 100644 index 00000000..0727e0a9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/cruft/cruft-cc-by-nc-sa + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/debian/changelog new file mode 100644 index 00000000..7bb0dae2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/debian/changelog @@ -0,0 +1,17 @@ +cruft-cc-by-nc-sa (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-cc-by-nc-sa + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +cruft-cc-by-nc-sa (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-cc-by-nc-sa + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/debian/control b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/debian/control new file mode 100644 index 00000000..19bf2ec8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/debian/control @@ -0,0 +1,17 @@ +Source: cruft-cc-by-nc-sa +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: cruft-cc-by-nc-sa +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for the creative common cc by sa + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/debian/rules b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/eval/hints b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/eval/hints new file mode 100644 index 00000000..60ac3e73 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/eval/hints @@ -0,0 +1,4 @@ +cruft-cc-by-nc-sa (source): license-problem-cc-by-nc-sa [src/test.xml] +cruft-cc-by-nc-sa (source): license-problem-cc-by-nc-sa [src/test.svg] +cruft-cc-by-nc-sa (source): license-problem-cc-by-nc-sa [src/copyright-header.html] +cruft-cc-by-nc-sa (source): license-problem-cc-by-nc-sa [src/ISI_export_format.html] diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/src/ISI_export_format.html b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/src/ISI_export_format.html new file mode 100644 index 00000000..fd6df9cb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/src/ISI_export_format.html @@ -0,0 +1,8 @@ + + + +Some title + + +Content is available under Attribution-NonCommercial-ShareAlike 3.0 Unported + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/src/copyright-header.html b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/src/copyright-header.html new file mode 100644 index 00000000..67f778ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/src/copyright-header.html @@ -0,0 +1,9 @@ + + + +Test + + +test + + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/src/test.svg b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/src/test.svg new file mode 100644 index 00000000..02796b5a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/src/test.svg @@ -0,0 +1,53 @@ + + + + File + + + + + image/svg+xml + + File + 2014-09-12 + + + Bastien Roucariès + + + + + + + + + + + + + + + + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/src/test.xml b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/src/test.xml new file mode 100644 index 00000000..b0ca0987 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-cc-by-nc-sa/src/test.xml @@ -0,0 +1,9 @@ + + + \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-evil-json/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-evil-json/ORIGIN new file mode 100644 index 00000000..040d534b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-evil-json/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/cruft/cruft-evil-json + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-evil-json/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-evil-json/debian/changelog new file mode 100644 index 00000000..83c3631b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-evil-json/debian/changelog @@ -0,0 +1,17 @@ +cruft-evil-json (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-evil-json + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +cruft-evil-json (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-evil-json + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-evil-json/debian/control b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-evil-json/debian/control new file mode 100644 index 00000000..6b5b340d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-evil-json/debian/control @@ -0,0 +1,17 @@ +Source: cruft-evil-json +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: cruft-evil-json +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for the "Evil JSON" license + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-evil-json/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-evil-json/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-evil-json/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-evil-json/debian/rules b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-evil-json/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-evil-json/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-evil-json/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-evil-json/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-evil-json/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-evil-json/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-evil-json/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-evil-json/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-evil-json/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-evil-json/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-evil-json/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-evil-json/eval/hints b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-evil-json/eval/hints new file mode 100644 index 00000000..a62e7899 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-evil-json/eval/hints @@ -0,0 +1 @@ +cruft-evil-json (source): license-problem-json-evil [src/evil.c] diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-evil-json/src/evil.c b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-evil-json/src/evil.c new file mode 100644 index 00000000..e95dfd23 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-evil-json/src/evil.c @@ -0,0 +1,10 @@ +/** + * The non-free pet-phase in the JSON license that triggers + * the Lintian tag. + * + * "The software shall be used for good, not evil" + */ + +int main() { + return 0; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/.arch-inventory b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/.arch-inventory new file mode 100644 index 00000000..f564fd19 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/.arch-inventory @@ -0,0 +1 @@ +source-contains-arch-inventory-file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/.be/foo b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/.be/foo new file mode 100644 index 00000000..ffc2bd59 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/.be/foo @@ -0,0 +1 @@ +source-contains-bts-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/.bzr/foo b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/.bzr/foo new file mode 100644 index 00000000..20eb04e0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/.bzr/foo @@ -0,0 +1 @@ +source-contains-bzr-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/.hg/foo b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/.hg/foo new file mode 100644 index 00000000..0c10a1a6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/.hg/foo @@ -0,0 +1 @@ +source-contains-hg-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/.hgtags b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/.hgtags new file mode 100644 index 00000000..52803789 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/.hgtags @@ -0,0 +1 @@ +source-contains-hg-tags-file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/.svn/format b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/.svn/format new file mode 100644 index 00000000..695e71ed --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/.svn/format @@ -0,0 +1 @@ +source-contains-svn-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/CVS/Entries b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/CVS/Entries new file mode 100644 index 00000000..029cdeff --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/CVS/Entries @@ -0,0 +1 @@ +source-contains-cvs-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/ORIGIN new file mode 100644 index 00000000..7aa168bf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/cruft/cruft-general-upstream + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/config.cache b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/config.cache new file mode 100644 index 00000000..c9ab77bb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/config.cache @@ -0,0 +1 @@ +configure-generated-file-in-source diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/debian/changelog new file mode 100644 index 00000000..793192c3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/debian/changelog @@ -0,0 +1,17 @@ +cruft-general-upstream (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-general-upstream + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +cruft-general-upstream (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-general-upstream + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/debian/control b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/debian/control new file mode 100644 index 00000000..83e9e233 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/debian/control @@ -0,0 +1,17 @@ +Source: cruft-general-upstream +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), zip +Homepage: https://lintian.debian.org/ + +Package: cruft-general-upstream +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for cruft in the upstream source + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/debian/rules b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/debian/watch b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/eval/hints b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/eval/hints new file mode 100644 index 00000000..43d5e569 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/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 diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/fake-help-file-halibut.chm b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/fake-help-file-halibut.chm new file mode 100644 index 00000000..8ce834f3 Binary files /dev/null and b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/fake-help-file-halibut.chm differ diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/fake-help-file.chm b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/fake-help-file.chm new file mode 100644 index 00000000..1b2a1a43 Binary files /dev/null and b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/fake-help-file.chm differ diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/fake-win32-bin.exe b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/fake-win32-bin.exe new file mode 100644 index 00000000..d08c72d3 Binary files /dev/null and b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/fake-win32-bin.exe differ diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/fake.jar b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/fake.jar new file mode 100644 index 00000000..69ae9b9c Binary files /dev/null and b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/fake.jar differ diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/fake.min.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/fake.min.js new file mode 100644 index 00000000..94b857fa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/fake.min.js @@ -0,0 +1 @@ +//comment diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/fake.py b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/fake.py new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/fake.py @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/fakefla.fla b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/fakefla.fla new file mode 100644 index 00000000..50755f12 Binary files /dev/null and b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/fakefla.fla differ diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/fakeflash.swf b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/fakeflash.swf new file mode 100644 index 00000000..ee99ebda --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/fakeflash.swf @@ -0,0 +1 @@ +CWS x \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/fakeflasourced.as b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/fakeflasourced.as new file mode 100644 index 00000000..c2138ebb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/fakeflasourced.as @@ -0,0 +1 @@ +//fake .as flash \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/fakeflasourced.fla b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/fakeflasourced.fla new file mode 100644 index 00000000..50755f12 Binary files /dev/null and b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/fakeflasourced.fla differ diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/fakesilverlight.XAC b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/fakesilverlight.XAC new file mode 100644 index 00000000..69ae9b9c Binary files /dev/null and b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/fakesilverlight.XAC differ diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/foo.r1352 b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/foo.r1352 new file mode 100644 index 00000000..b51042df --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/foo.r1352 @@ -0,0 +1 @@ +source-contains-svn-conflict-file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/svk-commit444.tmp b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/svk-commit444.tmp new file mode 100644 index 00000000..9640a42d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/svk-commit444.tmp @@ -0,0 +1 @@ +source-contains-svk-commit-file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/svn-commit.tmp b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/svn-commit.tmp new file mode 100644 index 00000000..fa384930 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/svn-commit.tmp @@ -0,0 +1 @@ +source-contains-svn-commit-file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/{arch}/foo b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/{arch}/foo new file mode 100644 index 00000000..624a865f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-general-upstream/{arch}/foo @@ -0,0 +1 @@ +source-contains-arch-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-fp-sliding-win/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-fp-sliding-win/ORIGIN new file mode 100644 index 00000000..08844c73 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-fp-sliding-win/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/cruft/cruft-gfdl-fp-sliding-win + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-fp-sliding-win/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-fp-sliding-win/debian/changelog new file mode 100644 index 00000000..eb12af07 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-fp-sliding-win/debian/changelog @@ -0,0 +1,17 @@ +cruft-gfdl-fp-sliding-win (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-gfdl-fp-sliding-win + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +cruft-gfdl-fp-sliding-win (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-gfdl-fp-sliding-win + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-fp-sliding-win/debian/control b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-fp-sliding-win/debian/control new file mode 100644 index 00000000..13f6667b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-fp-sliding-win/debian/control @@ -0,0 +1,17 @@ +Source: cruft-gfdl-fp-sliding-win +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: cruft-gfdl-fp-sliding-win +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for FP with GFDL invariants sections + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-fp-sliding-win/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-fp-sliding-win/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-fp-sliding-win/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-fp-sliding-win/debian/rules b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-fp-sliding-win/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-fp-sliding-win/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-fp-sliding-win/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-fp-sliding-win/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-fp-sliding-win/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-fp-sliding-win/debian/src/good.texi b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-fp-sliding-win/debian/src/good.texi new file mode 100644 index 00000000..1134710b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-fp-sliding-win/debian/src/good.texi @@ -0,0 +1,8 @@ + +Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License, +version 1.3 or any later version published by the Free Software +Foundation; +with no Invariant Sections, no Front-Cover Texts and +no Back-Cover Texts. A copy of the license is included in the +section entitled "GNU Free Documentation License". diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-fp-sliding-win/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-fp-sliding-win/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-fp-sliding-win/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-fp-sliding-win/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-fp-sliding-win/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-fp-sliding-win/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-fp-sliding-win/eval/hints b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-fp-sliding-win/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-fp-sliding-win/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-fp-sliding-win/src/normal.texi b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-fp-sliding-win/src/normal.texi new file mode 100644 index 00000000..d9c1b545 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-fp-sliding-win/src/normal.texi @@ -0,0 +1,6 @@ +Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License, +version 1.3 or any later version published by the Free Software +Foundation; with no Invariant Sections, no Front-Cover Texts and +no Back-Cover Texts. A copy of the license is included in the +section entitled "GNU Free Documentation License". diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/ORIGIN new file mode 100644 index 00000000..0f0bd52f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/cruft/cruft-gfdl-invariants + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/debian/changelog new file mode 100644 index 00000000..dcd8abd6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/debian/changelog @@ -0,0 +1,17 @@ +cruft-gfdl-invariants (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-gfdl-invariants + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +cruft-gfdl-invariants (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-gfdl-invariants + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/debian/control b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/debian/control new file mode 100644 index 00000000..3c4e4009 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/debian/control @@ -0,0 +1,17 @@ +Source: cruft-gfdl-invariants +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: cruft-gfdl-invariants +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for GFDL invariants sections + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/debian/rules b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/eval/hints b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/eval/hints new file mode 100644 index 00000000..22e8bd3c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/eval/hints @@ -0,0 +1,37 @@ +cruft-gfdl-invariants (source): license-problem-gfdl-non-official-text invariant part is: without any invariant sections [src/oldfalsepositive/parsewiki.txt] +cruft-gfdl-invariants (source): license-problem-gfdl-non-official-text invariant part is: with the no invariant sections, with the no front-cover texts, and with no back-cover texts [src/oldfalsepositive/partedvariant.txt] +cruft-gfdl-invariants (source): license-problem-gfdl-non-official-text invariant part is: with the invariant sections being no invariant sections, with the front-cover texts being no front-cover texts, and with the back-cover texts being no back-cover texts [src/oldfalsepositive/oidentd.8] +cruft-gfdl-invariants (source): license-problem-gfdl-non-official-text invariant part is: with the front-cover texts being (none) and with the back-cover texts being (none) [src/oldfalsepositive/tla.txt] +cruft-gfdl-invariants (source): license-problem-gfdl-non-official-text invariant part is: with noinvariant sections , with no front-cover texts , and with no back-cover texts [src/oldfalsepositive/gnashfalsepositive.info] +cruft-gfdl-invariants (source): license-problem-gfdl-non-official-text invariant part is: with no invariant sections, with no front-cover texts, and with no back-cover texts [src/oldfalsepositive/patch-c0.diff] +cruft-gfdl-invariants (source): license-problem-gfdl-non-official-text invariant part is: with no invariant sections, with no front-cover texts, and with no back-cover texts [src/oldfalsepositive/make-stds.texi] +cruft-gfdl-invariants (source): license-problem-gfdl-non-official-text invariant part is: with no invariant sections, with no front-cover texts, and with no back-cover texts [src/oldfalsepositive/latexurl.tex] +cruft-gfdl-invariants (source): license-problem-gfdl-non-official-text invariant part is: with no invariant sections, with no front-cover texts, and with no back-cover texts [src/oldfalsepositive/hyphen-used-as-minus-sign.diff] +cruft-gfdl-invariants (source): license-problem-gfdl-non-official-text invariant part is: with no invariant sections, with no front-cover texts, and with no back-cover texts [src/oldfalsepositive/gfdltexcomments.tex] +cruft-gfdl-invariants (source): license-problem-gfdl-non-official-text invariant part is: with no invariant sections, with no front-cover texts, and with no back-cover texts [src/oldfalsepositive/findutilsok.c] +cruft-gfdl-invariants (source): license-problem-gfdl-non-official-text invariant part is: with no invariant sections, with no front-cover texts, and with no back-cover texts [src/oldfalsepositive/findsutilsokinlinenewline.c] +cruft-gfdl-invariants (source): license-problem-gfdl-non-official-text invariant part is: with no invariant sections, with no front-cover texts, and with no back-cover [src/oldfalsepositive/comments.po] +cruft-gfdl-invariants (source): license-problem-gfdl-non-official-text invariant part is: with no invariant sections, with no front-cover texts, and no back-cover texts [src/oldfalsepositive/texlive.tex] +cruft-gfdl-invariants (source): license-problem-gfdl-non-official-text invariant part is: with no invariant sections, with no front-cover texts and with no back-cover texts [src/oldfalsepositive/texignu.texi] +cruft-gfdl-invariants (source): license-problem-gfdl-non-official-text invariant part is: with no invariant sections, with no front-cover text, and with no back-cover texts [src/oldfalsepositive/clisp.txt] +cruft-gfdl-invariants (source): license-problem-gfdl-non-official-text invariant part is: with no invariant sections, no front-cover, and no back-cover texts [src/oldfalsepositive/mailutils.texi] +cruft-gfdl-invariants (source): license-problem-gfdl-non-official-text invariant part is: with no invariant sections, no front-cover and back-cover texts [src/oldfalsepositive/cflow.texi] +cruft-gfdl-invariants (source): license-problem-gfdl-non-official-text invariant part is: with no invariant sections, front-cover or back-cover texts [src/oldfalsepositive/opentoken.txt] +cruft-gfdl-invariants (source): license-problem-gfdl-non-official-text invariant part is: with no invariant sections, front- or back-cover texts [src/oldfalsepositive/variantdictfold.txt] +cruft-gfdl-invariants (source): license-problem-gfdl-non-official-text invariant part is: with no invariant sections, and no cover texts [src/oldfalsepositive/php-elisp.texi] +cruft-gfdl-invariants (source): license-problem-gfdl-non-official-text invariant part is: with no invariant sections texts [src/oldfalsepositive/sdlbasic.html] +cruft-gfdl-invariants (source): license-problem-gfdl-non-official-text invariant part is: with no invariant sections [src/oldfalsepositive/lilypond.texi] +cruft-gfdl-invariants (source): license-problem-gfdl-non-official-text invariant part is: with no invariant sections , with no front-cover texts , and with no back-cover texts [src/oldfalsepositive/gnashfalsepositive.xml] +cruft-gfdl-invariants (source): license-problem-gfdl-non-official-text invariant part is: with no invariant sections , with no front-cover texts , and with no back-cover texts [src/oldfalsepositive/gnashfalsepositive.html] +cruft-gfdl-invariants (source): license-problem-gfdl-non-official-text invariant part is: with no invariant sections , front-cover texts or back-cover texts , each as defined in the license [src/oldfalsepositive/quoteswithasdefined.xml] +cruft-gfdl-invariants (source): license-problem-gfdl-non-official-text invariant part is: with no invariant section, no front-cover text and no back-cover text [src/oldfalsepositive/zeroisnotplural.texi] +cruft-gfdl-invariants (source): license-problem-gfdl-non-official-text invariant part is: with no front-cover texts, and with no back-cover texts [src/oldfalsepositive/smbc.texi] +cruft-gfdl-invariants (source): license-problem-gfdl-non-official-text invariant part is: there are no invariant sections [src/oldfalsepositive/libnss-pgsql.xml] +cruft-gfdl-invariants (source): license-problem-gfdl-non-official-text invariant part is: no invariant sections, no front-cover texts, no back-cover texts [src/oldfalsepositive/normalbkchem.texi] +cruft-gfdl-invariants (source): license-problem-gfdl-invariants-empty [src/emptybis.texi] +cruft-gfdl-invariants (source): license-problem-gfdl-invariants-empty [src/empty.texi] +cruft-gfdl-invariants (source): license-problem-gfdl-invariants invariant part is: with the invariant sections being just gnu manifesto with no front-cover texts, and with no back-cover texts [src/invariant.txt] +cruft-gfdl-invariants (source): license-problem-gfdl-invariants invariant part is: with the invariant sections being funding free software the front-cover texts being (a) (see below), and with the back-cover texts being (b) (see below) [src/frontback.html] +cruft-gfdl-invariants (source): license-problem-gfdl-invariants invariant part is: with the invariant sections being (l gnu general public license (r and (l funding free software (r the front-cover texts being (a) (see below), and with the back-cover texts being (b) (see below) [src/oldmanpagesgfdlproblem.1] +cruft-gfdl-invariants (source): license-problem-gfdl-invariants invariant part is: with no invariant sections, with the front-cover texts being a gnu manual, and with the back-cover texts as in (a) below [src/autoconf.texi] +cruft-gfdl-invariants (source): license-problem-gfdl-invariants invariant part is: with no invariant sections, with the front-cover texts being a debian manual , and with the back-cover texts as in (a) below [src/frontback.texi] diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/autoconf.texi b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/autoconf.texi new file mode 100644 index 00000000..ba8175d1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/autoconf.texi @@ -0,0 +1,12 @@ +Permission is granted to copy, distribute and/or modify this document +under the terms of the @acronym{GNU} Free Documentation License, +Version 1.3 or any later version published by the Free Software +Foundation; with no Invariant Sections, with the Front-Cover texts +being ``A @acronym{GNU} Manual,'' and with the Back-Cover Texts as in +(a) below. A copy of the license is included in the section entitled +``@acronym{GNU} Free Documentation License.'' + +(a) The FSF's Back-Cover Text is: ``You have the freedom to copy and +modify this @acronym{GNU} manual. Buying copies from the @acronym{FSF} +supports it in developing @acronym{GNU} and promoting software +freedom.'' diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/dvipdfmx.tex b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/dvipdfmx.tex new file mode 100644 index 00000000..a0a66343 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/dvipdfmx.tex @@ -0,0 +1,6 @@ +\section*{GNU Free Documentation License}\label{SEC:FDL} +\subsection*{GNU Free Documentation License}\label{SEC:FDL} + \subsubsection{GNU Free Documentation License}\label{SEC:FDL} + +This document is distributed under the term of the GNU Free Documentation +License. See, the attached file for copying conditions. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/empty.texi b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/empty.texi new file mode 100644 index 00000000..8e87b5f0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/empty.texi @@ -0,0 +1,5 @@ +Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License, +version 1.3 or any later version published by the Free Software +Foundation. A copy of the license is included in the +section entitled "GNU Free Documentation License". diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/emptybis.texi b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/emptybis.texi new file mode 100644 index 00000000..7ad06407 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/emptybis.texi @@ -0,0 +1,7 @@ +Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License, +version 1.3 or any later version published by the Free Software +Foundation. + +A copy of the license is included in the +section entitled "GNU Free Documentation License". diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/false-positive.rtf b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/false-positive.rtf new file mode 100644 index 00000000..19560b4b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/false-positive.rtf @@ -0,0 +1,125 @@ +{\rtf1\ansi\ansicpg1252\cocoartf102{\fonttbl\f2\fnil Bitstream Charter;\f0\fnil Droid Sans Mono;\f1\fnil FreeSans;} +{\colortbl;\red0\green0\blue200;\red0\green0\blue0;\red255\green0\blue0;} +{{\NeXTGraphic iconoGimp3.tif \width1816 \height1309}\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\f0\fs24 \'AC}\f1\fs48 \b\cf1 \'A1Welcome to FisicaLab!\cf0\fs24\b0\cf2 \par +\par +\fs20\i Copyright (C) 2009, 2010, 2012 German A. Arias.\par + Permission is granted to copy, distribute and/or modify this document\par + under the terms of the GNU Free Documentation License, Version 1.3\par + or any later version published by the Free Software Foundation;\par + with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.\par + A copy of the license is included in the section entitled "GNU\par + Free Documentation License".\fs24\i0 \par +\par +\par +FisicaLab is an educational application to solve physics problems. Its main objective is let the user to focus in physics concepts, leaving aside the mathematical details (FisicaLab take care of them). This allows the user to become familiar with the physical concepts without running the risk of getting lost in mathematical details. And so, when the user gain confidence in applying physical concepts, will be better prepared to solve the problems by hand (with pen and paper). FisicaLab is easy to use and very intuitive. However, in order to take advantage of all its features, we recommend you read first these help files.\par +\par +FisicaLab display to two windows, one named \b Modules and elements\b0 and other named \b Chalkboard\b0 . The first of these windows, contain all modules that can be used to solve problems. These modules are grouped by: kinematics, static, dynamics, ... (see image below). You can select one of these groups with the buttons at the top of the window, marked with (1) in the image. When you leave the mouse\rquote s cursor above one of these buttons, a label with the group name is displayed. The buttons marked with (2) let you select the system of units, SI or English. You can see the modules of the selected group inside the box marked with (3). The tabs marked with (4) let you select one of the available modules. The elements of the selected module are displayed inside the box marked with (5). This elements let you set the problems. Inside the box marked with (6) you can write the element\rquote s data (if any element is selected, this box will be empty).\f2 \par +\par + \cf0\f0{{\NeXTGraphic FisicaLabPanel.jpg \width7680 \height10760}\'AC}\f2\cf2 \par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par +\f1 The window named \b Chalkboard\b0 (see image below), have at the top two buttons, marked with (7). The button at the left let you solve the problem, and the other is to clean the chalkboard. The black box marked with (8) is the chalkboard, where you add the elements to set the problems. You need keep in mind, although you can\rquote t see, that the chalkboard is a grid formed with cells of 50x50 pixels. By default the chalkboard size is 26x18 cells. In \b Preferences\b0 panel you can change the size to a maximum of 100x100 cells (A greater size than the default could be useful for trusses problems). The text view marked with (9) is where FisicaLab show the answer and messages. The checkbox marked with (10) erase the content of the text view before show the next answer or message. If you want keep the previous content, unselect this checkbox. In this case you can add notes to identify the results of the different problems.\f2 \par +\par +\pard\ql\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql \cf0\f0{{\NeXTGraphic FisicaLabPizarra.jpg \width8540 \height6680}\'AC}\f2\cf2 \par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par +\par +\f1\fs28\b Handling the elements\f2\fs24\b0 \par + \par +\f1 To add elements at the chalkboard, do a click above the desired element. The mouse\rquote s cursor will become in an open hand, meaning this that we will add an element. Do a click above the chalkboard in the position where you want the element, the mouse\rquote s cursor will back at its original shape. Each time you add a new element, or select one different, a yellow square will be drawn around the current element. The data of the current element are displayed, for its edition, at panel \b Modules and elements\b0 . When you leave the mouse\rquote s cursor above one element in the chalkboard, a label with the element\rquote s data is displayed. In \b Preferences\b0 panel you can configure the font size of these labels.\par +\par +\pard\ql\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql \cf0\f0{{\NeXTGraphic chalkboardProperties.jpg \width9020 \height4600}\'AC}\f1\cf2 \par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par +If you want move an element, click above it with the \b Control\b0 key pressed, the mouse\rquote s cursor will become in a close hand, meaning this that we are moving an element. Do click in the new position and the mouse\rquote s cursor will back at its original shape. In other hand, if you want delete an element, do click above it with the \b Shift\b0 key pressed.\par +\par +Keep in mind that FisicaLab don\rquote t let you combine elements from different modules. The elements in each module are enough to set a wide variety of problems.\f2 \par +\par +\par +\f1\fs28\b Element data\f2\fs24\b0 \par +\par +\f1 When you select an element in the chalkboard, or add a new element, you will see a table at the bottom of the window \b Modules and elements\b0 . With a double click above any field of the second column, you can write the data. FisicaLab supports scientific notation, to use this use the letter E. For example, to write the number 3.45x10-5, write:\par +\par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\qc 3.45E-5\par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par +All numerical data must be without spaces. For example, the following numbers are wrong:\par +\par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\qc - 5.3\par +7.8E - 8\par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par +Also, FisicaLab can use many conversion factors. To use these, add the character @ before the conversion. If you have selected the SI system, FisicaLab assumes that all data are in meters, kg, seconds, etc. With the English system, FisicaLab assumes that all data are in feet, pounds, slugs, seconds, etc. (in the English system the mass must be in slugs). For example, if you want write an speed of 75 km/h, use:\par +\par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\qc 75 @ km/h\par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par +Here, we have one space before and after the character @, but these are for clarity, and are not required. Each module has its how conversion factors, as you can see in the sections that deal about these. \par +\par +You can use letters or words to represent the unknown data. If, for example, the final velocity is an unknown data, you can represent this like:\par +\par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\qc fv\par +finalv\par +fvel\par +\par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql or any other combination. But, we recommend you use letters or words that are related with the unknown data. Also, the conversion factors can be used with the unknown data. For example, if the time is unknown, and you want this in minutes, write something like:\par +\par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\qc t @ min\par +\par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql The scientific notation can be used with the unknowns, adding the characters #E at the end of the name. For example, for a coefficient of thermal expansion, that is a small value:\par +\par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\qc coefficient#E\par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par +Also, this can be used with a conversion factor. For example, for a very long distance that we want in kilometers:\par +\par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\qc distance#E @ km\par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par +All the conversion factors are available in a contextual menu. After select the row of data where want add the factor, a right mouse click open a context menu with all available factors.\par +\par +\pard\ql\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql \cf0\f0{{\NeXTGraphic menuContextual.jpg \width6120 \height5320}\'AC}\f1\cf2 \par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par +FisicaLab allows mathematical operations directly on the fields where you enter data. Can be carried out operations of addition (+), subtraction (-), multiplication (*) and division (/). Although not allowed to group operations by parentheses. It also provides some useful functions for certain calculations. These are listed below with its description:\par +\par +\b cos(ang)\tab \tab Calculates the cosine of the sexagesimal angle "ang".\par +sin(ang)\tab \tab Calculates the sine of the sexagesimal angle "ang".\par +tan(ang)\tab \tab Calculates the tangent of the sexagesimal angle "ang".\par +sqrt(x)\tab \tab Calculates the square root of the number "x".\par +hypot(a,b)\tab Calculates the hypotenuse of a right triangle whose legs are "a" and "b".\par +leg(c,a)\tab \tab Calculates the leg of the right triangle whose hypotenuse is "c" and the\par +\tab \tab \tab other leg is "a".\par +rd(m1,m2,d)\tab Calculates the distance of the mass "m1" to the center of mass of the\par +\tab \tab \tab system consisting of the masses "m1" and "m2", which are spaced a\par +\tab \tab \tab distance "d".\b0 \par +\par +The numbers that are passed as parameters to these functions must have consistent units. For example, in the \b hypot()\b0 function both legs must be in the same units, whether centimeters, meters, inches, etc. These functions can be used in operations of addition, subtraction, multiplication and division. In these operations blank spaces are not allowed. Here are some examples:\par +\par +\pard\ql\b\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\qc 8*cos(34)\par +hypot(4,3)-2\par +rd(3,6,40)*sin(30) @ cm\par +15*8/hypot(13,8)\b0 \par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par +Once entered the operation, FisicaLab will do the calculation and will write the result in the entry. Note that is possible to apply conversion factors. Although these can also be applied after carrying out the calculation.\par +\par +The fields where you enter angles do not allow the operations and functions described above. This is because these fields have their own operations and functions. For example, FisicaLab allows write the angles as slopes (a/b), and automatically convert this to sexagesimal angles. What is very useful for problems of trusses.\par +\par +\pard\ql\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql \cf0\f0{{\NeXTGraphic angulos.jpg \width5080 \height2660}\'AC}\f1\cf2 \par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par +For these fields are available two functions that calculates an angle from other relationships. These functions are:\par +\par +\b acos(a/c)\tab Calculates the sexagesimal angle whose cosine is the ratio "a/c".\par +asin(b/c)\tab \tab Calculates the sexagesimal angle whose sine is the ratio "b/c".\b0 \par +\par +If an operation is entered incorrectly, for example if it contains spaces or contains a function with an incorrect number of parameters, FisicaLab will do nothing and will take that string as an unknown.\par +\par +\par +\b Caution:\b0 \cf0\cf3 If, for example, you add a mass conversion factor in a time data, this will cause an error in the solution. And you will not get a message about this error.\cf0\f2\cf2 \par +\par +\par +\f1\fs28\b How it works\f2\fs24\b0 \par +\par +\f1 FisicaLab work over the base of \i number of equations = number of unknown data\i0 . In general you don\rquote t need worry about this. But in some cases you will see the error \b "The system is undetermined"\b0 . This occurs when you write numeric data in a field that must be an unknown data. The examples show this cases.\f2 \par +\par +\par +\f1\fs28\b Messages\f2\fs24\b0 \par +\par +\f1 FisicaLab write a wide variety of messages in the text view when a problem is wrong. However, you always will see a message about the calculation\rquote s status, as you can see in the following image:\par +\par +\pard\ql\f0\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql \cf0{{\NeXTGraphic cinema44.tif \width4760 \height800}\'AC}\f1\cf2 \par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par +The last line say \b "State = success"\b0 , meaning that the calculation was successful. Any other status different as \i success\i0 , mean that or the set problem don\rquote t have a solution, or an unexpected error occurred.\par +\par +} \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/frontback.html b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/frontback.html new file mode 100644 index 00000000..b8e14bc5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/frontback.html @@ -0,0 +1,56 @@ + + +Some title + + + +This is +
+
+Copyright © 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, +1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, +2010, 2011, 2012 + +

Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.3 or +any later version published by the Free Software Foundation; with the +Invariant Sections being “Funding Free Software”, the Front-Cover +Texts being (a) (see below), and with the Back-Cover Texts being (b) +(see below). A copy of the license is included in the section entitled +“GNU Free Documentation License”. + +

(a) The Front-Cover Text is: + +

A GNU Manual + +

(b) The Back-Cover Text is: + +

You have freedom to copy and modify this GNU Manual, like GNU + software. Copies published raises funds. +

+
+
+ + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/frontback.texi b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/frontback.texi new file mode 100644 index 00000000..aa1d8e05 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/frontback.texi @@ -0,0 +1,7 @@ +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.3 or +any later version published by the Free Software Foundation; with no +Invariant Sections, with the Front-Cover Texts being ``A Debian Manual'', +and with the Back-Cover Texts as in (a) below. A copy of the license +is included in the section entitled ``GNU Free Documentation +License''. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/invariant.txt b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/invariant.txt new file mode 100644 index 00000000..e649d175 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/invariant.txt @@ -0,0 +1,7 @@ +Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License, +Version 1.3 or any later version published by the Free Software +Foundation; with the Invariant Sections being just "GNU +Manifesto", with no Front-Cover Texts, and with no Back-Cover +Texts. A copy of the license is included in the section +entitled "GNU Free Documentation License". diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/appendix.txt b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/appendix.txt new file mode 100644 index 00000000..8883cacb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/appendix.txt @@ -0,0 +1,25 @@ +ADDENDUM: How to use this License for your documents +==================================================== + +To use this License in a document you have written, include a copy of +the License in the document and put the following copyright and license +notices just after the title page: + + Copyright (C) YEAR YOUR NAME. + Permission is granted to copy, distribute and/or modify this document + under the terms of the GNU Free Documentation License, Version 1.3 + or any later version published by the Free Software Foundation; + with no Invariant Sections, no Front-Cover Texts, and no Back-Cover + Texts. A copy of the license is included in the section entitled ``GNU + Free Documentation License''. + + If you have Invariant Sections, Front-Cover Texts and Back-Cover +Texts, replace the "with...Texts." line with this: + + with the Invariant Sections being LIST THEIR TITLES, with + the Front-Cover Texts being LIST, and with the Back-Cover Texts + being LIST. + + If you have Invariant Sections without Cover Texts, or some other +combination of the three, merge those two alternatives to suit the +situation. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/badpunctuation.txt b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/badpunctuation.txt new file mode 100644 index 00000000..fd6ed32b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/badpunctuation.txt @@ -0,0 +1,8 @@ +No ;after version +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.1 +with no Invariant Sections, no Front-Cover Texts and +no Back-Cover Texts; +A copy of the license is included in the section entitled +license GNU Free Documentation License + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/cflow.texi b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/cflow.texi new file mode 100644 index 00000000..2be8767d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/cflow.texi @@ -0,0 +1,12 @@ +Published by the Free Software Foundation, +51 Franklin Street, Fifth Floor +Boston, MA 02110-1301, USA + +Copyright @copyright{} 2005, 2010, 2014-2016 Sergey Poznyakoff + +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.2 or +any later version published by the Free Software Foundation; with no +Invariant Sections, no Front-Cover and Back-Cover texts. A copy of +the license is included in the section entitled ``GNU Free Documentation +License''. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/citetitle.po b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/citetitle.po new file mode 100644 index 00000000..73f9c3a8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/citetitle.po @@ -0,0 +1,16 @@ +#: C/index.docbook:65(legalnotice/para) +msgid "" +"Permission is granted to copy, distribute and/or modify this document under " +"the terms of the GNU Free Documentation License, " +"Version 1.1 or any later version published by the Free Software Foundation " +"with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A " +"copy of the license is included." +msgstr "" +"Das vorliegende Dokument kann gemäß den Bedingungen der GNU Free " +"Documentation License (GFDL), Version 1.1 oder jeder späteren, von der Free " +"Software Foundation veröffentlichten Version ohne unveränderbare Abschnitte " +"sowie ohne Texte auf dem vorderen und hinteren Buchdeckel kopiert, verteilt " +"und/oder modifiziert werden. Eine Kopie der GFDL finden Sie unter diesem " +"Link oder in der mit diesem " +"Handbuch gelieferten Datei COPYING-DOCS." + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/clisp.txt b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/clisp.txt new file mode 100644 index 00000000..d3490c41 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/clisp.txt @@ -0,0 +1,9 @@ + +Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License +(FDL), either version 1.2 of the license, +or (at your option) any later version published by the free software +foundation (FSF); with no invariant sections, +with no front-cover text, and with no back-cover texts +A copy of the license is included in the +section entitled "GNU Free Documentation License". \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/clisp.xml b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/clisp.xml new file mode 100644 index 00000000..37449fb1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/clisp.xml @@ -0,0 +1,6 @@ + This document documents free software; you can redistribute it + and/or modify it under the terms of the GNU General Public License + (&gpl;), either version 2 of the License, or (at your option) any + later version published by the &fsf;. + A copy of the license is included in . + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/comments.po b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/comments.po new file mode 100644 index 00000000..d11e67b4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/comments.po @@ -0,0 +1,9 @@ +# French translation for SANE backend options +# +# Permission is granted to copy, distribute and/or modify this document +# under the terms of the GNU Free Documentation License, Version 1.1 +# or any later version published by the Free Software Foundation; +# with no Invariant Sections, with no Front-Cover Texts, and with +# no Back-Cover. +# A copy of the license is included in the section entitled "GNU +# Free Documentation License". diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/diveintopythonok.html b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/diveintopythonok.html new file mode 100644 index 00000000..6ace5df0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/diveintopythonok.html @@ -0,0 +1,12 @@ + + + +
+

Permission is granted to copy, distribute, and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant + Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in Appendix G, GNU Free Documentation License. +

+

The example programs in this book are free software; you can redistribute and/or modify them under the terms of the Python license as published by the Python Software Foundation. A copy of the license is included in Appendix H, Python license. +

+
+ + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/findsutilsokinlinenewline.c b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/findsutilsokinlinenewline.c new file mode 100644 index 00000000..5291fd3e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/findsutilsokinlinenewline.c @@ -0,0 +1,15 @@ +/* false positive from some package */ + static const char *copy_para[]= + { + "Copyright (C) 1994, 1996, 1998, 2000, 2001, 2003, 2004, 2005, 2006," + ,"2007, 2009, 2010, 2011 Free Software Foundation, Inc." + ,"" + ,"Permission is granted to copy, distribute and/or modify this document" + ,"under the terms of the GNU Free Documentation License, Version 1.3 or" + ,"any later version published by the Free Software Foundation; with no" + ,"Invariant\nSections, with no\nFront-Cover Texts,\nand with no Back-Cover" + ,"Texts. A copy of the license is included in the ``GNU Free" + ,"Documentation License'' file as part of this distribution." + "" + ,NULL + }; diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/findutilsok.c b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/findutilsok.c new file mode 100644 index 00000000..23aa0aff --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/findutilsok.c @@ -0,0 +1,15 @@ +/* false positive from findutils */ + static const char *copy_para[]= + { + "Copyright (C) 1994, 1996, 1998, 2000, 2001, 2003, 2004, 2005, 2006," + ,"2007, 2009, 2010, 2011 Free Software Foundation, Inc." + ,"" + ,"Permission is granted to copy, distribute and/or modify this document" + ,"under the terms of the GNU Free Documentation License, Version 1.3 or" + ,"any later version published by the Free Software Foundation; with no" + ,"Invariant Sections, with no Front-Cover Texts, and with no Back-Cover" + ,"Texts. A copy of the license is included in the ``GNU Free" + ,"Documentation License'' file as part of this distribution." + "" + ,NULL + }; diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/fonts.html b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/fonts.html new file mode 100644 index 00000000..ee27a4f1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/fonts.html @@ -0,0 +1,9 @@ +

+Permission is granted to copy, distribute +and/or modify this document under the terms +of the GNU Free Documentation License, Version +1.1 or any later version published by the +Free Software Foundation; with the Invariant +Sections being LIST THEIR TITLES, with the +Front-Cover Texts being LIST, and with the +Back-Cover Texts being LIST.

\ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/fontsMX.html b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/fontsMX.html new file mode 100644 index 00000000..426c273f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/fontsMX.html @@ -0,0 +1 @@ +Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License. \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/gfdllicenseexample.html b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/gfdllicenseexample.html new file mode 100644 index 00000000..fffca610 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/gfdllicenseexample.html @@ -0,0 +1,13 @@ + + +false positive found in license text: +
+Copyright (C)  year  your name.
+Permission is granted to copy, distribute and/or modify this document
+under the terms of the GNU Free Documentation License, Version 1.3
+or any later version published by the Free Software Foundation;
+with the Invariant Sections being list their titles, with
+the Front-Cover Texts being list, and with the Back-Cover Texts
+being list.
+A copy of the license is included in the section entitled ``GNU Free Documentation License''.
+
diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/gfdllicenseexample.texi b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/gfdllicenseexample.texi
new file mode 100644
index 00000000..fc52ba97
--- /dev/null
+++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/gfdllicenseexample.texi
@@ -0,0 +1,13 @@
+false positive found in license text:
+@smallexample
+@group
+  Copyright (C)  @var{year}  @var{your name}.
+  Permission is granted to copy, distribute and/or modify this document
+  under the terms of the GNU Free Documentation License, Version 1.3
+  or any later version published by the Free Software Foundation;
+  with the Invariant Sections being @var{list their titles}, with the
+  Front-Cover Texts being @var{list}, and with the Back-Cover Texts being @var{list}.
+  A copy of the license is included in the section entitled ``GNU
+  Free Documentation License''.
+@end group
+@end smallexample
diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/gfdllicenseexamplesbr.html b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/gfdllicenseexamplesbr.html
new file mode 100644
index 00000000..46cbd2fd
--- /dev/null
+++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/gfdllicenseexamplesbr.html
@@ -0,0 +1,13 @@
+
+
+false positive found in license text:
+
+Copyright (C)  year  your name.
+Permission is granted to copy, distribute and/or modify this document
+under the terms of the GNU Free Documentation License, Version 1.3
+or any later version published by the Free Software Foundation;
+with the
Invariant Sections
being list their titles, with +the Front-Cover Texts being list, and with the Back-Cover Texts +being list. +A copy of the license is included in the section entitled ``GNU Free Documentation License''. + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/gfdltexcomments.tex b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/gfdltexcomments.tex new file mode 100644 index 00000000..00e496c6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/gfdltexcomments.tex @@ -0,0 +1,7 @@ +% Permission is granted to copy, distribute and/or modify this document +% under the terms of the GNU Free Documentation License, Version 1.1 or +% any later version published by the Free Software Foundation; with no +% Invariant Sections, with no Front-Cover Texts, and with no Back-Cover +% Texts. A copy of the license is included in the section entitled +% ``GNU Free Documentation License.'' +% diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/gnashfalsepositive.html b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/gnashfalsepositive.html new file mode 100644 index 00000000..f01cd4c1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/gnashfalsepositive.html @@ -0,0 +1,15 @@ + + +

+ Copyright 2008, Free Software Foundation. +

+ Permission is granted to copy, distribute and/or modify this + document under the terms of the GNU Free Documentation + License, Version 1.1 or any later version published by the + Free Software Foundation; with noInvariant Sections, with no Front-Cover Texts, + and with no Back-Cover + Texts. A copy of the license is included in + the section entitled "GNU Free Documentation License". +

+ + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/gnashfalsepositive.info b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/gnashfalsepositive.info new file mode 100644 index 00000000..cc7a754a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/gnashfalsepositive.info @@ -0,0 +1,14 @@ +To use this License in a document you have written, include a copy of +the License in the document and put the following copyright and license +notices just after the title page: + +Copyright 2008, Free Software Foundation. + +Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License, +version 1.1 or any later version published by the Free Software +Foundation; with noInvariant Sections (*note fdl-invariant::), +with no Front-Cover Texts (*note fdl-cover-texts::), and with no +Back-Cover Texts (*note fdl-cover-texts::). A copy of the license +is included in the section entitled "GNU Free Documentation +License". diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/gnashfalsepositive.xml b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/gnashfalsepositive.xml new file mode 100644 index 00000000..9e77873c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/gnashfalsepositive.xml @@ -0,0 +1,15 @@ + + +

+ Copyright 2008, Free Software Foundation. +

+ Permission is granted to copy, distribute and/or modify this + document under the terms of the GNU Free Documentation + License, Version 1.1 or any later version published by the + Free Software Foundation; with noInvariant Sections, with no Front-Cover Texts, + and with no Back-Cover + Texts. A copy of the license is included in + the section entitled "GNU Free Documentation License". +

+ + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/gtk-doc.po b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/gtk-doc.po new file mode 100644 index 00000000..07b3003e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/gtk-doc.po @@ -0,0 +1,42 @@ +#: C/fdl-appendix.xml:79(sect1/para) +msgid "" +"A <_:quote-1/> is a named appendix or a front-matter section of the <_:" +"link-2/> that deals exclusively with the relationship of the publishers or " +"authors of the Document to the Document's overall subject (or to related " +"matters) and contains nothing that could fall directly within that overall " +"subject. (For example, if the Document is in part a textbook of mathematics, " +"a Secondary Section may not explain any mathematics.) The relationship could " +"be a matter of historical connection with the subject or with related " +"matters, or of legal, commercial, philosophical, ethical or political " +"position regarding them." +msgstr "" +"Une <_:quote-1/> désigne une annexe au <_:link-2/>, ou toute information " +"indiquant les rapports entre l'auteur ou l'éditeur et le sujet (ou tout " +"autre sujet connexe) du Document, sans toutefois être en rapport direct avec " +"le sujet lui-même (par exemple, si le Document est un manuel de " +"mathématiques, une Section secondaire ne traitera d'aucune notion " +"mathématique). Cette section peut contenir des informations relatives à " +"l'historique du Document, des sources documentaires, des dispositions " +"légales, commerciales, philosophiques, ou des positions éthiques ou " +"politiques susceptibles de concerner le sujet traité." + + +#: C/fdl-appendix.xml:632(blockquote/para) +#, fuzzy +msgid "" +"Permission is granted to copy, distribute and/or modify this document under " +"the terms of the GNU Free Documentation License, Version 1.1 or any later " +"version published by the Free Software Foundation; with the <_:link-1/> being " +"LIST THEIR TITLES, with the <_:link-2/> being LIST, and with the <_:link-3/> " +"being LIST. A copy of the license is included in the section entitled <_:" +"quote-4/>." +msgstr "" +"Es wird die Erlaubnis gegeben, dieses Dokument zu kopieren, verteilen und/" +"oder zu verändern unter den Bedingungen der GNU Free Documentation License, " +"Version 1.1 oder einer späteren, von der Free Software Foundation " +"veröffentlichten Version; mit den Unveränderlichen Abschnitten. DEREN TITEL AUFGEZÄHLT sind, mit den " +"Vorderseitentexten, die AUFGEZÄHLT " +"sind, und mit den Rückseitentexten, " +"die AUFGEZÄHLT sind. Eine Kopie dieser Lizenz ist in dem Abschnitt enthalten, " +"der mit GNU Free Documentation License betitelt ist." diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/hyphen-used-as-minus-sign.diff b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/hyphen-used-as-minus-sign.diff new file mode 100644 index 00000000..ae8c9738 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/hyphen-used-as-minus-sign.diff @@ -0,0 +1,102 @@ +Description: hyphen-used-as-minus-sign + This manual page seems to contain a hyphen where a minus sign was + intended. +Author: Ruben Molina +Forwarded: no +Last-Update: 2011-06-25 + +Index: kst-2.0.3/src/kst/kst.1.txt +=================================================================== +--- kst-2.0.3.orig/src/kst/kst.1.txt ++++ kst-2.0.3/src/kst/kst.1.txt +@@ -47,7 +47,7 @@ kst may be run entirely from within its + command line arguments are needed. kst has a powerful wizard for + easily setting up new plots. + +-In the second invocation, kst loads pre-saved plot specifications from the ++In the second invocation, kst loads pre\-saved plot specifications from the + file + .I kstfile + and optionally may override some of the settings in that file. +@@ -64,7 +64,7 @@ plot all curves in separate plots + .TP + .B \-a\fR + average frames (simple mean) when plotting with +-.B -s\fR. ++.B \-s\fR. + .TP + .B \-\-A4\fR + use A4 sized paper for printing. Requires +@@ -90,7 +90,7 @@ and instead use + .B \-f\ STARTFRAME\fR + begin plotting at + .I STARTFRAME +-frames into the data. Set to -1 to start at ++frames into the data. Set to \-1 to start at + .I NUMFRAMES + from the end of the data. + .TP +@@ -112,7 +112,7 @@ use US Letter sized paper for printing. + .B \-n\ NUMFRAMES\fR + plot at most + .I NUMFRAMES +-frames of data. Set to -1 to indicate all of the data. ++frames of data. Set to \-1 to indicate all of the data. + .TP + .B \-P\ PLOTNAME\fR + plot all plots in the plot named +@@ -145,7 +145,7 @@ frames when plotting. + .B \-x\ FIELD\fR + use + .I FIELD +-as the X-axis vector. ++as the X\-axis vector. + .TP + .B \-y\ FIELD\fR + plot +@@ -158,30 +158,30 @@ plot + as an image. + .SH EXAMPLES + Plot all data in column 2 from data.dat. +- kst data.dat -y 2 ++ kst data.dat \-y 2 + + Same as above, except only read 20 lines, starting at line 10. +- kst data.dat -f 10 -n 20 -y 2 ++ kst data.dat \-f 10 \-n 20 \-y 2 + + also read col 1. One plot per curve. +- kst data.dat -f 10 -n 20 -y 1 -y 2 ++ kst data.dat \-f 10 \-n 20 \-y 1 \-y 2 + + Read col 1 from data2.dat and col 1 from data.dat +- kst data.dat -f 10 -n 20 -y 2 data2.dat -y 1 ++ kst data.dat \-f 10 \-n 20 \-y 2 data2.dat \-y 1 + + Same as above, except read 40 lines starting at 30 in data2.dat +- kst data.dat -f 10 -n 20 -y 2 data2.dat -f 30 -n 40 -y 1 ++ kst data.dat \-f 10 \-n 20 \-y 2 data2.dat \-f 30 \-n 40 \-y 1 + + Specify the X vector and error bars: + Plot x = col 1 and Y = col 2 and error flags = col 3 from data.dat +- kst data.dat -x 1 -e 3 -y 2 ++ kst data.dat \-x 1 \-e 3 \-y 2 + + Get the X vector from data1.dat, and the Y vector from data2.dat. +- kst data1.dat -x 1 data2.dat -y 1 ++ kst data1.dat \-x 1 data2.dat \-y 1 + + Placement: + Plot column 2 and column 3 in plot P1 and column 4 in plot P2 +- kst data.dat -P P1 -y 2 -y 3 -P P2 -y 4 ++ kst data.dat \-P P1 \-y 2 \-y 3 \-P P2 \-y 4 + .SH BUGS + Please report bugs to either the kst mailing list at + .I kst@kde.org +@@ -198,6 +198,6 @@ Matthew Truch + Permission is granted to copy, distribute and/or modify this document + under the terms of the GNU Free Documentation License, Version 1.2 or + any later version published by the Free Software Foundation; with no ++Invariant Sections, with no Front\-Cover Texts, and with no Back\-Cover + Texts. A copy of the license is included in the `COPYING.DOC' file + as part of the kst distribution. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/kdoctools/customization/ru/entities/fdl-notice.docbook b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/kdoctools/customization/ru/entities/fdl-notice.docbook new file mode 100644 index 00000000..0168da65 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/kdoctools/customization/ru/entities/fdl-notice.docbook @@ -0,0 +1,6 @@ +Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License, +Version 1.2 or any later version published by the Free Software +Foundation; with &FDLInvariantSections;, with &FDLFrontCoverText;, and +with &FDLBackCoverText;. A copy of the license is included in . + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/krusader b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/krusader new file mode 100644 index 00000000..96f3be36 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/krusader @@ -0,0 +1,20 @@ + \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/latexhref.tex b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/latexhref.tex new file mode 100644 index 00000000..d082bfc6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/latexhref.tex @@ -0,0 +1,7 @@ +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.2 +or any later version published by the +\href{http://www.fsf.org}{Free Software Foundation}; +with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. +A copy of the license is included in the section entitled +``\hyperlink{GFDL_GFDL}{GNU Free Documentation License}''. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/latexhyperlink.tex b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/latexhyperlink.tex new file mode 100644 index 00000000..e193a168 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/latexhyperlink.tex @@ -0,0 +1,7 @@ +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.2 +or any later version published by the +\hyperlink{http://www.fsf.org}{Free Software Foundation}; +with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. +A copy of the license is included in the section entitled +``\hyperlink{GFDL_GFDL}{GNU Free Documentation License}''. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/latexhyphenslash.tex b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/latexhyphenslash.tex new file mode 100644 index 00000000..370ea737 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/latexhyphenslash.tex @@ -0,0 +1,2 @@ +Copyright @sx(c) YEAR YOUR NAME. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-\/Cover Texts, and no Back-\/Cover Texts. A copy of the license is included in the section entitled \char`\"{}GNU +Free Documentation License\char`\"{}. \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/latexurl.tex b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/latexurl.tex new file mode 100644 index 00000000..107d9fbf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/latexurl.tex @@ -0,0 +1,7 @@ +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation +License\url{http://www.gnu.org/copyleft/fdl.html}, Version 1.1 or any +later version published by the Free Software Foundation; with no +Invariant Sections, with no Front-Cover Texts, and with no Back-Cover +Texts. A copy of the license is included in the chapter entitled "GNU +Free Documentation License". \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/libnss-pgsql.xml b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/libnss-pgsql.xml new file mode 100644 index 00000000..8a5eb6ee --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/libnss-pgsql.xml @@ -0,0 +1,7 @@ + + Permission is granted to copy, distribute and/or modify this document + under the terms of the GNU Free Documentation License, Version 1.1 or + any later version published by the Free Software Foundation. There + are no invariant sections. A copy of the license is included in the + section entitled "GNU Free Documentation License". + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/lilypond.texi b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/lilypond.texi new file mode 100644 index 00000000..56939ee9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/lilypond.texi @@ -0,0 +1,6 @@ +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.1 +or any later version published by the Free Software Foundation; +with no Invariant Sections. +A copy of the license is included in the section entitled ``GNU +Free Documentation License''. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/lilypond2.txt b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/lilypond2.txt new file mode 100644 index 00000000..4e66d64a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/lilypond2.txt @@ -0,0 +1,19 @@ +Permission is granted to copy, distribute and/or modify the +documentation for GNU LilyPond under the terms of the GNU Free +Documentation License as published by the Free Software Foundation, +either version 1.3, or (at your option) any later version; with no +Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. + +A copy of the license is contained in the file COPYING.FDL. + +The following exceptions apply: + + * It does not apply to input files (contained in the + directory tree Documentation/snippets/); these are in + the public domain. + + * It does not apply to any manual which explicitly states + another license. + + * It does not apply to the MusicXML unit test suite, + which is licensed under the MIT license. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/mailutils.texi b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/mailutils.texi new file mode 100644 index 00000000..dffaccc5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/mailutils.texi @@ -0,0 +1,6 @@ +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.2 or +any later version published by the Free Software Foundation; with no +Invariant Sections, no Front-Cover, and no Back-Cover texts. +A copy of the license is included in the section entitled ``GNU Free +Documentation License''. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/maintain.html b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/maintain.html new file mode 100644 index 00000000..e1fd5a28 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/maintain.html @@ -0,0 +1,28 @@ + + +

Documentation files should have license notices also. Manuals should +use the GNU Free Documentation License. Following is an example of the +license notice to use after the copyright line(s) using all the +features of the GFDL. +

+
+
Permission is granted to copy, distribute and/or modify this document
+under the terms of the GNU Free Documentation License, Version 1.3 or
+any later version published by the Free Software Foundation; with the
+Invariant Sections being ``GNU General Public License'', with the
+Front-Cover Texts being ``A GNU Manual'', and with the Back-Cover Texts
+as in (a) below.  A copy of the license is included in the section
+entitled ``GNU Free Documentation License''.
+
+(a) The FSF's Back-Cover Text is: ``You have the freedom to
+copy and modify this GNU manual.  Buying copies from the FSF
+supports it in developing GNU and promoting software freedom.''
+
+ +

If the FSF does not publish this manual on paper, then omit the last +sentence in (a) that talks about copies from GNU Press. If the FSF is +not the copyright holder, then replace ‘FSF’ with the appropriate +name. +

+ + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/maintain.texi b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/maintain.texi new file mode 100644 index 00000000..633e7584 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/maintain.texi @@ -0,0 +1,13 @@ +Documentation files should have license notices also. Manuals should +use the GNU Free Documentation License. Following is an example of the +license notice to use after the copyright line(s) using all the +features of the GFDL. + +@smallexample +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.3 or +any later version published by the Free Software Foundation; with the +Invariant Sections being ``GNU General Public License'', with the +Front-Cover Texts being ``A GNU Manual'', and with the Back-Cover Texts +as in (a) below. A copy of the license is included in the section +entitled ``GNU Free Documentation License''. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/make-stds.texi b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/make-stds.texi new file mode 100644 index 00000000..b5c26856 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/make-stds.texi @@ -0,0 +1,7 @@ +@c Permission is granted to copy, distribute and/or modify this document +@c under the terms of the GNU Free Documentation License, Version 1.1 +@c or any later version published by the Free Software Foundation; +@c with no Invariant Sections, with no +@c Front-Cover Texts, and with no Back-Cover Texts. +@c A copy of the license is included in the section entitled ``GNU +@c Free Documentation License''. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/normal.c b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/normal.c new file mode 100644 index 00000000..a58e927a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/normal.c @@ -0,0 +1,13 @@ + /*****************************************************************************/ +/** \mainpage Cal3D API Reference + *
+ *

+ * Permission is granted to copy, distribute and/or modify this document + * under the terms of the GNU Free Documentation License, Version 1.1 or + * any later version published by the Free Software Foundation; + * with no Invariant Sections, no Front-Cover Texts and + * no Back-Cover Texts; + * A copy of the license is included in the section entitled + * \link license "GNU Free Documentation License" \endlink . + *

+ *****************************************************************************/ diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/normal.texi b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/normal.texi new file mode 100644 index 00000000..d9c1b545 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/normal.texi @@ -0,0 +1,6 @@ +Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License, +version 1.3 or any later version published by the Free Software +Foundation; with no Invariant Sections, no Front-Cover Texts and +no Back-Cover Texts. A copy of the license is included in the +section entitled "GNU Free Documentation License". diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/normalbkchem.texi b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/normalbkchem.texi new file mode 100644 index 00000000..dd888e2b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/normalbkchem.texi @@ -0,0 +1,6 @@ +Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License, +version 1.3 or any later version published by the Free Software +Foundation; no Invariant Sections, no Front-Cover Texts, +no Back-Cover Texts. A copy of the license is included in the +section entitled "GNU Free Documentation License". diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/normalhtmlcomment.html b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/normalhtmlcomment.html new file mode 100644 index 00000000..747d2e0d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/normalhtmlcomment.html @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/normalmancomment.txt b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/normalmancomment.txt new file mode 100644 index 00000000..f33dfcd5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/normalmancomment.txt @@ -0,0 +1,7 @@ +.\" manual page for blaze, a command wrapper for BlazeBlogger +.\" +.\" Permission is granted to copy, distribute and/or modify this document +.\" under the terms of the GNU Free Documentation License, Version 1.3 or +.\" any later version published by the Free Software Foundation; with no +.\" Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. +.\" A copy of the license is included below. \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/normalwithbreakathyphen.texi b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/normalwithbreakathyphen.texi new file mode 100644 index 00000000..22ae5751 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/normalwithbreakathyphen.texi @@ -0,0 +1,8 @@ +Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License, +version 1.3 or any later version published by the Free Software +Foundation; with no Invariant Sections, no Front- +Cover Texts and +no Back- +Cover Texts. A copy of the license is included in the +section entitled "GNU Free Documentation License". diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/oidentd.8 b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/oidentd.8 new file mode 100644 index 00000000..5a4df932 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/oidentd.8 @@ -0,0 +1,9 @@ +.\" Copyright (C) XXX +.\" +.\" Permission is granted to copy, distribute and/or modify this document +.\" under the terms of the GNU Free Documentation License, Version 1.1 +.\" or any later version published by the Free Software Foundation; +.\" with the Invariant Sections being no invariant sections, with the +.\" Front-Cover Texts being no front-cover texts, and with the Back-Cover +.\" Texts being no back-cover texts. A copy of the license is included with +.\" this package in the file "COPYING.DOC." \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/opentoken.txt b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/opentoken.txt new file mode 100644 index 00000000..32412766 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/opentoken.txt @@ -0,0 +1,5 @@ +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.3 or +any later version published by the Free Software Foundation; with no +Invariant Sections, Front-Cover or Back-Cover texts. A copy of the license +is included in the section entitled ``GNU Free Documentation License''. \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/parsewiki.txt b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/parsewiki.txt new file mode 100644 index 00000000..950d936c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/parsewiki.txt @@ -0,0 +1,4 @@ +Permission is granted to copy, distribute and/or modify this document under \ +the terms of the GNU Free Documentation License, Version 1.1 or any later \ +version published by the Free Software Foundation; without any Invariant \ +Sections. A copy of the license is included in the file GFDL. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/partedvariant.txt b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/partedvariant.txt new file mode 100644 index 00000000..96037ac8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/partedvariant.txt @@ -0,0 +1,8 @@ +Parted 2.13 version with strange grammar. + +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.3 +or any later version published by the Free Software Foundation; +with the no Invariant Sections, with the no Front-Cover Texts, and +with no Back-Cover Texts. A copy of the license is included in the +file, COPYING.DOC. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/partialtranslation.po b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/partialtranslation.po new file mode 100644 index 00000000..f1d17a5b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/partialtranslation.po @@ -0,0 +1,15 @@ +För att använda GNU Free Documentation License för ett dokument du har skrivit, inkludera en kopia av licensen [det engelska originalet] i dokumentet och placera följande copyrightklausul omedelbart efter titelsidan: + +
+ + Permission is granted to copy, distribute and/or modify this + document under the terms of the GNU Free Documentation + License, Version 1.1 or any later version published by the + Free Software Foundation; with the Invariant Sections being LIST + THEIR TITLES, with the Front-Cover Texts being LIST, + and with the Back-Cover + Texts being LIST. A copy of the license is included in + the section entitled GNU Free Documentation + License. + +
diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/patch-R.diff b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/patch-R.diff new file mode 100644 index 00000000..73e379b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/patch-R.diff @@ -0,0 +1,7 @@ +1,6d0 +< Permission is granted to copy, distribute and/or modify this +< document under the terms of the GNU Free Documentation License, +< version 1.3 or any later version published by the Free Software +< Foundation; with no Invariant Sections, no Front-Cover Texts and +< no Back-Cover Texts. A copy of the license is included in the +< section entitled "GNU Free Documentation License". diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/patch-c0.diff b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/patch-c0.diff new file mode 100644 index 00000000..600653ee --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/patch-c0.diff @@ -0,0 +1,18 @@ +*** make-stds.texi 2013-02-17 21:44:05.485250349 +0100 +--- normal.texi 2012-12-20 21:23:22.829397718 +0100 +*************** +*** 1,7 **** +! @c Permission is granted to copy, distribute and/or modify this document +! @c under the terms of the GNU Free Documentation License, Version 1.1 +! @c or any later version published by the Free Software Foundation; +! @c with no Invariant Sections, with no +! @c Front-Cover Texts, and with no Back-Cover Texts. +! @c A copy of the license is included in the section entitled ``GNU +! @c Free Documentation License''. +--- 1,6 ---- +! Permission is granted to copy, distribute and/or modify this +! document under the terms of the GNU Free Documentation License, +! version 1.3 or any later version published by the Free Software +! Foundation; with no Invariant Sections, no Front-Cover Texts and +! no Back-Cover Texts. A copy of the license is included in the +! section entitled "GNU Free Documentation License". diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/patch-u.diff b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/patch-u.diff new file mode 100644 index 00000000..db6e4f9c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/patch-u.diff @@ -0,0 +1,9 @@ +--- /dev/null 2013-05-15 23:18:30.206386135 +0200 ++++ normal.texi 2012-12-20 21:23:22.829397718 +0100 +@@ -0,0 +1,6 @@ ++Permission is granted to copy, distribute and/or modify this ++document under the terms of the GNU Free Documentation License, ++version 1.3 or any later version published by the Free Software ++Foundation; with no Invariant Sections, no Front-Cover Texts and ++no Back-Cover Texts. A copy of the license is included in the ++section entitled "GNU Free Documentation License". diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/patch-uR.diff b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/patch-uR.diff new file mode 100644 index 00000000..347adff1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/patch-uR.diff @@ -0,0 +1,9 @@ +--- normal.texi 2012-12-20 21:23:22.829397718 +0100 ++++ /dev/null 2013-05-15 23:18:30.206386135 +0200 +@@ -1,6 +0,0 @@ +-Permission is granted to copy, distribute and/or modify this +-document under the terms of the GNU Free Documentation License, +-version 1.3 or any later version published by the Free Software +-Foundation; with no Invariant Sections, no Front-Cover Texts and +-no Back-Cover Texts. A copy of the license is included in the +-section entitled "GNU Free Documentation License". diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/patch.diff b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/patch.diff new file mode 100644 index 00000000..f64bfaf2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/patch.diff @@ -0,0 +1,7 @@ +0a1,6 +> Permission is granted to copy, distribute and/or modify this +> document under the terms of the GNU Free Documentation License, +> version 1.3 or any later version published by the Free Software +> Foundation; with no Invariant Sections, no Front-Cover Texts and +> no Back-Cover Texts. A copy of the license is included in the +> section entitled "GNU Free Documentation License". diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/php-elisp.texi b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/php-elisp.texi new file mode 100644 index 00000000..2ab31039 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/php-elisp.texi @@ -0,0 +1,19 @@ +@copying +This manual documents PHP mode version @value{version} for +use with GNU Emacs. + +Copyright @copyright{} 2008 Aaron S. Hawley + +@quotation +Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation +License, Version 1.2 or any later version published by the +Free Software Foundation; with no Invariant Sections, and no +Cover Texts. A copy of the license is included in the +section entitled ``Copying This Manual.'' + +A copy of the license is also available from the Free +Software Foundation Web site at +@url{http://www.gnu.org/licenses/fdl.html}. + +@end quotation \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/pipeindent.txt b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/pipeindent.txt new file mode 100644 index 00000000..8a0594ae --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/pipeindent.txt @@ -0,0 +1,7 @@ +Some user ident with pipe (|) + | Permission is granted to copy, distribute and/or modify this + | document under the terms of the GNU Free Documentation License, + | version 1.3 or any later version published by the Free Software + | Foundation; with no Invariant Sections, no Front-Cover Texts and + | no Back-Cover Texts. A copy of the license is included in the + | section entitled "GNU Free Documentation License". diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/quotes.xml b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/quotes.xml new file mode 100644 index 00000000..58edd5b9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/quotes.xml @@ -0,0 +1,8 @@ +Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation +License, Version 1.2 or any later version published by the +Free Software Foundation; with no Invariant Sections, no +Front-Cover Texts, and no Back-Cover Texts. +A copy of the license +is included in the section entitled "GNU Free Documentation +License". \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/quoteswithasdefined.xml b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/quoteswithasdefined.xml new file mode 100644 index 00000000..112c734f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/quoteswithasdefined.xml @@ -0,0 +1,9 @@ +Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation +License, Version 1.2 or any later version published by the +Free Software Foundation; +with no invariant sections, front-cover texts or back-cover texts, +each as defined in the license. +A copy of the license +is included in the section entitled "GNU Free Documentation +License". \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/sdlbasic.html b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/sdlbasic.html new file mode 100644 index 00000000..ff317417 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/sdlbasic.html @@ -0,0 +1,11 @@ +
+Permission is granted to copy, distribute +and/or modify this document under the terms of the GNU Free +Documentation License, Version 1.2 or any later version published by +the Free Software Foundation; with no Invariant Sections Texts.
+ + +A copy of the license is included here below.
+ + +
diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/smbc.texi b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/smbc.texi new file mode 100644 index 00000000..c803dc56 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/smbc.texi @@ -0,0 +1,9 @@ +@quotation +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.1 or +any later version published by the Free Software Foundation; with the +Invariant Sections being ``GNU General Public License'' and ``GNU Free +Documentation License'', with no Front-Cover Texts, and with no +Back-Cover Texts. A copy of the license is included in the section +entitled ``GNU Free Documentation License''. +@end quotation \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/soundjuicer.po b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/soundjuicer.po new file mode 100644 index 00000000..e0a41a66 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/soundjuicer.po @@ -0,0 +1,8 @@ +#~ "Permission is granted to copy, distribute and/or modify this document " +#~ "under the terms of the GNU Free Documentation License, Version 1.1 or any " +#~ "later version published by the Free Software Foundation; with the Invariant Sections being LIST THEIR " +#~ "TITLES, with the Front-Cover Texts being LIST, and with the Back-" +#~ "Cover Texts being LIST. A copy of the license is included in the " +#~ "section entitled GNU Free Documentation License." \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/texignu.texi b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/texignu.texi new file mode 100644 index 00000000..93270243 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/texignu.texi @@ -0,0 +1,6 @@ +Permission is granted to copy, distribute and/or modify this document +under the terms of the @acronym{GNU} Free Documentation License, +Version 1.3 or any later version published by the Free Software +Foundation; with no Invariant Sections, with no Front-Cover texts +and with no Back-Cover Texts. A copy of the license is included in the section entitled +``@acronym{GNU} Free Documentation License.'' diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/texlive.tex b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/texlive.tex new file mode 100644 index 00000000..b6e1240f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/texlive.tex @@ -0,0 +1,8 @@ +% note the end is not classical... +% Copyright (c) 2002--2004 Philipp Lehman +% Permission is granted to copy, distribute and/or modify this document under +% the terms of the GNU Free Documentation License, version 1.2, with no +% invariant sections, with no front-cover texts, and no back-cover texts. This +% document is distributed in the hope that it will be useful, but without any +% warranty; without even the implied warranty of merchantability or fitness for +% a particular purpose. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/texlivefont.tex b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/texlivefont.tex new file mode 100644 index 00000000..d4b872c2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/texlivefont.tex @@ -0,0 +1,6 @@ +Copyright 2002--2004 Philipp Lehman + +Permission is granted to copy, distribute and\slash or modify this document under the terms of the GNU Free Documentation License, version 1.2, with no invariant sections, no front-cover texts, and no back-cover texts. + +A copy of the license is included in the appendix. + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/tla.txt b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/tla.txt new file mode 100644 index 00000000..2043b26e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/tla.txt @@ -0,0 +1,21 @@ +/* + * :permissions ("Permission is granted to copy, distribute and/or modify this document" + * "under the terms of the GNU Free Documentation License, Version 1.1" + * "or any later version published by the Free Software Foundation;" + * "with the Invariant Sections being:" + * "" + * " The GNU General Public License" + * " The GNU Free Documentation License" + * "" + * "with the Front-Cover Texts being" + * "" + * " (none)," + * "" + * "and with the Back-Cover Texts being" + * "" + * " (none)." + * "" + * "A copy of the license is included in the section entitled \"GNU" + * "Free Documentation License\".")) + * + */ \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/ulink.xml b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/ulink.xml new file mode 100644 index 00000000..6f634a61 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/ulink.xml @@ -0,0 +1,7 @@ +Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation +License, Version 1.2 or any later version published by the +Free Software Foundation; with no Invariant Sections, no +Front-Cover Texts, and no Back-Cover Texts. A copy of the license +is included in the section entitled "GNU Free Documentation +License". \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/variantdictfold.txt b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/variantdictfold.txt new file mode 100644 index 00000000..8463a590 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/variantdictfold.txt @@ -0,0 +1,7 @@ +This is ok + Permission is granted to copy, distribute and/or modify this + document under the terms of the GNU Free Documentation + License, Version 1.1 or any later version published by the + Free Software Foundation; with no Invariant Sections, Front- + or Back-Cover Texts. A copy of the license is included in the + section entitled "{GNU Free Documentation License}". diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/zeroisnotplural.texi b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/zeroisnotplural.texi new file mode 100644 index 00000000..8782eed2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldfalsepositive/zeroisnotplural.texi @@ -0,0 +1,6 @@ +Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License, +version 1.3 or any later version published by the Free Software +Foundation; with no Invariant Section, no Front-Cover Text and +no Back-Cover Text. A copy of the license is included in the +section entitled "GNU Free Documentation License". diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldmanpagesgfdlproblem.1 b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldmanpagesgfdlproblem.1 new file mode 100644 index 00000000..83a4acfc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-gfdl-invariants/src/oldmanpagesgfdlproblem.1 @@ -0,0 +1,12 @@ +.\" +.\" Manpage example +.\" +.PP +Permission is granted to copy, distribute and/or modify this document +under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.2 or +any later version published by the Free Software Foundation; with the +Invariant Sections being \*(L"\s-1GNU\s0 General Public License\*(R" and \*(L"Funding +Free Software\*(R", the Front-Cover texts being (a) (see below), and with +the Back-Cover Texts being (b) (see below). A copy of the license is +included in the \fIgfdl\fR\|(7) man page. +.PP diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/ORIGIN new file mode 100644 index 00000000..06a954b4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/cruft/cruft-minified-js + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/build/js/foo.min.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/build/js/foo.min.js new file mode 100644 index 00000000..be044ca1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/build/js/foo.min.js @@ -0,0 +1 @@ +if(typeof JSON!=="object"){JSON={}}(function(){"use strict";function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i Tue, 31 Mar 2026 17:46:22 +0200 + +cruft-minified-js (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-minified-js + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/debian/control b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/debian/control new file mode 100644 index 00000000..76f372f7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/debian/control @@ -0,0 +1,17 @@ +Source: cruft-minified-js +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), terser +Homepage: https://lintian.debian.org/ + +Package: cruft-minified-js +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Misc errors related to minified javascript + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/debian/install b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/debian/install new file mode 100644 index 00000000..1b91047a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/debian/install @@ -0,0 +1 @@ +usr/ diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/debian/missing-sources/json.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/debian/missing-sources/json.js new file mode 100644 index 00000000..9a338bf2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/debian/missing-sources/json.js @@ -0,0 +1,529 @@ +/* + json.js + 2012-10-08 + + Public Domain + + No warranty expressed or implied. Use at your own risk. + + This file has been superceded by http://www.JSON.org/json2.js + + See http://www.JSON.org/js.html + + This code should be minified before deployment. + See http://javascript.crockford.com/jsmin.html + + USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO + NOT CONTROL. + + This file adds these methods to JavaScript: + + object.toJSONString(whitelist) + This method produce a JSON text from a JavaScript value. + It must not contain any cyclical references. Illegal values + will be excluded. + + The default conversion for dates is to an ISO string. You can + add a toJSONString method to any date object to get a different + representation. + + The object and array methods can take an optional whitelist + argument. A whitelist is an array of strings. If it is provided, + keys in objects not found in the whitelist are excluded. + + string.parseJSON(filter) + This method parses a JSON text to produce an object or + array. It can throw a SyntaxError exception. + + The optional filter parameter is a function which can filter and + transform the results. It receives each of the keys and values, and + its return value is used instead of the original value. If it + returns what it received, then structure is not modified. If it + returns undefined then the member is deleted. + + Example: + + // Parse the text. If a key contains the string 'date' then + // convert the value to a date. + + myData = text.parseJSON(function (key, value) { + return key.indexOf('date') >= 0 ? new Date(value) : value; + }); + + This file will break programs with improper for..in loops. See + http://yuiblog.com/blog/2006/09/26/for-in-intrigue/ + + This file creates a global JSON object containing two methods: stringify + and parse. + + JSON.stringify(value, replacer, space) + value any JavaScript value, usually an object or array. + + replacer an optional parameter that determines how object + values are stringified for objects. It can be a + function or an array of strings. + + space an optional parameter that specifies the indentation + of nested structures. If it is omitted, the text will + be packed without extra whitespace. If it is a number, + it will specify the number of spaces to indent at each + level. If it is a string (such as '\t' or ' '), + it contains the characters used to indent at each level. + + This method produces a JSON text from a JavaScript value. + + When an object value is found, if the object contains a toJSON + method, its toJSON method will be called and the result will be + stringified. A toJSON method does not serialize: it returns the + value represented by the name/value pair that should be serialized, + or undefined if nothing should be serialized. The toJSON method + will be passed the key associated with the value, and this will be + bound to the object holding the key. + + For example, this would serialize Dates as ISO strings. + + Date.prototype.toJSON = function (key) { + function f(n) { + // Format integers to have at least two digits. + return n < 10 ? '0' + n : n; + } + + return this.getUTCFullYear() + '-' + + f(this.getUTCMonth() + 1) + '-' + + f(this.getUTCDate()) + 'T' + + f(this.getUTCHours()) + ':' + + f(this.getUTCMinutes()) + ':' + + f(this.getUTCSeconds()) + 'Z'; + }; + + You can provide an optional replacer method. It will be passed the + key and value of each member, with this bound to the containing + object. The value that is returned from your method will be + serialized. If your method returns undefined, then the member will + be excluded from the serialization. + + If the replacer parameter is an array of strings, then it will be + used to select the members to be serialized. It filters the results + such that only members with keys listed in the replacer array are + stringified. + + Values that do not have JSON representations, such as undefined or + functions, will not be serialized. Such values in objects will be + dropped; in arrays they will be replaced with null. You can use + a replacer function to replace those with JSON values. + JSON.stringify(undefined) returns undefined. + + The optional space parameter produces a stringification of the + value that is filled with line breaks and indentation to make it + easier to read. + + If the space parameter is a non-empty string, then that string will + be used for indentation. If the space parameter is a number, then + the indentation will be that many spaces. + + Example: + + text = JSON.stringify(['e', {pluribus: 'unum'}]); + // text is '["e",{"pluribus":"unum"}]' + + + text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t'); + // text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]' + + text = JSON.stringify([new Date()], function (key, value) { + return this[key] instanceof Date ? + 'Date(' + this[key] + ')' : value; + }); + // text is '["Date(---current time---)"]' + + + JSON.parse(text, reviver) + This method parses a JSON text to produce an object or array. + It can throw a SyntaxError exception. + + The optional reviver parameter is a function that can filter and + transform the results. It receives each of the keys and values, + and its return value is used instead of the original value. + If it returns what it received, then the structure is not modified. + If it returns undefined then the member is deleted. + + Example: + + // Parse the text. Values that look like ISO date strings will + // be converted to Date objects. + + myData = JSON.parse(text, function (key, value) { + var a; + if (typeof value === 'string') { + a = +/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value); + if (a) { + return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4], + +a[5], +a[6])); + } + } + return value; + }); + + myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) { + var d; + if (typeof value === 'string' && + value.slice(0, 5) === 'Date(' && + value.slice(-1) === ')') { + d = new Date(value.slice(5, -1)); + if (d) { + return d; + } + } + return value; + }); + + + This is a reference implementation. You are free to copy, modify, or + redistribute. +*/ + +/*jslint evil: true, regexp: true, unparam: true */ + +/*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", apply, + call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours, + getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join, + lastIndex, length, parse, parseJSON, prototype, push, replace, slice, + stringify, test, toJSON, toJSONString, toString, valueOf +*/ + + +// Create a JSON object only if one does not already exist. We create the +// methods in a closure to avoid creating global variables. + +if (typeof JSON !== 'object') { + JSON = {}; +} + +(function () { + 'use strict'; + + function f(n) { + // Format integers to have at least two digits. + return n < 10 ? '0' + n : n; + } + + if (typeof Date.prototype.toJSON !== 'function') { + + Date.prototype.toJSON = function (key) { + + return isFinite(this.valueOf()) ? + this.getUTCFullYear() + '-' + + f(this.getUTCMonth() + 1) + '-' + + f(this.getUTCDate()) + 'T' + + f(this.getUTCHours()) + ':' + + f(this.getUTCMinutes()) + ':' + + f(this.getUTCSeconds()) + 'Z' : null; + }; + + String.prototype.toJSON = + Number.prototype.toJSON = + Boolean.prototype.toJSON = function (key) { + return this.valueOf(); + }; + } + + var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, + escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, + gap, + indent, + meta = { // table of character substitutions + '\b': '\\b', + '\t': '\\t', + '\n': '\\n', + '\f': '\\f', + '\r': '\\r', + '"' : '\\"', + '\\': '\\\\' + }, + rep; + + + function quote(string) { + +// If the string contains no control characters, no quote characters, and no +// backslash characters, then we can safely slap some quotes around it. +// Otherwise we must also replace the offending characters with safe escape +// sequences. + + escapable.lastIndex = 0; + return escapable.test(string) ? '"' + string.replace(escapable, function (a) { + var c = meta[a]; + return typeof c === 'string' ? c : + '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4); + }) + '"' : '"' + string + '"'; + } + + + function str(key, holder) { + +// Produce a string from holder[key]. + + var i, // The loop counter. + k, // The member key. + v, // The member value. + length, + mind = gap, + partial, + value = holder[key]; + +// If the value has a toJSON method, call it to obtain a replacement value. + + if (value && typeof value === 'object' && + typeof value.toJSON === 'function') { + value = value.toJSON(key); + } + +// If we were called with a replacer function, then call the replacer to +// obtain a replacement value. + + if (typeof rep === 'function') { + value = rep.call(holder, key, value); + } + +// What happens next depends on the value's type. + + switch (typeof value) { + case 'string': + return quote(value); + + case 'number': + +// JSON numbers must be finite. Encode non-finite numbers as null. + + return isFinite(value) ? String(value) : 'null'; + + case 'boolean': + case 'null': + +// If the value is a boolean or null, convert it to a string. Note: +// typeof null does not produce 'null'. The case is included here in +// the remote chance that this gets fixed someday. + + return String(value); + +// If the type is 'object', we might be dealing with an object or an array or +// null. + + case 'object': + +// Due to a specification blunder in ECMAScript, typeof null is 'object', +// so watch out for that case. + + if (!value) { + return 'null'; + } + +// Make an array to hold the partial results of stringifying this object value. + + gap += indent; + partial = []; + +// Is the value an array? + + if (Object.prototype.toString.apply(value) === '[object Array]') { + +// The value is an array. Stringify every element. Use null as a placeholder +// for non-JSON values. + + length = value.length; + for (i = 0; i < length; i += 1) { + partial[i] = str(i, value) || 'null'; + } + +// Join all of the elements together, separated with commas, and wrap them in +// brackets. + + v = partial.length === 0 ? '[]' : gap ? + '[\n' + gap + partial.join(',\n' + gap) + '\n' + mind + ']' : + '[' + partial.join(',') + ']'; + gap = mind; + return v; + } + +// If the replacer is an array, use it to select the members to be stringified. + + if (rep && typeof rep === 'object') { + length = rep.length; + for (i = 0; i < length; i += 1) { + k = rep[i]; + if (typeof k === 'string') { + v = str(k, value); + if (v) { + partial.push(quote(k) + (gap ? ': ' : ':') + v); + } + } + } + } else { + +// Otherwise, iterate through all of the keys in the object. + + for (k in value) { + if (Object.prototype.hasOwnProperty.call(value, k)) { + v = str(k, value); + if (v) { + partial.push(quote(k) + (gap ? ': ' : ':') + v); + } + } + } + } + +// Join all of the member texts together, separated with commas, +// and wrap them in braces. + + v = partial.length === 0 ? '{}' : gap ? + '{\n' + gap + partial.join(',\n' + gap) + '\n' + mind + '}' : + '{' + partial.join(',') + '}'; + gap = mind; + return v; + } + } + +// If the JSON object does not yet have a stringify method, give it one. + + if (typeof JSON.stringify !== 'function') { + JSON.stringify = function (value, replacer, space) { + +// The stringify method takes a value and an optional replacer, and an optional +// space parameter, and returns a JSON text. The replacer can be a function +// that can replace values, or an array of strings that will select the keys. +// A default replacer method can be provided. Use of the space parameter can +// produce text that is more easily readable. + + var i; + gap = ''; + indent = ''; + +// If the space parameter is a number, make an indent string containing that +// many spaces. + + if (typeof space === 'number') { + for (i = 0; i < space; i += 1) { + indent += ' '; + } + +// If the space parameter is a string, it will be used as the indent string. + + } else if (typeof space === 'string') { + indent = space; + } + +// If there is a replacer, it must be a function or an array. +// Otherwise, throw an error. + + rep = replacer; + if (replacer && typeof replacer !== 'function' && + (typeof replacer !== 'object' || + typeof replacer.length !== 'number')) { + throw new Error('JSON.stringify'); + } + +// Make a fake root object containing our value under the key of ''. +// Return the result of stringifying the value. + + return str('', {'': value}); + }; + } + + +// If the JSON object does not yet have a parse method, give it one. + + if (typeof JSON.parse !== 'function') { + JSON.parse = function (text, reviver) { + +// The parse method takes a text and an optional reviver function, and returns +// a JavaScript value if the text is a valid JSON text. + + var j; + + function walk(holder, key) { + +// The walk method is used to recursively walk the resulting structure so +// that modifications can be made. + + var k, v, value = holder[key]; + if (value && typeof value === 'object') { + for (k in value) { + if (Object.prototype.hasOwnProperty.call(value, k)) { + v = walk(value, k); + if (v !== undefined) { + value[k] = v; + } else { + delete value[k]; + } + } + } + } + return reviver.call(holder, key, value); + } + + +// Parsing happens in four stages. In the first stage, we replace certain +// Unicode characters with escape sequences. JavaScript handles many characters +// incorrectly, either silently deleting them, or treating them as line endings. + + text = String(text); + cx.lastIndex = 0; + if (cx.test(text)) { + text = text.replace(cx, function (a) { + return '\\u' + + ('0000' + a.charCodeAt(0).toString(16)).slice(-4); + }); + } + +// In the second stage, we run the text against regular expressions that look +// for non-JSON patterns. We are especially concerned with '()' and 'new' +// because they can cause invocation, and '=' because it can cause mutation. +// But just to be safe, we want to reject all unexpected forms. + +// We split the second stage into 4 regexp operations in order to work around +// crippling inefficiencies in IE's and Safari's regexp engines. First we +// replace the JSON backslash pairs with '@' (a non-JSON character). Second, we +// replace all simple value tokens with ']' characters. Third, we delete all +// open brackets that follow a colon or comma or that begin the text. Finally, +// we look to see that the remaining characters are only whitespace or ']' or +// ',' or ':' or '{' or '}'. If that is so, then the text is safe for eval. + + if (/^[\],:{}\s]*$/ + .test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@') + .replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']') + .replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) { + +// In the third stage we use the eval function to compile the text into a +// JavaScript structure. The '{' operator is subject to a syntactic ambiguity +// in JavaScript: it can begin a block or an object literal. We wrap the text +// in parens to eliminate the ambiguity. + + j = eval('(' + text + ')'); + +// In the optional fourth stage, we recursively walk the new structure, passing +// each name/value pair to a reviver function for possible transformation. + + return typeof reviver === 'function' ? + walk({'': j}, '') : j; + } + +// If the text is not JSON parseable, then a SyntaxError is thrown. + + throw new SyntaxError('JSON.parse'); + }; + } + +// Augment the basic prototypes if they have not already been augmented. +// These forms are obsolete. It is recommended that JSON.stringify and +// JSON.parse be used instead. + + if (!Object.prototype.toJSONString) { + Object.prototype.toJSONString = function (filter) { + return JSON.stringify(this, filter); + }; + Object.prototype.parseJSON = function (filter) { + return JSON.parse(this, filter); + }; + } +}()); diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/debian/missing-sources/subdir.js/source.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/debian/missing-sources/subdir.js/source.js new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/debian/rules b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/deployJava/README b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/deployJava/README new file mode 100644 index 00000000..914d1209 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/deployJava/README @@ -0,0 +1 @@ +Here we test deploy java \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/deployJava/deployJava.browser.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/deployJava/deployJava.browser.js new file mode 100644 index 00000000..aa511b32 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/deployJava/deployJava.browser.js @@ -0,0 +1,19 @@ +(function(modules, cache, entry) { + req(entry); + function req(name) { + if (cache[name]) return cache[name].exports; + var m = cache[name] = {exports: {}}; + modules[name][0].call(m.exports, modRequire, m, m.exports, window); + return m.exports; + function modRequire(alias) { + var id = modules[name][1][alias]; + if (!id) throw new Error("Cannot find module " + alias); + return req(id); + } + } +})({0: [function(require,module,exports,global){ +var deployJava=function(){}; +/* simulate a long line */ +var longline = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; + +}, {}],}, {}, 0); diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/deployJava/deployJava.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/deployJava/deployJava.js new file mode 100644 index 00000000..2cb2fb32 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/deployJava/deployJava.js @@ -0,0 +1,3 @@ +var deployJava=function(){}; +/* simulate a long line */ +var longline = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/eval/hints b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/eval/hints new file mode 100644 index 00000000..09582a1c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/eval/hints @@ -0,0 +1,3 @@ +cruft-minified-js (source): source-contains-prebuilt-pandoc-documentation [oldfalsepositives/pandoc/] +cruft-minified-js (source): source-contains-browserified-javascript code fragment:CODE +cruft-minified-js (source): embedded-script-includes-copyright-statement extract of copyright statement: COPYRIGHT diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/-debug.js/src/test-debug.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/-debug.js/src/test-debug.js new file mode 100644 index 00000000..4a35a5a5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/-debug.js/src/test-debug.js @@ -0,0 +1 @@ +//the source diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/-debug.js/src/test-min.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/-debug.js/src/test-min.js new file mode 100644 index 00000000..e1a06552 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/-debug.js/src/test-min.js @@ -0,0 +1,4 @@ +// a very long javascript yuic compressed +/* simulate a long line */ +var longline = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/-nc.js/test-nc.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/-nc.js/test-nc.js new file mode 100644 index 00000000..620611a1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/-nc.js/test-nc.js @@ -0,0 +1 @@ +//the source see zoneminder diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/-nc.js/test-yc.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/-nc.js/test-yc.js new file mode 100644 index 00000000..e1a06552 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/-nc.js/test-yc.js @@ -0,0 +1,4 @@ +// a very long javascript yuic compressed +/* simulate a long line */ +var longline = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/admin.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/admin.js new file mode 100644 index 00000000..3fc1fc2e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/admin.js @@ -0,0 +1 @@ +// this catch missing . in regexp \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/css_browser_selector.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/css_browser_selector.js new file mode 100644 index 00000000..0668aa7e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/css_browser_selector.js @@ -0,0 +1,8 @@ +/* +CSS Browser Selector v0.4.0 (Nov 02, 2010) +Rafael Lima (http://rafael.adm.br) +http://rafael.adm.br/css_browser_selector +License: http://creativecommons.org/licenses/by/2.5/ +Contributors: http://rafael.adm.br/css_browser_selector#contributors +*/ +function css_browser_selector(u){var ua=u.toLowerCase(),is=function(t){return ua.indexOf(t)>-1},g='gecko',w='webkit',s='safari',o='opera',m='mobile',h=document.documentElement,b=[(!(/opera|webtv/i.test(ua))&&/msie\s(\d)/.test(ua))?('ie ie'+RegExp.$1):is('firefox/2')?g+' ff2':is('firefox/3.5')?g+' ff3 ff3_5':is('firefox/3.6')?g+' ff3 ff3_6':is('firefox/3')?g+' ff3':is('gecko/')?g:is('opera')?o+(/version\/(\d+)/.test(ua)?' '+o+RegExp.$1:(/opera(\s|\/)(\d+)/.test(ua)?' '+o+RegExp.$2:'')):is('konqueror')?'konqueror':is('blackberry')?m+' blackberry':is('android')?m+' android':is('chrome')?w+' chrome':is('iron')?w+' iron':is('applewebkit/')?w+' '+s+(/version\/(\d+)/.test(ua)?' '+s+RegExp.$1:''):is('mozilla/')?g:'',is('j2me')?m+' j2me':is('iphone')?m+' iphone':is('ipod')?m+' ipod':is('ipad')?m+' ipad':is('mac')?'mac':is('darwin')?'mac':is('webtv')?'webtv':is('win')?'win'+(is('windows nt 6.0')?' vista':''):is('freebsd')?'freebsd':(is('x11')||is('linux'))?'linux':'','js']; c = b.join(' '); h.className += ' '+c; return c;}; css_browser_selector(navigator.userAgent); diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/debug.js/testdebug.debug.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/debug.js/testdebug.debug.js new file mode 100644 index 00000000..a1c3620e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/debug.js/testdebug.debug.js @@ -0,0 +1 @@ +//the source found for instance in mono diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/debug.js/testdebug.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/debug.js/testdebug.js new file mode 100644 index 00000000..fc9eb658 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/debug.js/testdebug.js @@ -0,0 +1,4 @@ +// a very long javascript yuic compressed +/* simulate a long line */ +var longline = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; var second='X'; + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/deployJava/deployJava.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/deployJava/deployJava.js new file mode 100644 index 00000000..a0a67e87 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/deployJava/deployJava.js @@ -0,0 +1,3 @@ +var deployJava=function(){}; +/* simulate a long line */ +var longline = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/deployJava/deployJava.txt b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/deployJava/deployJava.txt new file mode 100644 index 00000000..a701c9f4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/deployJava/deployJava.txt @@ -0,0 +1 @@ +Here we test if source is available \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/endoflinecomments.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/endoflinecomments.js new file mode 100644 index 00000000..7ab1ddac --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/endoflinecomments.js @@ -0,0 +1,104 @@ +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment +var longlonglong = 5; // comment diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/jslint.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/jslint.js new file mode 100644 index 00000000..d2f68d32 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/jslint.js @@ -0,0 +1,2 @@ +/*jslint evil: true, undef: true, browser: true */ +/*globals $,require,jQuery,define,_selector_run,_selector_opts,_selector_first,_selector_row_indexes,_ext,_Api,_api_register,_api_registerPlural,_re_new_lines,_re_html,_re_formatted_numeric,_re_escape_regex,_empty,_intVal,_numToDecimal,_isNumber,_isHtml,_htmlNumeric,_pluck,_pluck_order,_range,_stripHtml,_unique,_fnBuildAjax,_fnAjaxUpdate,_fnAjaxParameters,_fnAjaxUpdateDraw,_fnAjaxDataSrc,_fnAddColumn,_fnColumnOptions,_fnAdjustColumnSizing,_fnVisibleToColumnIndex,_fnColumnIndexToVisible,_fnVisbleColumns,_fnGetColumns,_fnColumnTypes,_fnApplyColumnDefs,_fnHungarianMap,_fnCamelToHungarian,_fnLanguageCompat,_fnBrowserDetect,_fnAddData,_fnAddTr,_fnNodeToDataIndex,_fnNodeToColumnIndex,_fnGetCellData,_fnSetCellData,_fnSplitObjNotation,_fnGetObjectDataFn,_fnSetObjectDataFn,_fnGetDataMaster,_fnClearTable,_fnDeleteIndex,_fnInvalidate,_fnGetRowElements,_fnCreateTr,_fnBuildHead,_fnDrawHead,_fnDraw,_fnReDraw,_fnAddOptionsHtml,_fnDetectHeader,_fnGetUniqueThs,_fnFeatureHtmlFilter,_fnFilterComplete,_fnFilterCustom,_fnFilterColumn,_fnFilter,_fnFilterCreateSearch,_fnEscapeRegex,_fnFilterData,_fnFeatureHtmlInfo,_fnUpdateInfo,_fnInfoMacros,_fnInitialise,_fnInitComplete,_fnLengthChange,_fnFeatureHtmlLength,_fnFeatureHtmlPaginate,_fnPageChange,_fnFeatureHtmlProcessing,_fnProcessingDisplay,_fnFeatureHtmlTable,_fnScrollDraw,_fnApplyToChildren,_fnCalculateColumnWidths,_fnThrottle,_fnConvertToWidth,_fnGetWidestNode,_fnGetMaxLenString,_fnStringToCss,_fnSortFlatten,_fnSort,_fnSortAria,_fnSortListener,_fnSortAttachListener,_fnSortingClasses,_fnSortData,_fnSaveState,_fnLoadState,_fnSettingsFromNode,_fnLog,_fnMap,_fnBindAction,_fnCallbackReg,_fnCallbackFire,_fnLengthOverflow,_fnRenderer,_fnDataSource,_fnRowAttributes*/ diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/longlicensetext.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/longlicensetext.js new file mode 100644 index 00000000..66222ee9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/longlicensetext.js @@ -0,0 +1,30 @@ +/* long line in fake license */ +/* + * LICENSE + * + * POCKET MARKS + * + * Notwithstanding the permitted uses of the Software (as defined below) pursuant to the license set forth below, "Pocket," "Read It Later" and the Pocket icon and logos (collectively, the “Pocket Marks”) are registered and common law trademarks of Read It Later, Inc. This means that, while you have considerable freedom to redistribute and modify the Software, there are tight restrictions on your ability to use the Pocket Marks. This license does not grant you any rights to use the Pocket Marks except as they are embodied in the Software. + * + * --- + * + * SOFTWARE + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/nested-dir/README b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/nested-dir/README new file mode 100644 index 00000000..2db2f0fc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/nested-dir/README @@ -0,0 +1 @@ +exercice missing dir in relative dir \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/nested-dir/src/fake.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/nested-dir/src/fake.js new file mode 100644 index 00000000..772fe5c0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/nested-dir/src/fake.js @@ -0,0 +1,2 @@ +// fake source +toto='1'; \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/pandoc/search_index.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/pandoc/search_index.js new file mode 100644 index 00000000..077c6f76 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/pandoc/search_index.js @@ -0,0 +1,4 @@ +var search_index = [ +'ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION''ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION''ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION''ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION''ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION''ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION''ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION''ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION''ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION''ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION''ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION''ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION''ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION''ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION','ALLEGRO_CONFIG','ALLEGRO_CONFIG_SECTION',]; +var search_urls = [ +'config.html#allegro_config','config.html#allegro_config_section']; diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/scriptinhtml/falsecopyright.html b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/scriptinhtml/falsecopyright.html new file mode 100644 index 00000000..7267c7f5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/scriptinhtml/falsecopyright.html @@ -0,0 +1,7 @@ + +
+ +
+ \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/singlecolon.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/singlecolon.js new file mode 100644 index 00000000..80e795f3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/singlecolon.js @@ -0,0 +1,3 @@ +/* simulate a long line by with only one ;*/ +var longline = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/sqlite.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/sqlite.js new file mode 100644 index 00000000..8e17061d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/sqlite.js @@ -0,0 +1 @@ +// this one catch lite suffix \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/src.js/test.min.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/src.js/test.min.js new file mode 100644 index 00000000..d47653c2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/src.js/test.min.js @@ -0,0 +1,3 @@ +// a very long javascript yuic compressed +/* simulate a long line */ +var longline = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/src.js/test.src.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/src.js/test.src.js new file mode 100644 index 00000000..4a35a5a5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/src.js/test.src.js @@ -0,0 +1 @@ +//the source diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/suffix/test-compiled.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/suffix/test-compiled.js new file mode 100644 index 00000000..d9fd3cb4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/suffix/test-compiled.js @@ -0,0 +1,2 @@ +// a very long javascript yuic compressed + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/suffix/test-compressed.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/suffix/test-compressed.js new file mode 100644 index 00000000..d9fd3cb4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/suffix/test-compressed.js @@ -0,0 +1,2 @@ +// a very long javascript yuic compressed + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/suffix/test-lite.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/suffix/test-lite.js new file mode 100644 index 00000000..d9fd3cb4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/suffix/test-lite.js @@ -0,0 +1,2 @@ +// a very long javascript yuic compressed + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/suffix/test-min.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/suffix/test-min.js new file mode 100644 index 00000000..d9fd3cb4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/suffix/test-min.js @@ -0,0 +1,2 @@ +// a very long javascript yuic compressed + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/suffix/test-pack.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/suffix/test-pack.js new file mode 100644 index 00000000..d9fd3cb4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/suffix/test-pack.js @@ -0,0 +1,2 @@ +// a very long javascript yuic compressed + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/suffix/test-packed.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/suffix/test-packed.js new file mode 100644 index 00000000..d9fd3cb4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/suffix/test-packed.js @@ -0,0 +1,2 @@ +// a very long javascript yuic compressed + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/suffix/test-yc.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/suffix/test-yc.js new file mode 100644 index 00000000..d9fd3cb4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/suffix/test-yc.js @@ -0,0 +1,2 @@ +// a very long javascript yuic compressed + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/suffix/test.compressed.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/suffix/test.compressed.js new file mode 100644 index 00000000..d9fd3cb4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/suffix/test.compressed.js @@ -0,0 +1,2 @@ +// a very long javascript yuic compressed + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/suffix/test.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/suffix/test.js new file mode 100644 index 00000000..cb851fb0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/suffix/test.js @@ -0,0 +1 @@ +# the source diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/suffix/test.min.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/suffix/test.min.js new file mode 100644 index 00000000..d9fd3cb4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/suffix/test.min.js @@ -0,0 +1,2 @@ +// a very long javascript yuic compressed + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/suffix/test_min.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/suffix/test_min.js new file mode 100644 index 00000000..d9fd3cb4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/oldfalsepositives/suffix/test_min.js @@ -0,0 +1,2 @@ +// a very long javascript yuic compressed + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/src/js/foo.html b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/src/js/foo.html new file mode 100644 index 00000000..5d435694 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/src/js/foo.html @@ -0,0 +1,7 @@ + + + + + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/src/js/foo.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/src/js/foo.js new file mode 100644 index 00000000..9a338bf2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/src/js/foo.js @@ -0,0 +1,529 @@ +/* + json.js + 2012-10-08 + + Public Domain + + No warranty expressed or implied. Use at your own risk. + + This file has been superceded by http://www.JSON.org/json2.js + + See http://www.JSON.org/js.html + + This code should be minified before deployment. + See http://javascript.crockford.com/jsmin.html + + USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO + NOT CONTROL. + + This file adds these methods to JavaScript: + + object.toJSONString(whitelist) + This method produce a JSON text from a JavaScript value. + It must not contain any cyclical references. Illegal values + will be excluded. + + The default conversion for dates is to an ISO string. You can + add a toJSONString method to any date object to get a different + representation. + + The object and array methods can take an optional whitelist + argument. A whitelist is an array of strings. If it is provided, + keys in objects not found in the whitelist are excluded. + + string.parseJSON(filter) + This method parses a JSON text to produce an object or + array. It can throw a SyntaxError exception. + + The optional filter parameter is a function which can filter and + transform the results. It receives each of the keys and values, and + its return value is used instead of the original value. If it + returns what it received, then structure is not modified. If it + returns undefined then the member is deleted. + + Example: + + // Parse the text. If a key contains the string 'date' then + // convert the value to a date. + + myData = text.parseJSON(function (key, value) { + return key.indexOf('date') >= 0 ? new Date(value) : value; + }); + + This file will break programs with improper for..in loops. See + http://yuiblog.com/blog/2006/09/26/for-in-intrigue/ + + This file creates a global JSON object containing two methods: stringify + and parse. + + JSON.stringify(value, replacer, space) + value any JavaScript value, usually an object or array. + + replacer an optional parameter that determines how object + values are stringified for objects. It can be a + function or an array of strings. + + space an optional parameter that specifies the indentation + of nested structures. If it is omitted, the text will + be packed without extra whitespace. If it is a number, + it will specify the number of spaces to indent at each + level. If it is a string (such as '\t' or ' '), + it contains the characters used to indent at each level. + + This method produces a JSON text from a JavaScript value. + + When an object value is found, if the object contains a toJSON + method, its toJSON method will be called and the result will be + stringified. A toJSON method does not serialize: it returns the + value represented by the name/value pair that should be serialized, + or undefined if nothing should be serialized. The toJSON method + will be passed the key associated with the value, and this will be + bound to the object holding the key. + + For example, this would serialize Dates as ISO strings. + + Date.prototype.toJSON = function (key) { + function f(n) { + // Format integers to have at least two digits. + return n < 10 ? '0' + n : n; + } + + return this.getUTCFullYear() + '-' + + f(this.getUTCMonth() + 1) + '-' + + f(this.getUTCDate()) + 'T' + + f(this.getUTCHours()) + ':' + + f(this.getUTCMinutes()) + ':' + + f(this.getUTCSeconds()) + 'Z'; + }; + + You can provide an optional replacer method. It will be passed the + key and value of each member, with this bound to the containing + object. The value that is returned from your method will be + serialized. If your method returns undefined, then the member will + be excluded from the serialization. + + If the replacer parameter is an array of strings, then it will be + used to select the members to be serialized. It filters the results + such that only members with keys listed in the replacer array are + stringified. + + Values that do not have JSON representations, such as undefined or + functions, will not be serialized. Such values in objects will be + dropped; in arrays they will be replaced with null. You can use + a replacer function to replace those with JSON values. + JSON.stringify(undefined) returns undefined. + + The optional space parameter produces a stringification of the + value that is filled with line breaks and indentation to make it + easier to read. + + If the space parameter is a non-empty string, then that string will + be used for indentation. If the space parameter is a number, then + the indentation will be that many spaces. + + Example: + + text = JSON.stringify(['e', {pluribus: 'unum'}]); + // text is '["e",{"pluribus":"unum"}]' + + + text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t'); + // text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]' + + text = JSON.stringify([new Date()], function (key, value) { + return this[key] instanceof Date ? + 'Date(' + this[key] + ')' : value; + }); + // text is '["Date(---current time---)"]' + + + JSON.parse(text, reviver) + This method parses a JSON text to produce an object or array. + It can throw a SyntaxError exception. + + The optional reviver parameter is a function that can filter and + transform the results. It receives each of the keys and values, + and its return value is used instead of the original value. + If it returns what it received, then the structure is not modified. + If it returns undefined then the member is deleted. + + Example: + + // Parse the text. Values that look like ISO date strings will + // be converted to Date objects. + + myData = JSON.parse(text, function (key, value) { + var a; + if (typeof value === 'string') { + a = +/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value); + if (a) { + return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4], + +a[5], +a[6])); + } + } + return value; + }); + + myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) { + var d; + if (typeof value === 'string' && + value.slice(0, 5) === 'Date(' && + value.slice(-1) === ')') { + d = new Date(value.slice(5, -1)); + if (d) { + return d; + } + } + return value; + }); + + + This is a reference implementation. You are free to copy, modify, or + redistribute. +*/ + +/*jslint evil: true, regexp: true, unparam: true */ + +/*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", apply, + call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours, + getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join, + lastIndex, length, parse, parseJSON, prototype, push, replace, slice, + stringify, test, toJSON, toJSONString, toString, valueOf +*/ + + +// Create a JSON object only if one does not already exist. We create the +// methods in a closure to avoid creating global variables. + +if (typeof JSON !== 'object') { + JSON = {}; +} + +(function () { + 'use strict'; + + function f(n) { + // Format integers to have at least two digits. + return n < 10 ? '0' + n : n; + } + + if (typeof Date.prototype.toJSON !== 'function') { + + Date.prototype.toJSON = function (key) { + + return isFinite(this.valueOf()) ? + this.getUTCFullYear() + '-' + + f(this.getUTCMonth() + 1) + '-' + + f(this.getUTCDate()) + 'T' + + f(this.getUTCHours()) + ':' + + f(this.getUTCMinutes()) + ':' + + f(this.getUTCSeconds()) + 'Z' : null; + }; + + String.prototype.toJSON = + Number.prototype.toJSON = + Boolean.prototype.toJSON = function (key) { + return this.valueOf(); + }; + } + + var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, + escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, + gap, + indent, + meta = { // table of character substitutions + '\b': '\\b', + '\t': '\\t', + '\n': '\\n', + '\f': '\\f', + '\r': '\\r', + '"' : '\\"', + '\\': '\\\\' + }, + rep; + + + function quote(string) { + +// If the string contains no control characters, no quote characters, and no +// backslash characters, then we can safely slap some quotes around it. +// Otherwise we must also replace the offending characters with safe escape +// sequences. + + escapable.lastIndex = 0; + return escapable.test(string) ? '"' + string.replace(escapable, function (a) { + var c = meta[a]; + return typeof c === 'string' ? c : + '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4); + }) + '"' : '"' + string + '"'; + } + + + function str(key, holder) { + +// Produce a string from holder[key]. + + var i, // The loop counter. + k, // The member key. + v, // The member value. + length, + mind = gap, + partial, + value = holder[key]; + +// If the value has a toJSON method, call it to obtain a replacement value. + + if (value && typeof value === 'object' && + typeof value.toJSON === 'function') { + value = value.toJSON(key); + } + +// If we were called with a replacer function, then call the replacer to +// obtain a replacement value. + + if (typeof rep === 'function') { + value = rep.call(holder, key, value); + } + +// What happens next depends on the value's type. + + switch (typeof value) { + case 'string': + return quote(value); + + case 'number': + +// JSON numbers must be finite. Encode non-finite numbers as null. + + return isFinite(value) ? String(value) : 'null'; + + case 'boolean': + case 'null': + +// If the value is a boolean or null, convert it to a string. Note: +// typeof null does not produce 'null'. The case is included here in +// the remote chance that this gets fixed someday. + + return String(value); + +// If the type is 'object', we might be dealing with an object or an array or +// null. + + case 'object': + +// Due to a specification blunder in ECMAScript, typeof null is 'object', +// so watch out for that case. + + if (!value) { + return 'null'; + } + +// Make an array to hold the partial results of stringifying this object value. + + gap += indent; + partial = []; + +// Is the value an array? + + if (Object.prototype.toString.apply(value) === '[object Array]') { + +// The value is an array. Stringify every element. Use null as a placeholder +// for non-JSON values. + + length = value.length; + for (i = 0; i < length; i += 1) { + partial[i] = str(i, value) || 'null'; + } + +// Join all of the elements together, separated with commas, and wrap them in +// brackets. + + v = partial.length === 0 ? '[]' : gap ? + '[\n' + gap + partial.join(',\n' + gap) + '\n' + mind + ']' : + '[' + partial.join(',') + ']'; + gap = mind; + return v; + } + +// If the replacer is an array, use it to select the members to be stringified. + + if (rep && typeof rep === 'object') { + length = rep.length; + for (i = 0; i < length; i += 1) { + k = rep[i]; + if (typeof k === 'string') { + v = str(k, value); + if (v) { + partial.push(quote(k) + (gap ? ': ' : ':') + v); + } + } + } + } else { + +// Otherwise, iterate through all of the keys in the object. + + for (k in value) { + if (Object.prototype.hasOwnProperty.call(value, k)) { + v = str(k, value); + if (v) { + partial.push(quote(k) + (gap ? ': ' : ':') + v); + } + } + } + } + +// Join all of the member texts together, separated with commas, +// and wrap them in braces. + + v = partial.length === 0 ? '{}' : gap ? + '{\n' + gap + partial.join(',\n' + gap) + '\n' + mind + '}' : + '{' + partial.join(',') + '}'; + gap = mind; + return v; + } + } + +// If the JSON object does not yet have a stringify method, give it one. + + if (typeof JSON.stringify !== 'function') { + JSON.stringify = function (value, replacer, space) { + +// The stringify method takes a value and an optional replacer, and an optional +// space parameter, and returns a JSON text. The replacer can be a function +// that can replace values, or an array of strings that will select the keys. +// A default replacer method can be provided. Use of the space parameter can +// produce text that is more easily readable. + + var i; + gap = ''; + indent = ''; + +// If the space parameter is a number, make an indent string containing that +// many spaces. + + if (typeof space === 'number') { + for (i = 0; i < space; i += 1) { + indent += ' '; + } + +// If the space parameter is a string, it will be used as the indent string. + + } else if (typeof space === 'string') { + indent = space; + } + +// If there is a replacer, it must be a function or an array. +// Otherwise, throw an error. + + rep = replacer; + if (replacer && typeof replacer !== 'function' && + (typeof replacer !== 'object' || + typeof replacer.length !== 'number')) { + throw new Error('JSON.stringify'); + } + +// Make a fake root object containing our value under the key of ''. +// Return the result of stringifying the value. + + return str('', {'': value}); + }; + } + + +// If the JSON object does not yet have a parse method, give it one. + + if (typeof JSON.parse !== 'function') { + JSON.parse = function (text, reviver) { + +// The parse method takes a text and an optional reviver function, and returns +// a JavaScript value if the text is a valid JSON text. + + var j; + + function walk(holder, key) { + +// The walk method is used to recursively walk the resulting structure so +// that modifications can be made. + + var k, v, value = holder[key]; + if (value && typeof value === 'object') { + for (k in value) { + if (Object.prototype.hasOwnProperty.call(value, k)) { + v = walk(value, k); + if (v !== undefined) { + value[k] = v; + } else { + delete value[k]; + } + } + } + } + return reviver.call(holder, key, value); + } + + +// Parsing happens in four stages. In the first stage, we replace certain +// Unicode characters with escape sequences. JavaScript handles many characters +// incorrectly, either silently deleting them, or treating them as line endings. + + text = String(text); + cx.lastIndex = 0; + if (cx.test(text)) { + text = text.replace(cx, function (a) { + return '\\u' + + ('0000' + a.charCodeAt(0).toString(16)).slice(-4); + }); + } + +// In the second stage, we run the text against regular expressions that look +// for non-JSON patterns. We are especially concerned with '()' and 'new' +// because they can cause invocation, and '=' because it can cause mutation. +// But just to be safe, we want to reject all unexpected forms. + +// We split the second stage into 4 regexp operations in order to work around +// crippling inefficiencies in IE's and Safari's regexp engines. First we +// replace the JSON backslash pairs with '@' (a non-JSON character). Second, we +// replace all simple value tokens with ']' characters. Third, we delete all +// open brackets that follow a colon or comma or that begin the text. Finally, +// we look to see that the remaining characters are only whitespace or ']' or +// ',' or ':' or '{' or '}'. If that is so, then the text is safe for eval. + + if (/^[\],:{}\s]*$/ + .test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@') + .replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']') + .replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) { + +// In the third stage we use the eval function to compile the text into a +// JavaScript structure. The '{' operator is subject to a syntactic ambiguity +// in JavaScript: it can begin a block or an object literal. We wrap the text +// in parens to eliminate the ambiguity. + + j = eval('(' + text + ')'); + +// In the optional fourth stage, we recursively walk the new structure, passing +// each name/value pair to a reviver function for possible transformation. + + return typeof reviver === 'function' ? + walk({'': j}, '') : j; + } + +// If the text is not JSON parseable, then a SyntaxError is thrown. + + throw new SyntaxError('JSON.parse'); + }; + } + +// Augment the basic prototypes if they have not already been augmented. +// These forms are obsolete. It is recommended that JSON.stringify and +// JSON.parse be used instead. + + if (!Object.prototype.toJSONString) { + Object.prototype.toJSONString = function (filter) { + return JSON.stringify(this, filter); + }; + Object.prototype.parseJSON = function (filter) { + return JSON.parse(this, filter); + }; + } +}()); diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/usr/share/javascript/json/json.min.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/usr/share/javascript/json/json.min.js new file mode 100644 index 00000000..be044ca1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/usr/share/javascript/json/json.min.js @@ -0,0 +1 @@ +if(typeof JSON!=="object"){JSON={}}(function(){"use strict";function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i= 0 ? new Date(value) : value; + }); + + This file will break programs with improper for..in loops. See + http://yuiblog.com/blog/2006/09/26/for-in-intrigue/ + + This file creates a global JSON object containing two methods: stringify + and parse. + + JSON.stringify(value, replacer, space) + value any JavaScript value, usually an object or array. + + replacer an optional parameter that determines how object + values are stringified for objects. It can be a + function or an array of strings. + + space an optional parameter that specifies the indentation + of nested structures. If it is omitted, the text will + be packed without extra whitespace. If it is a number, + it will specify the number of spaces to indent at each + level. If it is a string (such as '\t' or ' '), + it contains the characters used to indent at each level. + + This method produces a JSON text from a JavaScript value. + + When an object value is found, if the object contains a toJSON + method, its toJSON method will be called and the result will be + stringified. A toJSON method does not serialize: it returns the + value represented by the name/value pair that should be serialized, + or undefined if nothing should be serialized. The toJSON method + will be passed the key associated with the value, and this will be + bound to the object holding the key. + + For example, this would serialize Dates as ISO strings. + + Date.prototype.toJSON = function (key) { + function f(n) { + // Format integers to have at least two digits. + return n < 10 ? '0' + n : n; + } + + return this.getUTCFullYear() + '-' + + f(this.getUTCMonth() + 1) + '-' + + f(this.getUTCDate()) + 'T' + + f(this.getUTCHours()) + ':' + + f(this.getUTCMinutes()) + ':' + + f(this.getUTCSeconds()) + 'Z'; + }; + + You can provide an optional replacer method. It will be passed the + key and value of each member, with this bound to the containing + object. The value that is returned from your method will be + serialized. If your method returns undefined, then the member will + be excluded from the serialization. + + If the replacer parameter is an array of strings, then it will be + used to select the members to be serialized. It filters the results + such that only members with keys listed in the replacer array are + stringified. + + Values that do not have JSON representations, such as undefined or + functions, will not be serialized. Such values in objects will be + dropped; in arrays they will be replaced with null. You can use + a replacer function to replace those with JSON values. + JSON.stringify(undefined) returns undefined. + + The optional space parameter produces a stringification of the + value that is filled with line breaks and indentation to make it + easier to read. + + If the space parameter is a non-empty string, then that string will + be used for indentation. If the space parameter is a number, then + the indentation will be that many spaces. + + Example: + + text = JSON.stringify(['e', {pluribus: 'unum'}]); + // text is '["e",{"pluribus":"unum"}]' + + + text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t'); + // text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]' + + text = JSON.stringify([new Date()], function (key, value) { + return this[key] instanceof Date ? + 'Date(' + this[key] + ')' : value; + }); + // text is '["Date(---current time---)"]' + + + JSON.parse(text, reviver) + This method parses a JSON text to produce an object or array. + It can throw a SyntaxError exception. + + The optional reviver parameter is a function that can filter and + transform the results. It receives each of the keys and values, + and its return value is used instead of the original value. + If it returns what it received, then the structure is not modified. + If it returns undefined then the member is deleted. + + Example: + + // Parse the text. Values that look like ISO date strings will + // be converted to Date objects. + + myData = JSON.parse(text, function (key, value) { + var a; + if (typeof value === 'string') { + a = +/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value); + if (a) { + return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4], + +a[5], +a[6])); + } + } + return value; + }); + + myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) { + var d; + if (typeof value === 'string' && + value.slice(0, 5) === 'Date(' && + value.slice(-1) === ')') { + d = new Date(value.slice(5, -1)); + if (d) { + return d; + } + } + return value; + }); + + + This is a reference implementation. You are free to copy, modify, or + redistribute. +*/ + +/*jslint evil: true, regexp: true, unparam: true */ + +/*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", apply, + call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours, + getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join, + lastIndex, length, parse, parseJSON, prototype, push, replace, slice, + stringify, test, toJSON, toJSONString, toString, valueOf +*/ + + +// Create a JSON object only if one does not already exist. We create the +// methods in a closure to avoid creating global variables. + +if (typeof JSON !== 'object') { + JSON = {}; +} + +(function () { + 'use strict'; + + function f(n) { + // Format integers to have at least two digits. + return n < 10 ? '0' + n : n; + } + + if (typeof Date.prototype.toJSON !== 'function') { + + Date.prototype.toJSON = function (key) { + + return isFinite(this.valueOf()) ? + this.getUTCFullYear() + '-' + + f(this.getUTCMonth() + 1) + '-' + + f(this.getUTCDate()) + 'T' + + f(this.getUTCHours()) + ':' + + f(this.getUTCMinutes()) + ':' + + f(this.getUTCSeconds()) + 'Z' : null; + }; + + String.prototype.toJSON = + Number.prototype.toJSON = + Boolean.prototype.toJSON = function (key) { + return this.valueOf(); + }; + } + + var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, + escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, + gap, + indent, + meta = { // table of character substitutions + '\b': '\\b', + '\t': '\\t', + '\n': '\\n', + '\f': '\\f', + '\r': '\\r', + '"' : '\\"', + '\\': '\\\\' + }, + rep; + + + function quote(string) { + +// If the string contains no control characters, no quote characters, and no +// backslash characters, then we can safely slap some quotes around it. +// Otherwise we must also replace the offending characters with safe escape +// sequences. + + escapable.lastIndex = 0; + return escapable.test(string) ? '"' + string.replace(escapable, function (a) { + var c = meta[a]; + return typeof c === 'string' ? c : + '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4); + }) + '"' : '"' + string + '"'; + } + + + function str(key, holder) { + +// Produce a string from holder[key]. + + var i, // The loop counter. + k, // The member key. + v, // The member value. + length, + mind = gap, + partial, + value = holder[key]; + +// If the value has a toJSON method, call it to obtain a replacement value. + + if (value && typeof value === 'object' && + typeof value.toJSON === 'function') { + value = value.toJSON(key); + } + +// If we were called with a replacer function, then call the replacer to +// obtain a replacement value. + + if (typeof rep === 'function') { + value = rep.call(holder, key, value); + } + +// What happens next depends on the value's type. + + switch (typeof value) { + case 'string': + return quote(value); + + case 'number': + +// JSON numbers must be finite. Encode non-finite numbers as null. + + return isFinite(value) ? String(value) : 'null'; + + case 'boolean': + case 'null': + +// If the value is a boolean or null, convert it to a string. Note: +// typeof null does not produce 'null'. The case is included here in +// the remote chance that this gets fixed someday. + + return String(value); + +// If the type is 'object', we might be dealing with an object or an array or +// null. + + case 'object': + +// Due to a specification blunder in ECMAScript, typeof null is 'object', +// so watch out for that case. + + if (!value) { + return 'null'; + } + +// Make an array to hold the partial results of stringifying this object value. + + gap += indent; + partial = []; + +// Is the value an array? + + if (Object.prototype.toString.apply(value) === '[object Array]') { + +// The value is an array. Stringify every element. Use null as a placeholder +// for non-JSON values. + + length = value.length; + for (i = 0; i < length; i += 1) { + partial[i] = str(i, value) || 'null'; + } + +// Join all of the elements together, separated with commas, and wrap them in +// brackets. + + v = partial.length === 0 ? '[]' : gap ? + '[\n' + gap + partial.join(',\n' + gap) + '\n' + mind + ']' : + '[' + partial.join(',') + ']'; + gap = mind; + return v; + } + +// If the replacer is an array, use it to select the members to be stringified. + + if (rep && typeof rep === 'object') { + length = rep.length; + for (i = 0; i < length; i += 1) { + k = rep[i]; + if (typeof k === 'string') { + v = str(k, value); + if (v) { + partial.push(quote(k) + (gap ? ': ' : ':') + v); + } + } + } + } else { + +// Otherwise, iterate through all of the keys in the object. + + for (k in value) { + if (Object.prototype.hasOwnProperty.call(value, k)) { + v = str(k, value); + if (v) { + partial.push(quote(k) + (gap ? ': ' : ':') + v); + } + } + } + } + +// Join all of the member texts together, separated with commas, +// and wrap them in braces. + + v = partial.length === 0 ? '{}' : gap ? + '{\n' + gap + partial.join(',\n' + gap) + '\n' + mind + '}' : + '{' + partial.join(',') + '}'; + gap = mind; + return v; + } + } + +// If the JSON object does not yet have a stringify method, give it one. + + if (typeof JSON.stringify !== 'function') { + JSON.stringify = function (value, replacer, space) { + +// The stringify method takes a value and an optional replacer, and an optional +// space parameter, and returns a JSON text. The replacer can be a function +// that can replace values, or an array of strings that will select the keys. +// A default replacer method can be provided. Use of the space parameter can +// produce text that is more easily readable. + + var i; + gap = ''; + indent = ''; + +// If the space parameter is a number, make an indent string containing that +// many spaces. + + if (typeof space === 'number') { + for (i = 0; i < space; i += 1) { + indent += ' '; + } + +// If the space parameter is a string, it will be used as the indent string. + + } else if (typeof space === 'string') { + indent = space; + } + +// If there is a replacer, it must be a function or an array. +// Otherwise, throw an error. + + rep = replacer; + if (replacer && typeof replacer !== 'function' && + (typeof replacer !== 'object' || + typeof replacer.length !== 'number')) { + throw new Error('JSON.stringify'); + } + +// Make a fake root object containing our value under the key of ''. +// Return the result of stringifying the value. + + return str('', {'': value}); + }; + } + + +// If the JSON object does not yet have a parse method, give it one. + + if (typeof JSON.parse !== 'function') { + JSON.parse = function (text, reviver) { + +// The parse method takes a text and an optional reviver function, and returns +// a JavaScript value if the text is a valid JSON text. + + var j; + + function walk(holder, key) { + +// The walk method is used to recursively walk the resulting structure so +// that modifications can be made. + + var k, v, value = holder[key]; + if (value && typeof value === 'object') { + for (k in value) { + if (Object.prototype.hasOwnProperty.call(value, k)) { + v = walk(value, k); + if (v !== undefined) { + value[k] = v; + } else { + delete value[k]; + } + } + } + } + return reviver.call(holder, key, value); + } + + +// Parsing happens in four stages. In the first stage, we replace certain +// Unicode characters with escape sequences. JavaScript handles many characters +// incorrectly, either silently deleting them, or treating them as line endings. + + text = String(text); + cx.lastIndex = 0; + if (cx.test(text)) { + text = text.replace(cx, function (a) { + return '\\u' + + ('0000' + a.charCodeAt(0).toString(16)).slice(-4); + }); + } + +// In the second stage, we run the text against regular expressions that look +// for non-JSON patterns. We are especially concerned with '()' and 'new' +// because they can cause invocation, and '=' because it can cause mutation. +// But just to be safe, we want to reject all unexpected forms. + +// We split the second stage into 4 regexp operations in order to work around +// crippling inefficiencies in IE's and Safari's regexp engines. First we +// replace the JSON backslash pairs with '@' (a non-JSON character). Second, we +// replace all simple value tokens with ']' characters. Third, we delete all +// open brackets that follow a colon or comma or that begin the text. Finally, +// we look to see that the remaining characters are only whitespace or ']' or +// ',' or ':' or '{' or '}'. If that is so, then the text is safe for eval. + + if (/^[\],:{}\s]*$/ + .test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@') + .replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']') + .replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) { + +// In the third stage we use the eval function to compile the text into a +// JavaScript structure. The '{' operator is subject to a syntactic ambiguity +// in JavaScript: it can begin a block or an object literal. We wrap the text +// in parens to eliminate the ambiguity. + + j = eval('(' + text + ')'); + +// In the optional fourth stage, we recursively walk the new structure, passing +// each name/value pair to a reviver function for possible transformation. + + return typeof reviver === 'function' ? + walk({'': j}, '') : j; + } + +// If the text is not JSON parseable, then a SyntaxError is thrown. + + throw new SyntaxError('JSON.parse'); + }; + } + +// Augment the basic prototypes if they have not already been augmented. +// These forms are obsolete. It is recommended that JSON.stringify and +// JSON.parse be used instead. + + if (!Object.prototype.toJSONString) { + Object.prototype.toJSONString = function (filter) { + return JSON.stringify(this, filter); + }; + Object.prototype.parseJSON = function (filter) { + return JSON.parse(this, filter); + }; + } +}()); diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/usr/share/javascript/sourced/sourced.min.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/usr/share/javascript/sourced/sourced.min.js new file mode 100644 index 00000000..be044ca1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-minified-js/usr/share/javascript/sourced/sourced.min.js @@ -0,0 +1 @@ +if(typeof JSON!=="object"){JSON={}}(function(){"use strict";function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i= 0 ? new Date(value) : value; + }); + + This file will break programs with improper for..in loops. See + http://yuiblog.com/blog/2006/09/26/for-in-intrigue/ + + This file creates a global JSON object containing two methods: stringify + and parse. + + JSON.stringify(value, replacer, space) + value any JavaScript value, usually an object or array. + + replacer an optional parameter that determines how object + values are stringified for objects. It can be a + function or an array of strings. + + space an optional parameter that specifies the indentation + of nested structures. If it is omitted, the text will + be packed without extra whitespace. If it is a number, + it will specify the number of spaces to indent at each + level. If it is a string (such as '\t' or ' '), + it contains the characters used to indent at each level. + + This method produces a JSON text from a JavaScript value. + + When an object value is found, if the object contains a toJSON + method, its toJSON method will be called and the result will be + stringified. A toJSON method does not serialize: it returns the + value represented by the name/value pair that should be serialized, + or undefined if nothing should be serialized. The toJSON method + will be passed the key associated with the value, and this will be + bound to the object holding the key. + + For example, this would serialize Dates as ISO strings. + + Date.prototype.toJSON = function (key) { + function f(n) { + // Format integers to have at least two digits. + return n < 10 ? '0' + n : n; + } + + return this.getUTCFullYear() + '-' + + f(this.getUTCMonth() + 1) + '-' + + f(this.getUTCDate()) + 'T' + + f(this.getUTCHours()) + ':' + + f(this.getUTCMinutes()) + ':' + + f(this.getUTCSeconds()) + 'Z'; + }; + + You can provide an optional replacer method. It will be passed the + key and value of each member, with this bound to the containing + object. The value that is returned from your method will be + serialized. If your method returns undefined, then the member will + be excluded from the serialization. + + If the replacer parameter is an array of strings, then it will be + used to select the members to be serialized. It filters the results + such that only members with keys listed in the replacer array are + stringified. + + Values that do not have JSON representations, such as undefined or + functions, will not be serialized. Such values in objects will be + dropped; in arrays they will be replaced with null. You can use + a replacer function to replace those with JSON values. + JSON.stringify(undefined) returns undefined. + + The optional space parameter produces a stringification of the + value that is filled with line breaks and indentation to make it + easier to read. + + If the space parameter is a non-empty string, then that string will + be used for indentation. If the space parameter is a number, then + the indentation will be that many spaces. + + Example: + + text = JSON.stringify(['e', {pluribus: 'unum'}]); + // text is '["e",{"pluribus":"unum"}]' + + + text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t'); + // text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]' + + text = JSON.stringify([new Date()], function (key, value) { + return this[key] instanceof Date ? + 'Date(' + this[key] + ')' : value; + }); + // text is '["Date(---current time---)"]' + + + JSON.parse(text, reviver) + This method parses a JSON text to produce an object or array. + It can throw a SyntaxError exception. + + The optional reviver parameter is a function that can filter and + transform the results. It receives each of the keys and values, + and its return value is used instead of the original value. + If it returns what it received, then the structure is not modified. + If it returns undefined then the member is deleted. + + Example: + + // Parse the text. Values that look like ISO date strings will + // be converted to Date objects. + + myData = JSON.parse(text, function (key, value) { + var a; + if (typeof value === 'string') { + a = +/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value); + if (a) { + return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4], + +a[5], +a[6])); + } + } + return value; + }); + + myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) { + var d; + if (typeof value === 'string' && + value.slice(0, 5) === 'Date(' && + value.slice(-1) === ')') { + d = new Date(value.slice(5, -1)); + if (d) { + return d; + } + } + return value; + }); + + + This is a reference implementation. You are free to copy, modify, or + redistribute. +*/ + +/*jslint evil: true, regexp: true, unparam: true */ + +/*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", apply, + call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours, + getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join, + lastIndex, length, parse, parseJSON, prototype, push, replace, slice, + stringify, test, toJSON, toJSONString, toString, valueOf +*/ + + +// Create a JSON object only if one does not already exist. We create the +// methods in a closure to avoid creating global variables. + +if (typeof JSON !== 'object') { + JSON = {}; +} + +(function () { + 'use strict'; + + function f(n) { + // Format integers to have at least two digits. + return n < 10 ? '0' + n : n; + } + + if (typeof Date.prototype.toJSON !== 'function') { + + Date.prototype.toJSON = function (key) { + + return isFinite(this.valueOf()) ? + this.getUTCFullYear() + '-' + + f(this.getUTCMonth() + 1) + '-' + + f(this.getUTCDate()) + 'T' + + f(this.getUTCHours()) + ':' + + f(this.getUTCMinutes()) + ':' + + f(this.getUTCSeconds()) + 'Z' : null; + }; + + String.prototype.toJSON = + Number.prototype.toJSON = + Boolean.prototype.toJSON = function (key) { + return this.valueOf(); + }; + } + + var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, + escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, + gap, + indent, + meta = { // table of character substitutions + '\b': '\\b', + '\t': '\\t', + '\n': '\\n', + '\f': '\\f', + '\r': '\\r', + '"' : '\\"', + '\\': '\\\\' + }, + rep; + + + function quote(string) { + +// If the string contains no control characters, no quote characters, and no +// backslash characters, then we can safely slap some quotes around it. +// Otherwise we must also replace the offending characters with safe escape +// sequences. + + escapable.lastIndex = 0; + return escapable.test(string) ? '"' + string.replace(escapable, function (a) { + var c = meta[a]; + return typeof c === 'string' ? c : + '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4); + }) + '"' : '"' + string + '"'; + } + + + function str(key, holder) { + +// Produce a string from holder[key]. + + var i, // The loop counter. + k, // The member key. + v, // The member value. + length, + mind = gap, + partial, + value = holder[key]; + +// If the value has a toJSON method, call it to obtain a replacement value. + + if (value && typeof value === 'object' && + typeof value.toJSON === 'function') { + value = value.toJSON(key); + } + +// If we were called with a replacer function, then call the replacer to +// obtain a replacement value. + + if (typeof rep === 'function') { + value = rep.call(holder, key, value); + } + +// What happens next depends on the value's type. + + switch (typeof value) { + case 'string': + return quote(value); + + case 'number': + +// JSON numbers must be finite. Encode non-finite numbers as null. + + return isFinite(value) ? String(value) : 'null'; + + case 'boolean': + case 'null': + +// If the value is a boolean or null, convert it to a string. Note: +// typeof null does not produce 'null'. The case is included here in +// the remote chance that this gets fixed someday. + + return String(value); + +// If the type is 'object', we might be dealing with an object or an array or +// null. + + case 'object': + +// Due to a specification blunder in ECMAScript, typeof null is 'object', +// so watch out for that case. + + if (!value) { + return 'null'; + } + +// Make an array to hold the partial results of stringifying this object value. + + gap += indent; + partial = []; + +// Is the value an array? + + if (Object.prototype.toString.apply(value) === '[object Array]') { + +// The value is an array. Stringify every element. Use null as a placeholder +// for non-JSON values. + + length = value.length; + for (i = 0; i < length; i += 1) { + partial[i] = str(i, value) || 'null'; + } + +// Join all of the elements together, separated with commas, and wrap them in +// brackets. + + v = partial.length === 0 ? '[]' : gap ? + '[\n' + gap + partial.join(',\n' + gap) + '\n' + mind + ']' : + '[' + partial.join(',') + ']'; + gap = mind; + return v; + } + +// If the replacer is an array, use it to select the members to be stringified. + + if (rep && typeof rep === 'object') { + length = rep.length; + for (i = 0; i < length; i += 1) { + k = rep[i]; + if (typeof k === 'string') { + v = str(k, value); + if (v) { + partial.push(quote(k) + (gap ? ': ' : ':') + v); + } + } + } + } else { + +// Otherwise, iterate through all of the keys in the object. + + for (k in value) { + if (Object.prototype.hasOwnProperty.call(value, k)) { + v = str(k, value); + if (v) { + partial.push(quote(k) + (gap ? ': ' : ':') + v); + } + } + } + } + +// Join all of the member texts together, separated with commas, +// and wrap them in braces. + + v = partial.length === 0 ? '{}' : gap ? + '{\n' + gap + partial.join(',\n' + gap) + '\n' + mind + '}' : + '{' + partial.join(',') + '}'; + gap = mind; + return v; + } + } + +// If the JSON object does not yet have a stringify method, give it one. + + if (typeof JSON.stringify !== 'function') { + JSON.stringify = function (value, replacer, space) { + +// The stringify method takes a value and an optional replacer, and an optional +// space parameter, and returns a JSON text. The replacer can be a function +// that can replace values, or an array of strings that will select the keys. +// A default replacer method can be provided. Use of the space parameter can +// produce text that is more easily readable. + + var i; + gap = ''; + indent = ''; + +// If the space parameter is a number, make an indent string containing that +// many spaces. + + if (typeof space === 'number') { + for (i = 0; i < space; i += 1) { + indent += ' '; + } + +// If the space parameter is a string, it will be used as the indent string. + + } else if (typeof space === 'string') { + indent = space; + } + +// If there is a replacer, it must be a function or an array. +// Otherwise, throw an error. + + rep = replacer; + if (replacer && typeof replacer !== 'function' && + (typeof replacer !== 'object' || + typeof replacer.length !== 'number')) { + throw new Error('JSON.stringify'); + } + +// Make a fake root object containing our value under the key of ''. +// Return the result of stringifying the value. + + return str('', {'': value}); + }; + } + + +// If the JSON object does not yet have a parse method, give it one. + + if (typeof JSON.parse !== 'function') { + JSON.parse = function (text, reviver) { + +// The parse method takes a text and an optional reviver function, and returns +// a JavaScript value if the text is a valid JSON text. + + var j; + + function walk(holder, key) { + +// The walk method is used to recursively walk the resulting structure so +// that modifications can be made. + + var k, v, value = holder[key]; + if (value && typeof value === 'object') { + for (k in value) { + if (Object.prototype.hasOwnProperty.call(value, k)) { + v = walk(value, k); + if (v !== undefined) { + value[k] = v; + } else { + delete value[k]; + } + } + } + } + return reviver.call(holder, key, value); + } + + +// Parsing happens in four stages. In the first stage, we replace certain +// Unicode characters with escape sequences. JavaScript handles many characters +// incorrectly, either silently deleting them, or treating them as line endings. + + text = String(text); + cx.lastIndex = 0; + if (cx.test(text)) { + text = text.replace(cx, function (a) { + return '\\u' + + ('0000' + a.charCodeAt(0).toString(16)).slice(-4); + }); + } + +// In the second stage, we run the text against regular expressions that look +// for non-JSON patterns. We are especially concerned with '()' and 'new' +// because they can cause invocation, and '=' because it can cause mutation. +// But just to be safe, we want to reject all unexpected forms. + +// We split the second stage into 4 regexp operations in order to work around +// crippling inefficiencies in IE's and Safari's regexp engines. First we +// replace the JSON backslash pairs with '@' (a non-JSON character). Second, we +// replace all simple value tokens with ']' characters. Third, we delete all +// open brackets that follow a colon or comma or that begin the text. Finally, +// we look to see that the remaining characters are only whitespace or ']' or +// ',' or ':' or '{' or '}'. If that is so, then the text is safe for eval. + + if (/^[\],:{}\s]*$/ + .test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@') + .replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']') + .replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) { + +// In the third stage we use the eval function to compile the text into a +// JavaScript structure. The '{' operator is subject to a syntactic ambiguity +// in JavaScript: it can begin a block or an object literal. We wrap the text +// in parens to eliminate the ambiguity. + + j = eval('(' + text + ')'); + +// In the optional fourth stage, we recursively walk the new structure, passing +// each name/value pair to a reviver function for possible transformation. + + return typeof reviver === 'function' ? + walk({'': j}, '') : j; + } + +// If the text is not JSON parseable, then a SyntaxError is thrown. + + throw new SyntaxError('JSON.parse'); + }; + } + +// Augment the basic prototypes if they have not already been augmented. +// These forms are obsolete. It is recommended that JSON.stringify and +// JSON.parse be used instead. + + if (!Object.prototype.toJSONString) { + Object.prototype.toJSONString = function (filter) { + return JSON.stringify(this, filter); + }; + Object.prototype.parseJSON = function (filter) { + return JSON.parse(this, filter); + }; + } +}()); diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/ORIGIN new file mode 100644 index 00000000..b88bb7ca --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/cruft/cruft-non-free-rfc + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/debian/changelog new file mode 100644 index 00000000..f4f11074 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/debian/changelog @@ -0,0 +1,17 @@ +cruft-non-free-rfc (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-non-free-rfc + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +cruft-non-free-rfc (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-non-free-rfc + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/debian/control b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/debian/control new file mode 100644 index 00000000..dfc8495c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/debian/control @@ -0,0 +1,17 @@ +Source: cruft-non-free-rfc +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: cruft-non-free-rfc +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for the rfc + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/debian/copyright new file mode 100644 index 00000000..f2134e72 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/debian/copyright @@ -0,0 +1,25 @@ +(False positive; debian/copyright should be ignored) + +Copyright (C) The Internet Society (1999). All Rights Reserved. + +This document and translations of it may be copied and furnished to others, +and derivative works that comment on or otherwise explain it or assist in +its implementation may be prepared, copied, published and distributed, in +whole or in part, without restriction of any kind, provided that the above +copyright notice and this paragraph are included on all such copies and +derivative works. However, this document itself may not be modified in any +way, such as by removing the copyright notice or references to the Internet +Society or other Internet organizations, except as needed for the purpose of +developing Internet standards in which case the procedures for copyrights +defined in the Internet Standards process must be followed, or as required +to translate it into languages other than English. + +The limited permissions granted above are perpetual and will not be revoked +by the Internet Society or its successors or assigns. + +This document and the information contained herein is provided on an "AS IS" +basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING TASK FORCE +DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO +ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY +RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A +PARTICULAR PURPOSE. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/debian/rules b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/eval/hints b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/eval/hints new file mode 100644 index 00000000..9a2bd8a7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/eval/hints @@ -0,0 +1,2 @@ +cruft-non-free-rfc (source): license-problem-non-free-RFC-BCP78 [src/bcp78.txt] +cruft-non-free-rfc (source): license-problem-non-free-RFC [src/rfc.txt] diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/src/bcp78.txt b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/src/bcp78.txt new file mode 100644 index 00000000..066de8bc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/src/bcp78.txt @@ -0,0 +1,3 @@ +This document is subject to the rights, licenses and restrictions +contained in BCP 78, and except as set forth therein, the authors +retain all their rights. \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/src/rfc-3492.txt b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/src/rfc-3492.txt new file mode 100644 index 00000000..6ab73b03 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/src/rfc-3492.txt @@ -0,0 +1,23 @@ +Copyright (C) The Internet Society (1999). All Rights Reserved. + +This document and translations of it may be copied and furnished to others, +and derivative works that comment on or otherwise explain it or assist in +its implementation may be prepared, copied, published and distributed, in +whole or in part, without restriction of any kind, provided that the above +copyright notice and this paragraph are included on all such copies and +derivative works. However, this document itself may not be modified in any +way, such as by removing the copyright notice or references to the Internet +Society or other Internet organizations, except as needed for the purpose of +developing Internet standards in which case the procedures for copyrights +defined in the Internet Standards process must be followed, or as required +to translate it into languages other than English. + +The limited permissions granted above are perpetual and will not be revoked +by the Internet Society or its successors or assigns. + +This document and the information contained herein is provided on an "AS IS" +basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING TASK FORCE +DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO +ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY +RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A +PARTICULAR PURPOSE. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/src/rfc.txt b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/src/rfc.txt new file mode 100644 index 00000000..6ab73b03 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-non-free-rfc/src/rfc.txt @@ -0,0 +1,23 @@ +Copyright (C) The Internet Society (1999). All Rights Reserved. + +This document and translations of it may be copied and furnished to others, +and derivative works that comment on or otherwise explain it or assist in +its implementation may be prepared, copied, published and distributed, in +whole or in part, without restriction of any kind, provided that the above +copyright notice and this paragraph are included on all such copies and +derivative works. However, this document itself may not be modified in any +way, such as by removing the copyright notice or references to the Internet +Society or other Internet organizations, except as needed for the purpose of +developing Internet standards in which case the procedures for copyrights +defined in the Internet Standards process must be followed, or as required +to translate it into languages other than English. + +The limited permissions granted above are perpetual and will not be revoked +by the Internet Society or its successors or assigns. + +This document and the information contained herein is provided on an "AS IS" +basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING TASK FORCE +DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO +ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY +RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A +PARTICULAR PURPOSE. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/ORIGIN new file mode 100644 index 00000000..f2ab380a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/cruft/cruft-nvidia-intellectual + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/debian/changelog new file mode 100644 index 00000000..facd931f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/debian/changelog @@ -0,0 +1,17 @@ +cruft-nvidia-intellectual (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-nvidia-intellectual + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +cruft-nvidia-intellectual (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-nvidia-intellectual + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/debian/control b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/debian/control new file mode 100644 index 00000000..c8a00870 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/debian/control @@ -0,0 +1,17 @@ +Source: cruft-nvidia-intellectual +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: cruft-nvidia-intellectual +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for the Nvidia intellectual license + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/debian/rules b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/eval/hints b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/eval/hints new file mode 100644 index 00000000..8dbeba6f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/eval/hints @@ -0,0 +1,2 @@ +cruft-nvidia-intellectual (source): license-problem-nvidia-intellectual [src/badcv2.c] +cruft-nvidia-intellectual (source): license-problem-nvidia-intellectual [src/badcv.c] diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/src/badcv.c b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/src/badcv.c new file mode 100644 index 00000000..2014f17e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/src/badcv.c @@ -0,0 +1,12 @@ +/* + * Acme Corporation and its licensors retain all intellectual property and + * proprietary rights in and to this software and related documentation. + * Any use, reproduction, disclosure, or distribution of this software + * and related documentation without an express license agreement from + * Acme Corporation is strictly prohibited. + * + * Please refer to the applicable Acme end user license agreement (EULA) + * associated with this source code for terms and conditions that govern + * your use of this Acme software. + * + */ diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/src/badcv2.c b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/src/badcv2.c new file mode 100644 index 00000000..cbabced6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/src/badcv2.c @@ -0,0 +1,10 @@ +/* + * Copyright 1993-2010 NVIDIA Corporation. All rights reserved. + * + * NVIDIA Corporation and its licensors retain all intellectual + * property and proprietary rights in and to this software and + * related documentation and any modifications thereto. + * Any use, reproduction, disclosure, or distribution of this + * software and related documentation without an express license + * agreement from NVIDIA Corporation is strictly prohibited. + */ diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/src/falsepositive/allmankind.c b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/src/falsepositive/allmankind.c new file mode 100644 index 00000000..a2873ef5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-nvidia-intellectual/src/falsepositive/allmankind.c @@ -0,0 +1,12 @@ +/* + * The technologies, software, hardware, designs, drawings, scheumatics, board + * layouts and/or artwork, concepts, methodologies (including the use of all + * of these, and that which is derived from the use of all of these), all other + * intellectual properties contained herein, and all intellectual property + * rights have been and shall continue to be expressly for the benefit of all + * mankind, and are perpetually placed in the public domain, and may be used, + * copied, and/or modified by anyone, in any manner, for any legal purpose, + * without restriction. + * + * This module written by Stephen Underwood. + */ diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-old-unicode/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-old-unicode/ORIGIN new file mode 100644 index 00000000..04b6751c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-old-unicode/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/cruft/cruft-old-unicode + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-old-unicode/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-old-unicode/debian/changelog new file mode 100644 index 00000000..8d5c48ea --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-old-unicode/debian/changelog @@ -0,0 +1,17 @@ +cruft-old-unicode (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-old-unicode + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +cruft-old-unicode (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-old-unicode + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-old-unicode/debian/control b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-old-unicode/debian/control new file mode 100644 index 00000000..7f426c84 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-old-unicode/debian/control @@ -0,0 +1,17 @@ +Source: cruft-old-unicode +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: cruft-old-unicode +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for old non free unicode license + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-old-unicode/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-old-unicode/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-old-unicode/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-old-unicode/debian/rules b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-old-unicode/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-old-unicode/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-old-unicode/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-old-unicode/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-old-unicode/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-old-unicode/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-old-unicode/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-old-unicode/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-old-unicode/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-old-unicode/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-old-unicode/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-old-unicode/eval/hints b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-old-unicode/eval/hints new file mode 100644 index 00000000..db6232ca --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-old-unicode/eval/hints @@ -0,0 +1 @@ +cruft-old-unicode (source): license-problem-old-unicode [src/bad.c] diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-old-unicode/src/bad.c b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-old-unicode/src/bad.c new file mode 100644 index 00000000..7a20aeff --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-old-unicode/src/bad.c @@ -0,0 +1,21 @@ +/* + * Copyright 2001-2004 Unicode, Inc. + * + * Disclaimer + * + * This source code is provided as is by Unicode, Inc. No claims are + * made as to fitness for any particular purpose. No warranties of any + * kind are expressed or implied. The recipient agrees to determine + * applicability of information provided. If this file has been + * purchased on magnetic or optical media from Unicode, Inc., the + * sole remedy for any claim will be exchange of defective media + * within 90 days of receipt. + * + * Limitations on Rights to Redistribute This Code + * + * Unicode, Inc. hereby grants the right to freely use the information + * supplied in this file in the creation of products supporting the + * Unicode Standard, and to make copies of this file in any form + * for internal or external distribution as long as this notice + * remains attached. + */ diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/ORIGIN new file mode 100644 index 00000000..193b070e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/cruft/cruft-python + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/debian/changelog new file mode 100644 index 00000000..33dc70a7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/debian/changelog @@ -0,0 +1,17 @@ +cruft-python (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-python + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +cruft-python (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-python + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/debian/control b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/debian/control new file mode 100644 index 00000000..b0f99143 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/debian/control @@ -0,0 +1,17 @@ +Source: cruft-python +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), python +Homepage: https://lintian.debian.org/ + +Package: cruft-python +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Misc errors related to Python + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/debian/missing-sources/fake.py b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/debian/missing-sources/fake.py new file mode 100644 index 00000000..6e883de7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/debian/missing-sources/fake.py @@ -0,0 +1 @@ +# a fake module source \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/debian/pycompat b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/debian/pycompat new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/debian/pyversions b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/debian/pyversions new file mode 100644 index 00000000..6f290b06 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/debian/pyversions @@ -0,0 +1 @@ +>= 2.7 diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/debian/rules b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/eval/hints b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/eval/hints new file mode 100644 index 00000000..68174618 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-python/eval/hints @@ -0,0 +1,6 @@ +cruft-python (source): source-is-missing fake2.pyo +cruft-python (source): source-is-missing fake2.pyc +cruft-python (source): source-contains-prebuilt-python-object fake2.pyo +cruft-python (source): source-contains-prebuilt-python-object fake2.pyc +cruft-python (source): source-contains-prebuilt-python-object fake.pyo +cruft-python (source): source-contains-prebuilt-python-object fake.pyc diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/ORIGIN new file mode 100644 index 00000000..3f012bbc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/cruft/cruft-sphinx-documentation + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/debian/changelog new file mode 100644 index 00000000..b28f0cf4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/debian/changelog @@ -0,0 +1,17 @@ +cruft-sphinx-documentation (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-sphinx-documentation + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +cruft-sphinx-documentation (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-sphinx-documentation + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/debian/control b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/debian/control new file mode 100644 index 00000000..b7e23f7b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/debian/control @@ -0,0 +1,17 @@ +Source: cruft-sphinx-documentation +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: cruft-sphinx-documentation +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Detect sphinx documentation + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/debian/rules b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/eval/hints b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/eval/hints new file mode 100644 index 00000000..cd11c352 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/eval/hints @@ -0,0 +1 @@ +cruft-sphinx-documentation (source): source-contains-prebuilt-sphinx-documentation [src/sphinx-1.22/_build/html/] diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/hello.c b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/hello.c new file mode 100644 index 00000000..ff2cb8d9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/hello.c @@ -0,0 +1,10 @@ +#include + +void hello() { + printf("hello"); +} + +int main() +{ + hello(); +} \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/Makefile b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/Makefile new file mode 100644 index 00000000..eb990fec --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/Makefile @@ -0,0 +1,177 @@ +# Makefile for Sphinx documentation +# + +# You can set these variables from the command line. +SPHINXOPTS = +SPHINXBUILD = sphinx-build +PAPER = +BUILDDIR = _build + +# User-friendly check for sphinx-build +ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1) +$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/) +endif + +# Internal variables. +PAPEROPT_a4 = -D latex_paper_size=a4 +PAPEROPT_letter = -D latex_paper_size=letter +ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . +# the i18n builder cannot share the environment and doctrees with the others +I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . + +.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext + +help: + @echo "Please use \`make ' where is one of" + @echo " html to make standalone HTML files" + @echo " dirhtml to make HTML files named index.html in directories" + @echo " singlehtml to make a single large HTML file" + @echo " pickle to make pickle files" + @echo " json to make JSON files" + @echo " htmlhelp to make HTML files and a HTML help project" + @echo " qthelp to make HTML files and a qthelp project" + @echo " devhelp to make HTML files and a Devhelp project" + @echo " epub to make an epub" + @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" + @echo " latexpdf to make LaTeX files and run them through pdflatex" + @echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx" + @echo " text to make text files" + @echo " man to make manual pages" + @echo " texinfo to make Texinfo files" + @echo " info to make Texinfo files and run them through makeinfo" + @echo " gettext to make PO message catalogs" + @echo " changes to make an overview of all changed/added/deprecated items" + @echo " xml to make Docutils-native XML files" + @echo " pseudoxml to make pseudoxml-XML files for display purposes" + @echo " linkcheck to check all external links for integrity" + @echo " doctest to run all doctests embedded in the documentation (if enabled)" + +clean: + rm -rf $(BUILDDIR)/* + +html: + $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html + @echo + @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." + +dirhtml: + $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml + @echo + @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml." + +singlehtml: + $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml + @echo + @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml." + +pickle: + $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle + @echo + @echo "Build finished; now you can process the pickle files." + +json: + $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json + @echo + @echo "Build finished; now you can process the JSON files." + +htmlhelp: + $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp + @echo + @echo "Build finished; now you can run HTML Help Workshop with the" \ + ".hhp project file in $(BUILDDIR)/htmlhelp." + +qthelp: + $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp + @echo + @echo "Build finished; now you can run "qcollectiongenerator" with the" \ + ".qhcp project file in $(BUILDDIR)/qthelp, like this:" + @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/hello.qhcp" + @echo "To view the help file:" + @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/hello.qhc" + +devhelp: + $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp + @echo + @echo "Build finished." + @echo "To view the help file:" + @echo "# mkdir -p $$HOME/.local/share/devhelp/hello" + @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/hello" + @echo "# devhelp" + +epub: + $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub + @echo + @echo "Build finished. The epub file is in $(BUILDDIR)/epub." + +latex: + $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex + @echo + @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex." + @echo "Run \`make' in that directory to run these through (pdf)latex" \ + "(use \`make latexpdf' here to do that automatically)." + +latexpdf: + $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex + @echo "Running LaTeX files through pdflatex..." + $(MAKE) -C $(BUILDDIR)/latex all-pdf + @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." + +latexpdfja: + $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex + @echo "Running LaTeX files through platex and dvipdfmx..." + $(MAKE) -C $(BUILDDIR)/latex all-pdf-ja + @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." + +text: + $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text + @echo + @echo "Build finished. The text files are in $(BUILDDIR)/text." + +man: + $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man + @echo + @echo "Build finished. The manual pages are in $(BUILDDIR)/man." + +texinfo: + $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo + @echo + @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo." + @echo "Run \`make' in that directory to run these through makeinfo" \ + "(use \`make info' here to do that automatically)." + +info: + $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo + @echo "Running Texinfo files through makeinfo..." + make -C $(BUILDDIR)/texinfo info + @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo." + +gettext: + $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale + @echo + @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale." + +changes: + $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes + @echo + @echo "The overview file is in $(BUILDDIR)/changes." + +linkcheck: + $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck + @echo + @echo "Link check complete; look for any errors in the above output " \ + "or in $(BUILDDIR)/linkcheck/output.txt." + +doctest: + $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest + @echo "Testing of doctests in the sources finished, look at the " \ + "results in $(BUILDDIR)/doctest/output.txt." + +xml: + $(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml + @echo + @echo "Build finished. The XML files are in $(BUILDDIR)/xml." + +pseudoxml: + $(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml + @echo + @echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml." diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/doctrees/environment.pickle b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/doctrees/environment.pickle new file mode 100644 index 00000000..1d38a668 Binary files /dev/null and b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/doctrees/environment.pickle differ diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/doctrees/index.doctree b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/doctrees/index.doctree new file mode 100644 index 00000000..c28b1f12 Binary files /dev/null and b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/doctrees/index.doctree differ diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/.buildinfo b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/.buildinfo new file mode 100644 index 00000000..3a9d78b5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/.buildinfo @@ -0,0 +1,4 @@ +# Sphinx build info version 1 +# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. +config: 469b2f45b3fea98e5b770516c213cd8d +tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_sources/index.txt b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_sources/index.txt new file mode 100644 index 00000000..778459ba --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_sources/index.txt @@ -0,0 +1,22 @@ +.. hello documentation master file, created by + sphinx-quickstart on Mon Mar 31 19:57:16 2014. + You can adapt this file completely to your liking, but it should at least + contain the root `toctree` directive. + +Welcome to hello's documentation! +================================= + +Contents: + +.. toctree:: + :maxdepth: 2 + + + +Indices and tables +================== + +* :ref:`genindex` +* :ref:`modindex` +* :ref:`search` + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_static/ajax-loader.gif b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_static/ajax-loader.gif new file mode 100644 index 00000000..61faf8ca Binary files /dev/null and b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_static/ajax-loader.gif differ diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_static/basic.css b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_static/basic.css new file mode 100644 index 00000000..967e36ce --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_static/basic.css @@ -0,0 +1,537 @@ +/* + * basic.css + * ~~~~~~~~~ + * + * Sphinx stylesheet -- basic theme. + * + * :copyright: Copyright 2007-2014 by the Sphinx team, see AUTHORS. + * :license: BSD, see LICENSE for details. + * + */ + +/* -- main layout ----------------------------------------------------------- */ + +div.clearer { + clear: both; +} + +/* -- relbar ---------------------------------------------------------------- */ + +div.related { + width: 100%; + font-size: 90%; +} + +div.related h3 { + display: none; +} + +div.related ul { + margin: 0; + padding: 0 0 0 10px; + list-style: none; +} + +div.related li { + display: inline; +} + +div.related li.right { + float: right; + margin-right: 5px; +} + +/* -- sidebar --------------------------------------------------------------- */ + +div.sphinxsidebarwrapper { + padding: 10px 5px 0 10px; +} + +div.sphinxsidebar { + float: left; + width: 230px; + margin-left: -100%; + font-size: 90%; +} + +div.sphinxsidebar ul { + list-style: none; +} + +div.sphinxsidebar ul ul, +div.sphinxsidebar ul.want-points { + margin-left: 20px; + list-style: square; +} + +div.sphinxsidebar ul ul { + margin-top: 0; + margin-bottom: 0; +} + +div.sphinxsidebar form { + margin-top: 10px; +} + +div.sphinxsidebar input { + border: 1px solid #98dbcc; + font-family: sans-serif; + font-size: 1em; +} + +div.sphinxsidebar #searchbox input[type="text"] { + width: 170px; +} + +div.sphinxsidebar #searchbox input[type="submit"] { + width: 30px; +} + +img { + border: 0; + max-width: 100%; +} + +/* -- search page ----------------------------------------------------------- */ + +ul.search { + margin: 10px 0 0 20px; + padding: 0; +} + +ul.search li { + padding: 5px 0 5px 20px; + background-image: url(file.png); + background-repeat: no-repeat; + background-position: 0 7px; +} + +ul.search li a { + font-weight: bold; +} + +ul.search li div.context { + color: #888; + margin: 2px 0 0 30px; + text-align: left; +} + +ul.keywordmatches li.goodmatch a { + font-weight: bold; +} + +/* -- index page ------------------------------------------------------------ */ + +table.contentstable { + width: 90%; +} + +table.contentstable p.biglink { + line-height: 150%; +} + +a.biglink { + font-size: 1.3em; +} + +span.linkdescr { + font-style: italic; + padding-top: 5px; + font-size: 90%; +} + +/* -- general index --------------------------------------------------------- */ + +table.indextable { + width: 100%; +} + +table.indextable td { + text-align: left; + vertical-align: top; +} + +table.indextable dl, table.indextable dd { + margin-top: 0; + margin-bottom: 0; +} + +table.indextable tr.pcap { + height: 10px; +} + +table.indextable tr.cap { + margin-top: 10px; + background-color: #f2f2f2; +} + +img.toggler { + margin-right: 3px; + margin-top: 3px; + cursor: pointer; +} + +div.modindex-jumpbox { + border-top: 1px solid #ddd; + border-bottom: 1px solid #ddd; + margin: 1em 0 1em 0; + padding: 0.4em; +} + +div.genindex-jumpbox { + border-top: 1px solid #ddd; + border-bottom: 1px solid #ddd; + margin: 1em 0 1em 0; + padding: 0.4em; +} + +/* -- general body styles --------------------------------------------------- */ + +a.headerlink { + visibility: hidden; +} + +h1:hover > a.headerlink, +h2:hover > a.headerlink, +h3:hover > a.headerlink, +h4:hover > a.headerlink, +h5:hover > a.headerlink, +h6:hover > a.headerlink, +dt:hover > a.headerlink { + visibility: visible; +} + +div.body p.caption { + text-align: inherit; +} + +div.body td { + text-align: left; +} + +.field-list ul { + padding-left: 1em; +} + +.first { + margin-top: 0 !important; +} + +p.rubric { + margin-top: 30px; + font-weight: bold; +} + +img.align-left, .figure.align-left, object.align-left { + clear: left; + float: left; + margin-right: 1em; +} + +img.align-right, .figure.align-right, object.align-right { + clear: right; + float: right; + margin-left: 1em; +} + +img.align-center, .figure.align-center, object.align-center { + display: block; + margin-left: auto; + margin-right: auto; +} + +.align-left { + text-align: left; +} + +.align-center { + text-align: center; +} + +.align-right { + text-align: right; +} + +/* -- sidebars -------------------------------------------------------------- */ + +div.sidebar { + margin: 0 0 0.5em 1em; + border: 1px solid #ddb; + padding: 7px 7px 0 7px; + background-color: #ffe; + width: 40%; + float: right; +} + +p.sidebar-title { + font-weight: bold; +} + +/* -- topics ---------------------------------------------------------------- */ + +div.topic { + border: 1px solid #ccc; + padding: 7px 7px 0 7px; + margin: 10px 0 10px 0; +} + +p.topic-title { + font-size: 1.1em; + font-weight: bold; + margin-top: 10px; +} + +/* -- admonitions ----------------------------------------------------------- */ + +div.admonition { + margin-top: 10px; + margin-bottom: 10px; + padding: 7px; +} + +div.admonition dt { + font-weight: bold; +} + +div.admonition dl { + margin-bottom: 0; +} + +p.admonition-title { + margin: 0px 10px 5px 0px; + font-weight: bold; +} + +div.body p.centered { + text-align: center; + margin-top: 25px; +} + +/* -- tables ---------------------------------------------------------------- */ + +table.docutils { + border: 0; + border-collapse: collapse; +} + +table.docutils td, table.docutils th { + padding: 1px 8px 1px 5px; + border-top: 0; + border-left: 0; + border-right: 0; + border-bottom: 1px solid #aaa; +} + +table.field-list td, table.field-list th { + border: 0 !important; +} + +table.footnote td, table.footnote th { + border: 0 !important; +} + +th { + text-align: left; + padding-right: 5px; +} + +table.citation { + border-left: solid 1px gray; + margin-left: 1px; +} + +table.citation td { + border-bottom: none; +} + +/* -- other body styles ----------------------------------------------------- */ + +ol.arabic { + list-style: decimal; +} + +ol.loweralpha { + list-style: lower-alpha; +} + +ol.upperalpha { + list-style: upper-alpha; +} + +ol.lowerroman { + list-style: lower-roman; +} + +ol.upperroman { + list-style: upper-roman; +} + +dl { + margin-bottom: 15px; +} + +dd p { + margin-top: 0px; +} + +dd ul, dd table { + margin-bottom: 10px; +} + +dd { + margin-top: 3px; + margin-bottom: 10px; + margin-left: 30px; +} + +dt:target, .highlighted { + background-color: #fbe54e; +} + +dl.glossary dt { + font-weight: bold; + font-size: 1.1em; +} + +.field-list ul { + margin: 0; + padding-left: 1em; +} + +.field-list p { + margin: 0; +} + +.optional { + font-size: 1.3em; +} + +.versionmodified { + font-style: italic; +} + +.system-message { + background-color: #fda; + padding: 5px; + border: 3px solid red; +} + +.footnote:target { + background-color: #ffa; +} + +.line-block { + display: block; + margin-top: 1em; + margin-bottom: 1em; +} + +.line-block .line-block { + margin-top: 0; + margin-bottom: 0; + margin-left: 1.5em; +} + +.guilabel, .menuselection { + font-family: sans-serif; +} + +.accelerator { + text-decoration: underline; +} + +.classifier { + font-style: oblique; +} + +abbr, acronym { + border-bottom: dotted 1px; + cursor: help; +} + +/* -- code displays --------------------------------------------------------- */ + +pre { + overflow: auto; + overflow-y: hidden; /* fixes display issues on Chrome browsers */ +} + +td.linenos pre { + padding: 5px 0px; + border: 0; + background-color: transparent; + color: #aaa; +} + +table.highlighttable { + margin-left: 0.5em; +} + +table.highlighttable td { + padding: 0 0.5em 0 0.5em; +} + +tt.descname { + background-color: transparent; + font-weight: bold; + font-size: 1.2em; +} + +tt.descclassname { + background-color: transparent; +} + +tt.xref, a tt { + background-color: transparent; + font-weight: bold; +} + +h1 tt, h2 tt, h3 tt, h4 tt, h5 tt, h6 tt { + background-color: transparent; +} + +.viewcode-link { + float: right; +} + +.viewcode-back { + float: right; + font-family: sans-serif; +} + +div.viewcode-block:target { + margin: -1px -10px; + padding: 0 10px; +} + +/* -- math display ---------------------------------------------------------- */ + +img.math { + vertical-align: middle; +} + +div.body div.math p { + text-align: center; +} + +span.eqno { + float: right; +} + +/* -- printout stylesheet --------------------------------------------------- */ + +@media print { + div.document, + div.documentwrapper, + div.bodywrapper { + margin: 0 !important; + width: 100%; + } + + div.sphinxsidebar, + div.related, + div.footer, + #top-link { + display: none; + } +} \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_static/comment-bright.png b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_static/comment-bright.png new file mode 100644 index 00000000..551517b8 Binary files /dev/null and b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_static/comment-bright.png differ diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_static/comment-close.png b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_static/comment-close.png new file mode 100644 index 00000000..09b54be4 Binary files /dev/null and b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_static/comment-close.png differ diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_static/comment.png b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_static/comment.png new file mode 100644 index 00000000..92feb52b Binary files /dev/null and b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_static/comment.png differ diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_static/default.css b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_static/default.css new file mode 100644 index 00000000..5f1399ab --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_static/default.css @@ -0,0 +1,256 @@ +/* + * default.css_t + * ~~~~~~~~~~~~~ + * + * Sphinx stylesheet -- default theme. + * + * :copyright: Copyright 2007-2014 by the Sphinx team, see AUTHORS. + * :license: BSD, see LICENSE for details. + * + */ + +@import url("basic.css"); + +/* -- page layout ----------------------------------------------------------- */ + +body { + font-family: sans-serif; + font-size: 100%; + background-color: #11303d; + color: #000; + margin: 0; + padding: 0; +} + +div.document { + background-color: #1c4e63; +} + +div.documentwrapper { + float: left; + width: 100%; +} + +div.bodywrapper { + margin: 0 0 0 230px; +} + +div.body { + background-color: #ffffff; + color: #000000; + padding: 0 20px 30px 20px; +} + +div.footer { + color: #ffffff; + width: 100%; + padding: 9px 0 9px 0; + text-align: center; + font-size: 75%; +} + +div.footer a { + color: #ffffff; + text-decoration: underline; +} + +div.related { + background-color: #133f52; + line-height: 30px; + color: #ffffff; +} + +div.related a { + color: #ffffff; +} + +div.sphinxsidebar { +} + +div.sphinxsidebar h3 { + font-family: 'Trebuchet MS', sans-serif; + color: #ffffff; + font-size: 1.4em; + font-weight: normal; + margin: 0; + padding: 0; +} + +div.sphinxsidebar h3 a { + color: #ffffff; +} + +div.sphinxsidebar h4 { + font-family: 'Trebuchet MS', sans-serif; + color: #ffffff; + font-size: 1.3em; + font-weight: normal; + margin: 5px 0 0 0; + padding: 0; +} + +div.sphinxsidebar p { + color: #ffffff; +} + +div.sphinxsidebar p.topless { + margin: 5px 10px 10px 10px; +} + +div.sphinxsidebar ul { + margin: 10px; + padding: 0; + color: #ffffff; +} + +div.sphinxsidebar a { + color: #98dbcc; +} + +div.sphinxsidebar input { + border: 1px solid #98dbcc; + font-family: sans-serif; + font-size: 1em; +} + + + +/* -- hyperlink styles ------------------------------------------------------ */ + +a { + color: #355f7c; + text-decoration: none; +} + +a:visited { + color: #355f7c; + text-decoration: none; +} + +a:hover { + text-decoration: underline; +} + + + +/* -- body styles ----------------------------------------------------------- */ + +div.body h1, +div.body h2, +div.body h3, +div.body h4, +div.body h5, +div.body h6 { + font-family: 'Trebuchet MS', sans-serif; + background-color: #f2f2f2; + font-weight: normal; + color: #20435c; + border-bottom: 1px solid #ccc; + margin: 20px -20px 10px -20px; + padding: 3px 0 3px 10px; +} + +div.body h1 { margin-top: 0; font-size: 200%; } +div.body h2 { font-size: 160%; } +div.body h3 { font-size: 140%; } +div.body h4 { font-size: 120%; } +div.body h5 { font-size: 110%; } +div.body h6 { font-size: 100%; } + +a.headerlink { + color: #c60f0f; + font-size: 0.8em; + padding: 0 4px 0 4px; + text-decoration: none; +} + +a.headerlink:hover { + background-color: #c60f0f; + color: white; +} + +div.body p, div.body dd, div.body li { + text-align: justify; + line-height: 130%; +} + +div.admonition p.admonition-title + p { + display: inline; +} + +div.admonition p { + margin-bottom: 5px; +} + +div.admonition pre { + margin-bottom: 5px; +} + +div.admonition ul, div.admonition ol { + margin-bottom: 5px; +} + +div.note { + background-color: #eee; + border: 1px solid #ccc; +} + +div.seealso { + background-color: #ffc; + border: 1px solid #ff6; +} + +div.topic { + background-color: #eee; +} + +div.warning { + background-color: #ffe4e4; + border: 1px solid #f66; +} + +p.admonition-title { + display: inline; +} + +p.admonition-title:after { + content: ":"; +} + +pre { + padding: 5px; + background-color: #eeffcc; + color: #333333; + line-height: 120%; + border: 1px solid #ac9; + border-left: none; + border-right: none; +} + +tt { + background-color: #ecf0f3; + padding: 0 1px 0 1px; + font-size: 0.95em; +} + +th { + background-color: #ede; +} + +.warning tt { + background: #efc2c2; +} + +.note tt { + background: #d6d6d6; +} + +.viewcode-back { + font-family: sans-serif; +} + +div.viewcode-block:target { + background-color: #f4debf; + border-top: 1px solid #ac9; + border-bottom: 1px solid #ac9; +} \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_static/doctools.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_static/doctools.js new file mode 100644 index 00000000..c5455c90 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_static/doctools.js @@ -0,0 +1,238 @@ +/* + * doctools.js + * ~~~~~~~~~~~ + * + * Sphinx JavaScript utilities for all documentation. + * + * :copyright: Copyright 2007-2014 by the Sphinx team, see AUTHORS. + * :license: BSD, see LICENSE for details. + * + */ + +/** + * select a different prefix for underscore + */ +$u = _.noConflict(); + +/** + * make the code below compatible with browsers without + * an installed firebug like debugger +if (!window.console || !console.firebug) { + var names = ["log", "debug", "info", "warn", "error", "assert", "dir", + "dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace", + "profile", "profileEnd"]; + window.console = {}; + for (var i = 0; i < names.length; ++i) + window.console[names[i]] = function() {}; +} + */ + +/** + * small helper function to urldecode strings + */ +jQuery.urldecode = function(x) { + return decodeURIComponent(x).replace(/\+/g, ' '); +}; + +/** + * small helper function to urlencode strings + */ +jQuery.urlencode = encodeURIComponent; + +/** + * This function returns the parsed url parameters of the + * current request. Multiple values per key are supported, + * it will always return arrays of strings for the value parts. + */ +jQuery.getQueryParameters = function(s) { + if (typeof s == 'undefined') + s = document.location.search; + var parts = s.substr(s.indexOf('?') + 1).split('&'); + var result = {}; + for (var i = 0; i < parts.length; i++) { + var tmp = parts[i].split('=', 2); + var key = jQuery.urldecode(tmp[0]); + var value = jQuery.urldecode(tmp[1]); + if (key in result) + result[key].push(value); + else + result[key] = [value]; + } + return result; +}; + +/** + * highlight a given string on a jquery object by wrapping it in + * span elements with the given class name. + */ +jQuery.fn.highlightText = function(text, className) { + function highlight(node) { + if (node.nodeType == 3) { + var val = node.nodeValue; + var pos = val.toLowerCase().indexOf(text); + if (pos >= 0 && !jQuery(node.parentNode).hasClass(className)) { + var span = document.createElement("span"); + span.className = className; + span.appendChild(document.createTextNode(val.substr(pos, text.length))); + node.parentNode.insertBefore(span, node.parentNode.insertBefore( + document.createTextNode(val.substr(pos + text.length)), + node.nextSibling)); + node.nodeValue = val.substr(0, pos); + } + } + else if (!jQuery(node).is("button, select, textarea")) { + jQuery.each(node.childNodes, function() { + highlight(this); + }); + } + } + return this.each(function() { + highlight(this); + }); +}; + +/** + * Small JavaScript module for the documentation. + */ +var Documentation = { + + init : function() { + this.fixFirefoxAnchorBug(); + this.highlightSearchWords(); + this.initIndexTable(); + }, + + /** + * i18n support + */ + TRANSLATIONS : {}, + PLURAL_EXPR : function(n) { return n == 1 ? 0 : 1; }, + LOCALE : 'unknown', + + // gettext and ngettext don't access this so that the functions + // can safely bound to a different name (_ = Documentation.gettext) + gettext : function(string) { + var translated = Documentation.TRANSLATIONS[string]; + if (typeof translated == 'undefined') + return string; + return (typeof translated == 'string') ? translated : translated[0]; + }, + + ngettext : function(singular, plural, n) { + var translated = Documentation.TRANSLATIONS[singular]; + if (typeof translated == 'undefined') + return (n == 1) ? singular : plural; + return translated[Documentation.PLURALEXPR(n)]; + }, + + addTranslations : function(catalog) { + for (var key in catalog.messages) + this.TRANSLATIONS[key] = catalog.messages[key]; + this.PLURAL_EXPR = new Function('n', 'return +(' + catalog.plural_expr + ')'); + this.LOCALE = catalog.locale; + }, + + /** + * add context elements like header anchor links + */ + addContextElements : function() { + $('div[id] > :header:first').each(function() { + $('\u00B6'). + attr('href', '#' + this.id). + attr('title', _('Permalink to this headline')). + appendTo(this); + }); + $('dt[id]').each(function() { + $('\u00B6'). + attr('href', '#' + this.id). + attr('title', _('Permalink to this definition')). + appendTo(this); + }); + }, + + /** + * workaround a firefox stupidity + */ + fixFirefoxAnchorBug : function() { + if (document.location.hash && $.browser.mozilla) + window.setTimeout(function() { + document.location.href += ''; + }, 10); + }, + + /** + * highlight the search words provided in the url in the text + */ + highlightSearchWords : function() { + var params = $.getQueryParameters(); + var terms = (params.highlight) ? params.highlight[0].split(/\s+/) : []; + if (terms.length) { + var body = $('div.body'); + if (!body.length) { + body = $('body'); + } + window.setTimeout(function() { + $.each(terms, function() { + body.highlightText(this.toLowerCase(), 'highlighted'); + }); + }, 10); + $('') + .appendTo($('#searchbox')); + } + }, + + /** + * init the domain index toggle buttons + */ + initIndexTable : function() { + var togglers = $('img.toggler').click(function() { + var src = $(this).attr('src'); + var idnum = $(this).attr('id').substr(7); + $('tr.cg-' + idnum).toggle(); + if (src.substr(-9) == 'minus.png') + $(this).attr('src', src.substr(0, src.length-9) + 'plus.png'); + else + $(this).attr('src', src.substr(0, src.length-8) + 'minus.png'); + }).css('display', ''); + if (DOCUMENTATION_OPTIONS.COLLAPSE_INDEX) { + togglers.click(); + } + }, + + /** + * helper function to hide the search marks again + */ + hideSearchWords : function() { + $('#searchbox .highlight-link').fadeOut(300); + $('span.highlighted').removeClass('highlighted'); + }, + + /** + * make the url absolute + */ + makeURL : function(relativeURL) { + return DOCUMENTATION_OPTIONS.URL_ROOT + '/' + relativeURL; + }, + + /** + * get the current relative url + */ + getCurrentURL : function() { + var path = document.location.pathname; + var parts = path.split(/\//); + $.each(DOCUMENTATION_OPTIONS.URL_ROOT.split(/\//), function() { + if (this == '..') + parts.pop(); + }); + var url = parts.join('/'); + return path.substring(url.lastIndexOf('/') + 1, path.length - 1); + } +}; + +// quick alias for translations +_ = Documentation.gettext; + +$(document).ready(function() { + Documentation.init(); +}); diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_static/down-pressed.png b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_static/down-pressed.png new file mode 100644 index 00000000..6f7ad782 Binary files /dev/null and b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_static/down-pressed.png differ diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_static/down.png b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_static/down.png new file mode 100644 index 00000000..3003a887 Binary files /dev/null and b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_static/down.png differ diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_static/file.png b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_static/file.png new file mode 100644 index 00000000..d18082e3 Binary files /dev/null and b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_static/file.png differ diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_static/jquery.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_static/jquery.js new file mode 100644 index 00000000..25e1e334 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/_static/jquery.js @@ -0,0 +1,9404 @@ +/*! + * jQuery JavaScript Library v1.7.2 + * http://jquery.com/ + * + * Copyright 2011, John Resig + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * Copyright 2011, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * + * Date: Thu Aug 1 23:20:30 BRT 2013 + */ +(function( window, undefined ) { + +// Use the correct document accordingly with window argument (sandbox) +var document = window.document, + navigator = window.navigator, + location = window.location; +var jQuery = (function() { + +// Define a local copy of jQuery +var jQuery = function( selector, context ) { + // The jQuery object is actually just the init constructor 'enhanced' + return new jQuery.fn.init( selector, context, rootjQuery ); + }, + + // Map over jQuery in case of overwrite + _jQuery = window.jQuery, + + // Map over the $ in case of overwrite + _$ = window.$, + + // A central reference to the root jQuery(document) + rootjQuery, + + // A simple way to check for HTML strings or ID strings + // Prioritize #id over to avoid XSS via location.hash (#9521) + quickExpr = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/, + + // Check if a string has a non-whitespace character in it + rnotwhite = /\S/, + + // Used for trimming whitespace + trimLeft = /^\s+/, + trimRight = /\s+$/, + + // Match a standalone tag + rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/, + + // JSON RegExp + rvalidchars = /^[\],:{}\s]*$/, + rvalidescape = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, + rvalidtokens = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, + rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g, + + // Useragent RegExp + rwebkit = /(webkit)[ \/]([\w.]+)/, + ropera = /(opera)(?:.*version)?[ \/]([\w.]+)/, + rmsie = /(msie) ([\w.]+)/, + rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/, + + // Matches dashed string for camelizing + rdashAlpha = /-([a-z]|[0-9])/ig, + rmsPrefix = /^-ms-/, + + // Used by jQuery.camelCase as callback to replace() + fcamelCase = function( all, letter ) { + return ( letter + "" ).toUpperCase(); + }, + + // Keep a UserAgent string for use with jQuery.browser + userAgent = navigator.userAgent, + + // For matching the engine and version of the browser + browserMatch, + + // The deferred used on DOM ready + readyList, + + // The ready event handler + DOMContentLoaded, + + // Save a reference to some core methods + toString = Object.prototype.toString, + hasOwn = Object.prototype.hasOwnProperty, + push = Array.prototype.push, + slice = Array.prototype.slice, + trim = String.prototype.trim, + indexOf = Array.prototype.indexOf, + + // [[Class]] -> type pairs + class2type = {}; + +jQuery.fn = jQuery.prototype = { + constructor: jQuery, + init: function( selector, context, rootjQuery ) { + var match, elem, ret, doc; + + // Handle $(""), $(null), or $(undefined) + if ( !selector ) { + return this; + } + + // Handle $(DOMElement) + if ( selector.nodeType ) { + this.context = this[0] = selector; + this.length = 1; + return this; + } + + // The body element only exists once, optimize finding it + if ( selector === "body" && !context && document.body ) { + this.context = document; + this[0] = document.body; + this.selector = selector; + this.length = 1; + return this; + } + + // Handle HTML strings + if ( typeof selector === "string" ) { + // Are we dealing with HTML string or an ID? + if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) { + // Assume that strings that start and end with <> are HTML and skip the regex check + match = [ null, selector, null ]; + + } else { + match = quickExpr.exec( selector ); + } + + // Verify a match, and that no context was specified for #id + if ( match && (match[1] || !context) ) { + + // HANDLE: $(html) -> $(array) + if ( match[1] ) { + context = context instanceof jQuery ? context[0] : context; + doc = ( context ? context.ownerDocument || context : document ); + + // If a single string is passed in and it's a single tag + // just do a createElement and skip the rest + ret = rsingleTag.exec( selector ); + + if ( ret ) { + if ( jQuery.isPlainObject( context ) ) { + selector = [ document.createElement( ret[1] ) ]; + jQuery.fn.attr.call( selector, context, true ); + + } else { + selector = [ doc.createElement( ret[1] ) ]; + } + + } else { + ret = jQuery.buildFragment( [ match[1] ], [ doc ] ); + selector = ( ret.cacheable ? jQuery.clone(ret.fragment) : ret.fragment ).childNodes; + } + + return jQuery.merge( this, selector ); + + // HANDLE: $("#id") + } else { + elem = document.getElementById( match[2] ); + + // Check parentNode to catch when Blackberry 4.6 returns + // nodes that are no longer in the document #6963 + if ( elem && elem.parentNode ) { + // Handle the case where IE and Opera return items + // by name instead of ID + if ( elem.id !== match[2] ) { + return rootjQuery.find( selector ); + } + + // Otherwise, we inject the element directly into the jQuery object + this.length = 1; + this[0] = elem; + } + + this.context = document; + this.selector = selector; + return this; + } + + // HANDLE: $(expr, $(...)) + } else if ( !context || context.jquery ) { + return ( context || rootjQuery ).find( selector ); + + // HANDLE: $(expr, context) + // (which is just equivalent to: $(context).find(expr) + } else { + return this.constructor( context ).find( selector ); + } + + // HANDLE: $(function) + // Shortcut for document ready + } else if ( jQuery.isFunction( selector ) ) { + return rootjQuery.ready( selector ); + } + + if ( selector.selector !== undefined ) { + this.selector = selector.selector; + this.context = selector.context; + } + + return jQuery.makeArray( selector, this ); + }, + + // Start with an empty selector + selector: "", + + // The current version of jQuery being used + jquery: "1.7.2", + + // The default length of a jQuery object is 0 + length: 0, + + // The number of elements contained in the matched element set + size: function() { + return this.length; + }, + + toArray: function() { + return slice.call( this, 0 ); + }, + + // Get the Nth element in the matched element set OR + // Get the whole matched element set as a clean array + get: function( num ) { + return num == null ? + + // Return a 'clean' array + this.toArray() : + + // Return just the object + ( num < 0 ? this[ this.length + num ] : this[ num ] ); + }, + + // Take an array of elements and push it onto the stack + // (returning the new matched element set) + pushStack: function( elems, name, selector ) { + // Build a new jQuery matched element set + var ret = this.constructor(); + + if ( jQuery.isArray( elems ) ) { + push.apply( ret, elems ); + + } else { + jQuery.merge( ret, elems ); + } + + // Add the old object onto the stack (as a reference) + ret.prevObject = this; + + ret.context = this.context; + + if ( name === "find" ) { + ret.selector = this.selector + ( this.selector ? " " : "" ) + selector; + } else if ( name ) { + ret.selector = this.selector + "." + name + "(" + selector + ")"; + } + + // Return the newly-formed element set + return ret; + }, + + // Execute a callback for every element in the matched set. + // (You can seed the arguments with an array of args, but this is + // only used internally.) + each: function( callback, args ) { + return jQuery.each( this, callback, args ); + }, + + ready: function( fn ) { + // Attach the listeners + jQuery.bindReady(); + + // Add the callback + readyList.add( fn ); + + return this; + }, + + eq: function( i ) { + i = +i; + return i === -1 ? + this.slice( i ) : + this.slice( i, i + 1 ); + }, + + first: function() { + return this.eq( 0 ); + }, + + last: function() { + return this.eq( -1 ); + }, + + slice: function() { + return this.pushStack( slice.apply( this, arguments ), + "slice", slice.call(arguments).join(",") ); + }, + + map: function( callback ) { + return this.pushStack( jQuery.map(this, function( elem, i ) { + return callback.call( elem, i, elem ); + })); + }, + + end: function() { + return this.prevObject || this.constructor(null); + }, + + // For internal use only. + // Behaves like an Array's method, not like a jQuery method. + push: push, + sort: [].sort, + splice: [].splice +}; + +// Give the init function the jQuery prototype for later instantiation +jQuery.fn.init.prototype = jQuery.fn; + +jQuery.extend = jQuery.fn.extend = function() { + var options, name, src, copy, copyIsArray, clone, + target = arguments[0] || {}, + i = 1, + length = arguments.length, + deep = false; + + // Handle a deep copy situation + if ( typeof target === "boolean" ) { + deep = target; + target = arguments[1] || {}; + // skip the boolean and the target + i = 2; + } + + // Handle case when target is a string or something (possible in deep copy) + if ( typeof target !== "object" && !jQuery.isFunction(target) ) { + target = {}; + } + + // extend jQuery itself if only one argument is passed + if ( length === i ) { + target = this; + --i; + } + + for ( ; i < length; i++ ) { + // Only deal with non-null/undefined values + if ( (options = arguments[ i ]) != null ) { + // Extend the base object + for ( name in options ) { + src = target[ name ]; + copy = options[ name ]; + + // Prevent never-ending loop + if ( target === copy ) { + continue; + } + + // Recurse if we're merging plain objects or arrays + if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) { + if ( copyIsArray ) { + copyIsArray = false; + clone = src && jQuery.isArray(src) ? src : []; + + } else { + clone = src && jQuery.isPlainObject(src) ? src : {}; + } + + // Never move original objects, clone them + target[ name ] = jQuery.extend( deep, clone, copy ); + + // Don't bring in undefined values + } else if ( copy !== undefined ) { + target[ name ] = copy; + } + } + } + } + + // Return the modified object + return target; +}; + +jQuery.extend({ + noConflict: function( deep ) { + if ( window.$ === jQuery ) { + window.$ = _$; + } + + if ( deep && window.jQuery === jQuery ) { + window.jQuery = _jQuery; + } + + return jQuery; + }, + + // Is the DOM ready to be used? Set to true once it occurs. + isReady: false, + + // A counter to track how many items to wait for before + // the ready event fires. See #6781 + readyWait: 1, + + // Hold (or release) the ready event + holdReady: function( hold ) { + if ( hold ) { + jQuery.readyWait++; + } else { + jQuery.ready( true ); + } + }, + + // Handle when the DOM is ready + ready: function( wait ) { + // Either a released hold or an DOMready/load event and not yet ready + if ( (wait === true && !--jQuery.readyWait) || (wait !== true && !jQuery.isReady) ) { + // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443). + if ( !document.body ) { + return setTimeout( jQuery.ready, 1 ); + } + + // Remember that the DOM is ready + jQuery.isReady = true; + + // If a normal DOM Ready event fired, decrement, and wait if need be + if ( wait !== true && --jQuery.readyWait > 0 ) { + return; + } + + // If there are functions bound, to execute + readyList.fireWith( document, [ jQuery ] ); + + // Trigger any bound ready events + if ( jQuery.fn.trigger ) { + jQuery( document ).trigger( "ready" ).off( "ready" ); + } + } + }, + + bindReady: function() { + if ( readyList ) { + return; + } + + readyList = jQuery.Callbacks( "once memory" ); + + // Catch cases where $(document).ready() is called after the + // browser event has already occurred. + if ( document.readyState === "complete" ) { + // Handle it asynchronously to allow scripts the opportunity to delay ready + return setTimeout( jQuery.ready, 1 ); + } + + // Mozilla, Opera and webkit nightlies currently support this event + if ( document.addEventListener ) { + // Use the handy event callback + document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false ); + + // A fallback to window.onload, that will always work + window.addEventListener( "load", jQuery.ready, false ); + + // If IE event model is used + } else if ( document.attachEvent ) { + // ensure firing before onload, + // maybe late but safe also for iframes + document.attachEvent( "onreadystatechange", DOMContentLoaded ); + + // A fallback to window.onload, that will always work + window.attachEvent( "onload", jQuery.ready ); + + // If IE and not a frame + // continually check to see if the document is ready + var toplevel = false; + + try { + toplevel = window.frameElement == null; + } catch(e) {} + + if ( document.documentElement.doScroll && toplevel ) { + doScrollCheck(); + } + } + }, + + // See test/unit/core.js for details concerning isFunction. + // Since version 1.3, DOM methods and functions like alert + // aren't supported. They return false on IE (#2968). + isFunction: function( obj ) { + return jQuery.type(obj) === "function"; + }, + + isArray: Array.isArray || function( obj ) { + return jQuery.type(obj) === "array"; + }, + + isWindow: function( obj ) { + return obj != null && obj == obj.window; + }, + + isNumeric: function( obj ) { + return !isNaN( parseFloat(obj) ) && isFinite( obj ); + }, + + type: function( obj ) { + return obj == null ? + String( obj ) : + class2type[ toString.call(obj) ] || "object"; + }, + + isPlainObject: function( obj ) { + // Must be an Object. + // Because of IE, we also have to check the presence of the constructor property. + // Make sure that DOM nodes and window objects don't pass through, as well + if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) { + return false; + } + + try { + // Not own constructor property must be Object + if ( obj.constructor && + !hasOwn.call(obj, "constructor") && + !hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) { + return false; + } + } catch ( e ) { + // IE8,9 Will throw exceptions on certain host objects #9897 + return false; + } + + // Own properties are enumerated firstly, so to speed up, + // if last one is own, then all properties are own. + + var key; + for ( key in obj ) {} + + return key === undefined || hasOwn.call( obj, key ); + }, + + isEmptyObject: function( obj ) { + for ( var name in obj ) { + return false; + } + return true; + }, + + error: function( msg ) { + throw new Error( msg ); + }, + + parseJSON: function( data ) { + if ( typeof data !== "string" || !data ) { + return null; + } + + // Make sure leading/trailing whitespace is removed (IE can't handle it) + data = jQuery.trim( data ); + + // Attempt to parse using the native JSON parser first + if ( window.JSON && window.JSON.parse ) { + return window.JSON.parse( data ); + } + + // Make sure the incoming data is actual JSON + // Logic borrowed from http://json.org/json2.js + if ( rvalidchars.test( data.replace( rvalidescape, "@" ) + .replace( rvalidtokens, "]" ) + .replace( rvalidbraces, "")) ) { + + return ( new Function( "return " + data ) )(); + + } + jQuery.error( "Invalid JSON: " + data ); + }, + + // Cross-browser xml parsing + parseXML: function( data ) { + if ( typeof data !== "string" || !data ) { + return null; + } + var xml, tmp; + try { + if ( window.DOMParser ) { // Standard + tmp = new DOMParser(); + xml = tmp.parseFromString( data , "text/xml" ); + } else { // IE + xml = new ActiveXObject( "Microsoft.XMLDOM" ); + xml.async = "false"; + xml.loadXML( data ); + } + } catch( e ) { + xml = undefined; + } + if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) { + jQuery.error( "Invalid XML: " + data ); + } + return xml; + }, + + noop: function() {}, + + // Evaluates a script in a global context + // Workarounds based on findings by Jim Driscoll + // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context + globalEval: function( data ) { + if ( data && rnotwhite.test( data ) ) { + // We use execScript on Internet Explorer + // We use an anonymous function so that context is window + // rather than jQuery in Firefox + ( window.execScript || function( data ) { + window[ "eval" ].call( window, data ); + } )( data ); + } + }, + + // Convert dashed to camelCase; used by the css and data modules + // Microsoft forgot to hump their vendor prefix (#9572) + camelCase: function( string ) { + return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); + }, + + nodeName: function( elem, name ) { + return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase(); + }, + + // args is for internal usage only + each: function( object, callback, args ) { + var name, i = 0, + length = object.length, + isObj = length === undefined || jQuery.isFunction( object ); + + if ( args ) { + if ( isObj ) { + for ( name in object ) { + if ( callback.apply( object[ name ], args ) === false ) { + break; + } + } + } else { + for ( ; i < length; ) { + if ( callback.apply( object[ i++ ], args ) === false ) { + break; + } + } + } + + // A special, fast, case for the most common use of each + } else { + if ( isObj ) { + for ( name in object ) { + if ( callback.call( object[ name ], name, object[ name ] ) === false ) { + break; + } + } + } else { + for ( ; i < length; ) { + if ( callback.call( object[ i ], i, object[ i++ ] ) === false ) { + break; + } + } + } + } + + return object; + }, + + // Use native String.trim function wherever possible + trim: trim ? + function( text ) { + return text == null ? + "" : + trim.call( text ); + } : + + // Otherwise use our own trimming functionality + function( text ) { + return text == null ? + "" : + text.toString().replace( trimLeft, "" ).replace( trimRight, "" ); + }, + + // results is for internal usage only + makeArray: function( array, results ) { + var ret = results || []; + + if ( array != null ) { + // The window, strings (and functions) also have 'length' + // Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930 + var type = jQuery.type( array ); + + if ( array.length == null || type === "string" || type === "function" || type === "regexp" || jQuery.isWindow( array ) ) { + push.call( ret, array ); + } else { + jQuery.merge( ret, array ); + } + } + + return ret; + }, + + inArray: function( elem, array, i ) { + var len; + + if ( array ) { + if ( indexOf ) { + return indexOf.call( array, elem, i ); + } + + len = array.length; + i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0; + + for ( ; i < len; i++ ) { + // Skip accessing in sparse arrays + if ( i in array && array[ i ] === elem ) { + return i; + } + } + } + + return -1; + }, + + merge: function( first, second ) { + var i = first.length, + j = 0; + + if ( typeof second.length === "number" ) { + for ( var l = second.length; j < l; j++ ) { + first[ i++ ] = second[ j ]; + } + + } else { + while ( second[j] !== undefined ) { + first[ i++ ] = second[ j++ ]; + } + } + + first.length = i; + + return first; + }, + + grep: function( elems, callback, inv ) { + var ret = [], retVal; + inv = !!inv; + + // Go through the array, only saving the items + // that pass the validator function + for ( var i = 0, length = elems.length; i < length; i++ ) { + retVal = !!callback( elems[ i ], i ); + if ( inv !== retVal ) { + ret.push( elems[ i ] ); + } + } + + return ret; + }, + + // arg is for internal usage only + map: function( elems, callback, arg ) { + var value, key, ret = [], + i = 0, + length = elems.length, + // jquery objects are treated as arrays + isArray = elems instanceof jQuery || length !== undefined && typeof length === "number" && ( ( length > 0 && elems[ 0 ] && elems[ length -1 ] ) || length === 0 || jQuery.isArray( elems ) ) ; + + // Go through the array, translating each of the items to their + if ( isArray ) { + for ( ; i < length; i++ ) { + value = callback( elems[ i ], i, arg ); + + if ( value != null ) { + ret[ ret.length ] = value; + } + } + + // Go through every key on the object, + } else { + for ( key in elems ) { + value = callback( elems[ key ], key, arg ); + + if ( value != null ) { + ret[ ret.length ] = value; + } + } + } + + // Flatten any nested arrays + return ret.concat.apply( [], ret ); + }, + + // A global GUID counter for objects + guid: 1, + + // Bind a function to a context, optionally partially applying any + // arguments. + proxy: function( fn, context ) { + if ( typeof context === "string" ) { + var tmp = fn[ context ]; + context = fn; + fn = tmp; + } + + // Quick check to determine if target is callable, in the spec + // this throws a TypeError, but we will just return undefined. + if ( !jQuery.isFunction( fn ) ) { + return undefined; + } + + // Simulated bind + var args = slice.call( arguments, 2 ), + proxy = function() { + return fn.apply( context, args.concat( slice.call( arguments ) ) ); + }; + + // Set the guid of unique handler to the same of original handler, so it can be removed + proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++; + + return proxy; + }, + + // Mutifunctional method to get and set values to a collection + // The value/s can optionally be executed if it's a function + access: function( elems, fn, key, value, chainable, emptyGet, pass ) { + var exec, + bulk = key == null, + i = 0, + length = elems.length; + + // Sets many values + if ( key && typeof key === "object" ) { + for ( i in key ) { + jQuery.access( elems, fn, i, key[i], 1, emptyGet, value ); + } + chainable = 1; + + // Sets one value + } else if ( value !== undefined ) { + // Optionally, function values get executed if exec is true + exec = pass === undefined && jQuery.isFunction( value ); + + if ( bulk ) { + // Bulk operations only iterate when executing function values + if ( exec ) { + exec = fn; + fn = function( elem, key, value ) { + return exec.call( jQuery( elem ), value ); + }; + + // Otherwise they run against the entire set + } else { + fn.call( elems, value ); + fn = null; + } + } + + if ( fn ) { + for (; i < length; i++ ) { + fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass ); + } + } + + chainable = 1; + } + + return chainable ? + elems : + + // Gets + bulk ? + fn.call( elems ) : + length ? fn( elems[0], key ) : emptyGet; + }, + + now: function() { + return ( new Date() ).getTime(); + }, + + // Use of jQuery.browser is frowned upon. + // More details: http://docs.jquery.com/Utilities/jQuery.browser + uaMatch: function( ua ) { + ua = ua.toLowerCase(); + + var match = rwebkit.exec( ua ) || + ropera.exec( ua ) || + rmsie.exec( ua ) || + ua.indexOf("compatible") < 0 && rmozilla.exec( ua ) || + []; + + return { browser: match[1] || "", version: match[2] || "0" }; + }, + + sub: function() { + function jQuerySub( selector, context ) { + return new jQuerySub.fn.init( selector, context ); + } + jQuery.extend( true, jQuerySub, this ); + jQuerySub.superclass = this; + jQuerySub.fn = jQuerySub.prototype = this(); + jQuerySub.fn.constructor = jQuerySub; + jQuerySub.sub = this.sub; + jQuerySub.fn.init = function init( selector, context ) { + if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) { + context = jQuerySub( context ); + } + + return jQuery.fn.init.call( this, selector, context, rootjQuerySub ); + }; + jQuerySub.fn.init.prototype = jQuerySub.fn; + var rootjQuerySub = jQuerySub(document); + return jQuerySub; + }, + + browser: {} +}); + +// Populate the class2type map +jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(i, name) { + class2type[ "[object " + name + "]" ] = name.toLowerCase(); +}); + +browserMatch = jQuery.uaMatch( userAgent ); +if ( browserMatch.browser ) { + jQuery.browser[ browserMatch.browser ] = true; + jQuery.browser.version = browserMatch.version; +} + +// Deprecated, use jQuery.browser.webkit instead +if ( jQuery.browser.webkit ) { + jQuery.browser.safari = true; +} + +// IE doesn't match non-breaking spaces with \s +if ( rnotwhite.test( "\xA0" ) ) { + trimLeft = /^[\s\xA0]+/; + trimRight = /[\s\xA0]+$/; +} + +// All jQuery objects should point back to these +rootjQuery = jQuery(document); + +// Cleanup functions for the document ready method +if ( document.addEventListener ) { + DOMContentLoaded = function() { + document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false ); + jQuery.ready(); + }; + +} else if ( document.attachEvent ) { + DOMContentLoaded = function() { + // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443). + if ( document.readyState === "complete" ) { + document.detachEvent( "onreadystatechange", DOMContentLoaded ); + jQuery.ready(); + } + }; +} + +// The DOM ready check for Internet Explorer +function doScrollCheck() { + if ( jQuery.isReady ) { + return; + } + + try { + // If IE is used, use the trick by Diego Perini + // http://javascript.nwbox.com/IEContentLoaded/ + document.documentElement.doScroll("left"); + } catch(e) { + setTimeout( doScrollCheck, 1 ); + return; + } + + // and execute any waiting functions + jQuery.ready(); +} + +return jQuery; + +})(); + + +// String to Object flags format cache +var flagsCache = {}; + +// Convert String-formatted flags into Object-formatted ones and store in cache +function createFlags( flags ) { + var object = flagsCache[ flags ] = {}, + i, length; + flags = flags.split( /\s+/ ); + for ( i = 0, length = flags.length; i < length; i++ ) { + object[ flags[i] ] = true; + } + return object; +} + +/* + * Create a callback list using the following parameters: + * + * flags: an optional list of space-separated flags that will change how + * the callback list behaves + * + * By default a callback list will act like an event callback list and can be + * "fired" multiple times. + * + * Possible flags: + * + * once: will ensure the callback list can only be fired once (like a Deferred) + * + * memory: will keep track of previous values and will call any callback added + * after the list has been fired right away with the latest "memorized" + * values (like a Deferred) + * + * unique: will ensure a callback can only be added once (no duplicate in the list) + * + * stopOnFalse: interrupt callings when a callback returns false + * + */ +jQuery.Callbacks = function( flags ) { + + // Convert flags from String-formatted to Object-formatted + // (we check in cache first) + flags = flags ? ( flagsCache[ flags ] || createFlags( flags ) ) : {}; + + var // Actual callback list + list = [], + // Stack of fire calls for repeatable lists + stack = [], + // Last fire value (for non-forgettable lists) + memory, + // Flag to know if list was already fired + fired, + // Flag to know if list is currently firing + firing, + // First callback to fire (used internally by add and fireWith) + firingStart, + // End of the loop when firing + firingLength, + // Index of currently firing callback (modified by remove if needed) + firingIndex, + // Add one or several callbacks to the list + add = function( args ) { + var i, + length, + elem, + type, + actual; + for ( i = 0, length = args.length; i < length; i++ ) { + elem = args[ i ]; + type = jQuery.type( elem ); + if ( type === "array" ) { + // Inspect recursively + add( elem ); + } else if ( type === "function" ) { + // Add if not in unique mode and callback is not in + if ( !flags.unique || !self.has( elem ) ) { + list.push( elem ); + } + } + } + }, + // Fire callbacks + fire = function( context, args ) { + args = args || []; + memory = !flags.memory || [ context, args ]; + fired = true; + firing = true; + firingIndex = firingStart || 0; + firingStart = 0; + firingLength = list.length; + for ( ; list && firingIndex < firingLength; firingIndex++ ) { + if ( list[ firingIndex ].apply( context, args ) === false && flags.stopOnFalse ) { + memory = true; // Mark as halted + break; + } + } + firing = false; + if ( list ) { + if ( !flags.once ) { + if ( stack && stack.length ) { + memory = stack.shift(); + self.fireWith( memory[ 0 ], memory[ 1 ] ); + } + } else if ( memory === true ) { + self.disable(); + } else { + list = []; + } + } + }, + // Actual Callbacks object + self = { + // Add a callback or a collection of callbacks to the list + add: function() { + if ( list ) { + var length = list.length; + add( arguments ); + // Do we need to add the callbacks to the + // current firing batch? + if ( firing ) { + firingLength = list.length; + // With memory, if we're not firing then + // we should call right away, unless previous + // firing was halted (stopOnFalse) + } else if ( memory && memory !== true ) { + firingStart = length; + fire( memory[ 0 ], memory[ 1 ] ); + } + } + return this; + }, + // Remove a callback from the list + remove: function() { + if ( list ) { + var args = arguments, + argIndex = 0, + argLength = args.length; + for ( ; argIndex < argLength ; argIndex++ ) { + for ( var i = 0; i < list.length; i++ ) { + if ( args[ argIndex ] === list[ i ] ) { + // Handle firingIndex and firingLength + if ( firing ) { + if ( i <= firingLength ) { + firingLength--; + if ( i <= firingIndex ) { + firingIndex--; + } + } + } + // Remove the element + list.splice( i--, 1 ); + // If we have some unicity property then + // we only need to do this once + if ( flags.unique ) { + break; + } + } + } + } + } + return this; + }, + // Control if a given callback is in the list + has: function( fn ) { + if ( list ) { + var i = 0, + length = list.length; + for ( ; i < length; i++ ) { + if ( fn === list[ i ] ) { + return true; + } + } + } + return false; + }, + // Remove all callbacks from the list + empty: function() { + list = []; + return this; + }, + // Have the list do nothing anymore + disable: function() { + list = stack = memory = undefined; + return this; + }, + // Is it disabled? + disabled: function() { + return !list; + }, + // Lock the list in its current state + lock: function() { + stack = undefined; + if ( !memory || memory === true ) { + self.disable(); + } + return this; + }, + // Is it locked? + locked: function() { + return !stack; + }, + // Call all callbacks with the given context and arguments + fireWith: function( context, args ) { + if ( stack ) { + if ( firing ) { + if ( !flags.once ) { + stack.push( [ context, args ] ); + } + } else if ( !( flags.once && memory ) ) { + fire( context, args ); + } + } + return this; + }, + // Call all the callbacks with the given arguments + fire: function() { + self.fireWith( this, arguments ); + return this; + }, + // To know if the callbacks have already been called at least once + fired: function() { + return !!fired; + } + }; + + return self; +}; + + + + +var // Static reference to slice + sliceDeferred = [].slice; + +jQuery.extend({ + + Deferred: function( func ) { + var doneList = jQuery.Callbacks( "once memory" ), + failList = jQuery.Callbacks( "once memory" ), + progressList = jQuery.Callbacks( "memory" ), + state = "pending", + lists = { + resolve: doneList, + reject: failList, + notify: progressList + }, + promise = { + done: doneList.add, + fail: failList.add, + progress: progressList.add, + + state: function() { + return state; + }, + + // Deprecated + isResolved: doneList.fired, + isRejected: failList.fired, + + then: function( doneCallbacks, failCallbacks, progressCallbacks ) { + deferred.done( doneCallbacks ).fail( failCallbacks ).progress( progressCallbacks ); + return this; + }, + always: function() { + deferred.done.apply( deferred, arguments ).fail.apply( deferred, arguments ); + return this; + }, + pipe: function( fnDone, fnFail, fnProgress ) { + return jQuery.Deferred(function( newDefer ) { + jQuery.each( { + done: [ fnDone, "resolve" ], + fail: [ fnFail, "reject" ], + progress: [ fnProgress, "notify" ] + }, function( handler, data ) { + var fn = data[ 0 ], + action = data[ 1 ], + returned; + if ( jQuery.isFunction( fn ) ) { + deferred[ handler ](function() { + returned = fn.apply( this, arguments ); + if ( returned && jQuery.isFunction( returned.promise ) ) { + returned.promise().then( newDefer.resolve, newDefer.reject, newDefer.notify ); + } else { + newDefer[ action + "With" ]( this === deferred ? newDefer : this, [ returned ] ); + } + }); + } else { + deferred[ handler ]( newDefer[ action ] ); + } + }); + }).promise(); + }, + // Get a promise for this deferred + // If obj is provided, the promise aspect is added to the object + promise: function( obj ) { + if ( obj == null ) { + obj = promise; + } else { + for ( var key in promise ) { + obj[ key ] = promise[ key ]; + } + } + return obj; + } + }, + deferred = promise.promise({}), + key; + + for ( key in lists ) { + deferred[ key ] = lists[ key ].fire; + deferred[ key + "With" ] = lists[ key ].fireWith; + } + + // Handle state + deferred.done( function() { + state = "resolved"; + }, failList.disable, progressList.lock ).fail( function() { + state = "rejected"; + }, doneList.disable, progressList.lock ); + + // Call given func if any + if ( func ) { + func.call( deferred, deferred ); + } + + // All done! + return deferred; + }, + + // Deferred helper + when: function( firstParam ) { + var args = sliceDeferred.call( arguments, 0 ), + i = 0, + length = args.length, + pValues = new Array( length ), + count = length, + pCount = length, + deferred = length <= 1 && firstParam && jQuery.isFunction( firstParam.promise ) ? + firstParam : + jQuery.Deferred(), + promise = deferred.promise(); + function resolveFunc( i ) { + return function( value ) { + args[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value; + if ( !( --count ) ) { + deferred.resolveWith( deferred, args ); + } + }; + } + function progressFunc( i ) { + return function( value ) { + pValues[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value; + deferred.notifyWith( promise, pValues ); + }; + } + if ( length > 1 ) { + for ( ; i < length; i++ ) { + if ( args[ i ] && args[ i ].promise && jQuery.isFunction( args[ i ].promise ) ) { + args[ i ].promise().then( resolveFunc(i), deferred.reject, progressFunc(i) ); + } else { + --count; + } + } + if ( !count ) { + deferred.resolveWith( deferred, args ); + } + } else if ( deferred !== firstParam ) { + deferred.resolveWith( deferred, length ? [ firstParam ] : [] ); + } + return promise; + } +}); + + + + +jQuery.support = (function() { + + var support, + all, + a, + select, + opt, + input, + fragment, + tds, + events, + eventName, + i, + isSupported, + div = document.createElement( "div" ), + documentElement = document.documentElement; + + // Preliminary tests + div.setAttribute("className", "t"); + div.innerHTML = "
a"; + + all = div.getElementsByTagName( "*" ); + a = div.getElementsByTagName( "a" )[ 0 ]; + + // Can't get basic test support + if ( !all || !all.length || !a ) { + return {}; + } + + // First batch of supports tests + select = document.createElement( "select" ); + opt = select.appendChild( document.createElement("option") ); + input = div.getElementsByTagName( "input" )[ 0 ]; + + support = { + // IE strips leading whitespace when .innerHTML is used + leadingWhitespace: ( div.firstChild.nodeType === 3 ), + + // Make sure that tbody elements aren't automatically inserted + // IE will insert them into empty tables + tbody: !div.getElementsByTagName("tbody").length, + + // Make sure that link elements get serialized correctly by innerHTML + // This requires a wrapper element in IE + htmlSerialize: !!div.getElementsByTagName("link").length, + + // Get the style information from getAttribute + // (IE uses .cssText instead) + style: /top/.test( a.getAttribute("style") ), + + // Make sure that URLs aren't manipulated + // (IE normalizes it by default) + hrefNormalized: ( a.getAttribute("href") === "/a" ), + + // Make sure that element opacity exists + // (IE uses filter instead) + // Use a regex to work around a WebKit issue. See #5145 + opacity: /^0.55/.test( a.style.opacity ), + + // Verify style float existence + // (IE uses styleFloat instead of cssFloat) + cssFloat: !!a.style.cssFloat, + + // Make sure that if no value is specified for a checkbox + // that it defaults to "on". + // (WebKit defaults to "" instead) + checkOn: ( input.value === "on" ), + + // Make sure that a selected-by-default option has a working selected property. + // (WebKit defaults to false instead of true, IE too, if it's in an optgroup) + optSelected: opt.selected, + + // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7) + getSetAttribute: div.className !== "t", + + // Tests for enctype support on a form(#6743) + enctype: !!document.createElement("form").enctype, + + // Makes sure cloning an html5 element does not cause problems + // Where outerHTML is undefined, this still works + html5Clone: document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav>", + + // Will be defined later + submitBubbles: true, + changeBubbles: true, + focusinBubbles: false, + deleteExpando: true, + noCloneEvent: true, + inlineBlockNeedsLayout: false, + shrinkWrapBlocks: false, + reliableMarginRight: true, + pixelMargin: true + }; + + // jQuery.boxModel DEPRECATED in 1.3, use jQuery.support.boxModel instead + jQuery.boxModel = support.boxModel = (document.compatMode === "CSS1Compat"); + + // Make sure checked status is properly cloned + input.checked = true; + support.noCloneChecked = input.cloneNode( true ).checked; + + // Make sure that the options inside disabled selects aren't marked as disabled + // (WebKit marks them as disabled) + select.disabled = true; + support.optDisabled = !opt.disabled; + + // Test to see if it's possible to delete an expando from an element + // Fails in Internet Explorer + try { + delete div.test; + } catch( e ) { + support.deleteExpando = false; + } + + if ( !div.addEventListener && div.attachEvent && div.fireEvent ) { + div.attachEvent( "onclick", function() { + // Cloning a node shouldn't copy over any + // bound event handlers (IE does this) + support.noCloneEvent = false; + }); + div.cloneNode( true ).fireEvent( "onclick" ); + } + + // Check if a radio maintains its value + // after being appended to the DOM + input = document.createElement("input"); + input.value = "t"; + input.setAttribute("type", "radio"); + support.radioValue = input.value === "t"; + + input.setAttribute("checked", "checked"); + + // #11217 - WebKit loses check when the name is after the checked attribute + input.setAttribute( "name", "t" ); + + div.appendChild( input ); + fragment = document.createDocumentFragment(); + fragment.appendChild( div.lastChild ); + + // WebKit doesn't clone checked state correctly in fragments + support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked; + + // Check if a disconnected checkbox will retain its checked + // value of true after appended to the DOM (IE6/7) + support.appendChecked = input.checked; + + fragment.removeChild( input ); + fragment.appendChild( div ); + + // Technique from Juriy Zaytsev + // http://perfectionkills.com/detecting-event-support-without-browser-sniffing/ + // We only care about the case where non-standard event systems + // are used, namely in IE. Short-circuiting here helps us to + // avoid an eval call (in setAttribute) which can cause CSP + // to go haywire. See: https://developer.mozilla.org/en/Security/CSP + if ( div.attachEvent ) { + for ( i in { + submit: 1, + change: 1, + focusin: 1 + }) { + eventName = "on" + i; + isSupported = ( eventName in div ); + if ( !isSupported ) { + div.setAttribute( eventName, "return;" ); + isSupported = ( typeof div[ eventName ] === "function" ); + } + support[ i + "Bubbles" ] = isSupported; + } + } + + fragment.removeChild( div ); + + // Null elements to avoid leaks in IE + fragment = select = opt = div = input = null; + + // Run tests that need a body at doc ready + jQuery(function() { + var container, outer, inner, table, td, offsetSupport, + marginDiv, conMarginTop, style, html, positionTopLeftWidthHeight, + paddingMarginBorderVisibility, paddingMarginBorder, + body = document.getElementsByTagName("body")[0]; + + if ( !body ) { + // Return for frameset docs that don't have a body + return; + } + + conMarginTop = 1; + paddingMarginBorder = "padding:0;margin:0;border:"; + positionTopLeftWidthHeight = "position:absolute;top:0;left:0;width:1px;height:1px;"; + paddingMarginBorderVisibility = paddingMarginBorder + "0;visibility:hidden;"; + style = "style='" + positionTopLeftWidthHeight + paddingMarginBorder + "5px solid #000;"; + html = "
" + + "" + + "
"; + + container = document.createElement("div"); + container.style.cssText = paddingMarginBorderVisibility + "width:0;height:0;position:static;top:0;margin-top:" + conMarginTop + "px"; + body.insertBefore( container, body.firstChild ); + + // Construct the test element + div = document.createElement("div"); + container.appendChild( div ); + + // Check if table cells still have offsetWidth/Height when they are set + // to display:none and there are still other visible table cells in a + // table row; if so, offsetWidth/Height are not reliable for use when + // determining if an element has been hidden directly using + // display:none (it is still safe to use offsets if a parent element is + // hidden; don safety goggles and see bug #4512 for more information). + // (only IE 8 fails this test) + div.innerHTML = "
t
"; + tds = div.getElementsByTagName( "td" ); + isSupported = ( tds[ 0 ].offsetHeight === 0 ); + + tds[ 0 ].style.display = ""; + tds[ 1 ].style.display = "none"; + + // Check if empty table cells still have offsetWidth/Height + // (IE <= 8 fail this test) + support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 ); + + // Check if div with explicit width and no margin-right incorrectly + // gets computed margin-right based on width of container. For more + // info see bug #3333 + // Fails in WebKit before Feb 2011 nightlies + // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right + if ( window.getComputedStyle ) { + div.innerHTML = ""; + marginDiv = document.createElement( "div" ); + marginDiv.style.width = "0"; + marginDiv.style.marginRight = "0"; + div.style.width = "2px"; + div.appendChild( marginDiv ); + support.reliableMarginRight = + ( parseInt( ( window.getComputedStyle( marginDiv, null ) || { marginRight: 0 } ).marginRight, 10 ) || 0 ) === 0; + } + + if ( typeof div.style.zoom !== "undefined" ) { + // Check if natively block-level elements act like inline-block + // elements when setting their display to 'inline' and giving + // them layout + // (IE < 8 does this) + div.innerHTML = ""; + div.style.width = div.style.padding = "1px"; + div.style.border = 0; + div.style.overflow = "hidden"; + div.style.display = "inline"; + div.style.zoom = 1; + support.inlineBlockNeedsLayout = ( div.offsetWidth === 3 ); + + // Check if elements with layout shrink-wrap their children + // (IE 6 does this) + div.style.display = "block"; + div.style.overflow = "visible"; + div.innerHTML = "
"; + support.shrinkWrapBlocks = ( div.offsetWidth !== 3 ); + } + + div.style.cssText = positionTopLeftWidthHeight + paddingMarginBorderVisibility; + div.innerHTML = html; + + outer = div.firstChild; + inner = outer.firstChild; + td = outer.nextSibling.firstChild.firstChild; + + offsetSupport = { + doesNotAddBorder: ( inner.offsetTop !== 5 ), + doesAddBorderForTableAndCells: ( td.offsetTop === 5 ) + }; + + inner.style.position = "fixed"; + inner.style.top = "20px"; + + // safari subtracts parent border width here which is 5px + offsetSupport.fixedPosition = ( inner.offsetTop === 20 || inner.offsetTop === 15 ); + inner.style.position = inner.style.top = ""; + + outer.style.overflow = "hidden"; + outer.style.position = "relative"; + + offsetSupport.subtractsBorderForOverflowNotVisible = ( inner.offsetTop === -5 ); + offsetSupport.doesNotIncludeMarginInBodyOffset = ( body.offsetTop !== conMarginTop ); + + if ( window.getComputedStyle ) { + div.style.marginTop = "1%"; + support.pixelMargin = ( window.getComputedStyle( div, null ) || { marginTop: 0 } ).marginTop !== "1%"; + } + + if ( typeof container.style.zoom !== "undefined" ) { + container.style.zoom = 1; + } + + body.removeChild( container ); + marginDiv = div = container = null; + + jQuery.extend( support, offsetSupport ); + }); + + return support; +})(); + + + + +var rbrace = /^(?:{.*}|\[.*\])$/, + rmultiDash = /([A-Z])/g; + +jQuery.extend({ + cache: {}, + + // Please use with caution + uuid: 0, + + // Unique for each copy of jQuery on the page + // Non-digits removed to match rinlinejQuery + expando: "jQuery" + ( jQuery.fn.jquery + Math.random() ).replace( /\D/g, "" ), + + // The following elements throw uncatchable exceptions if you + // attempt to add expando properties to them. + noData: { + "embed": true, + // Ban all objects except for Flash (which handle expandos) + "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000", + "applet": true + }, + + hasData: function( elem ) { + elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ]; + return !!elem && !isEmptyDataObject( elem ); + }, + + data: function( elem, name, data, pvt /* Internal Use Only */ ) { + if ( !jQuery.acceptData( elem ) ) { + return; + } + + var privateCache, thisCache, ret, + internalKey = jQuery.expando, + getByName = typeof name === "string", + + // We have to handle DOM nodes and JS objects differently because IE6-7 + // can't GC object references properly across the DOM-JS boundary + isNode = elem.nodeType, + + // Only DOM nodes need the global jQuery cache; JS object data is + // attached directly to the object so GC can occur automatically + cache = isNode ? jQuery.cache : elem, + + // Only defining an ID for JS objects if its cache already exists allows + // the code to shortcut on the same path as a DOM node with no cache + id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey, + isEvents = name === "events"; + + // Avoid doing any more work than we need to when trying to get data on an + // object that has no data at all + if ( (!id || !cache[id] || (!isEvents && !pvt && !cache[id].data)) && getByName && data === undefined ) { + return; + } + + if ( !id ) { + // Only DOM nodes need a new unique ID for each element since their data + // ends up in the global cache + if ( isNode ) { + elem[ internalKey ] = id = ++jQuery.uuid; + } else { + id = internalKey; + } + } + + if ( !cache[ id ] ) { + cache[ id ] = {}; + + // Avoids exposing jQuery metadata on plain JS objects when the object + // is serialized using JSON.stringify + if ( !isNode ) { + cache[ id ].toJSON = jQuery.noop; + } + } + + // An object can be passed to jQuery.data instead of a key/value pair; this gets + // shallow copied over onto the existing cache + if ( typeof name === "object" || typeof name === "function" ) { + if ( pvt ) { + cache[ id ] = jQuery.extend( cache[ id ], name ); + } else { + cache[ id ].data = jQuery.extend( cache[ id ].data, name ); + } + } + + privateCache = thisCache = cache[ id ]; + + // jQuery data() is stored in a separate object inside the object's internal data + // cache in order to avoid key collisions between internal data and user-defined + // data. + if ( !pvt ) { + if ( !thisCache.data ) { + thisCache.data = {}; + } + + thisCache = thisCache.data; + } + + if ( data !== undefined ) { + thisCache[ jQuery.camelCase( name ) ] = data; + } + + // Users should not attempt to inspect the internal events object using jQuery.data, + // it is undocumented and subject to change. But does anyone listen? No. + if ( isEvents && !thisCache[ name ] ) { + return privateCache.events; + } + + // Check for both converted-to-camel and non-converted data property names + // If a data property was specified + if ( getByName ) { + + // First Try to find as-is property data + ret = thisCache[ name ]; + + // Test for null|undefined property data + if ( ret == null ) { + + // Try to find the camelCased property + ret = thisCache[ jQuery.camelCase( name ) ]; + } + } else { + ret = thisCache; + } + + return ret; + }, + + removeData: function( elem, name, pvt /* Internal Use Only */ ) { + if ( !jQuery.acceptData( elem ) ) { + return; + } + + var thisCache, i, l, + + // Reference to internal data cache key + internalKey = jQuery.expando, + + isNode = elem.nodeType, + + // See jQuery.data for more information + cache = isNode ? jQuery.cache : elem, + + // See jQuery.data for more information + id = isNode ? elem[ internalKey ] : internalKey; + + // If there is already no cache entry for this object, there is no + // purpose in continuing + if ( !cache[ id ] ) { + return; + } + + if ( name ) { + + thisCache = pvt ? cache[ id ] : cache[ id ].data; + + if ( thisCache ) { + + // Support array or space separated string names for data keys + if ( !jQuery.isArray( name ) ) { + + // try the string as a key before any manipulation + if ( name in thisCache ) { + name = [ name ]; + } else { + + // split the camel cased version by spaces unless a key with the spaces exists + name = jQuery.camelCase( name ); + if ( name in thisCache ) { + name = [ name ]; + } else { + name = name.split( " " ); + } + } + } + + for ( i = 0, l = name.length; i < l; i++ ) { + delete thisCache[ name[i] ]; + } + + // If there is no data left in the cache, we want to continue + // and let the cache object itself get destroyed + if ( !( pvt ? isEmptyDataObject : jQuery.isEmptyObject )( thisCache ) ) { + return; + } + } + } + + // See jQuery.data for more information + if ( !pvt ) { + delete cache[ id ].data; + + // Don't destroy the parent cache unless the internal data object + // had been the only thing left in it + if ( !isEmptyDataObject(cache[ id ]) ) { + return; + } + } + + // Browsers that fail expando deletion also refuse to delete expandos on + // the window, but it will allow it on all other JS objects; other browsers + // don't care + // Ensure that `cache` is not a window object #10080 + if ( jQuery.support.deleteExpando || !cache.setInterval ) { + delete cache[ id ]; + } else { + cache[ id ] = null; + } + + // We destroyed the cache and need to eliminate the expando on the node to avoid + // false lookups in the cache for entries that no longer exist + if ( isNode ) { + // IE does not allow us to delete expando properties from nodes, + // nor does it have a removeAttribute function on Document nodes; + // we must handle all of these cases + if ( jQuery.support.deleteExpando ) { + delete elem[ internalKey ]; + } else if ( elem.removeAttribute ) { + elem.removeAttribute( internalKey ); + } else { + elem[ internalKey ] = null; + } + } + }, + + // For internal use only. + _data: function( elem, name, data ) { + return jQuery.data( elem, name, data, true ); + }, + + // A method for determining if a DOM node can handle the data expando + acceptData: function( elem ) { + if ( elem.nodeName ) { + var match = jQuery.noData[ elem.nodeName.toLowerCase() ]; + + if ( match ) { + return !(match === true || elem.getAttribute("classid") !== match); + } + } + + return true; + } +}); + +jQuery.fn.extend({ + data: function( key, value ) { + var parts, part, attr, name, l, + elem = this[0], + i = 0, + data = null; + + // Gets all values + if ( key === undefined ) { + if ( this.length ) { + data = jQuery.data( elem ); + + if ( elem.nodeType === 1 && !jQuery._data( elem, "parsedAttrs" ) ) { + attr = elem.attributes; + for ( l = attr.length; i < l; i++ ) { + name = attr[i].name; + + if ( name.indexOf( "data-" ) === 0 ) { + name = jQuery.camelCase( name.substring(5) ); + + dataAttr( elem, name, data[ name ] ); + } + } + jQuery._data( elem, "parsedAttrs", true ); + } + } + + return data; + } + + // Sets multiple values + if ( typeof key === "object" ) { + return this.each(function() { + jQuery.data( this, key ); + }); + } + + parts = key.split( ".", 2 ); + parts[1] = parts[1] ? "." + parts[1] : ""; + part = parts[1] + "!"; + + return jQuery.access( this, function( value ) { + + if ( value === undefined ) { + data = this.triggerHandler( "getData" + part, [ parts[0] ] ); + + // Try to fetch any internally stored data first + if ( data === undefined && elem ) { + data = jQuery.data( elem, key ); + data = dataAttr( elem, key, data ); + } + + return data === undefined && parts[1] ? + this.data( parts[0] ) : + data; + } + + parts[1] = value; + this.each(function() { + var self = jQuery( this ); + + self.triggerHandler( "setData" + part, parts ); + jQuery.data( this, key, value ); + self.triggerHandler( "changeData" + part, parts ); + }); + }, null, value, arguments.length > 1, null, false ); + }, + + removeData: function( key ) { + return this.each(function() { + jQuery.removeData( this, key ); + }); + } +}); + +function dataAttr( elem, key, data ) { + // If nothing was found internally, try to fetch any + // data from the HTML5 data-* attribute + if ( data === undefined && elem.nodeType === 1 ) { + + var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase(); + + data = elem.getAttribute( name ); + + if ( typeof data === "string" ) { + try { + data = data === "true" ? true : + data === "false" ? false : + data === "null" ? null : + jQuery.isNumeric( data ) ? +data : + rbrace.test( data ) ? jQuery.parseJSON( data ) : + data; + } catch( e ) {} + + // Make sure we set the data so it isn't changed later + jQuery.data( elem, key, data ); + + } else { + data = undefined; + } + } + + return data; +} + +// checks a cache object for emptiness +function isEmptyDataObject( obj ) { + for ( var name in obj ) { + + // if the public data object is empty, the private is still empty + if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) { + continue; + } + if ( name !== "toJSON" ) { + return false; + } + } + + return true; +} + + + + +function handleQueueMarkDefer( elem, type, src ) { + var deferDataKey = type + "defer", + queueDataKey = type + "queue", + markDataKey = type + "mark", + defer = jQuery._data( elem, deferDataKey ); + if ( defer && + ( src === "queue" || !jQuery._data(elem, queueDataKey) ) && + ( src === "mark" || !jQuery._data(elem, markDataKey) ) ) { + // Give room for hard-coded callbacks to fire first + // and eventually mark/queue something else on the element + setTimeout( function() { + if ( !jQuery._data( elem, queueDataKey ) && + !jQuery._data( elem, markDataKey ) ) { + jQuery.removeData( elem, deferDataKey, true ); + defer.fire(); + } + }, 0 ); + } +} + +jQuery.extend({ + + _mark: function( elem, type ) { + if ( elem ) { + type = ( type || "fx" ) + "mark"; + jQuery._data( elem, type, (jQuery._data( elem, type ) || 0) + 1 ); + } + }, + + _unmark: function( force, elem, type ) { + if ( force !== true ) { + type = elem; + elem = force; + force = false; + } + if ( elem ) { + type = type || "fx"; + var key = type + "mark", + count = force ? 0 : ( (jQuery._data( elem, key ) || 1) - 1 ); + if ( count ) { + jQuery._data( elem, key, count ); + } else { + jQuery.removeData( elem, key, true ); + handleQueueMarkDefer( elem, type, "mark" ); + } + } + }, + + queue: function( elem, type, data ) { + var q; + if ( elem ) { + type = ( type || "fx" ) + "queue"; + q = jQuery._data( elem, type ); + + // Speed up dequeue by getting out quickly if this is just a lookup + if ( data ) { + if ( !q || jQuery.isArray(data) ) { + q = jQuery._data( elem, type, jQuery.makeArray(data) ); + } else { + q.push( data ); + } + } + return q || []; + } + }, + + dequeue: function( elem, type ) { + type = type || "fx"; + + var queue = jQuery.queue( elem, type ), + fn = queue.shift(), + hooks = {}; + + // If the fx queue is dequeued, always remove the progress sentinel + if ( fn === "inprogress" ) { + fn = queue.shift(); + } + + if ( fn ) { + // Add a progress sentinel to prevent the fx queue from being + // automatically dequeued + if ( type === "fx" ) { + queue.unshift( "inprogress" ); + } + + jQuery._data( elem, type + ".run", hooks ); + fn.call( elem, function() { + jQuery.dequeue( elem, type ); + }, hooks ); + } + + if ( !queue.length ) { + jQuery.removeData( elem, type + "queue " + type + ".run", true ); + handleQueueMarkDefer( elem, type, "queue" ); + } + } +}); + +jQuery.fn.extend({ + queue: function( type, data ) { + var setter = 2; + + if ( typeof type !== "string" ) { + data = type; + type = "fx"; + setter--; + } + + if ( arguments.length < setter ) { + return jQuery.queue( this[0], type ); + } + + return data === undefined ? + this : + this.each(function() { + var queue = jQuery.queue( this, type, data ); + + if ( type === "fx" && queue[0] !== "inprogress" ) { + jQuery.dequeue( this, type ); + } + }); + }, + dequeue: function( type ) { + return this.each(function() { + jQuery.dequeue( this, type ); + }); + }, + // Based off of the plugin by Clint Helfers, with permission. + // http://blindsignals.com/index.php/2009/07/jquery-delay/ + delay: function( time, type ) { + time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; + type = type || "fx"; + + return this.queue( type, function( next, hooks ) { + var timeout = setTimeout( next, time ); + hooks.stop = function() { + clearTimeout( timeout ); + }; + }); + }, + clearQueue: function( type ) { + return this.queue( type || "fx", [] ); + }, + // Get a promise resolved when queues of a certain type + // are emptied (fx is the type by default) + promise: function( type, object ) { + if ( typeof type !== "string" ) { + object = type; + type = undefined; + } + type = type || "fx"; + var defer = jQuery.Deferred(), + elements = this, + i = elements.length, + count = 1, + deferDataKey = type + "defer", + queueDataKey = type + "queue", + markDataKey = type + "mark", + tmp; + function resolve() { + if ( !( --count ) ) { + defer.resolveWith( elements, [ elements ] ); + } + } + while( i-- ) { + if (( tmp = jQuery.data( elements[ i ], deferDataKey, undefined, true ) || + ( jQuery.data( elements[ i ], queueDataKey, undefined, true ) || + jQuery.data( elements[ i ], markDataKey, undefined, true ) ) && + jQuery.data( elements[ i ], deferDataKey, jQuery.Callbacks( "once memory" ), true ) )) { + count++; + tmp.add( resolve ); + } + } + resolve(); + return defer.promise( object ); + } +}); + + + + +var rclass = /[\n\t\r]/g, + rspace = /\s+/, + rreturn = /\r/g, + rtype = /^(?:button|input)$/i, + rfocusable = /^(?:button|input|object|select|textarea)$/i, + rclickable = /^a(?:rea)?$/i, + rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i, + getSetAttribute = jQuery.support.getSetAttribute, + nodeHook, boolHook, fixSpecified; + +jQuery.fn.extend({ + attr: function( name, value ) { + return jQuery.access( this, jQuery.attr, name, value, arguments.length > 1 ); + }, + + removeAttr: function( name ) { + return this.each(function() { + jQuery.removeAttr( this, name ); + }); + }, + + prop: function( name, value ) { + return jQuery.access( this, jQuery.prop, name, value, arguments.length > 1 ); + }, + + removeProp: function( name ) { + name = jQuery.propFix[ name ] || name; + return this.each(function() { + // try/catch handles cases where IE balks (such as removing a property on window) + try { + this[ name ] = undefined; + delete this[ name ]; + } catch( e ) {} + }); + }, + + addClass: function( value ) { + var classNames, i, l, elem, + setClass, c, cl; + + if ( jQuery.isFunction( value ) ) { + return this.each(function( j ) { + jQuery( this ).addClass( value.call(this, j, this.className) ); + }); + } + + if ( value && typeof value === "string" ) { + classNames = value.split( rspace ); + + for ( i = 0, l = this.length; i < l; i++ ) { + elem = this[ i ]; + + if ( elem.nodeType === 1 ) { + if ( !elem.className && classNames.length === 1 ) { + elem.className = value; + + } else { + setClass = " " + elem.className + " "; + + for ( c = 0, cl = classNames.length; c < cl; c++ ) { + if ( !~setClass.indexOf( " " + classNames[ c ] + " " ) ) { + setClass += classNames[ c ] + " "; + } + } + elem.className = jQuery.trim( setClass ); + } + } + } + } + + return this; + }, + + removeClass: function( value ) { + var classNames, i, l, elem, className, c, cl; + + if ( jQuery.isFunction( value ) ) { + return this.each(function( j ) { + jQuery( this ).removeClass( value.call(this, j, this.className) ); + }); + } + + if ( (value && typeof value === "string") || value === undefined ) { + classNames = ( value || "" ).split( rspace ); + + for ( i = 0, l = this.length; i < l; i++ ) { + elem = this[ i ]; + + if ( elem.nodeType === 1 && elem.className ) { + if ( value ) { + className = (" " + elem.className + " ").replace( rclass, " " ); + for ( c = 0, cl = classNames.length; c < cl; c++ ) { + className = className.replace(" " + classNames[ c ] + " ", " "); + } + elem.className = jQuery.trim( className ); + + } else { + elem.className = ""; + } + } + } + } + + return this; + }, + + toggleClass: function( value, stateVal ) { + var type = typeof value, + isBool = typeof stateVal === "boolean"; + + if ( jQuery.isFunction( value ) ) { + return this.each(function( i ) { + jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal ); + }); + } + + return this.each(function() { + if ( type === "string" ) { + // toggle individual class names + var className, + i = 0, + self = jQuery( this ), + state = stateVal, + classNames = value.split( rspace ); + + while ( (className = classNames[ i++ ]) ) { + // check each className given, space seperated list + state = isBool ? state : !self.hasClass( className ); + self[ state ? "addClass" : "removeClass" ]( className ); + } + + } else if ( type === "undefined" || type === "boolean" ) { + if ( this.className ) { + // store className if set + jQuery._data( this, "__className__", this.className ); + } + + // toggle whole className + this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || ""; + } + }); + }, + + hasClass: function( selector ) { + var className = " " + selector + " ", + i = 0, + l = this.length; + for ( ; i < l; i++ ) { + if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) { + return true; + } + } + + return false; + }, + + val: function( value ) { + var hooks, ret, isFunction, + elem = this[0]; + + if ( !arguments.length ) { + if ( elem ) { + hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ]; + + if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) { + return ret; + } + + ret = elem.value; + + return typeof ret === "string" ? + // handle most common string cases + ret.replace(rreturn, "") : + // handle cases where value is null/undef or number + ret == null ? "" : ret; + } + + return; + } + + isFunction = jQuery.isFunction( value ); + + return this.each(function( i ) { + var self = jQuery(this), val; + + if ( this.nodeType !== 1 ) { + return; + } + + if ( isFunction ) { + val = value.call( this, i, self.val() ); + } else { + val = value; + } + + // Treat null/undefined as ""; convert numbers to string + if ( val == null ) { + val = ""; + } else if ( typeof val === "number" ) { + val += ""; + } else if ( jQuery.isArray( val ) ) { + val = jQuery.map(val, function ( value ) { + return value == null ? "" : value + ""; + }); + } + + hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ]; + + // If set returns undefined, fall back to normal setting + if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) { + this.value = val; + } + }); + } +}); + +jQuery.extend({ + valHooks: { + option: { + get: function( elem ) { + // attributes.value is undefined in Blackberry 4.7 but + // uses .value. See #6932 + var val = elem.attributes.value; + return !val || val.specified ? elem.value : elem.text; + } + }, + select: { + get: function( elem ) { + var value, i, max, option, + index = elem.selectedIndex, + values = [], + options = elem.options, + one = elem.type === "select-one"; + + // Nothing was selected + if ( index < 0 ) { + return null; + } + + // Loop through all the selected options + i = one ? index : 0; + max = one ? index + 1 : options.length; + for ( ; i < max; i++ ) { + option = options[ i ]; + + // Don't return options that are disabled or in a disabled optgroup + if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null) && + (!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) { + + // Get the specific value for the option + value = jQuery( option ).val(); + + // We don't need an array for one selects + if ( one ) { + return value; + } + + // Multi-Selects return an array + values.push( value ); + } + } + + // Fixes Bug #2551 -- select.val() broken in IE after form.reset() + if ( one && !values.length && options.length ) { + return jQuery( options[ index ] ).val(); + } + + return values; + }, + + set: function( elem, value ) { + var values = jQuery.makeArray( value ); + + jQuery(elem).find("option").each(function() { + this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0; + }); + + if ( !values.length ) { + elem.selectedIndex = -1; + } + return values; + } + } + }, + + attrFn: { + val: true, + css: true, + html: true, + text: true, + data: true, + width: true, + height: true, + offset: true + }, + + attr: function( elem, name, value, pass ) { + var ret, hooks, notxml, + nType = elem.nodeType; + + // don't get/set attributes on text, comment and attribute nodes + if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { + return; + } + + if ( pass && name in jQuery.attrFn ) { + return jQuery( elem )[ name ]( value ); + } + + // Fallback to prop when attributes are not supported + if ( typeof elem.getAttribute === "undefined" ) { + return jQuery.prop( elem, name, value ); + } + + notxml = nType !== 1 || !jQuery.isXMLDoc( elem ); + + // All attributes are lowercase + // Grab necessary hook if one is defined + if ( notxml ) { + name = name.toLowerCase(); + hooks = jQuery.attrHooks[ name ] || ( rboolean.test( name ) ? boolHook : nodeHook ); + } + + if ( value !== undefined ) { + + if ( value === null ) { + jQuery.removeAttr( elem, name ); + return; + + } else if ( hooks && "set" in hooks && notxml && (ret = hooks.set( elem, value, name )) !== undefined ) { + return ret; + + } else { + elem.setAttribute( name, "" + value ); + return value; + } + + } else if ( hooks && "get" in hooks && notxml && (ret = hooks.get( elem, name )) !== null ) { + return ret; + + } else { + + ret = elem.getAttribute( name ); + + // Non-existent attributes return null, we normalize to undefined + return ret === null ? + undefined : + ret; + } + }, + + removeAttr: function( elem, value ) { + var propName, attrNames, name, l, isBool, + i = 0; + + if ( value && elem.nodeType === 1 ) { + attrNames = value.toLowerCase().split( rspace ); + l = attrNames.length; + + for ( ; i < l; i++ ) { + name = attrNames[ i ]; + + if ( name ) { + propName = jQuery.propFix[ name ] || name; + isBool = rboolean.test( name ); + + // See #9699 for explanation of this approach (setting first, then removal) + // Do not do this for boolean attributes (see #10870) + if ( !isBool ) { + jQuery.attr( elem, name, "" ); + } + elem.removeAttribute( getSetAttribute ? name : propName ); + + // Set corresponding property to false for boolean attributes + if ( isBool && propName in elem ) { + elem[ propName ] = false; + } + } + } + } + }, + + attrHooks: { + type: { + set: function( elem, value ) { + // We can't allow the type property to be changed (since it causes problems in IE) + if ( rtype.test( elem.nodeName ) && elem.parentNode ) { + jQuery.error( "type property can't be changed" ); + } else if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) { + // Setting the type on a radio button after the value resets the value in IE6-9 + // Reset value to it's default in case type is set after value + // This is for element creation + var val = elem.value; + elem.setAttribute( "type", value ); + if ( val ) { + elem.value = val; + } + return value; + } + } + }, + // Use the value property for back compat + // Use the nodeHook for button elements in IE6/7 (#1954) + value: { + get: function( elem, name ) { + if ( nodeHook && jQuery.nodeName( elem, "button" ) ) { + return nodeHook.get( elem, name ); + } + return name in elem ? + elem.value : + null; + }, + set: function( elem, value, name ) { + if ( nodeHook && jQuery.nodeName( elem, "button" ) ) { + return nodeHook.set( elem, value, name ); + } + // Does not return so that setAttribute is also used + elem.value = value; + } + } + }, + + propFix: { + tabindex: "tabIndex", + readonly: "readOnly", + "for": "htmlFor", + "class": "className", + maxlength: "maxLength", + cellspacing: "cellSpacing", + cellpadding: "cellPadding", + rowspan: "rowSpan", + colspan: "colSpan", + usemap: "useMap", + frameborder: "frameBorder", + contenteditable: "contentEditable" + }, + + prop: function( elem, name, value ) { + var ret, hooks, notxml, + nType = elem.nodeType; + + // don't get/set properties on text, comment and attribute nodes + if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { + return; + } + + notxml = nType !== 1 || !jQuery.isXMLDoc( elem ); + + if ( notxml ) { + // Fix name and attach hooks + name = jQuery.propFix[ name ] || name; + hooks = jQuery.propHooks[ name ]; + } + + if ( value !== undefined ) { + if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) { + return ret; + + } else { + return ( elem[ name ] = value ); + } + + } else { + if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) { + return ret; + + } else { + return elem[ name ]; + } + } + }, + + propHooks: { + tabIndex: { + get: function( elem ) { + // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set + // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/ + var attributeNode = elem.getAttributeNode("tabindex"); + + return attributeNode && attributeNode.specified ? + parseInt( attributeNode.value, 10 ) : + rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ? + 0 : + undefined; + } + } + } +}); + +// Add the tabIndex propHook to attrHooks for back-compat (different case is intentional) +jQuery.attrHooks.tabindex = jQuery.propHooks.tabIndex; + +// Hook for boolean attributes +boolHook = { + get: function( elem, name ) { + // Align boolean attributes with corresponding properties + // Fall back to attribute presence where some booleans are not supported + var attrNode, + property = jQuery.prop( elem, name ); + return property === true || typeof property !== "boolean" && ( attrNode = elem.getAttributeNode(name) ) && attrNode.nodeValue !== false ? + name.toLowerCase() : + undefined; + }, + set: function( elem, value, name ) { + var propName; + if ( value === false ) { + // Remove boolean attributes when set to false + jQuery.removeAttr( elem, name ); + } else { + // value is true since we know at this point it's type boolean and not false + // Set boolean attributes to the same name and set the DOM property + propName = jQuery.propFix[ name ] || name; + if ( propName in elem ) { + // Only set the IDL specifically if it already exists on the element + elem[ propName ] = true; + } + + elem.setAttribute( name, name.toLowerCase() ); + } + return name; + } +}; + +// IE6/7 do not support getting/setting some attributes with get/setAttribute +if ( !getSetAttribute ) { + + fixSpecified = { + name: true, + id: true, + coords: true + }; + + // Use this for any attribute in IE6/7 + // This fixes almost every IE6/7 issue + nodeHook = jQuery.valHooks.button = { + get: function( elem, name ) { + var ret; + ret = elem.getAttributeNode( name ); + return ret && ( fixSpecified[ name ] ? ret.nodeValue !== "" : ret.specified ) ? + ret.nodeValue : + undefined; + }, + set: function( elem, value, name ) { + // Set the existing or create a new attribute node + var ret = elem.getAttributeNode( name ); + if ( !ret ) { + ret = document.createAttribute( name ); + elem.setAttributeNode( ret ); + } + return ( ret.nodeValue = value + "" ); + } + }; + + // Apply the nodeHook to tabindex + jQuery.attrHooks.tabindex.set = nodeHook.set; + + // Set width and height to auto instead of 0 on empty string( Bug #8150 ) + // This is for removals + jQuery.each([ "width", "height" ], function( i, name ) { + jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], { + set: function( elem, value ) { + if ( value === "" ) { + elem.setAttribute( name, "auto" ); + return value; + } + } + }); + }); + + // Set contenteditable to false on removals(#10429) + // Setting to empty string throws an error as an invalid value + jQuery.attrHooks.contenteditable = { + get: nodeHook.get, + set: function( elem, value, name ) { + if ( value === "" ) { + value = "false"; + } + nodeHook.set( elem, value, name ); + } + }; +} + + +// Some attributes require a special call on IE +if ( !jQuery.support.hrefNormalized ) { + jQuery.each([ "href", "src", "width", "height" ], function( i, name ) { + jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], { + get: function( elem ) { + var ret = elem.getAttribute( name, 2 ); + return ret === null ? undefined : ret; + } + }); + }); +} + +if ( !jQuery.support.style ) { + jQuery.attrHooks.style = { + get: function( elem ) { + // Return undefined in the case of empty string + // Normalize to lowercase since IE uppercases css property names + return elem.style.cssText.toLowerCase() || undefined; + }, + set: function( elem, value ) { + return ( elem.style.cssText = "" + value ); + } + }; +} + +// Safari mis-reports the default selected property of an option +// Accessing the parent's selectedIndex property fixes it +if ( !jQuery.support.optSelected ) { + jQuery.propHooks.selected = jQuery.extend( jQuery.propHooks.selected, { + get: function( elem ) { + var parent = elem.parentNode; + + if ( parent ) { + parent.selectedIndex; + + // Make sure that it also works with optgroups, see #5701 + if ( parent.parentNode ) { + parent.parentNode.selectedIndex; + } + } + return null; + } + }); +} + +// IE6/7 call enctype encoding +if ( !jQuery.support.enctype ) { + jQuery.propFix.enctype = "encoding"; +} + +// Radios and checkboxes getter/setter +if ( !jQuery.support.checkOn ) { + jQuery.each([ "radio", "checkbox" ], function() { + jQuery.valHooks[ this ] = { + get: function( elem ) { + // Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified + return elem.getAttribute("value") === null ? "on" : elem.value; + } + }; + }); +} +jQuery.each([ "radio", "checkbox" ], function() { + jQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], { + set: function( elem, value ) { + if ( jQuery.isArray( value ) ) { + return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 ); + } + } + }); +}); + + + + +var rformElems = /^(?:textarea|input|select)$/i, + rtypenamespace = /^([^\.]*)?(?:\.(.+))?$/, + rhoverHack = /(?:^|\s)hover(\.\S+)?\b/, + rkeyEvent = /^key/, + rmouseEvent = /^(?:mouse|contextmenu)|click/, + rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, + rquickIs = /^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/, + quickParse = function( selector ) { + var quick = rquickIs.exec( selector ); + if ( quick ) { + // 0 1 2 3 + // [ _, tag, id, class ] + quick[1] = ( quick[1] || "" ).toLowerCase(); + quick[3] = quick[3] && new RegExp( "(?:^|\\s)" + quick[3] + "(?:\\s|$)" ); + } + return quick; + }, + quickIs = function( elem, m ) { + var attrs = elem.attributes || {}; + return ( + (!m[1] || elem.nodeName.toLowerCase() === m[1]) && + (!m[2] || (attrs.id || {}).value === m[2]) && + (!m[3] || m[3].test( (attrs[ "class" ] || {}).value )) + ); + }, + hoverHack = function( events ) { + return jQuery.event.special.hover ? events : events.replace( rhoverHack, "mouseenter$1 mouseleave$1" ); + }; + +/* + * Helper functions for managing events -- not part of the public interface. + * Props to Dean Edwards' addEvent library for many of the ideas. + */ +jQuery.event = { + + add: function( elem, types, handler, data, selector ) { + + var elemData, eventHandle, events, + t, tns, type, namespaces, handleObj, + handleObjIn, quick, handlers, special; + + // Don't attach events to noData or text/comment nodes (allow plain objects tho) + if ( elem.nodeType === 3 || elem.nodeType === 8 || !types || !handler || !(elemData = jQuery._data( elem )) ) { + return; + } + + // Caller can pass in an object of custom data in lieu of the handler + if ( handler.handler ) { + handleObjIn = handler; + handler = handleObjIn.handler; + selector = handleObjIn.selector; + } + + // Make sure that the handler has a unique ID, used to find/remove it later + if ( !handler.guid ) { + handler.guid = jQuery.guid++; + } + + // Init the element's event structure and main handler, if this is the first + events = elemData.events; + if ( !events ) { + elemData.events = events = {}; + } + eventHandle = elemData.handle; + if ( !eventHandle ) { + elemData.handle = eventHandle = function( e ) { + // Discard the second event of a jQuery.event.trigger() and + // when an event is called after a page has unloaded + return typeof jQuery !== "undefined" && (!e || jQuery.event.triggered !== e.type) ? + jQuery.event.dispatch.apply( eventHandle.elem, arguments ) : + undefined; + }; + // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events + eventHandle.elem = elem; + } + + // Handle multiple events separated by a space + // jQuery(...).bind("mouseover mouseout", fn); + types = jQuery.trim( hoverHack(types) ).split( " " ); + for ( t = 0; t < types.length; t++ ) { + + tns = rtypenamespace.exec( types[t] ) || []; + type = tns[1]; + namespaces = ( tns[2] || "" ).split( "." ).sort(); + + // If event changes its type, use the special event handlers for the changed type + special = jQuery.event.special[ type ] || {}; + + // If selector defined, determine special event api type, otherwise given type + type = ( selector ? special.delegateType : special.bindType ) || type; + + // Update special based on newly reset type + special = jQuery.event.special[ type ] || {}; + + // handleObj is passed to all event handlers + handleObj = jQuery.extend({ + type: type, + origType: tns[1], + data: data, + handler: handler, + guid: handler.guid, + selector: selector, + quick: selector && quickParse( selector ), + namespace: namespaces.join(".") + }, handleObjIn ); + + // Init the event handler queue if we're the first + handlers = events[ type ]; + if ( !handlers ) { + handlers = events[ type ] = []; + handlers.delegateCount = 0; + + // Only use addEventListener/attachEvent if the special events handler returns false + if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) { + // Bind the global event handler to the element + if ( elem.addEventListener ) { + elem.addEventListener( type, eventHandle, false ); + + } else if ( elem.attachEvent ) { + elem.attachEvent( "on" + type, eventHandle ); + } + } + } + + if ( special.add ) { + special.add.call( elem, handleObj ); + + if ( !handleObj.handler.guid ) { + handleObj.handler.guid = handler.guid; + } + } + + // Add to the element's handler list, delegates in front + if ( selector ) { + handlers.splice( handlers.delegateCount++, 0, handleObj ); + } else { + handlers.push( handleObj ); + } + + // Keep track of which events have ever been used, for event optimization + jQuery.event.global[ type ] = true; + } + + // Nullify elem to prevent memory leaks in IE + elem = null; + }, + + global: {}, + + // Detach an event or set of events from an element + remove: function( elem, types, handler, selector, mappedTypes ) { + + var elemData = jQuery.hasData( elem ) && jQuery._data( elem ), + t, tns, type, origType, namespaces, origCount, + j, events, special, handle, eventType, handleObj; + + if ( !elemData || !(events = elemData.events) ) { + return; + } + + // Once for each type.namespace in types; type may be omitted + types = jQuery.trim( hoverHack( types || "" ) ).split(" "); + for ( t = 0; t < types.length; t++ ) { + tns = rtypenamespace.exec( types[t] ) || []; + type = origType = tns[1]; + namespaces = tns[2]; + + // Unbind all events (on this namespace, if provided) for the element + if ( !type ) { + for ( type in events ) { + jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); + } + continue; + } + + special = jQuery.event.special[ type ] || {}; + type = ( selector? special.delegateType : special.bindType ) || type; + eventType = events[ type ] || []; + origCount = eventType.length; + namespaces = namespaces ? new RegExp("(^|\\.)" + namespaces.split(".").sort().join("\\.(?:.*\\.)?") + "(\\.|$)") : null; + + // Remove matching events + for ( j = 0; j < eventType.length; j++ ) { + handleObj = eventType[ j ]; + + if ( ( mappedTypes || origType === handleObj.origType ) && + ( !handler || handler.guid === handleObj.guid ) && + ( !namespaces || namespaces.test( handleObj.namespace ) ) && + ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) { + eventType.splice( j--, 1 ); + + if ( handleObj.selector ) { + eventType.delegateCount--; + } + if ( special.remove ) { + special.remove.call( elem, handleObj ); + } + } + } + + // Remove generic event handler if we removed something and no more handlers exist + // (avoids potential for endless recursion during removal of special event handlers) + if ( eventType.length === 0 && origCount !== eventType.length ) { + if ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) { + jQuery.removeEvent( elem, type, elemData.handle ); + } + + delete events[ type ]; + } + } + + // Remove the expando if it's no longer used + if ( jQuery.isEmptyObject( events ) ) { + handle = elemData.handle; + if ( handle ) { + handle.elem = null; + } + + // removeData also checks for emptiness and clears the expando if empty + // so use it instead of delete + jQuery.removeData( elem, [ "events", "handle" ], true ); + } + }, + + // Events that are safe to short-circuit if no handlers are attached. + // Native DOM events should not be added, they may have inline handlers. + customEvent: { + "getData": true, + "setData": true, + "changeData": true + }, + + trigger: function( event, data, elem, onlyHandlers ) { + // Don't do events on text and comment nodes + if ( elem && (elem.nodeType === 3 || elem.nodeType === 8) ) { + return; + } + + // Event object or event type + var type = event.type || event, + namespaces = [], + cache, exclusive, i, cur, old, ontype, special, handle, eventPath, bubbleType; + + // focus/blur morphs to focusin/out; ensure we're not firing them right now + if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { + return; + } + + if ( type.indexOf( "!" ) >= 0 ) { + // Exclusive events trigger only for the exact event (no namespaces) + type = type.slice(0, -1); + exclusive = true; + } + + if ( type.indexOf( "." ) >= 0 ) { + // Namespaced trigger; create a regexp to match event type in handle() + namespaces = type.split("."); + type = namespaces.shift(); + namespaces.sort(); + } + + if ( (!elem || jQuery.event.customEvent[ type ]) && !jQuery.event.global[ type ] ) { + // No jQuery handlers for this event type, and it can't have inline handlers + return; + } + + // Caller can pass in an Event, Object, or just an event type string + event = typeof event === "object" ? + // jQuery.Event object + event[ jQuery.expando ] ? event : + // Object literal + new jQuery.Event( type, event ) : + // Just the event type (string) + new jQuery.Event( type ); + + event.type = type; + event.isTrigger = true; + event.exclusive = exclusive; + event.namespace = namespaces.join( "." ); + event.namespace_re = event.namespace? new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.)?") + "(\\.|$)") : null; + ontype = type.indexOf( ":" ) < 0 ? "on" + type : ""; + + // Handle a global trigger + if ( !elem ) { + + // TODO: Stop taunting the data cache; remove global events and always attach to document + cache = jQuery.cache; + for ( i in cache ) { + if ( cache[ i ].events && cache[ i ].events[ type ] ) { + jQuery.event.trigger( event, data, cache[ i ].handle.elem, true ); + } + } + return; + } + + // Clean up the event in case it is being reused + event.result = undefined; + if ( !event.target ) { + event.target = elem; + } + + // Clone any incoming data and prepend the event, creating the handler arg list + data = data != null ? jQuery.makeArray( data ) : []; + data.unshift( event ); + + // Allow special events to draw outside the lines + special = jQuery.event.special[ type ] || {}; + if ( special.trigger && special.trigger.apply( elem, data ) === false ) { + return; + } + + // Determine event propagation path in advance, per W3C events spec (#9951) + // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) + eventPath = [[ elem, special.bindType || type ]]; + if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) { + + bubbleType = special.delegateType || type; + cur = rfocusMorph.test( bubbleType + type ) ? elem : elem.parentNode; + old = null; + for ( ; cur; cur = cur.parentNode ) { + eventPath.push([ cur, bubbleType ]); + old = cur; + } + + // Only add window if we got to document (e.g., not plain obj or detached DOM) + if ( old && old === elem.ownerDocument ) { + eventPath.push([ old.defaultView || old.parentWindow || window, bubbleType ]); + } + } + + // Fire handlers on the event path + for ( i = 0; i < eventPath.length && !event.isPropagationStopped(); i++ ) { + + cur = eventPath[i][0]; + event.type = eventPath[i][1]; + + handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" ); + if ( handle ) { + handle.apply( cur, data ); + } + // Note that this is a bare JS function and not a jQuery handler + handle = ontype && cur[ ontype ]; + if ( handle && jQuery.acceptData( cur ) && handle.apply( cur, data ) === false ) { + event.preventDefault(); + } + } + event.type = type; + + // If nobody prevented the default action, do it now + if ( !onlyHandlers && !event.isDefaultPrevented() ) { + + if ( (!special._default || special._default.apply( elem.ownerDocument, data ) === false) && + !(type === "click" && jQuery.nodeName( elem, "a" )) && jQuery.acceptData( elem ) ) { + + // Call a native DOM method on the target with the same name name as the event. + // Can't use an .isFunction() check here because IE6/7 fails that test. + // Don't do default actions on window, that's where global variables be (#6170) + // IE<9 dies on focus/blur to hidden element (#1486) + if ( ontype && elem[ type ] && ((type !== "focus" && type !== "blur") || event.target.offsetWidth !== 0) && !jQuery.isWindow( elem ) ) { + + // Don't re-trigger an onFOO event when we call its FOO() method + old = elem[ ontype ]; + + if ( old ) { + elem[ ontype ] = null; + } + + // Prevent re-triggering of the same event, since we already bubbled it above + jQuery.event.triggered = type; + elem[ type ](); + jQuery.event.triggered = undefined; + + if ( old ) { + elem[ ontype ] = old; + } + } + } + } + + return event.result; + }, + + dispatch: function( event ) { + + // Make a writable jQuery.Event from the native event object + event = jQuery.event.fix( event || window.event ); + + var handlers = ( (jQuery._data( this, "events" ) || {} )[ event.type ] || []), + delegateCount = handlers.delegateCount, + args = [].slice.call( arguments, 0 ), + run_all = !event.exclusive && !event.namespace, + special = jQuery.event.special[ event.type ] || {}, + handlerQueue = [], + i, j, cur, jqcur, ret, selMatch, matched, matches, handleObj, sel, related; + + // Use the fix-ed jQuery.Event rather than the (read-only) native event + args[0] = event; + event.delegateTarget = this; + + // Call the preDispatch hook for the mapped type, and let it bail if desired + if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { + return; + } + + // Determine handlers that should run if there are delegated events + // Avoid non-left-click bubbling in Firefox (#3861) + if ( delegateCount && !(event.button && event.type === "click") ) { + + // Pregenerate a single jQuery object for reuse with .is() + jqcur = jQuery(this); + jqcur.context = this.ownerDocument || this; + + for ( cur = event.target; cur != this; cur = cur.parentNode || this ) { + + // Don't process events on disabled elements (#6911, #8165) + if ( cur.disabled !== true ) { + selMatch = {}; + matches = []; + jqcur[0] = cur; + for ( i = 0; i < delegateCount; i++ ) { + handleObj = handlers[ i ]; + sel = handleObj.selector; + + if ( selMatch[ sel ] === undefined ) { + selMatch[ sel ] = ( + handleObj.quick ? quickIs( cur, handleObj.quick ) : jqcur.is( sel ) + ); + } + if ( selMatch[ sel ] ) { + matches.push( handleObj ); + } + } + if ( matches.length ) { + handlerQueue.push({ elem: cur, matches: matches }); + } + } + } + } + + // Add the remaining (directly-bound) handlers + if ( handlers.length > delegateCount ) { + handlerQueue.push({ elem: this, matches: handlers.slice( delegateCount ) }); + } + + // Run delegates first; they may want to stop propagation beneath us + for ( i = 0; i < handlerQueue.length && !event.isPropagationStopped(); i++ ) { + matched = handlerQueue[ i ]; + event.currentTarget = matched.elem; + + for ( j = 0; j < matched.matches.length && !event.isImmediatePropagationStopped(); j++ ) { + handleObj = matched.matches[ j ]; + + // Triggered event must either 1) be non-exclusive and have no namespace, or + // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace). + if ( run_all || (!event.namespace && !handleObj.namespace) || event.namespace_re && event.namespace_re.test( handleObj.namespace ) ) { + + event.data = handleObj.data; + event.handleObj = handleObj; + + ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler ) + .apply( matched.elem, args ); + + if ( ret !== undefined ) { + event.result = ret; + if ( ret === false ) { + event.preventDefault(); + event.stopPropagation(); + } + } + } + } + } + + // Call the postDispatch hook for the mapped type + if ( special.postDispatch ) { + special.postDispatch.call( this, event ); + } + + return event.result; + }, + + // Includes some event props shared by KeyEvent and MouseEvent + // *** attrChange attrName relatedNode srcElement are not normalized, non-W3C, deprecated, will be removed in 1.8 *** + props: "attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "), + + fixHooks: {}, + + keyHooks: { + props: "char charCode key keyCode".split(" "), + filter: function( event, original ) { + + // Add which for key events + if ( event.which == null ) { + event.which = original.charCode != null ? original.charCode : original.keyCode; + } + + return event; + } + }, + + mouseHooks: { + props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "), + filter: function( event, original ) { + var eventDoc, doc, body, + button = original.button, + fromElement = original.fromElement; + + // Calculate pageX/Y if missing and clientX/Y available + if ( event.pageX == null && original.clientX != null ) { + eventDoc = event.target.ownerDocument || document; + doc = eventDoc.documentElement; + body = eventDoc.body; + + event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 ); + event.pageY = original.clientY + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - ( doc && doc.clientTop || body && body.clientTop || 0 ); + } + + // Add relatedTarget, if necessary + if ( !event.relatedTarget && fromElement ) { + event.relatedTarget = fromElement === event.target ? original.toElement : fromElement; + } + + // Add which for click: 1 === left; 2 === middle; 3 === right + // Note: button is not normalized, so don't use it + if ( !event.which && button !== undefined ) { + event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) ); + } + + return event; + } + }, + + fix: function( event ) { + if ( event[ jQuery.expando ] ) { + return event; + } + + // Create a writable copy of the event object and normalize some properties + var i, prop, + originalEvent = event, + fixHook = jQuery.event.fixHooks[ event.type ] || {}, + copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props; + + event = jQuery.Event( originalEvent ); + + for ( i = copy.length; i; ) { + prop = copy[ --i ]; + event[ prop ] = originalEvent[ prop ]; + } + + // Fix target property, if necessary (#1925, IE 6/7/8 & Safari2) + if ( !event.target ) { + event.target = originalEvent.srcElement || document; + } + + // Target should not be a text node (#504, Safari) + if ( event.target.nodeType === 3 ) { + event.target = event.target.parentNode; + } + + // For mouse/key events; add metaKey if it's not there (#3368, IE6/7/8) + if ( event.metaKey === undefined ) { + event.metaKey = event.ctrlKey; + } + + return fixHook.filter? fixHook.filter( event, originalEvent ) : event; + }, + + special: { + ready: { + // Make sure the ready event is setup + setup: jQuery.bindReady + }, + + load: { + // Prevent triggered image.load events from bubbling to window.load + noBubble: true + }, + + focus: { + delegateType: "focusin" + }, + blur: { + delegateType: "focusout" + }, + + beforeunload: { + setup: function( data, namespaces, eventHandle ) { + // We only want to do this special case on windows + if ( jQuery.isWindow( this ) ) { + this.onbeforeunload = eventHandle; + } + }, + + teardown: function( namespaces, eventHandle ) { + if ( this.onbeforeunload === eventHandle ) { + this.onbeforeunload = null; + } + } + } + }, + + simulate: function( type, elem, event, bubble ) { + // Piggyback on a donor event to simulate a different one. + // Fake originalEvent to avoid donor's stopPropagation, but if the + // simulated event prevents default then we do the same on the donor. + var e = jQuery.extend( + new jQuery.Event(), + event, + { type: type, + isSimulated: true, + originalEvent: {} + } + ); + if ( bubble ) { + jQuery.event.trigger( e, null, elem ); + } else { + jQuery.event.dispatch.call( elem, e ); + } + if ( e.isDefaultPrevented() ) { + event.preventDefault(); + } + } +}; + +// Some plugins are using, but it's undocumented/deprecated and will be removed. +// The 1.7 special event interface should provide all the hooks needed now. +jQuery.event.handle = jQuery.event.dispatch; + +jQuery.removeEvent = document.removeEventListener ? + function( elem, type, handle ) { + if ( elem.removeEventListener ) { + elem.removeEventListener( type, handle, false ); + } + } : + function( elem, type, handle ) { + if ( elem.detachEvent ) { + elem.detachEvent( "on" + type, handle ); + } + }; + +jQuery.Event = function( src, props ) { + // Allow instantiation without the 'new' keyword + if ( !(this instanceof jQuery.Event) ) { + return new jQuery.Event( src, props ); + } + + // Event object + if ( src && src.type ) { + this.originalEvent = src; + this.type = src.type; + + // Events bubbling up the document may have been marked as prevented + // by a handler lower down the tree; reflect the correct value. + this.isDefaultPrevented = ( src.defaultPrevented || src.returnValue === false || + src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse; + + // Event type + } else { + this.type = src; + } + + // Put explicitly provided properties onto the event object + if ( props ) { + jQuery.extend( this, props ); + } + + // Create a timestamp if incoming event doesn't have one + this.timeStamp = src && src.timeStamp || jQuery.now(); + + // Mark it as fixed + this[ jQuery.expando ] = true; +}; + +function returnFalse() { + return false; +} +function returnTrue() { + return true; +} + +// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding +// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html +jQuery.Event.prototype = { + preventDefault: function() { + this.isDefaultPrevented = returnTrue; + + var e = this.originalEvent; + if ( !e ) { + return; + } + + // if preventDefault exists run it on the original event + if ( e.preventDefault ) { + e.preventDefault(); + + // otherwise set the returnValue property of the original event to false (IE) + } else { + e.returnValue = false; + } + }, + stopPropagation: function() { + this.isPropagationStopped = returnTrue; + + var e = this.originalEvent; + if ( !e ) { + return; + } + // if stopPropagation exists run it on the original event + if ( e.stopPropagation ) { + e.stopPropagation(); + } + // otherwise set the cancelBubble property of the original event to true (IE) + e.cancelBubble = true; + }, + stopImmediatePropagation: function() { + this.isImmediatePropagationStopped = returnTrue; + this.stopPropagation(); + }, + isDefaultPrevented: returnFalse, + isPropagationStopped: returnFalse, + isImmediatePropagationStopped: returnFalse +}; + +// Create mouseenter/leave events using mouseover/out and event-time checks +jQuery.each({ + mouseenter: "mouseover", + mouseleave: "mouseout" +}, function( orig, fix ) { + jQuery.event.special[ orig ] = { + delegateType: fix, + bindType: fix, + + handle: function( event ) { + var target = this, + related = event.relatedTarget, + handleObj = event.handleObj, + selector = handleObj.selector, + ret; + + // For mousenter/leave call the handler if related is outside the target. + // NB: No relatedTarget if the mouse left/entered the browser window + if ( !related || (related !== target && !jQuery.contains( target, related )) ) { + event.type = handleObj.origType; + ret = handleObj.handler.apply( this, arguments ); + event.type = fix; + } + return ret; + } + }; +}); + +// IE submit delegation +if ( !jQuery.support.submitBubbles ) { + + jQuery.event.special.submit = { + setup: function() { + // Only need this for delegated form submit events + if ( jQuery.nodeName( this, "form" ) ) { + return false; + } + + // Lazy-add a submit handler when a descendant form may potentially be submitted + jQuery.event.add( this, "click._submit keypress._submit", function( e ) { + // Node name check avoids a VML-related crash in IE (#9807) + var elem = e.target, + form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined; + if ( form && !form._submit_attached ) { + jQuery.event.add( form, "submit._submit", function( event ) { + event._submit_bubble = true; + }); + form._submit_attached = true; + } + }); + // return undefined since we don't need an event listener + }, + + postDispatch: function( event ) { + // If form was submitted by the user, bubble the event up the tree + if ( event._submit_bubble ) { + delete event._submit_bubble; + if ( this.parentNode && !event.isTrigger ) { + jQuery.event.simulate( "submit", this.parentNode, event, true ); + } + } + }, + + teardown: function() { + // Only need this for delegated form submit events + if ( jQuery.nodeName( this, "form" ) ) { + return false; + } + + // Remove delegated handlers; cleanData eventually reaps submit handlers attached above + jQuery.event.remove( this, "._submit" ); + } + }; +} + +// IE change delegation and checkbox/radio fix +if ( !jQuery.support.changeBubbles ) { + + jQuery.event.special.change = { + + setup: function() { + + if ( rformElems.test( this.nodeName ) ) { + // IE doesn't fire change on a check/radio until blur; trigger it on click + // after a propertychange. Eat the blur-change in special.change.handle. + // This still fires onchange a second time for check/radio after blur. + if ( this.type === "checkbox" || this.type === "radio" ) { + jQuery.event.add( this, "propertychange._change", function( event ) { + if ( event.originalEvent.propertyName === "checked" ) { + this._just_changed = true; + } + }); + jQuery.event.add( this, "click._change", function( event ) { + if ( this._just_changed && !event.isTrigger ) { + this._just_changed = false; + jQuery.event.simulate( "change", this, event, true ); + } + }); + } + return false; + } + // Delegated event; lazy-add a change handler on descendant inputs + jQuery.event.add( this, "beforeactivate._change", function( e ) { + var elem = e.target; + + if ( rformElems.test( elem.nodeName ) && !elem._change_attached ) { + jQuery.event.add( elem, "change._change", function( event ) { + if ( this.parentNode && !event.isSimulated && !event.isTrigger ) { + jQuery.event.simulate( "change", this.parentNode, event, true ); + } + }); + elem._change_attached = true; + } + }); + }, + + handle: function( event ) { + var elem = event.target; + + // Swallow native change events from checkbox/radio, we already triggered them above + if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) { + return event.handleObj.handler.apply( this, arguments ); + } + }, + + teardown: function() { + jQuery.event.remove( this, "._change" ); + + return rformElems.test( this.nodeName ); + } + }; +} + +// Create "bubbling" focus and blur events +if ( !jQuery.support.focusinBubbles ) { + jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) { + + // Attach a single capturing handler while someone wants focusin/focusout + var attaches = 0, + handler = function( event ) { + jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true ); + }; + + jQuery.event.special[ fix ] = { + setup: function() { + if ( attaches++ === 0 ) { + document.addEventListener( orig, handler, true ); + } + }, + teardown: function() { + if ( --attaches === 0 ) { + document.removeEventListener( orig, handler, true ); + } + } + }; + }); +} + +jQuery.fn.extend({ + + on: function( types, selector, data, fn, /*INTERNAL*/ one ) { + var origFn, type; + + // Types can be a map of types/handlers + if ( typeof types === "object" ) { + // ( types-Object, selector, data ) + if ( typeof selector !== "string" ) { // && selector != null + // ( types-Object, data ) + data = data || selector; + selector = undefined; + } + for ( type in types ) { + this.on( type, selector, data, types[ type ], one ); + } + return this; + } + + if ( data == null && fn == null ) { + // ( types, fn ) + fn = selector; + data = selector = undefined; + } else if ( fn == null ) { + if ( typeof selector === "string" ) { + // ( types, selector, fn ) + fn = data; + data = undefined; + } else { + // ( types, data, fn ) + fn = data; + data = selector; + selector = undefined; + } + } + if ( fn === false ) { + fn = returnFalse; + } else if ( !fn ) { + return this; + } + + if ( one === 1 ) { + origFn = fn; + fn = function( event ) { + // Can use an empty set, since event contains the info + jQuery().off( event ); + return origFn.apply( this, arguments ); + }; + // Use same guid so caller can remove using origFn + fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); + } + return this.each( function() { + jQuery.event.add( this, types, fn, data, selector ); + }); + }, + one: function( types, selector, data, fn ) { + return this.on( types, selector, data, fn, 1 ); + }, + off: function( types, selector, fn ) { + if ( types && types.preventDefault && types.handleObj ) { + // ( event ) dispatched jQuery.Event + var handleObj = types.handleObj; + jQuery( types.delegateTarget ).off( + handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType, + handleObj.selector, + handleObj.handler + ); + return this; + } + if ( typeof types === "object" ) { + // ( types-object [, selector] ) + for ( var type in types ) { + this.off( type, selector, types[ type ] ); + } + return this; + } + if ( selector === false || typeof selector === "function" ) { + // ( types [, fn] ) + fn = selector; + selector = undefined; + } + if ( fn === false ) { + fn = returnFalse; + } + return this.each(function() { + jQuery.event.remove( this, types, fn, selector ); + }); + }, + + bind: function( types, data, fn ) { + return this.on( types, null, data, fn ); + }, + unbind: function( types, fn ) { + return this.off( types, null, fn ); + }, + + live: function( types, data, fn ) { + jQuery( this.context ).on( types, this.selector, data, fn ); + return this; + }, + die: function( types, fn ) { + jQuery( this.context ).off( types, this.selector || "**", fn ); + return this; + }, + + delegate: function( selector, types, data, fn ) { + return this.on( types, selector, data, fn ); + }, + undelegate: function( selector, types, fn ) { + // ( namespace ) or ( selector, types [, fn] ) + return arguments.length == 1? this.off( selector, "**" ) : this.off( types, selector, fn ); + }, + + trigger: function( type, data ) { + return this.each(function() { + jQuery.event.trigger( type, data, this ); + }); + }, + triggerHandler: function( type, data ) { + if ( this[0] ) { + return jQuery.event.trigger( type, data, this[0], true ); + } + }, + + toggle: function( fn ) { + // Save reference to arguments for access in closure + var args = arguments, + guid = fn.guid || jQuery.guid++, + i = 0, + toggler = function( event ) { + // Figure out which function to execute + var lastToggle = ( jQuery._data( this, "lastToggle" + fn.guid ) || 0 ) % i; + jQuery._data( this, "lastToggle" + fn.guid, lastToggle + 1 ); + + // Make sure that clicks stop + event.preventDefault(); + + // and execute the function + return args[ lastToggle ].apply( this, arguments ) || false; + }; + + // link all the functions, so any of them can unbind this click handler + toggler.guid = guid; + while ( i < args.length ) { + args[ i++ ].guid = guid; + } + + return this.click( toggler ); + }, + + hover: function( fnOver, fnOut ) { + return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver ); + } +}); + +jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " + + "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " + + "change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) { + + // Handle event binding + jQuery.fn[ name ] = function( data, fn ) { + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.on( name, null, data, fn ) : + this.trigger( name ); + }; + + if ( jQuery.attrFn ) { + jQuery.attrFn[ name ] = true; + } + + if ( rkeyEvent.test( name ) ) { + jQuery.event.fixHooks[ name ] = jQuery.event.keyHooks; + } + + if ( rmouseEvent.test( name ) ) { + jQuery.event.fixHooks[ name ] = jQuery.event.mouseHooks; + } +}); + + + +/*! + * Sizzle CSS Selector Engine + * Copyright 2011, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * More information: http://sizzlejs.com/ + */ +(function(){ + +var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g, + expando = "sizcache" + (Math.random() + '').replace('.', ''), + done = 0, + toString = Object.prototype.toString, + hasDuplicate = false, + baseHasDuplicate = true, + rBackslash = /\\/g, + rReturn = /\r\n/g, + rNonWord = /\W/; + +// Here we check if the JavaScript engine is using some sort of +// optimization where it does not always call our comparision +// function. If that is the case, discard the hasDuplicate value. +// Thus far that includes Google Chrome. +[0, 0].sort(function() { + baseHasDuplicate = false; + return 0; +}); + +var Sizzle = function( selector, context, results, seed ) { + results = results || []; + context = context || document; + + var origContext = context; + + if ( context.nodeType !== 1 && context.nodeType !== 9 ) { + return []; + } + + if ( !selector || typeof selector !== "string" ) { + return results; + } + + var m, set, checkSet, extra, ret, cur, pop, i, + prune = true, + contextXML = Sizzle.isXML( context ), + parts = [], + soFar = selector; + + // Reset the position of the chunker regexp (start from head) + do { + chunker.exec( "" ); + m = chunker.exec( soFar ); + + if ( m ) { + soFar = m[3]; + + parts.push( m[1] ); + + if ( m[2] ) { + extra = m[3]; + break; + } + } + } while ( m ); + + if ( parts.length > 1 && origPOS.exec( selector ) ) { + + if ( parts.length === 2 && Expr.relative[ parts[0] ] ) { + set = posProcess( parts[0] + parts[1], context, seed ); + + } else { + set = Expr.relative[ parts[0] ] ? + [ context ] : + Sizzle( parts.shift(), context ); + + while ( parts.length ) { + selector = parts.shift(); + + if ( Expr.relative[ selector ] ) { + selector += parts.shift(); + } + + set = posProcess( selector, set, seed ); + } + } + + } else { + // Take a shortcut and set the context if the root selector is an ID + // (but not if it'll be faster if the inner selector is an ID) + if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML && + Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) { + + ret = Sizzle.find( parts.shift(), context, contextXML ); + context = ret.expr ? + Sizzle.filter( ret.expr, ret.set )[0] : + ret.set[0]; + } + + if ( context ) { + ret = seed ? + { expr: parts.pop(), set: makeArray(seed) } : + Sizzle.find( parts.pop(), parts.length === 1 && (parts[0] === "~" || parts[0] === "+") && context.parentNode ? context.parentNode : context, contextXML ); + + set = ret.expr ? + Sizzle.filter( ret.expr, ret.set ) : + ret.set; + + if ( parts.length > 0 ) { + checkSet = makeArray( set ); + + } else { + prune = false; + } + + while ( parts.length ) { + cur = parts.pop(); + pop = cur; + + if ( !Expr.relative[ cur ] ) { + cur = ""; + } else { + pop = parts.pop(); + } + + if ( pop == null ) { + pop = context; + } + + Expr.relative[ cur ]( checkSet, pop, contextXML ); + } + + } else { + checkSet = parts = []; + } + } + + if ( !checkSet ) { + checkSet = set; + } + + if ( !checkSet ) { + Sizzle.error( cur || selector ); + } + + if ( toString.call(checkSet) === "[object Array]" ) { + if ( !prune ) { + results.push.apply( results, checkSet ); + + } else if ( context && context.nodeType === 1 ) { + for ( i = 0; checkSet[i] != null; i++ ) { + if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && Sizzle.contains(context, checkSet[i])) ) { + results.push( set[i] ); + } + } + + } else { + for ( i = 0; checkSet[i] != null; i++ ) { + if ( checkSet[i] && checkSet[i].nodeType === 1 ) { + results.push( set[i] ); + } + } + } + + } else { + makeArray( checkSet, results ); + } + + if ( extra ) { + Sizzle( extra, origContext, results, seed ); + Sizzle.uniqueSort( results ); + } + + return results; +}; + +Sizzle.uniqueSort = function( results ) { + if ( sortOrder ) { + hasDuplicate = baseHasDuplicate; + results.sort( sortOrder ); + + if ( hasDuplicate ) { + for ( var i = 1; i < results.length; i++ ) { + if ( results[i] === results[ i - 1 ] ) { + results.splice( i--, 1 ); + } + } + } + } + + return results; +}; + +Sizzle.matches = function( expr, set ) { + return Sizzle( expr, null, null, set ); +}; + +Sizzle.matchesSelector = function( node, expr ) { + return Sizzle( expr, null, null, [node] ).length > 0; +}; + +Sizzle.find = function( expr, context, isXML ) { + var set, i, len, match, type, left; + + if ( !expr ) { + return []; + } + + for ( i = 0, len = Expr.order.length; i < len; i++ ) { + type = Expr.order[i]; + + if ( (match = Expr.leftMatch[ type ].exec( expr )) ) { + left = match[1]; + match.splice( 1, 1 ); + + if ( left.substr( left.length - 1 ) !== "\\" ) { + match[1] = (match[1] || "").replace( rBackslash, "" ); + set = Expr.find[ type ]( match, context, isXML ); + + if ( set != null ) { + expr = expr.replace( Expr.match[ type ], "" ); + break; + } + } + } + } + + if ( !set ) { + set = typeof context.getElementsByTagName !== "undefined" ? + context.getElementsByTagName( "*" ) : + []; + } + + return { set: set, expr: expr }; +}; + +Sizzle.filter = function( expr, set, inplace, not ) { + var match, anyFound, + type, found, item, filter, left, + i, pass, + old = expr, + result = [], + curLoop = set, + isXMLFilter = set && set[0] && Sizzle.isXML( set[0] ); + + while ( expr && set.length ) { + for ( type in Expr.filter ) { + if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) { + filter = Expr.filter[ type ]; + left = match[1]; + + anyFound = false; + + match.splice(1,1); + + if ( left.substr( left.length - 1 ) === "\\" ) { + continue; + } + + if ( curLoop === result ) { + result = []; + } + + if ( Expr.preFilter[ type ] ) { + match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter ); + + if ( !match ) { + anyFound = found = true; + + } else if ( match === true ) { + continue; + } + } + + if ( match ) { + for ( i = 0; (item = curLoop[i]) != null; i++ ) { + if ( item ) { + found = filter( item, match, i, curLoop ); + pass = not ^ found; + + if ( inplace && found != null ) { + if ( pass ) { + anyFound = true; + + } else { + curLoop[i] = false; + } + + } else if ( pass ) { + result.push( item ); + anyFound = true; + } + } + } + } + + if ( found !== undefined ) { + if ( !inplace ) { + curLoop = result; + } + + expr = expr.replace( Expr.match[ type ], "" ); + + if ( !anyFound ) { + return []; + } + + break; + } + } + } + + // Improper expression + if ( expr === old ) { + if ( anyFound == null ) { + Sizzle.error( expr ); + + } else { + break; + } + } + + old = expr; + } + + return curLoop; +}; + +Sizzle.error = function( msg ) { + throw new Error( "Syntax error, unrecognized expression: " + msg ); +}; + +/** + * Utility function for retreiving the text value of an array of DOM nodes + * @param {Array|Element} elem + */ +var getText = Sizzle.getText = function( elem ) { + var i, node, + nodeType = elem.nodeType, + ret = ""; + + if ( nodeType ) { + if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { + // Use textContent || innerText for elements + if ( typeof elem.textContent === 'string' ) { + return elem.textContent; + } else if ( typeof elem.innerText === 'string' ) { + // Replace IE's carriage returns + return elem.innerText.replace( rReturn, '' ); + } else { + // Traverse it's children + for ( elem = elem.firstChild; elem; elem = elem.nextSibling) { + ret += getText( elem ); + } + } + } else if ( nodeType === 3 || nodeType === 4 ) { + return elem.nodeValue; + } + } else { + + // If no nodeType, this is expected to be an array + for ( i = 0; (node = elem[i]); i++ ) { + // Do not traverse comment nodes + if ( node.nodeType !== 8 ) { + ret += getText( node ); + } + } + } + return ret; +}; + +var Expr = Sizzle.selectors = { + order: [ "ID", "NAME", "TAG" ], + + match: { + ID: /#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/, + CLASS: /\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/, + NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/, + ATTR: /\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/, + TAG: /^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/, + CHILD: /:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/, + POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/, + PSEUDO: /:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/ + }, + + leftMatch: {}, + + attrMap: { + "class": "className", + "for": "htmlFor" + }, + + attrHandle: { + href: function( elem ) { + return elem.getAttribute( "href" ); + }, + type: function( elem ) { + return elem.getAttribute( "type" ); + } + }, + + relative: { + "+": function(checkSet, part){ + var isPartStr = typeof part === "string", + isTag = isPartStr && !rNonWord.test( part ), + isPartStrNotTag = isPartStr && !isTag; + + if ( isTag ) { + part = part.toLowerCase(); + } + + for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) { + if ( (elem = checkSet[i]) ) { + while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {} + + checkSet[i] = isPartStrNotTag || elem && elem.nodeName.toLowerCase() === part ? + elem || false : + elem === part; + } + } + + if ( isPartStrNotTag ) { + Sizzle.filter( part, checkSet, true ); + } + }, + + ">": function( checkSet, part ) { + var elem, + isPartStr = typeof part === "string", + i = 0, + l = checkSet.length; + + if ( isPartStr && !rNonWord.test( part ) ) { + part = part.toLowerCase(); + + for ( ; i < l; i++ ) { + elem = checkSet[i]; + + if ( elem ) { + var parent = elem.parentNode; + checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false; + } + } + + } else { + for ( ; i < l; i++ ) { + elem = checkSet[i]; + + if ( elem ) { + checkSet[i] = isPartStr ? + elem.parentNode : + elem.parentNode === part; + } + } + + if ( isPartStr ) { + Sizzle.filter( part, checkSet, true ); + } + } + }, + + "": function(checkSet, part, isXML){ + var nodeCheck, + doneName = done++, + checkFn = dirCheck; + + if ( typeof part === "string" && !rNonWord.test( part ) ) { + part = part.toLowerCase(); + nodeCheck = part; + checkFn = dirNodeCheck; + } + + checkFn( "parentNode", part, doneName, checkSet, nodeCheck, isXML ); + }, + + "~": function( checkSet, part, isXML ) { + var nodeCheck, + doneName = done++, + checkFn = dirCheck; + + if ( typeof part === "string" && !rNonWord.test( part ) ) { + part = part.toLowerCase(); + nodeCheck = part; + checkFn = dirNodeCheck; + } + + checkFn( "previousSibling", part, doneName, checkSet, nodeCheck, isXML ); + } + }, + + find: { + ID: function( match, context, isXML ) { + if ( typeof context.getElementById !== "undefined" && !isXML ) { + var m = context.getElementById(match[1]); + // Check parentNode to catch when Blackberry 4.6 returns + // nodes that are no longer in the document #6963 + return m && m.parentNode ? [m] : []; + } + }, + + NAME: function( match, context ) { + if ( typeof context.getElementsByName !== "undefined" ) { + var ret = [], + results = context.getElementsByName( match[1] ); + + for ( var i = 0, l = results.length; i < l; i++ ) { + if ( results[i].getAttribute("name") === match[1] ) { + ret.push( results[i] ); + } + } + + return ret.length === 0 ? null : ret; + } + }, + + TAG: function( match, context ) { + if ( typeof context.getElementsByTagName !== "undefined" ) { + return context.getElementsByTagName( match[1] ); + } + } + }, + preFilter: { + CLASS: function( match, curLoop, inplace, result, not, isXML ) { + match = " " + match[1].replace( rBackslash, "" ) + " "; + + if ( isXML ) { + return match; + } + + for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) { + if ( elem ) { + if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n\r]/g, " ").indexOf(match) >= 0) ) { + if ( !inplace ) { + result.push( elem ); + } + + } else if ( inplace ) { + curLoop[i] = false; + } + } + } + + return false; + }, + + ID: function( match ) { + return match[1].replace( rBackslash, "" ); + }, + + TAG: function( match, curLoop ) { + return match[1].replace( rBackslash, "" ).toLowerCase(); + }, + + CHILD: function( match ) { + if ( match[1] === "nth" ) { + if ( !match[2] ) { + Sizzle.error( match[0] ); + } + + match[2] = match[2].replace(/^\+|\s*/g, ''); + + // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6' + var test = /(-?)(\d*)(?:n([+\-]?\d*))?/.exec( + match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" || + !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]); + + // calculate the numbers (first)n+(last) including if they are negative + match[2] = (test[1] + (test[2] || 1)) - 0; + match[3] = test[3] - 0; + } + else if ( match[2] ) { + Sizzle.error( match[0] ); + } + + // TODO: Move to normal caching system + match[0] = done++; + + return match; + }, + + ATTR: function( match, curLoop, inplace, result, not, isXML ) { + var name = match[1] = match[1].replace( rBackslash, "" ); + + if ( !isXML && Expr.attrMap[name] ) { + match[1] = Expr.attrMap[name]; + } + + // Handle if an un-quoted value was used + match[4] = ( match[4] || match[5] || "" ).replace( rBackslash, "" ); + + if ( match[2] === "~=" ) { + match[4] = " " + match[4] + " "; + } + + return match; + }, + + PSEUDO: function( match, curLoop, inplace, result, not ) { + if ( match[1] === "not" ) { + // If we're dealing with a complex expression, or a simple one + if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) { + match[3] = Sizzle(match[3], null, null, curLoop); + + } else { + var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not); + + if ( !inplace ) { + result.push.apply( result, ret ); + } + + return false; + } + + } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) { + return true; + } + + return match; + }, + + POS: function( match ) { + match.unshift( true ); + + return match; + } + }, + + filters: { + enabled: function( elem ) { + return elem.disabled === false && elem.type !== "hidden"; + }, + + disabled: function( elem ) { + return elem.disabled === true; + }, + + checked: function( elem ) { + return elem.checked === true; + }, + + selected: function( elem ) { + // Accessing this property makes selected-by-default + // options in Safari work properly + if ( elem.parentNode ) { + elem.parentNode.selectedIndex; + } + + return elem.selected === true; + }, + + parent: function( elem ) { + return !!elem.firstChild; + }, + + empty: function( elem ) { + return !elem.firstChild; + }, + + has: function( elem, i, match ) { + return !!Sizzle( match[3], elem ).length; + }, + + header: function( elem ) { + return (/h\d/i).test( elem.nodeName ); + }, + + text: function( elem ) { + var attr = elem.getAttribute( "type" ), type = elem.type; + // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc) + // use getAttribute instead to test this case + return elem.nodeName.toLowerCase() === "input" && "text" === type && ( attr === type || attr === null ); + }, + + radio: function( elem ) { + return elem.nodeName.toLowerCase() === "input" && "radio" === elem.type; + }, + + checkbox: function( elem ) { + return elem.nodeName.toLowerCase() === "input" && "checkbox" === elem.type; + }, + + file: function( elem ) { + return elem.nodeName.toLowerCase() === "input" && "file" === elem.type; + }, + + password: function( elem ) { + return elem.nodeName.toLowerCase() === "input" && "password" === elem.type; + }, + + submit: function( elem ) { + var name = elem.nodeName.toLowerCase(); + return (name === "input" || name === "button") && "submit" === elem.type; + }, + + image: function( elem ) { + return elem.nodeName.toLowerCase() === "input" && "image" === elem.type; + }, + + reset: function( elem ) { + var name = elem.nodeName.toLowerCase(); + return (name === "input" || name === "button") && "reset" === elem.type; + }, + + button: function( elem ) { + var name = elem.nodeName.toLowerCase(); + return name === "input" && "button" === elem.type || name === "button"; + }, + + input: function( elem ) { + return (/input|select|textarea|button/i).test( elem.nodeName ); + }, + + focus: function( elem ) { + return elem === elem.ownerDocument.activeElement; + } + }, + setFilters: { + first: function( elem, i ) { + return i === 0; + }, + + last: function( elem, i, match, array ) { + return i === array.length - 1; + }, + + even: function( elem, i ) { + return i % 2 === 0; + }, + + odd: function( elem, i ) { + return i % 2 === 1; + }, + + lt: function( elem, i, match ) { + return i < match[3] - 0; + }, + + gt: function( elem, i, match ) { + return i > match[3] - 0; + }, + + nth: function( elem, i, match ) { + return match[3] - 0 === i; + }, + + eq: function( elem, i, match ) { + return match[3] - 0 === i; + } + }, + filter: { + PSEUDO: function( elem, match, i, array ) { + var name = match[1], + filter = Expr.filters[ name ]; + + if ( filter ) { + return filter( elem, i, match, array ); + + } else if ( name === "contains" ) { + return (elem.textContent || elem.innerText || getText([ elem ]) || "").indexOf(match[3]) >= 0; + + } else if ( name === "not" ) { + var not = match[3]; + + for ( var j = 0, l = not.length; j < l; j++ ) { + if ( not[j] === elem ) { + return false; + } + } + + return true; + + } else { + Sizzle.error( name ); + } + }, + + CHILD: function( elem, match ) { + var first, last, + doneName, parent, cache, + count, diff, + type = match[1], + node = elem; + + switch ( type ) { + case "only": + case "first": + while ( (node = node.previousSibling) ) { + if ( node.nodeType === 1 ) { + return false; + } + } + + if ( type === "first" ) { + return true; + } + + node = elem; + + /* falls through */ + case "last": + while ( (node = node.nextSibling) ) { + if ( node.nodeType === 1 ) { + return false; + } + } + + return true; + + case "nth": + first = match[2]; + last = match[3]; + + if ( first === 1 && last === 0 ) { + return true; + } + + doneName = match[0]; + parent = elem.parentNode; + + if ( parent && (parent[ expando ] !== doneName || !elem.nodeIndex) ) { + count = 0; + + for ( node = parent.firstChild; node; node = node.nextSibling ) { + if ( node.nodeType === 1 ) { + node.nodeIndex = ++count; + } + } + + parent[ expando ] = doneName; + } + + diff = elem.nodeIndex - last; + + if ( first === 0 ) { + return diff === 0; + + } else { + return ( diff % first === 0 && diff / first >= 0 ); + } + } + }, + + ID: function( elem, match ) { + return elem.nodeType === 1 && elem.getAttribute("id") === match; + }, + + TAG: function( elem, match ) { + return (match === "*" && elem.nodeType === 1) || !!elem.nodeName && elem.nodeName.toLowerCase() === match; + }, + + CLASS: function( elem, match ) { + return (" " + (elem.className || elem.getAttribute("class")) + " ") + .indexOf( match ) > -1; + }, + + ATTR: function( elem, match ) { + var name = match[1], + result = Sizzle.attr ? + Sizzle.attr( elem, name ) : + Expr.attrHandle[ name ] ? + Expr.attrHandle[ name ]( elem ) : + elem[ name ] != null ? + elem[ name ] : + elem.getAttribute( name ), + value = result + "", + type = match[2], + check = match[4]; + + return result == null ? + type === "!=" : + !type && Sizzle.attr ? + result != null : + type === "=" ? + value === check : + type === "*=" ? + value.indexOf(check) >= 0 : + type === "~=" ? + (" " + value + " ").indexOf(check) >= 0 : + !check ? + value && result !== false : + type === "!=" ? + value !== check : + type === "^=" ? + value.indexOf(check) === 0 : + type === "$=" ? + value.substr(value.length - check.length) === check : + type === "|=" ? + value === check || value.substr(0, check.length + 1) === check + "-" : + false; + }, + + POS: function( elem, match, i, array ) { + var name = match[2], + filter = Expr.setFilters[ name ]; + + if ( filter ) { + return filter( elem, i, match, array ); + } + } + } +}; + +var origPOS = Expr.match.POS, + fescape = function(all, num){ + return "\\" + (num - 0 + 1); + }; + +for ( var type in Expr.match ) { + Expr.match[ type ] = new RegExp( Expr.match[ type ].source + (/(?![^\[]*\])(?![^\(]*\))/.source) ); + Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source.replace(/\\(\d+)/g, fescape) ); +} +// Expose origPOS +// "global" as in regardless of relation to brackets/parens +Expr.match.globalPOS = origPOS; + +var makeArray = function( array, results ) { + array = Array.prototype.slice.call( array, 0 ); + + if ( results ) { + results.push.apply( results, array ); + return results; + } + + return array; +}; + +// Perform a simple check to determine if the browser is capable of +// converting a NodeList to an array using builtin methods. +// Also verifies that the returned array holds DOM nodes +// (which is not the case in the Blackberry browser) +try { + Array.prototype.slice.call( document.documentElement.childNodes, 0 )[0].nodeType; + +// Provide a fallback method if it does not work +} catch( e ) { + makeArray = function( array, results ) { + var i = 0, + ret = results || []; + + if ( toString.call(array) === "[object Array]" ) { + Array.prototype.push.apply( ret, array ); + + } else { + if ( typeof array.length === "number" ) { + for ( var l = array.length; i < l; i++ ) { + ret.push( array[i] ); + } + + } else { + for ( ; array[i]; i++ ) { + ret.push( array[i] ); + } + } + } + + return ret; + }; +} + +var sortOrder, siblingCheck; + +if ( document.documentElement.compareDocumentPosition ) { + sortOrder = function( a, b ) { + if ( a === b ) { + hasDuplicate = true; + return 0; + } + + if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) { + return a.compareDocumentPosition ? -1 : 1; + } + + return a.compareDocumentPosition(b) & 4 ? -1 : 1; + }; + +} else { + sortOrder = function( a, b ) { + // The nodes are identical, we can exit early + if ( a === b ) { + hasDuplicate = true; + return 0; + + // Fallback to using sourceIndex (in IE) if it's available on both nodes + } else if ( a.sourceIndex && b.sourceIndex ) { + return a.sourceIndex - b.sourceIndex; + } + + var al, bl, + ap = [], + bp = [], + aup = a.parentNode, + bup = b.parentNode, + cur = aup; + + // If the nodes are siblings (or identical) we can do a quick check + if ( aup === bup ) { + return siblingCheck( a, b ); + + // If no parents were found then the nodes are disconnected + } else if ( !aup ) { + return -1; + + } else if ( !bup ) { + return 1; + } + + // Otherwise they're somewhere else in the tree so we need + // to build up a full list of the parentNodes for comparison + while ( cur ) { + ap.unshift( cur ); + cur = cur.parentNode; + } + + cur = bup; + + while ( cur ) { + bp.unshift( cur ); + cur = cur.parentNode; + } + + al = ap.length; + bl = bp.length; + + // Start walking down the tree looking for a discrepancy + for ( var i = 0; i < al && i < bl; i++ ) { + if ( ap[i] !== bp[i] ) { + return siblingCheck( ap[i], bp[i] ); + } + } + + // We ended someplace up the tree so do a sibling check + return i === al ? + siblingCheck( a, bp[i], -1 ) : + siblingCheck( ap[i], b, 1 ); + }; + + siblingCheck = function( a, b, ret ) { + if ( a === b ) { + return ret; + } + + var cur = a.nextSibling; + + while ( cur ) { + if ( cur === b ) { + return -1; + } + + cur = cur.nextSibling; + } + + return 1; + }; +} + +// Check to see if the browser returns elements by name when +// querying by getElementById (and provide a workaround) +(function(){ + // We're going to inject a fake input element with a specified name + var form = document.createElement("div"), + id = "script" + (new Date()).getTime(), + root = document.documentElement; + + form.innerHTML = ""; + + // Inject it into the root element, check its status, and remove it quickly + root.insertBefore( form, root.firstChild ); + + // The workaround has to do additional checks after a getElementById + // Which slows things down for other browsers (hence the branching) + if ( document.getElementById( id ) ) { + Expr.find.ID = function( match, context, isXML ) { + if ( typeof context.getElementById !== "undefined" && !isXML ) { + var m = context.getElementById(match[1]); + + return m ? + m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ? + [m] : + undefined : + []; + } + }; + + Expr.filter.ID = function( elem, match ) { + var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id"); + + return elem.nodeType === 1 && node && node.nodeValue === match; + }; + } + + root.removeChild( form ); + + // release memory in IE + root = form = null; +})(); + +(function(){ + // Check to see if the browser returns only elements + // when doing getElementsByTagName("*") + + // Create a fake element + var div = document.createElement("div"); + div.appendChild( document.createComment("") ); + + // Make sure no comments are found + if ( div.getElementsByTagName("*").length > 0 ) { + Expr.find.TAG = function( match, context ) { + var results = context.getElementsByTagName( match[1] ); + + // Filter out possible comments + if ( match[1] === "*" ) { + var tmp = []; + + for ( var i = 0; results[i]; i++ ) { + if ( results[i].nodeType === 1 ) { + tmp.push( results[i] ); + } + } + + results = tmp; + } + + return results; + }; + } + + // Check to see if an attribute returns normalized href attributes + div.innerHTML = ""; + + if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" && + div.firstChild.getAttribute("href") !== "#" ) { + + Expr.attrHandle.href = function( elem ) { + return elem.getAttribute( "href", 2 ); + }; + } + + // release memory in IE + div = null; +})(); + +if ( document.querySelectorAll ) { + (function(){ + var oldSizzle = Sizzle, + div = document.createElement("div"), + id = "__sizzle__"; + + div.innerHTML = "

"; + + // Safari can't handle uppercase or unicode characters when + // in quirks mode. + if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) { + return; + } + + Sizzle = function( query, context, extra, seed ) { + context = context || document; + + // Only use querySelectorAll on non-XML documents + // (ID selectors don't work in non-HTML documents) + if ( !seed && !Sizzle.isXML(context) ) { + // See if we find a selector to speed up + var match = /^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec( query ); + + if ( match && (context.nodeType === 1 || context.nodeType === 9) ) { + // Speed-up: Sizzle("TAG") + if ( match[1] ) { + return makeArray( context.getElementsByTagName( query ), extra ); + + // Speed-up: Sizzle(".CLASS") + } else if ( match[2] && Expr.find.CLASS && context.getElementsByClassName ) { + return makeArray( context.getElementsByClassName( match[2] ), extra ); + } + } + + if ( context.nodeType === 9 ) { + // Speed-up: Sizzle("body") + // The body element only exists once, optimize finding it + if ( query === "body" && context.body ) { + return makeArray( [ context.body ], extra ); + + // Speed-up: Sizzle("#ID") + } else if ( match && match[3] ) { + var elem = context.getElementById( match[3] ); + + // Check parentNode to catch when Blackberry 4.6 returns + // nodes that are no longer in the document #6963 + if ( elem && elem.parentNode ) { + // Handle the case where IE and Opera return items + // by name instead of ID + if ( elem.id === match[3] ) { + return makeArray( [ elem ], extra ); + } + + } else { + return makeArray( [], extra ); + } + } + + try { + return makeArray( context.querySelectorAll(query), extra ); + } catch(qsaError) {} + + // qSA works strangely on Element-rooted queries + // We can work around this by specifying an extra ID on the root + // and working up from there (Thanks to Andrew Dupont for the technique) + // IE 8 doesn't work on object elements + } else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) { + var oldContext = context, + old = context.getAttribute( "id" ), + nid = old || id, + hasParent = context.parentNode, + relativeHierarchySelector = /^\s*[+~]/.test( query ); + + if ( !old ) { + context.setAttribute( "id", nid ); + } else { + nid = nid.replace( /'/g, "\\$&" ); + } + if ( relativeHierarchySelector && hasParent ) { + context = context.parentNode; + } + + try { + if ( !relativeHierarchySelector || hasParent ) { + return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra ); + } + + } catch(pseudoError) { + } finally { + if ( !old ) { + oldContext.removeAttribute( "id" ); + } + } + } + } + + return oldSizzle(query, context, extra, seed); + }; + + for ( var prop in oldSizzle ) { + Sizzle[ prop ] = oldSizzle[ prop ]; + } + + // release memory in IE + div = null; + })(); +} + +(function(){ + var html = document.documentElement, + matches = html.matchesSelector || html.mozMatchesSelector || html.webkitMatchesSelector || html.msMatchesSelector; + + if ( matches ) { + // Check to see if it's possible to do matchesSelector + // on a disconnected node (IE 9 fails this) + var disconnectedMatch = !matches.call( document.createElement( "div" ), "div" ), + pseudoWorks = false; + + try { + // This should fail with an exception + // Gecko does not error, returns false instead + matches.call( document.documentElement, "[test!='']:sizzle" ); + + } catch( pseudoError ) { + pseudoWorks = true; + } + + Sizzle.matchesSelector = function( node, expr ) { + // Make sure that attribute selectors are quoted + expr = expr.replace(/\=\s*([^'"\]]*)\s*\]/g, "='$1']"); + + if ( !Sizzle.isXML( node ) ) { + try { + if ( pseudoWorks || !Expr.match.PSEUDO.test( expr ) && !/!=/.test( expr ) ) { + var ret = matches.call( node, expr ); + + // IE 9's matchesSelector returns false on disconnected nodes + if ( ret || !disconnectedMatch || + // As well, disconnected nodes are said to be in a document + // fragment in IE 9, so check for that + node.document && node.document.nodeType !== 11 ) { + return ret; + } + } + } catch(e) {} + } + + return Sizzle(expr, null, null, [node]).length > 0; + }; + } +})(); + +(function(){ + var div = document.createElement("div"); + + div.innerHTML = "
"; + + // Opera can't find a second classname (in 9.6) + // Also, make sure that getElementsByClassName actually exists + if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) { + return; + } + + // Safari caches class attributes, doesn't catch changes (in 3.2) + div.lastChild.className = "e"; + + if ( div.getElementsByClassName("e").length === 1 ) { + return; + } + + Expr.order.splice(1, 0, "CLASS"); + Expr.find.CLASS = function( match, context, isXML ) { + if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) { + return context.getElementsByClassName(match[1]); + } + }; + + // release memory in IE + div = null; +})(); + +function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) { + for ( var i = 0, l = checkSet.length; i < l; i++ ) { + var elem = checkSet[i]; + + if ( elem ) { + var match = false; + + elem = elem[dir]; + + while ( elem ) { + if ( elem[ expando ] === doneName ) { + match = checkSet[elem.sizset]; + break; + } + + if ( elem.nodeType === 1 && !isXML ){ + elem[ expando ] = doneName; + elem.sizset = i; + } + + if ( elem.nodeName.toLowerCase() === cur ) { + match = elem; + break; + } + + elem = elem[dir]; + } + + checkSet[i] = match; + } + } +} + +function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) { + for ( var i = 0, l = checkSet.length; i < l; i++ ) { + var elem = checkSet[i]; + + if ( elem ) { + var match = false; + + elem = elem[dir]; + + while ( elem ) { + if ( elem[ expando ] === doneName ) { + match = checkSet[elem.sizset]; + break; + } + + if ( elem.nodeType === 1 ) { + if ( !isXML ) { + elem[ expando ] = doneName; + elem.sizset = i; + } + + if ( typeof cur !== "string" ) { + if ( elem === cur ) { + match = true; + break; + } + + } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) { + match = elem; + break; + } + } + + elem = elem[dir]; + } + + checkSet[i] = match; + } + } +} + +if ( document.documentElement.contains ) { + Sizzle.contains = function( a, b ) { + return a !== b && (a.contains ? a.contains(b) : true); + }; + +} else if ( document.documentElement.compareDocumentPosition ) { + Sizzle.contains = function( a, b ) { + return !!(a.compareDocumentPosition(b) & 16); + }; + +} else { + Sizzle.contains = function() { + return false; + }; +} + +Sizzle.isXML = function( elem ) { + // documentElement is verified for cases where it doesn't yet exist + // (such as loading iframes in IE - #4833) + var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement; + + return documentElement ? documentElement.nodeName !== "HTML" : false; +}; + +var posProcess = function( selector, context, seed ) { + var match, + tmpSet = [], + later = "", + root = context.nodeType ? [context] : context; + + // Position selectors must be done after the filter + // And so must :not(positional) so we move all PSEUDOs to the end + while ( (match = Expr.match.PSEUDO.exec( selector )) ) { + later += match[0]; + selector = selector.replace( Expr.match.PSEUDO, "" ); + } + + selector = Expr.relative[selector] ? selector + "*" : selector; + + for ( var i = 0, l = root.length; i < l; i++ ) { + Sizzle( selector, root[i], tmpSet, seed ); + } + + return Sizzle.filter( later, tmpSet ); +}; + +// EXPOSE +// Override sizzle attribute retrieval +Sizzle.attr = jQuery.attr; +Sizzle.selectors.attrMap = {}; +jQuery.find = Sizzle; +jQuery.expr = Sizzle.selectors; +jQuery.expr[":"] = jQuery.expr.filters; +jQuery.unique = Sizzle.uniqueSort; +jQuery.text = Sizzle.getText; +jQuery.isXMLDoc = Sizzle.isXML; +jQuery.contains = Sizzle.contains; + + +})(); + + +var runtil = /Until$/, + rparentsprev = /^(?:parents|prevUntil|prevAll)/, + // Note: This RegExp should be improved, or likely pulled from Sizzle + rmultiselector = /,/, + isSimple = /^.[^:#\[\.,]*$/, + slice = Array.prototype.slice, + POS = jQuery.expr.match.globalPOS, + // methods guaranteed to produce a unique set when starting from a unique set + guaranteedUnique = { + children: true, + contents: true, + next: true, + prev: true + }; + +jQuery.fn.extend({ + find: function( selector ) { + var self = this, + i, l; + + if ( typeof selector !== "string" ) { + return jQuery( selector ).filter(function() { + for ( i = 0, l = self.length; i < l; i++ ) { + if ( jQuery.contains( self[ i ], this ) ) { + return true; + } + } + }); + } + + var ret = this.pushStack( "", "find", selector ), + length, n, r; + + for ( i = 0, l = this.length; i < l; i++ ) { + length = ret.length; + jQuery.find( selector, this[i], ret ); + + if ( i > 0 ) { + // Make sure that the results are unique + for ( n = length; n < ret.length; n++ ) { + for ( r = 0; r < length; r++ ) { + if ( ret[r] === ret[n] ) { + ret.splice(n--, 1); + break; + } + } + } + } + } + + return ret; + }, + + has: function( target ) { + var targets = jQuery( target ); + return this.filter(function() { + for ( var i = 0, l = targets.length; i < l; i++ ) { + if ( jQuery.contains( this, targets[i] ) ) { + return true; + } + } + }); + }, + + not: function( selector ) { + return this.pushStack( winnow(this, selector, false), "not", selector); + }, + + filter: function( selector ) { + return this.pushStack( winnow(this, selector, true), "filter", selector ); + }, + + is: function( selector ) { + return !!selector && ( + typeof selector === "string" ? + // If this is a positional selector, check membership in the returned set + // so $("p:first").is("p:last") won't return true for a doc with two "p". + POS.test( selector ) ? + jQuery( selector, this.context ).index( this[0] ) >= 0 : + jQuery.filter( selector, this ).length > 0 : + this.filter( selector ).length > 0 ); + }, + + closest: function( selectors, context ) { + var ret = [], i, l, cur = this[0]; + + // Array (deprecated as of jQuery 1.7) + if ( jQuery.isArray( selectors ) ) { + var level = 1; + + while ( cur && cur.ownerDocument && cur !== context ) { + for ( i = 0; i < selectors.length; i++ ) { + + if ( jQuery( cur ).is( selectors[ i ] ) ) { + ret.push({ selector: selectors[ i ], elem: cur, level: level }); + } + } + + cur = cur.parentNode; + level++; + } + + return ret; + } + + // String + var pos = POS.test( selectors ) || typeof selectors !== "string" ? + jQuery( selectors, context || this.context ) : + 0; + + for ( i = 0, l = this.length; i < l; i++ ) { + cur = this[i]; + + while ( cur ) { + if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) { + ret.push( cur ); + break; + + } else { + cur = cur.parentNode; + if ( !cur || !cur.ownerDocument || cur === context || cur.nodeType === 11 ) { + break; + } + } + } + } + + ret = ret.length > 1 ? jQuery.unique( ret ) : ret; + + return this.pushStack( ret, "closest", selectors ); + }, + + // Determine the position of an element within + // the matched set of elements + index: function( elem ) { + + // No argument, return index in parent + if ( !elem ) { + return ( this[0] && this[0].parentNode ) ? this.prevAll().length : -1; + } + + // index in selector + if ( typeof elem === "string" ) { + return jQuery.inArray( this[0], jQuery( elem ) ); + } + + // Locate the position of the desired element + return jQuery.inArray( + // If it receives a jQuery object, the first element is used + elem.jquery ? elem[0] : elem, this ); + }, + + add: function( selector, context ) { + var set = typeof selector === "string" ? + jQuery( selector, context ) : + jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ), + all = jQuery.merge( this.get(), set ); + + return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ? + all : + jQuery.unique( all ) ); + }, + + andSelf: function() { + return this.add( this.prevObject ); + } +}); + +// A painfully simple check to see if an element is disconnected +// from a document (should be improved, where feasible). +function isDisconnected( node ) { + return !node || !node.parentNode || node.parentNode.nodeType === 11; +} + +jQuery.each({ + parent: function( elem ) { + var parent = elem.parentNode; + return parent && parent.nodeType !== 11 ? parent : null; + }, + parents: function( elem ) { + return jQuery.dir( elem, "parentNode" ); + }, + parentsUntil: function( elem, i, until ) { + return jQuery.dir( elem, "parentNode", until ); + }, + next: function( elem ) { + return jQuery.nth( elem, 2, "nextSibling" ); + }, + prev: function( elem ) { + return jQuery.nth( elem, 2, "previousSibling" ); + }, + nextAll: function( elem ) { + return jQuery.dir( elem, "nextSibling" ); + }, + prevAll: function( elem ) { + return jQuery.dir( elem, "previousSibling" ); + }, + nextUntil: function( elem, i, until ) { + return jQuery.dir( elem, "nextSibling", until ); + }, + prevUntil: function( elem, i, until ) { + return jQuery.dir( elem, "previousSibling", until ); + }, + siblings: function( elem ) { + return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem ); + }, + children: function( elem ) { + return jQuery.sibling( elem.firstChild ); + }, + contents: function( elem ) { + return jQuery.nodeName( elem, "iframe" ) ? + elem.contentDocument || elem.contentWindow.document : + jQuery.makeArray( elem.childNodes ); + } +}, function( name, fn ) { + jQuery.fn[ name ] = function( until, selector ) { + var ret = jQuery.map( this, fn, until ); + + if ( !runtil.test( name ) ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + ret = jQuery.filter( selector, ret ); + } + + ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; + + if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) { + ret = ret.reverse(); + } + + return this.pushStack( ret, name, slice.call( arguments ).join(",") ); + }; +}); + +jQuery.extend({ + filter: function( expr, elems, not ) { + if ( not ) { + expr = ":not(" + expr + ")"; + } + + return elems.length === 1 ? + jQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] : + jQuery.find.matches(expr, elems); + }, + + dir: function( elem, dir, until ) { + var matched = [], + cur = elem[ dir ]; + + while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) { + if ( cur.nodeType === 1 ) { + matched.push( cur ); + } + cur = cur[dir]; + } + return matched; + }, + + nth: function( cur, result, dir, elem ) { + result = result || 1; + var num = 0; + + for ( ; cur; cur = cur[dir] ) { + if ( cur.nodeType === 1 && ++num === result ) { + break; + } + } + + return cur; + }, + + sibling: function( n, elem ) { + var r = []; + + for ( ; n; n = n.nextSibling ) { + if ( n.nodeType === 1 && n !== elem ) { + r.push( n ); + } + } + + return r; + } +}); + +// Implement the identical functionality for filter and not +function winnow( elements, qualifier, keep ) { + + // Can't pass null or undefined to indexOf in Firefox 4 + // Set to 0 to skip string check + qualifier = qualifier || 0; + + if ( jQuery.isFunction( qualifier ) ) { + return jQuery.grep(elements, function( elem, i ) { + var retVal = !!qualifier.call( elem, i, elem ); + return retVal === keep; + }); + + } else if ( qualifier.nodeType ) { + return jQuery.grep(elements, function( elem, i ) { + return ( elem === qualifier ) === keep; + }); + + } else if ( typeof qualifier === "string" ) { + var filtered = jQuery.grep(elements, function( elem ) { + return elem.nodeType === 1; + }); + + if ( isSimple.test( qualifier ) ) { + return jQuery.filter(qualifier, filtered, !keep); + } else { + qualifier = jQuery.filter( qualifier, filtered ); + } + } + + return jQuery.grep(elements, function( elem, i ) { + return ( jQuery.inArray( elem, qualifier ) >= 0 ) === keep; + }); +} + + + + +function createSafeFragment( document ) { + var list = nodeNames.split( "|" ), + safeFrag = document.createDocumentFragment(); + + if ( safeFrag.createElement ) { + while ( list.length ) { + safeFrag.createElement( + list.pop() + ); + } + } + return safeFrag; +} + +var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" + + "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video", + rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g, + rleadingWhitespace = /^\s+/, + rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig, + rtagName = /<([\w:]+)/, + rtbody = /]", "i"), + // checked="checked" or checked + rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i, + rscriptType = /\/(java|ecma)script/i, + rcleanScript = /^\s*", "" ], + legend: [ 1, "
", "
" ], + thead: [ 1, "", "
" ], + tr: [ 2, "", "
" ], + td: [ 3, "", "
" ], + col: [ 2, "", "
" ], + area: [ 1, "", "" ], + _default: [ 0, "", "" ] + }, + safeFragment = createSafeFragment( document ); + +wrapMap.optgroup = wrapMap.option; +wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; +wrapMap.th = wrapMap.td; + +// IE can't serialize and + + + + + + + + +
+
+
+
+ + +

Index

+ +
+ +
+ + +
+
+
+
+
+ + + + + +
+
+
+
+ + + + \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/index.html b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/index.html new file mode 100644 index 00000000..2a7ee055 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/index.html @@ -0,0 +1,109 @@ + + + + + + + + Welcome to hello’s documentation! — hello 1 documentation + + + + + + + + + + + + + +
+
+
+
+ +
+

Welcome to hello’s documentation!

+

Contents:

+
+
    +
+
+
+
+

Indices and tables

+ +
+ + +
+
+
+
+
+

Table Of Contents

+ + +

This Page

+ + + +
+
+
+
+ + + + \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/objects.inv b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/objects.inv new file mode 100644 index 00000000..c7be2783 Binary files /dev/null and b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/objects.inv differ diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/search.html b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/search.html new file mode 100644 index 00000000..46a39e0f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/search.html @@ -0,0 +1,99 @@ + + + + + + + + Search — hello 1 documentation + + + + + + + + + + + + + + + + + + + +
+
+
+
+ +

Search

+
+ +

+ Please activate JavaScript to enable the search + functionality. +

+
+

+ From here you can search these documents. Enter your search + words into the box below and click "search". Note that the search + function will automatically search for all of the words. Pages + containing fewer words won't appear in the result list. +

+
+ + + +
+ +
+ +
+ +
+
+
+
+
+
+
+
+
+ + + + \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/searchindex.js b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/searchindex.js new file mode 100644 index 00000000..6c954cdd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/_build/html/searchindex.js @@ -0,0 +1 @@ +Search.setIndex({objtypes:{},objects:{},filenames:["index"],objnames:{},terms:{modul:0,index:0,content:0,page:0,search:0},titles:["Welcome to hello’s documentation!"],envversion:43,titleterms:{document:0,tabl:0,welcom:0,hello:0,indic:0}}) \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/conf.py b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/conf.py new file mode 100644 index 00000000..af81b04c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/conf.py @@ -0,0 +1,259 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# hello documentation build configuration file, created by +# sphinx-quickstart on Mon Mar 31 19:57:16 2014. +# +# This file is execfile()d with the current directory set to its +# containing dir. +# +# Note that not all possible configuration values are present in this +# autogenerated file. +# +# All configuration values have a default; values that are commented out +# serve to show the default. + +import sys +import os + +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +#sys.path.insert(0, os.path.abspath('.')) + +# -- General configuration ------------------------------------------------ + +# If your documentation needs a minimal Sphinx version, state it here. +#needs_sphinx = '1.0' + +# Add any Sphinx extension module names here, as strings. They can be +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom +# ones. +extensions = [] + +# Add any paths that contain templates here, relative to this directory. +templates_path = ['_templates'] + +# The suffix of source filenames. +source_suffix = '.rst' + +# The encoding of source files. +#source_encoding = 'utf-8-sig' + +# The master toctree document. +master_doc = 'index' + +# General information about the project. +project = 'hello' +copyright = '2014, lintian' + +# The version info for the project you're documenting, acts as replacement for +# |version| and |release|, also used in various other places throughout the +# built documents. +# +# The short X.Y version. +version = '1' +# The full version, including alpha/beta/rc tags. +release = '1' + +# The language for content autogenerated by Sphinx. Refer to documentation +# for a list of supported languages. +#language = None + +# There are two options for replacing |today|: either, you set today to some +# non-false value, then it is used: +#today = '' +# Else, today_fmt is used as the format for a strftime call. +#today_fmt = '%B %d, %Y' + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +exclude_patterns = ['_build'] + +# The reST default role (used for this markup: `text`) to use for all +# documents. +#default_role = None + +# If true, '()' will be appended to :func: etc. cross-reference text. +#add_function_parentheses = True + +# If true, the current module name will be prepended to all description +# unit titles (such as .. function::). +#add_module_names = True + +# If true, sectionauthor and moduleauthor directives will be shown in the +# output. They are ignored by default. +#show_authors = False + +# The name of the Pygments (syntax highlighting) style to use. +pygments_style = 'sphinx' + +# A list of ignored prefixes for module index sorting. +#modindex_common_prefix = [] + +# If true, keep warnings as "system message" paragraphs in the built documents. +#keep_warnings = False + + +# -- Options for HTML output ---------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +html_theme = 'default' + +# Theme options are theme-specific and customize the look and feel of a theme +# further. For a list of options available for each theme, see the +# documentation. +#html_theme_options = {} + +# Add any paths that contain custom themes here, relative to this directory. +#html_theme_path = [] + +# The name for this set of Sphinx documents. If None, it defaults to +# " v documentation". +#html_title = None + +# A shorter title for the navigation bar. Default is the same as html_title. +#html_short_title = None + +# The name of an image file (relative to this directory) to place at the top +# of the sidebar. +#html_logo = None + +# The name of an image file (within the static path) to use as favicon of the +# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 +# pixels large. +#html_favicon = None + +# Add any paths that contain custom static files (such as style sheets) here, +# relative to this directory. They are copied after the builtin static files, +# so a file named "default.css" will overwrite the builtin "default.css". +html_static_path = ['_static'] + +# Add any extra paths that contain custom files (such as robots.txt or +# .htaccess) here, relative to this directory. These files are copied +# directly to the root of the documentation. +#html_extra_path = [] + +# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, +# using the given strftime format. +#html_last_updated_fmt = '%b %d, %Y' + +# If true, SmartyPants will be used to convert quotes and dashes to +# typographically correct entities. +#html_use_smartypants = True + +# Custom sidebar templates, maps document names to template names. +#html_sidebars = {} + +# Additional templates that should be rendered to pages, maps page names to +# template names. +#html_additional_pages = {} + +# If false, no module index is generated. +#html_domain_indices = True + +# If false, no index is generated. +#html_use_index = True + +# If true, the index is split into individual pages for each letter. +#html_split_index = False + +# If true, links to the reST sources are added to the pages. +#html_show_sourcelink = True + +# If true, "Created using Sphinx" is shown in the HTML footer. Default is True. +#html_show_sphinx = True + +# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. +#html_show_copyright = True + +# If true, an OpenSearch description file will be output, and all pages will +# contain a tag referring to it. The value of this option must be the +# base URL from which the finished HTML is served. +#html_use_opensearch = '' + +# This is the file name suffix for HTML files (e.g. ".xhtml"). +#html_file_suffix = None + +# Output file base name for HTML help builder. +htmlhelp_basename = 'hellodoc' + + +# -- Options for LaTeX output --------------------------------------------- + +latex_elements = { +# The paper size ('letterpaper' or 'a4paper'). +#'papersize': 'letterpaper', + +# The font size ('10pt', '11pt' or '12pt'). +#'pointsize': '10pt', + +# Additional stuff for the LaTeX preamble. +#'preamble': '', +} + +# Grouping the document tree into LaTeX files. List of tuples +# (source start file, target name, title, +# author, documentclass [howto, manual, or own class]). +latex_documents = [ + ('index', 'hello.tex', 'hello Documentation', + 'lintian', 'manual'), +] + +# The name of an image file (relative to this directory) to place at the top of +# the title page. +#latex_logo = None + +# For "manual" documents, if this is true, then toplevel headings are parts, +# not chapters. +#latex_use_parts = False + +# If true, show page references after internal links. +#latex_show_pagerefs = False + +# If true, show URL addresses after external links. +#latex_show_urls = False + +# Documents to append as an appendix to all manuals. +#latex_appendices = [] + +# If false, no module index is generated. +#latex_domain_indices = True + + +# -- Options for manual page output --------------------------------------- + +# One entry per manual page. List of tuples +# (source start file, name, description, authors, manual section). +man_pages = [ + ('index', 'hello', 'hello Documentation', + ['lintian'], 1) +] + +# If true, show URL addresses after external links. +#man_show_urls = False + + +# -- Options for Texinfo output ------------------------------------------- + +# Grouping the document tree into Texinfo files. List of tuples +# (source start file, target name, title, author, +# dir menu entry, description, category) +texinfo_documents = [ + ('index', 'hello', 'hello Documentation', + 'lintian', 'hello', 'One line description of project.', + 'Miscellaneous'), +] + +# Documents to append as an appendix to all manuals. +#texinfo_appendices = [] + +# If false, no module index is generated. +#texinfo_domain_indices = True + +# How to display URL addresses: 'footnote', 'no', or 'inline'. +#texinfo_show_urls = 'footnote' + +# If true, do not generate a @detailmenu in the "Top" node's menu. +#texinfo_no_detailmenu = False diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/index.rst b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/index.rst new file mode 100644 index 00000000..778459ba --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/index.rst @@ -0,0 +1,22 @@ +.. hello documentation master file, created by + sphinx-quickstart on Mon Mar 31 19:57:16 2014. + You can adapt this file completely to your liking, but it should at least + contain the root `toctree` directive. + +Welcome to hello's documentation! +================================= + +Contents: + +.. toctree:: + :maxdepth: 2 + + + +Indices and tables +================== + +* :ref:`genindex` +* :ref:`modindex` +* :ref:`search` + diff --git a/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/make.bat b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/make.bat new file mode 100644 index 00000000..5d3e55e8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/cruft/cruft-sphinx-documentation/src/sphinx-1.22/make.bat @@ -0,0 +1,242 @@ +@ECHO OFF + +REM Command file for Sphinx documentation + +if "%SPHINXBUILD%" == "" ( + set SPHINXBUILD=sphinx-build +) +set BUILDDIR=_build +set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% . +set I18NSPHINXOPTS=%SPHINXOPTS% . +if NOT "%PAPER%" == "" ( + set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS% + set I18NSPHINXOPTS=-D latex_paper_size=%PAPER% %I18NSPHINXOPTS% +) + +if "%1" == "" goto help + +if "%1" == "help" ( + :help + echo.Please use `make ^` where ^ is one of + echo. html to make standalone HTML files + echo. dirhtml to make HTML files named index.html in directories + echo. singlehtml to make a single large HTML file + echo. pickle to make pickle files + echo. json to make JSON files + echo. htmlhelp to make HTML files and a HTML help project + echo. qthelp to make HTML files and a qthelp project + echo. devhelp to make HTML files and a Devhelp project + echo. epub to make an epub + echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter + echo. text to make text files + echo. man to make manual pages + echo. texinfo to make Texinfo files + echo. gettext to make PO message catalogs + echo. changes to make an overview over all changed/added/deprecated items + echo. xml to make Docutils-native XML files + echo. pseudoxml to make pseudoxml-XML files for display purposes + echo. linkcheck to check all external links for integrity + echo. doctest to run all doctests embedded in the documentation if enabled + goto end +) + +if "%1" == "clean" ( + for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i + del /q /s %BUILDDIR%\* + goto end +) + + +%SPHINXBUILD% 2> nul +if errorlevel 9009 ( + echo. + echo.The 'sphinx-build' command was not found. Make sure you have Sphinx + echo.installed, then set the SPHINXBUILD environment variable to point + echo.to the full path of the 'sphinx-build' executable. Alternatively you + echo.may add the Sphinx directory to PATH. + echo. + echo.If you don't have Sphinx installed, grab it from + echo.http://sphinx-doc.org/ + exit /b 1 +) + +if "%1" == "html" ( + %SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The HTML pages are in %BUILDDIR%/html. + goto end +) + +if "%1" == "dirhtml" ( + %SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml. + goto end +) + +if "%1" == "singlehtml" ( + %SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml. + goto end +) + +if "%1" == "pickle" ( + %SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle + if errorlevel 1 exit /b 1 + echo. + echo.Build finished; now you can process the pickle files. + goto end +) + +if "%1" == "json" ( + %SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json + if errorlevel 1 exit /b 1 + echo. + echo.Build finished; now you can process the JSON files. + goto end +) + +if "%1" == "htmlhelp" ( + %SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp + if errorlevel 1 exit /b 1 + echo. + echo.Build finished; now you can run HTML Help Workshop with the ^ +.hhp project file in %BUILDDIR%/htmlhelp. + goto end +) + +if "%1" == "qthelp" ( + %SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp + if errorlevel 1 exit /b 1 + echo. + echo.Build finished; now you can run "qcollectiongenerator" with the ^ +.qhcp project file in %BUILDDIR%/qthelp, like this: + echo.^> qcollectiongenerator %BUILDDIR%\qthelp\hello.qhcp + echo.To view the help file: + echo.^> assistant -collectionFile %BUILDDIR%\qthelp\hello.ghc + goto end +) + +if "%1" == "devhelp" ( + %SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. + goto end +) + +if "%1" == "epub" ( + %SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The epub file is in %BUILDDIR%/epub. + goto end +) + +if "%1" == "latex" ( + %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex + if errorlevel 1 exit /b 1 + echo. + echo.Build finished; the LaTeX files are in %BUILDDIR%/latex. + goto end +) + +if "%1" == "latexpdf" ( + %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex + cd %BUILDDIR%/latex + make all-pdf + cd %BUILDDIR%/.. + echo. + echo.Build finished; the PDF files are in %BUILDDIR%/latex. + goto end +) + +if "%1" == "latexpdfja" ( + %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex + cd %BUILDDIR%/latex + make all-pdf-ja + cd %BUILDDIR%/.. + echo. + echo.Build finished; the PDF files are in %BUILDDIR%/latex. + goto end +) + +if "%1" == "text" ( + %SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The text files are in %BUILDDIR%/text. + goto end +) + +if "%1" == "man" ( + %SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The manual pages are in %BUILDDIR%/man. + goto end +) + +if "%1" == "texinfo" ( + %SPHINXBUILD% -b texinfo %ALLSPHINXOPTS% %BUILDDIR%/texinfo + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The Texinfo files are in %BUILDDIR%/texinfo. + goto end +) + +if "%1" == "gettext" ( + %SPHINXBUILD% -b gettext %I18NSPHINXOPTS% %BUILDDIR%/locale + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The message catalogs are in %BUILDDIR%/locale. + goto end +) + +if "%1" == "changes" ( + %SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes + if errorlevel 1 exit /b 1 + echo. + echo.The overview file is in %BUILDDIR%/changes. + goto end +) + +if "%1" == "linkcheck" ( + %SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck + if errorlevel 1 exit /b 1 + echo. + echo.Link check complete; look for any errors in the above output ^ +or in %BUILDDIR%/linkcheck/output.txt. + goto end +) + +if "%1" == "doctest" ( + %SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest + if errorlevel 1 exit /b 1 + echo. + echo.Testing of doctests in the sources finished, look at the ^ +results in %BUILDDIR%/doctest/output.txt. + goto end +) + +if "%1" == "xml" ( + %SPHINXBUILD% -b xml %ALLSPHINXOPTS% %BUILDDIR%/xml + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The XML files are in %BUILDDIR%/xml. + goto end +) + +if "%1" == "pseudoxml" ( + %SPHINXBUILD% -b pseudoxml %ALLSPHINXOPTS% %BUILDDIR%/pseudoxml + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The pseudo-XML files are in %BUILDDIR%/pseudoxml. + goto end +) + +:end diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-binary-targets/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-binary-targets/ORIGIN new file mode 100644 index 00000000..dbf3cea6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-binary-targets/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/deb-format/control-file-rules-requires-root-binary-targets + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-binary-targets/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-binary-targets/debian/changelog new file mode 100644 index 00000000..3870a877 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-binary-targets/debian/changelog @@ -0,0 +1,17 @@ +control-file-rules-requires-root-binary-targets (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-rules-requires-root-binary-targets + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +control-file-rules-requires-root-binary-targets (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-rules-requires-root-binary-targets + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-binary-targets/debian/control b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-binary-targets/debian/control new file mode 100644 index 00000000..466f7dd5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-binary-targets/debian/control @@ -0,0 +1,17 @@ +Source: control-file-rules-requires-root-binary-targets +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: binary-targets +Homepage: https://lintian.debian.org/ + +Package: control-file-rules-requires-root-binary-targets +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for "Rules-Requires-Root: binary-targets" + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-binary-targets/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-binary-targets/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-binary-targets/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-binary-targets/debian/rules b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-binary-targets/debian/rules new file mode 100644 index 00000000..3d706f5e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-binary-targets/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_builddeb: + dh_builddeb -- -Zgzip diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-binary-targets/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-binary-targets/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-binary-targets/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-binary-targets/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-binary-targets/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-binary-targets/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-binary-targets/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-binary-targets/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-binary-targets/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-binary-targets/eval/hints b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-binary-targets/eval/hints new file mode 100644 index 00000000..d7a2b627 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-binary-targets/eval/hints @@ -0,0 +1,2 @@ +control-file-rules-requires-root-binary-targets (binary): data-tarball-compression-format gz +control-file-rules-requires-root-binary-targets (binary): control-tarball-compression-format gz diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-no/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-no/ORIGIN new file mode 100644 index 00000000..87874de5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-no/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/deb-format/control-file-rules-requires-root-no + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-no/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-no/debian/changelog new file mode 100644 index 00000000..c9248540 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-no/debian/changelog @@ -0,0 +1,17 @@ +control-file-rules-requires-root-no (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-rules-requires-root-no + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +control-file-rules-requires-root-no (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-rules-requires-root-no + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-no/debian/control b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-no/debian/control new file mode 100644 index 00000000..5371beb1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-no/debian/control @@ -0,0 +1,17 @@ +Source: control-file-rules-requires-root-no +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no +Homepage: https://lintian.debian.org/ + +Package: control-file-rules-requires-root-no +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for "Rules-Requires-Root: no" + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-no/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-no/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-no/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-no/debian/rules b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-no/debian/rules new file mode 100644 index 00000000..3d706f5e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-no/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_builddeb: + dh_builddeb -- -Zgzip diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-no/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-no/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-no/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-no/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-no/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-no/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-no/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-no/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-no/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-no/eval/hints b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-no/eval/hints new file mode 100644 index 00000000..719dba08 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/control-file-rules-requires-root-no/eval/hints @@ -0,0 +1,2 @@ +control-file-rules-requires-root-no (binary): data-tarball-compression-format gz +control-file-rules-requires-root-no (binary): control-tarball-compression-format gz diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/deb-format-udeb-compression/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/deb-format/deb-format-udeb-compression/ORIGIN new file mode 100644 index 00000000..7fc2f8a2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/deb-format-udeb-compression/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/deb-format/deb-format-udeb-compression + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/deb-format-udeb-compression/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/deb-format/deb-format-udeb-compression/debian/changelog new file mode 100644 index 00000000..091741d8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/deb-format-udeb-compression/debian/changelog @@ -0,0 +1,17 @@ +deb-format-udeb-compression (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: deb-format-udeb-compression + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +deb-format-udeb-compression (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: deb-format-udeb-compression + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/deb-format-udeb-compression/debian/control b/packages/debmagic/tests/lintian-parity/checks/deb-format/deb-format-udeb-compression/debian/control new file mode 100644 index 00000000..a267b4fd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/deb-format-udeb-compression/debian/control @@ -0,0 +1,18 @@ +Source: deb-format-udeb-compression +Priority: optional +Section: debian-installer +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), dpkg (<< 1.18.11) +Rules-Requires-Root: no + +Package: some-udeb +Architecture: all +Depends: ${misc:Depends} +Package-Type: udeb +Description: Test of compression of udeb data member + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/deb-format-udeb-compression/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/deb-format/deb-format-udeb-compression/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/deb-format-udeb-compression/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/deb-format-udeb-compression/debian/rules b/packages/debmagic/tests/lintian-parity/checks/deb-format/deb-format-udeb-compression/debian/rules new file mode 100644 index 00000000..5287abb4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/deb-format-udeb-compression/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_builddeb: + # manually call dpkg-deb because dh_builddeb uses -Zxz and does + # not allow us to override it. + dpkg-deb -Zlzma --build debian/some-udeb ../some-udeb_1.0_all.udeb diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/deb-format-udeb-compression/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/deb-format/deb-format-udeb-compression/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/deb-format-udeb-compression/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/deb-format-udeb-compression/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/deb-format/deb-format-udeb-compression/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/deb-format-udeb-compression/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/deb-format-udeb-compression/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/deb-format/deb-format-udeb-compression/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/deb-format-udeb-compression/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/deb-format-udeb-compression/eval/hints b/packages/debmagic/tests/lintian-parity/checks/deb-format/deb-format-udeb-compression/eval/hints new file mode 100644 index 00000000..529a7e3f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/deb-format-udeb-compression/eval/hints @@ -0,0 +1 @@ +some-udeb (udeb): udeb-uses-unsupported-compression-for-data-tarball diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/debhelper-compat-old/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/deb-format/debhelper-compat-old/ORIGIN new file mode 100644 index 00000000..46b9d26f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/debhelper-compat-old/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/deb-format/debhelper-compat-old + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/debhelper-compat-old/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/deb-format/debhelper-compat-old/debian/changelog new file mode 100644 index 00000000..f10e95c0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/debhelper-compat-old/debian/changelog @@ -0,0 +1,17 @@ +debhelper-compat-old (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-compat-old + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-compat-old (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-compat-old + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/debhelper-compat-old/debian/control b/packages/debmagic/tests/lintian-parity/checks/deb-format/debhelper-compat-old/debian/control new file mode 100644 index 00000000..0932a415 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/debhelper-compat-old/debian/control @@ -0,0 +1,17 @@ +Source: debhelper-compat-old +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: debhelper-compat-old +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for old debian/compat file + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/debhelper-compat-old/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/deb-format/debhelper-compat-old/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/debhelper-compat-old/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/debhelper-compat-old/debian/rules b/packages/debmagic/tests/lintian-parity/checks/deb-format/debhelper-compat-old/debian/rules new file mode 100644 index 00000000..3d706f5e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/debhelper-compat-old/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_builddeb: + dh_builddeb -- -Zgzip diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/debhelper-compat-old/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/deb-format/debhelper-compat-old/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/debhelper-compat-old/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/debhelper-compat-old/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/deb-format/debhelper-compat-old/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/debhelper-compat-old/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/debhelper-compat-old/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/deb-format/debhelper-compat-old/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/debhelper-compat-old/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/deb-format/debhelper-compat-old/eval/hints b/packages/debmagic/tests/lintian-parity/checks/deb-format/debhelper-compat-old/eval/hints new file mode 100644 index 00000000..016cd27d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/deb-format/debhelper-compat-old/eval/hints @@ -0,0 +1,2 @@ +debhelper-compat-old (binary): data-tarball-compression-format gz +debhelper-compat-old (binary): control-tarball-compression-format gz diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-arch-depends/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-arch-depends/ORIGIN new file mode 100644 index 00000000..61c5cb6e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-arch-depends/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-arch-depends + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-arch-depends/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-arch-depends/debian/changelog new file mode 100644 index 00000000..c2bd388b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-arch-depends/debian/changelog @@ -0,0 +1,17 @@ +debhelper-arch-depends (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-arch-depends + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-arch-depends (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-arch-depends + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-arch-depends/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-arch-depends/debian/control new file mode 100644 index 00000000..8d6e3893 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-arch-depends/debian/control @@ -0,0 +1,17 @@ +Source: debhelper-arch-depends +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), cli-common-dev (>= 0.5.7) [i386 sparc amd64 ia64], + cli-common-dev (>= 0.5.7) [i386 sparc amd64 ia64] +Rules-Requires-Root: no + +Package: debhelper-arch-depends +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test arch-specific dependencies on dh commands + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-arch-depends/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-arch-depends/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-arch-depends/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-arch-depends/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-arch-depends/debian/rules new file mode 100755 index 00000000..726a39c7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-arch-depends/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_prep: + -dh_clideps + dh_prep + diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-arch-depends/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-arch-depends/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-arch-depends/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-arch-depends/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-arch-depends/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-arch-depends/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-arch-depends/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-arch-depends/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-arch-depends/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-arch-depends/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-arch-depends/eval/hints new file mode 100644 index 00000000..d134f71b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-arch-depends/eval/hints @@ -0,0 +1,3 @@ +debhelper-arch-depends (source): debian-build-system dh [debian/rules] +debhelper-arch-depends (source): debhelper-compat-virtual-relation 14 [debian/control] +debhelper-arch-depends (source): debhelper-compat-level 14 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends-unrel/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends-unrel/ORIGIN new file mode 100644 index 00000000..83130d32 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends-unrel/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-autoreconf-build-depends-unrel + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends-unrel/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends-unrel/debian/changelog new file mode 100644 index 00000000..24147172 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends-unrel/debian/changelog @@ -0,0 +1,17 @@ +debhelper-autoreconf-build-depends-unrel (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-autoreconf-build-depends-unrel + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-autoreconf-build-depends-unrel (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-autoreconf-build-depends-unrel + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends-unrel/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends-unrel/debian/compat new file mode 100644 index 00000000..f599e28b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends-unrel/debian/compat @@ -0,0 +1 @@ +10 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends-unrel/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends-unrel/debian/control new file mode 100644 index 00000000..e1e2dab6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends-unrel/debian/control @@ -0,0 +1,16 @@ +Source: debhelper-autoreconf-build-depends-unrel +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 10), debhelper (>= 10) +Rules-Requires-Root: no + +Package: debhelper-autoreconf-build-depends-unrel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for useless autoreconf-related build dependencies false positives + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends-unrel/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends-unrel/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends-unrel/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends-unrel/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends-unrel/debian/rules new file mode 100755 index 00000000..005519a8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends-unrel/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_auto_configure: + dh_auto_configure + dh_autotools-dev_updateconfig diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends-unrel/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends-unrel/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends-unrel/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends-unrel/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends-unrel/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends-unrel/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends-unrel/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends-unrel/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends-unrel/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends-unrel/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends-unrel/eval/hints new file mode 100644 index 00000000..9ab3ea37 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends-unrel/eval/hints @@ -0,0 +1,4 @@ +debhelper-autoreconf-build-depends-unrel (source): package-uses-old-debhelper-compat-version 10 +debhelper-autoreconf-build-depends-unrel (source): debian-build-system dh [debian/rules] +debhelper-autoreconf-build-depends-unrel (source): debhelper-tools-from-autotools-dev-are-deprecated dh_autotools-dev_updateconfig [debian/rules:8] +debhelper-autoreconf-build-depends-unrel (source): debhelper-compat-level 10 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends/ORIGIN new file mode 100644 index 00000000..2c975b32 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-autoreconf-build-depends + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends/debian/changelog new file mode 100644 index 00000000..3126fad4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends/debian/changelog @@ -0,0 +1,17 @@ +debhelper-autoreconf-build-depends (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-autoreconf-build-depends + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-autoreconf-build-depends (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-autoreconf-build-depends + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends/debian/compat new file mode 100644 index 00000000..f599e28b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends/debian/compat @@ -0,0 +1 @@ +10 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends/debian/control new file mode 100644 index 00000000..b72d3403 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends/debian/control @@ -0,0 +1,16 @@ +Source: debhelper-autoreconf-build-depends +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 10), debhelper (>= 10), dh-autoreconf, autotools-dev +Rules-Requires-Root: no + +Package: debhelper-autoreconf-build-depends +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for useless autoreconf-related build dependencies + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends/eval/hints new file mode 100644 index 00000000..d2ae57f5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-autoreconf-build-depends/eval/hints @@ -0,0 +1,5 @@ +debhelper-autoreconf-build-depends (source): useless-autoreconf-build-depends (does not need to satisfy dh-autoreconf:any) +debhelper-autoreconf-build-depends (source): useless-autoreconf-build-depends (does not need to satisfy autotools-dev:any) +debhelper-autoreconf-build-depends (source): package-uses-old-debhelper-compat-version 10 +debhelper-autoreconf-build-depends (source): debian-build-system dh [debian/rules] +debhelper-autoreconf-build-depends (source): debhelper-compat-level 10 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/ORIGIN new file mode 100644 index 00000000..0e693c95 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-brace-expansion + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/changelog new file mode 100644 index 00000000..12f586c2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/changelog @@ -0,0 +1,17 @@ +debhelper-brace-expansion (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-brace-expansion + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-brace-expansion (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-brace-expansion + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/control new file mode 100644 index 00000000..5bbfa68c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/control @@ -0,0 +1,80 @@ +Source: debhelper-brace-expansion +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no + +Package: debhelper-brace-expansion +Architecture: all +Depends: ${misc:Depends} +Description: Check for brace expansion in debhelper config files + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: debhelper-brace-problem-1 +Architecture: all +Depends: ${misc:Depends} +Description: Check for brace expansion in debhelper config files another extra string + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. Extra + string. It may be an empty package. + +Package: debhelper-brace-problem-2 +Architecture: all +Depends: ${misc:Depends} +Description: Check for brace expansion in debhelper config files another extra string three + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. Extra + string three. It may be an empty package. + +Package: debhelper-brace-problem-3 +Architecture: all +Depends: ${misc:Depends} +Description: Check for brace expansion in debhelper config files three test case + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. Extra + string three test case. It may be an empty package. + +Package: debhelper-brace-problem-4 +Architecture: all +Depends: ${misc:Depends} +Description: Check for brace expansion in debhelper config files fourth test case + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. Extra + string fourth test case. It may be an empty package. + +Package: debhelper-brace-problem-5 +Architecture: all +Depends: ${misc:Depends} +Description: Check for brace expansion in debhelper config files fifth test case + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. Extra + string fifth test case. It may be an empty package. + +Package: debhelper-brace-problem-6 +Architecture: all +Depends: ${misc:Depends} +Description: Check for brace expansion in debhelper config files sixth test case + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. Extra + string sixth test case. It may be an empty package. + +Package: debhelper-brace-problem-good +Architecture: all +Depends: ${misc:Depends} +Description: Check for brace expansion in debhelper config files good test case + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. Should + not trigger lintian test. It may be an empty package. + diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/debhelper-brace-problem-1.install b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/debhelper-brace-problem-1.install new file mode 100644 index 00000000..917db1f8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/debhelper-brace-problem-1.install @@ -0,0 +1 @@ +{,foo}.txt usr/share/debhelper diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/debhelper-brace-problem-2.install b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/debhelper-brace-problem-2.install new file mode 100644 index 00000000..c0a7ccbd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/debhelper-brace-problem-2.install @@ -0,0 +1 @@ +{foo,bar}.txt usr/share/debhelper diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/debhelper-brace-problem-3.install b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/debhelper-brace-problem-3.install new file mode 100644 index 00000000..72765540 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/debhelper-brace-problem-3.install @@ -0,0 +1 @@ +{foo,}.txt usr/share/debhelper diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/debhelper-brace-problem-4.install b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/debhelper-brace-problem-4.install new file mode 100644 index 00000000..05031a84 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/debhelper-brace-problem-4.install @@ -0,0 +1 @@ +{,,foo}.txt usr/share/debhelper diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/debhelper-brace-problem-5.install b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/debhelper-brace-problem-5.install new file mode 100644 index 00000000..576e6a49 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/debhelper-brace-problem-5.install @@ -0,0 +1 @@ +{,foo,}.txt usr/share/debhelper diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/debhelper-brace-problem-good.install b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/debhelper-brace-problem-good.install new file mode 100644 index 00000000..bf22e94b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/debhelper-brace-problem-good.install @@ -0,0 +1,5 @@ +{.txt usr/share/debhelper +{good}.txt usr/share/debhelper +{}.txt usr/share/debhelper +{foo} usr/share/debhelper +{foo}.txt usr/share/debhelper diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/rules new file mode 100755 index 00000000..16d8ba1e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f +%: + dh $@ + +# Skip dh_install since there are braces in the install configuration file and +# it would error out on at least some systems. +override_dh_install: + diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/eval/hints new file mode 100644 index 00000000..ccbb49f0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-brace-expansion/eval/hints @@ -0,0 +1,8 @@ +debhelper-brace-expansion (source): debian-build-system dh [debian/rules] +debhelper-brace-expansion (source): debhelper-compat-virtual-relation 14 [debian/control] +debhelper-brace-expansion (source): debhelper-compat-level 14 +debhelper-brace-expansion (source): brace-expansion-in-debhelper-config-file {foo,} [debian/debhelper-brace-problem-3.install:1] +debhelper-brace-expansion (source): brace-expansion-in-debhelper-config-file {foo,bar} [debian/debhelper-brace-problem-2.install:1] +debhelper-brace-expansion (source): brace-expansion-in-debhelper-config-file {,foo} [debian/debhelper-brace-problem-1.install:1] +debhelper-brace-expansion (source): brace-expansion-in-debhelper-config-file {,foo,} [debian/debhelper-brace-problem-5.install:1] +debhelper-brace-expansion (source): brace-expansion-in-debhelper-config-file {,,foo} [debian/debhelper-brace-problem-4.install:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-empty/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-empty/ORIGIN new file mode 100644 index 00000000..465b6577 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-empty/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-compat-empty + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-empty/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-empty/debian/changelog new file mode 100644 index 00000000..453bab28 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-empty/debian/changelog @@ -0,0 +1,17 @@ +debhelper-compat-empty (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-compat-empty + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-compat-empty (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-compat-empty + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-empty/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-empty/debian/compat new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-empty/debian/compat @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-empty/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-empty/debian/control new file mode 100644 index 00000000..55c47bd9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-empty/debian/control @@ -0,0 +1,17 @@ +Source: debhelper-compat-empty +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (<< 9.20151101~) +Homepage: https://lintian.debian.org/ + +Package: debhelper-compat-empty +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test empty debian/compat file + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-empty/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-empty/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-empty/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-empty/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-empty/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-empty/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-empty/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-empty/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-empty/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-empty/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-empty/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-empty/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-empty/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-empty/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-empty/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-empty/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-empty/eval/hints new file mode 100644 index 00000000..b4a096fd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-empty/eval/hints @@ -0,0 +1,2 @@ +debhelper-compat-empty (source): package-uses-deprecated-debhelper-compat-version 1 +debhelper-compat-empty (source): debhelper-compat-file-is-empty diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-experimental/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-experimental/ORIGIN new file mode 100644 index 00000000..2a921212 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-experimental/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-compat-experimental + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-experimental/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-experimental/debian/changelog new file mode 100644 index 00000000..2852644f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-experimental/debian/changelog @@ -0,0 +1,17 @@ +debhelper-compat-experimental (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-compat-experimental + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-compat-experimental (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-compat-experimental + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-experimental/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-experimental/debian/compat new file mode 100644 index 00000000..b1bd38b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-experimental/debian/compat @@ -0,0 +1 @@ +13 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-experimental/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-experimental/debian/control new file mode 100644 index 00000000..8253f09f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-experimental/debian/control @@ -0,0 +1,17 @@ +Source: debhelper-compat-experimental +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 12~) +Homepage: https://lintian.debian.org/ + +Package: debhelper-compat-experimental +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for old debian/compat file + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-experimental/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-experimental/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-experimental/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-experimental/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-experimental/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-experimental/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-experimental/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-experimental/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-experimental/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-experimental/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-experimental/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-experimental/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-experimental/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-experimental/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-experimental/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-experimental/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-experimental/eval/hints new file mode 100644 index 00000000..8517f103 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-experimental/eval/hints @@ -0,0 +1,4 @@ +debhelper-compat-experimental (source): package-uses-experimental-debhelper-compat-version 13 +debhelper-compat-experimental (source): no-versioned-debhelper-prerequisite 13 +debhelper-compat-experimental (source): debian-build-system dh [debian/rules] +debhelper-compat-experimental (source): debhelper-compat-level 13 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-missing/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-missing/ORIGIN new file mode 100644 index 00000000..0e37795f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-missing/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-compat-missing + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-missing/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-missing/debian/changelog new file mode 100644 index 00000000..1d9acbe1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-missing/debian/changelog @@ -0,0 +1,17 @@ +debhelper-compat-missing (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-compat-missing + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-compat-missing (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-compat-missing + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-missing/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-missing/debian/compat new file mode 100644 index 00000000..b1bd38b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-missing/debian/compat @@ -0,0 +1 @@ +13 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-missing/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-missing/debian/control new file mode 100644 index 00000000..4ba6bb95 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-missing/debian/control @@ -0,0 +1,17 @@ +Source: debhelper-compat-missing +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 13~) +Homepage: https://lintian.debian.org/ + +Package: debhelper-compat-missing +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for missing debian/compat + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-missing/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-missing/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-missing/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-missing/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-missing/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-missing/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-missing/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-missing/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-missing/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-missing/debian/source/options b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-missing/debian/source/options new file mode 100644 index 00000000..ef3297db --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-missing/debian/source/options @@ -0,0 +1,2 @@ +tar-ignore +tar-ignore=*/compat diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-missing/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-missing/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-missing/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-missing/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-missing/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-missing/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-missing/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-missing/eval/hints new file mode 100644 index 00000000..494a6ddb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-missing/eval/hints @@ -0,0 +1,3 @@ +debhelper-compat-missing (source): package-uses-deprecated-debhelper-compat-version 1 +debhelper-compat-missing (source): debian-build-system dh [debian/rules] +debhelper-compat-missing (source): debhelper-base-compat-level-is-missing diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple-unrel/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple-unrel/ORIGIN new file mode 100644 index 00000000..e2796411 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple-unrel/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-compat-multiple-unrel + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple-unrel/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple-unrel/debian/changelog new file mode 100644 index 00000000..2bae700e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple-unrel/debian/changelog @@ -0,0 +1,17 @@ +debhelper-compat-multiple-unrel (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-compat-multiple-unrel + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-compat-multiple-unrel (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-compat-multiple-unrel + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple-unrel/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple-unrel/debian/compat new file mode 100644 index 00000000..736ea2a0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple-unrel/debian/compat @@ -0,0 +1,3 @@ +11 + +# Comment after a skipped line diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple-unrel/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple-unrel/debian/control new file mode 100644 index 00000000..9284feff --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple-unrel/debian/control @@ -0,0 +1,17 @@ +Source: debhelper-compat-multiple-unrel +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 14~) +Homepage: https://lintian.debian.org/ + +Package: debhelper-compat-multiple-unrel +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test debian/compat file with multiple entries (false-positives) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple-unrel/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple-unrel/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple-unrel/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple-unrel/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple-unrel/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple-unrel/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple-unrel/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple-unrel/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple-unrel/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple-unrel/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple-unrel/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple-unrel/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple-unrel/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple-unrel/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple-unrel/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple-unrel/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple-unrel/eval/hints new file mode 100644 index 00000000..2ec2a644 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple-unrel/eval/hints @@ -0,0 +1,4 @@ +debhelper-compat-multiple-unrel (source): uses-debhelper-compat-file [debian/compat] +debhelper-compat-multiple-unrel (source): package-uses-old-debhelper-compat-version 11 +debhelper-compat-multiple-unrel (source): debian-build-system dh [debian/rules] +debhelper-compat-multiple-unrel (source): debhelper-compat-level 11 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple/ORIGIN new file mode 100644 index 00000000..82eba45b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-compat-multiple + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple/debian/changelog new file mode 100644 index 00000000..4c3525f0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple/debian/changelog @@ -0,0 +1,17 @@ +debhelper-compat-multiple (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-compat-multiple + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-compat-multiple (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-compat-multiple + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple/debian/compat new file mode 100644 index 00000000..58110e6f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple/debian/compat @@ -0,0 +1,3 @@ +11 + +12 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple/debian/control new file mode 100644 index 00000000..d44359ea --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple/debian/control @@ -0,0 +1,17 @@ +Source: debhelper-compat-multiple +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 14~) +Homepage: https://lintian.debian.org/ + +Package: debhelper-compat-multiple +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test debian/compat file with multiple entries + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple/eval/hints new file mode 100644 index 00000000..03f9faf6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-multiple/eval/hints @@ -0,0 +1,5 @@ +debhelper-compat-multiple (source): uses-debhelper-compat-file [debian/compat] +debhelper-compat-multiple (source): package-uses-old-debhelper-compat-version 11 +debhelper-compat-multiple (source): debian-build-system dh [debian/rules] +debhelper-compat-multiple (source): debhelper-compat-level 11 +debhelper-compat-multiple (source): debhelper-compat-file-contains-multiple-levels [debian/compat:3] diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-old/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-old/ORIGIN new file mode 100644 index 00000000..8a5a182d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-old/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-compat-old + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-old/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-old/debian/changelog new file mode 100644 index 00000000..f10e95c0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-old/debian/changelog @@ -0,0 +1,17 @@ +debhelper-compat-old (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-compat-old + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-compat-old (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-compat-old + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-old/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-old/debian/compat new file mode 100644 index 00000000..45a4fb75 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-old/debian/compat @@ -0,0 +1 @@ +8 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-old/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-old/debian/control new file mode 100644 index 00000000..41b5dc99 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-old/debian/control @@ -0,0 +1,17 @@ +Source: debhelper-compat-old +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 8~) +Homepage: https://lintian.debian.org/ + +Package: debhelper-compat-old +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for old debian/compat file + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-old/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-old/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-old/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-old/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-old/debian/rules new file mode 100644 index 00000000..3d706f5e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-old/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_builddeb: + dh_builddeb -- -Zgzip diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-old/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-old/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-old/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-old/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-old/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-old/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-old/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-old/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-old/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-old/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-old/eval/hints new file mode 100644 index 00000000..21ce42a9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-old/eval/hints @@ -0,0 +1,3 @@ +debhelper-compat-old (source): package-uses-old-debhelper-compat-version 8 +debhelper-compat-old (source): debian-build-system dh [debian/rules] +debhelper-compat-old (source): debhelper-compat-level 8 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation-both/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation-both/ORIGIN new file mode 100644 index 00000000..6c95d8a9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation-both/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-compat-virtual-relation-both + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation-both/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation-both/debian/changelog new file mode 100644 index 00000000..17db086c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation-both/debian/changelog @@ -0,0 +1,17 @@ +debhelper-compat-virtual-relation-both (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-compat-virtual-relation-both + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-compat-virtual-relation-both (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-compat-virtual-relation-both + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation-both/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation-both/debian/control new file mode 100644 index 00000000..dc853ea9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation-both/debian/control @@ -0,0 +1,16 @@ +Source: debhelper-compat-virtual-relation-both +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 11.3.6~), debhelper-compat (= 10) +Rules-Requires-Root: no + +Package: debhelper-compat-virtual-relation-both +Architecture: all +Depends: ${misc:Depends} +Description: Test both debhelper and debhelper-compat as a build-dependency + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation-both/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation-both/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation-both/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation-both/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation-both/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation-both/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation-both/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation-both/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation-both/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation-both/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation-both/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation-both/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation-both/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation-both/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation-both/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation-both/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation-both/eval/hints new file mode 100644 index 00000000..a26bc3a2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation-both/eval/hints @@ -0,0 +1,4 @@ +debhelper-compat-virtual-relation-both (source): package-uses-old-debhelper-compat-version 10 +debhelper-compat-virtual-relation-both (source): debian-build-system dh [debian/rules] +debhelper-compat-virtual-relation-both (source): debhelper-compat-virtual-relation 10 [debian/control] +debhelper-compat-virtual-relation-both (source): debhelper-compat-level 10 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation/ORIGIN new file mode 100644 index 00000000..be6a02f4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-compat-virtual-relation + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation/debian/changelog new file mode 100644 index 00000000..9b04596e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation/debian/changelog @@ -0,0 +1,17 @@ +debhelper-compat-virtual-relation (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-compat-virtual-relation + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-compat-virtual-relation (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-compat-virtual-relation + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation/debian/control new file mode 100644 index 00000000..afa1c72e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation/debian/control @@ -0,0 +1,16 @@ +Source: debhelper-compat-virtual-relation +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 11) +Rules-Requires-Root: no + +Package: debhelper-compat-virtual-relation +Architecture: all +Depends: ${misc:Depends} +Description: Test debhelper-compat as a build-dependency + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation/eval/hints new file mode 100644 index 00000000..74e2f29c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-virtual-relation/eval/hints @@ -0,0 +1,4 @@ +debhelper-compat-virtual-relation (source): package-uses-old-debhelper-compat-version 11 +debhelper-compat-virtual-relation (source): debian-build-system dh [debian/rules] +debhelper-compat-virtual-relation (source): debhelper-compat-virtual-relation 11 [debian/control] +debhelper-compat-virtual-relation (source): debhelper-compat-level 11 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-whitespace/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-whitespace/ORIGIN new file mode 100644 index 00000000..8c0075b7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-whitespace/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-compat-whitespace + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-whitespace/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-whitespace/debian/changelog new file mode 100644 index 00000000..e703ed98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-whitespace/debian/changelog @@ -0,0 +1,17 @@ +debhelper-compat-whitespace (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-compat-whitespace + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-compat-whitespace (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-compat-whitespace + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-whitespace/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-whitespace/debian/compat new file mode 100644 index 00000000..6cc2b181 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-whitespace/debian/compat @@ -0,0 +1 @@ + 13 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-whitespace/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-whitespace/debian/control new file mode 100644 index 00000000..0a029091 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-whitespace/debian/control @@ -0,0 +1,17 @@ +Source: debhelper-compat-whitespace +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 13~) +Homepage: https://lintian.debian.org/ + +Package: debhelper-compat-whitespace +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Allow whitespace in debian/compat + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-whitespace/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-whitespace/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-whitespace/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-whitespace/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-whitespace/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-whitespace/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-whitespace/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-whitespace/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-whitespace/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-whitespace/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-whitespace/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-whitespace/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-whitespace/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-whitespace/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-whitespace/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-whitespace/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-whitespace/eval/hints new file mode 100644 index 00000000..c30a0f00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat-whitespace/eval/hints @@ -0,0 +1,4 @@ +debhelper-compat-whitespace (source): uses-debhelper-compat-file [debian/compat] +debhelper-compat-whitespace (source): package-uses-old-debhelper-compat-version 13 +debhelper-compat-whitespace (source): debian-build-system dh [debian/rules] +debhelper-compat-whitespace (source): debhelper-compat-level 13 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat/ORIGIN new file mode 100644 index 00000000..aab33b49 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-compat + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat/debian/changelog new file mode 100644 index 00000000..ed78c0de --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat/debian/changelog @@ -0,0 +1,17 @@ +debhelper-compat (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-compat + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-compat (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-compat + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat/debian/control new file mode 100644 index 00000000..4c55bb82 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat/debian/control @@ -0,0 +1,17 @@ +Source: debhelper-compat +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (<< 9.20151101~) +Homepage: https://lintian.debian.org/ + +Package: debhelper-compat +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test the content of debian/compat + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat/eval/hints new file mode 100644 index 00000000..baa19502 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-compat/eval/hints @@ -0,0 +1 @@ +debhelper-compat (source): debhelper-compat-not-a-number [9- diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-deprecated/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-deprecated/ORIGIN new file mode 100644 index 00000000..71c17b08 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-deprecated/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-deprecated + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-deprecated/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-deprecated/debian/changelog new file mode 100644 index 00000000..71212705 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-deprecated/debian/changelog @@ -0,0 +1,17 @@ +debhelper-deprecated (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-deprecated + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-deprecated (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-deprecated + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-deprecated/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-deprecated/debian/compat new file mode 100644 index 00000000..8351c193 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-deprecated/debian/compat @@ -0,0 +1 @@ +14 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-deprecated/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-deprecated/debian/control new file mode 100644 index 00000000..489b087f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-deprecated/debian/control @@ -0,0 +1,17 @@ +Source: debhelper-deprecated +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 14~), python-ply (>= 3.4-1~) +Homepage: https://lintian.debian.org/ + +Package: debhelper-deprecated +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for use of deprecated dh_* commands + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-deprecated/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-deprecated/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-deprecated/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-deprecated/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-deprecated/debian/rules new file mode 100755 index 00000000..2f7c75e7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-deprecated/debian/rules @@ -0,0 +1,48 @@ +#!/usr/bin/make -f + +pkg = $(shell dh_listpackages) +VERSION=2 + +build: build-indep build-arch +build-arch: +build-indep: + +clean: + dh_testdir + dh_testroot + dh_clean + +binary: binary-indep binary-arch +binary-arch: +binary-indep: + dh_testdir + dh_testroot + dh_prep + dh_install + dh_installchangelogs + dh_installdocs + dh_installmanpages + + #dh_scrollkeeper + -dh_python-ply # neither should this + +# Check not warning about deprecated commands in optional portions, but +# commands that have been toast for a long time are still warned about. +ifneq "$(LENNY_BACKPORT)" "y" + -dh_help + #dh_scrollkeeper +endif + dh_link + dh_compress + dh_fixperms + #dh_suidregister + + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +somewhere: + dh $@ --with autotools-dev + +.PHONY: build-arch build-indep build binary binary-arch binary-indep clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-deprecated/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-deprecated/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-deprecated/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-deprecated/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-deprecated/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-deprecated/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-deprecated/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-deprecated/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-deprecated/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-deprecated/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-deprecated/eval/hints new file mode 100644 index 00000000..15c97293 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-deprecated/eval/hints @@ -0,0 +1,6 @@ +debhelper-deprecated (source): uses-debhelper-compat-file [debian/compat] +debhelper-deprecated (source): missing-build-dependency-for-dh-addon autotools_dev (does not satisfy autotools-dev:any) [debian/rules] +debhelper-deprecated (source): dh_installmanpages-is-obsolete [debian/rules:24] +debhelper-deprecated (source): debian-build-system dh [debian/rules] +debhelper-deprecated (source): debhelper-tools-from-autotools-dev-are-deprecated dh ... --with autotools-dev [debian/rules:46] +debhelper-deprecated (source): debhelper-compat-level 13 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-clean-k-deprecated/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-clean-k-deprecated/ORIGIN new file mode 100644 index 00000000..05b6df24 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-clean-k-deprecated/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-dh-clean-k-deprecated + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-clean-k-deprecated/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-clean-k-deprecated/debian/changelog new file mode 100644 index 00000000..596a358a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-clean-k-deprecated/debian/changelog @@ -0,0 +1,17 @@ +debhelper-dh-clean-k-deprecated (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-dh-clean-k-deprecated + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-dh-clean-k-deprecated (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-dh-clean-k-deprecated + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-clean-k-deprecated/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-clean-k-deprecated/debian/control new file mode 100644 index 00000000..34791a6f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-clean-k-deprecated/debian/control @@ -0,0 +1,17 @@ +Source: debhelper-dh-clean-k-deprecated +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 11) +Homepage: https://lintian.debian.org/ + +Package: debhelper-dh-clean-k-deprecated +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for debhelper >=7 packages using dh_clean -k + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-clean-k-deprecated/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-clean-k-deprecated/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-clean-k-deprecated/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-clean-k-deprecated/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-clean-k-deprecated/debian/rules new file mode 100755 index 00000000..bd004e34 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-clean-k-deprecated/debian/rules @@ -0,0 +1,37 @@ +#!/usr/bin/make -f +# +# Use an alternate rules file that doesn't call dh to test not warning +# about debhelper script tokens if we call no programs that care about +# them. + +pkg = $(shell dh_listpackages) + +build: build-arch build-indep +build-arch: +build-indep: + +clean: + dh_testdir + dh_testroot + dh_clean + +binary: binary-indep binary-arch +binary-arch: +binary-indep: + dh_testdir + dh_testroot + dh_clean -k + dh_install + dh_installchangelogs + dh_installdebconf + # dh_installdocs may modify maintainer scripts + install -m 644 debian/copyright debian/$(pkg)/usr/share/doc/$(pkg) + dh_link + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +.PHONY: build-arch build-indep build binary binary-arch binary-indep clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-clean-k-deprecated/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-clean-k-deprecated/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-clean-k-deprecated/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-clean-k-deprecated/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-clean-k-deprecated/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-clean-k-deprecated/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-clean-k-deprecated/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-clean-k-deprecated/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-clean-k-deprecated/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-clean-k-deprecated/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-clean-k-deprecated/eval/hints new file mode 100644 index 00000000..a21c10f0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-clean-k-deprecated/eval/hints @@ -0,0 +1,5 @@ +debhelper-dh-clean-k-deprecated (source): package-uses-old-debhelper-compat-version 11 +debhelper-dh-clean-k-deprecated (source): dh-clean-k-is-deprecated [debian/rules] +debhelper-dh-clean-k-deprecated (source): debian-build-system debhelper [debian/rules] +debhelper-dh-clean-k-deprecated (source): debhelper-compat-virtual-relation 11 [debian/control] +debhelper-dh-clean-k-deprecated (source): debhelper-compat-level 11 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-compat/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-compat/ORIGIN new file mode 100644 index 00000000..b52c97a9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-compat/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-dh-compat + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-compat/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-compat/debian/changelog new file mode 100644 index 00000000..ae6d39f0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-compat/debian/changelog @@ -0,0 +1,17 @@ +debhelper-dh-compat (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-dh-compat + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-dh-compat (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-dh-compat + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-compat/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-compat/debian/compat new file mode 100644 index 00000000..b1bd38b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-compat/debian/compat @@ -0,0 +1 @@ +13 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-compat/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-compat/debian/control new file mode 100644 index 00000000..41c37001 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-compat/debian/control @@ -0,0 +1,17 @@ +Source: debhelper-dh-compat +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 13~) +Homepage: https://lintian.debian.org/ + +Package: debhelper-dh-compat +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test the value of DH_COMPAT + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-compat/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-compat/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-compat/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-compat/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-compat/debian/rules new file mode 100755 index 00000000..111f4959 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-compat/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +export DH_COMPAT=10 + +%: + dh $@ + +DH_COMPAT=8 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-compat/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-compat/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-compat/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-compat/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-compat/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-compat/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-compat/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-compat/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-compat/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-compat/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-compat/eval/hints new file mode 100644 index 00000000..668f2088 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-compat/eval/hints @@ -0,0 +1,5 @@ +debhelper-dh-compat (source): uses-debhelper-compat-file [debian/compat] +debhelper-dh-compat (source): package-uses-old-debhelper-compat-version 13 +debhelper-dh-compat (source): declares-possibly-conflicting-debhelper-compat-versions 13 from debian/compat vs DH_COMPAT 8 [debian/rules] +debhelper-dh-compat (source): debian-build-system dh [debian/rules] +debhelper-dh-compat (source): debhelper-compat-level 13 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/ORIGIN new file mode 100644 index 00000000..23c0aafd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-dh-exec-useless + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/debian/changelog new file mode 100644 index 00000000..3aae91c3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/debian/changelog @@ -0,0 +1,17 @@ +debhelper-dh-exec-useless (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-dh-exec-useless + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-dh-exec-useless (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-dh-exec-useless + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/debian/control new file mode 100644 index 00000000..d23da0e6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/debian/control @@ -0,0 +1,17 @@ +Source: debhelper-dh-exec-useless +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 12) +Homepage: https://lintian.debian.org/ + +Package: debhelper-dh-exec-useless +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Flag case where dh-exec is not required + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/debian/install b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/debian/install new file mode 100755 index 00000000..55d8f61f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/debian/install @@ -0,0 +1,6 @@ +#! /usr/bin/dh-exec +usr/lib/foo +usr/lib/${DEB_HOST_MULTIARCH} +usr/lib/${DEB_HOST_MULTIARCH} /usr/lib/${DEB_HOST_MULTIARCH}/ +usr/lib/${DEB_BUILD_MULTIARCH} /usr/lib/${DEB_HOST_MULTIARCH}/ +usr/lib/${DEB_HOST_MULTIARCH}/some-package/*.so diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/debian/manpages b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/debian/manpages new file mode 100755 index 00000000..ee68ba45 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/debian/manpages @@ -0,0 +1,3 @@ +#! /usr/lib/dh-exec +foo => bar +this-line-uses-tabs => this-line-uses-tabs diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/debian/rules new file mode 100755 index 00000000..3038aa90 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_installman: + +override_dh_install: diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/eval/hints new file mode 100644 index 00000000..7f5c5229 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec-useless/eval/hints @@ -0,0 +1,6 @@ +debhelper-dh-exec-useless (source): package-uses-old-debhelper-compat-version 12 +debhelper-dh-exec-useless (source): package-uses-dh-exec-but-lacks-build-depends [debian/rules] +debhelper-dh-exec-useless (source): dh-exec-useless-usage [debian/install] +debhelper-dh-exec-useless (source): debian-build-system dh [debian/rules] +debhelper-dh-exec-useless (source): debhelper-compat-virtual-relation 12 [debian/control] +debhelper-dh-exec-useless (source): debhelper-compat-level 12 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/ORIGIN new file mode 100644 index 00000000..16f68927 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-dh-exec + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/changelog new file mode 100644 index 00000000..c8fe7ab4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/changelog @@ -0,0 +1,17 @@ +debhelper-dh-exec (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-dh-exec + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-dh-exec (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-dh-exec + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/control new file mode 100644 index 00000000..d38b2071 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/control @@ -0,0 +1,17 @@ +Source: debhelper-dh-exec +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 9) +Homepage: https://lintian.debian.org/ + +Package: debhelper-dh-exec +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Tests related to executable, dh-exec using packaging files + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/dirs b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/dirs new file mode 100755 index 00000000..aaac17a3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/dirs @@ -0,0 +1,3 @@ +#! /usr/bin/dh-exec +usr/lib +usr/lib/${DEB_HOST_MULTIARCH}/octave/packages diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/install b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/install new file mode 100755 index 00000000..c79e8ae3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/install @@ -0,0 +1,6 @@ +#! /usr/bin/dh-exec +usr/lib/foo [linux-any] [hurd-any] [kfreebsd-any] +usr/lib/${DEB_HOST_MULTIARCH} +usr/lib/${DEB_HOST_MULTIARCH} /usr/lib/${DEB_HOST_MULTIARCH}/ +usr/lib/${DEB_BUILD_MULTIARCH} /usr/lib/${DEB_HOST_MULTIARCH}/ +usr/lib/${DEB_HOST_MULTIARCH}/some-package/*.so diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/links b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/links new file mode 100755 index 00000000..3c907d75 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/links @@ -0,0 +1,2 @@ +#! /usr/bin/dh-exec +link-foo => link-bar diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/manpages b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/manpages new file mode 100755 index 00000000..2209766e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/manpages @@ -0,0 +1,5 @@ +#! /usr/lib/dh-exec/dh-exec-subst +## The above works, but is not recommended. +foo => bar +this-line-uses-tabs => this-line-uses-tabs +${DEB_BUILD_WHATEVER} diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/mime b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/mime new file mode 100755 index 00000000..ce8e762e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/mime @@ -0,0 +1,2 @@ +#! /usr/bin/dh-exec +debian/rules diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/rules new file mode 100755 index 00000000..06b98ae7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/rules @@ -0,0 +1,16 @@ +#!/usr/bin/make -f + +%: + dh $@ + +# Ignore the "mime" file as we do not really depend on dh-exec and we +# do not really need the files listed there for the test. +override_dh_installmime: + + +override_dh_installman: + +override_dh_install: + +override_dh_installdirs: +override_dh_link: diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/eval/hints new file mode 100644 index 00000000..c9460377 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-exec/eval/hints @@ -0,0 +1,9 @@ +debhelper-dh-exec (source): package-uses-dh-exec-but-lacks-build-depends [debian/rules] +debhelper-dh-exec (source): package-uses-deprecated-debhelper-compat-version 9 +debhelper-dh-exec (source): dh-exec-subst-unknown-variable DEB_BUILD_WHATEVER [debian/manpages:5] +debhelper-dh-exec (source): dh-exec-script-without-dh-exec-features [debian/mime] +debhelper-dh-exec (source): dh-exec-private-helper [debian/manpages] +debhelper-dh-exec (source): dh-exec-install-not-allowed-here [debian/links] +debhelper-dh-exec (source): debian-build-system dh [debian/rules] +debhelper-dh-exec (source): debhelper-compat-virtual-relation 9 [debian/control] +debhelper-dh-exec (source): debhelper-compat-level 9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-python-helpers/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-python-helpers/ORIGIN new file mode 100644 index 00000000..e693724f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-python-helpers/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-dh-python-helpers + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-python-helpers/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-python-helpers/debian/changelog new file mode 100644 index 00000000..e7f5adb0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-python-helpers/debian/changelog @@ -0,0 +1,17 @@ +debhelper-dh-python-helpers (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-dh-python-helpers + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-dh-python-helpers (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-dh-python-helpers + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-python-helpers/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-python-helpers/debian/control new file mode 100644 index 00000000..8a22b388 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-python-helpers/debian/control @@ -0,0 +1,19 @@ +Source: debhelper-dh-python-helpers +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no + +Package: python3-cheshire +Section: python +Architecture: all +Depends: ${misc:Depends}, ${python3:Depends} +Description: Cheshire cheese for Python 3.X + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + For Python 3.X. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-python-helpers/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-python-helpers/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-python-helpers/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-python-helpers/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-python-helpers/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-python-helpers/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-python-helpers/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-python-helpers/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-python-helpers/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-python-helpers/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-python-helpers/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-python-helpers/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-python-helpers/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-python-helpers/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-python-helpers/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-python-helpers/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-python-helpers/eval/hints new file mode 100644 index 00000000..5fc200f7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-python-helpers/eval/hints @@ -0,0 +1,4 @@ +debhelper-dh-python-helpers (source): python3-depends-but-no-python3-helper python3-cheshire +debhelper-dh-python-helpers (source): debian-build-system dh [debian/rules] +debhelper-dh-python-helpers (source): debhelper-compat-virtual-relation 14 [debian/control] +debhelper-dh-python-helpers (source): debhelper-compat-level 14 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format-unrel/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format-unrel/ORIGIN new file mode 100644 index 00000000..0cc0297d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format-unrel/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format-unrel + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format-unrel/debian/README.source b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format-unrel/debian/README.source new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format-unrel/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format-unrel/debian/changelog new file mode 100644 index 00000000..ec2d36ea --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format-unrel/debian/changelog @@ -0,0 +1,17 @@ +debhelper-dh-quilt-addon-but-quilt-source-format-unrel (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-dh-quilt-addon-but-quilt-source-format-unrel + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-dh-quilt-addon-but-quilt-source-format-unrel (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-dh-quilt-addon-but-quilt-source-format-unrel + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format-unrel/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format-unrel/debian/control new file mode 100644 index 00000000..5bae3efa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format-unrel/debian/control @@ -0,0 +1,17 @@ +Source: debhelper-dh-quilt-addon-but-quilt-source-format-unrel +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), quilt +Homepage: https://lintian.debian.org/ + +Package: debhelper-dh-quilt-addon-but-quilt-source-format-unrel +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for quilt packages that specify dh --with-quilt (false positive) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format-unrel/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format-unrel/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format-unrel/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format-unrel/debian/patches/series b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format-unrel/debian/patches/series new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format-unrel/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format-unrel/debian/rules new file mode 100755 index 00000000..f6b359a0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format-unrel/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ --with quilt diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format-unrel/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format-unrel/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format-unrel/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format-unrel/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format-unrel/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format-unrel/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format-unrel/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format-unrel/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format-unrel/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format-unrel/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format-unrel/eval/hints new file mode 100644 index 00000000..3b26555f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format-unrel/eval/hints @@ -0,0 +1,3 @@ +debhelper-dh-quilt-addon-but-quilt-source-format-unrel (source): debian-build-system dh [debian/rules] +debhelper-dh-quilt-addon-but-quilt-source-format-unrel (source): debhelper-compat-virtual-relation 14 [debian/control] +debhelper-dh-quilt-addon-but-quilt-source-format-unrel (source): debhelper-compat-level 14 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format/ORIGIN new file mode 100644 index 00000000..a2f4fd6a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format/debian/changelog new file mode 100644 index 00000000..3d7f55ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format/debian/changelog @@ -0,0 +1,17 @@ +debhelper-dh-quilt-addon-but-quilt-source-format (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-dh-quilt-addon-but-quilt-source-format + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-dh-quilt-addon-but-quilt-source-format (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-dh-quilt-addon-but-quilt-source-format + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format/debian/control new file mode 100644 index 00000000..fd565472 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format/debian/control @@ -0,0 +1,17 @@ +Source: debhelper-dh-quilt-addon-but-quilt-source-format +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), quilt +Homepage: https://lintian.debian.org/ + +Package: debhelper-dh-quilt-addon-but-quilt-source-format +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for quilt packages that specify dh --with-quilt + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format/debian/rules new file mode 100755 index 00000000..f6b359a0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ --with quilt diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format/eval/hints new file mode 100644 index 00000000..babffd1b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-quilt-addon-but-quilt-source-format/eval/hints @@ -0,0 +1,4 @@ +debhelper-dh-quilt-addon-but-quilt-source-format (source): dh-quilt-addon-but-quilt-source-format dh ... --with quilt [debian/rules:4] +debhelper-dh-quilt-addon-but-quilt-source-format (source): debian-build-system dh [debian/rules] +debhelper-dh-quilt-addon-but-quilt-source-format (source): debhelper-compat-virtual-relation 14 [debian/control] +debhelper-dh-quilt-addon-but-quilt-source-format (source): debhelper-compat-level 14 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar-unrel/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar-unrel/ORIGIN new file mode 100644 index 00000000..2459a9ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar-unrel/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar-unrel + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar-unrel/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar-unrel/debian/changelog new file mode 100644 index 00000000..26ea5334 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar-unrel/debian/changelog @@ -0,0 +1,17 @@ +debhelper-dh-runit-but-lacks-breaks-substvar-unrel (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-dh-runit-but-lacks-breaks-substvar-unrel + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-dh-runit-but-lacks-breaks-substvar-unrel (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-dh-runit-but-lacks-breaks-substvar-unrel + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar-unrel/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar-unrel/debian/control new file mode 100644 index 00000000..ee44432d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar-unrel/debian/control @@ -0,0 +1,42 @@ +Source: debhelper-dh-runit-but-lacks-breaks-substvar-unrel +Priority: optional +Section: python +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), dh-runit +Rules-Requires-Root: no + +Package: debhelper-dh-runit-but-lacks-breaks-substvar-unrel-missing +Architecture: all +Depends: ${misc:Depends}, runit +Description: Check Breaks requirements for dh --with dh_runit (true positive) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + Missing breaks. + +Package: debhelper-dh-runit-but-lacks-breaks-substvar-unrel-present +Architecture: all +Depends: ${misc:Depends}, runit +Breaks: ${runit:Breaks} +Description: Check Breaks requirements for dh --with dh_runit (false positive) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + Has breaks. + +Package: debhelper-dh-runit-but-lacks-breaks-substvar-unrel-unrelated +Architecture: all +Depends: ${misc:Depends} +Breaks: ${runit:Breaks} +Description: Check Breaks requirements for dh --with dh_runit (unrelated) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + No, breaks, but unrelated. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar-unrel/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar-unrel/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar-unrel/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar-unrel/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar-unrel/debian/rules new file mode 100755 index 00000000..47c42483 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar-unrel/debian/rules @@ -0,0 +1,14 @@ +#!/usr/bin/make -f + +# dh-runit is disabled by default on Ubuntu +export DH_RUNIT_FORCE_ENABLE=1 + +%: + dh $@ --with runit + +override_dh_runit: + for X in $(shell dh_listpackages); do \ + echo "debian/test.runscript disable,name=$$X" >> debian/$$X.runit; \ + done + dh_runit + rm -f debian/*.runit diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar-unrel/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar-unrel/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar-unrel/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar-unrel/debian/test.runscript/run b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar-unrel/debian/test.runscript/run new file mode 100644 index 00000000..1277a68a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar-unrel/debian/test.runscript/run @@ -0,0 +1,4 @@ +#!/bin/sh +echo "Test!" + +exec sv down . diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar-unrel/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar-unrel/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar-unrel/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar-unrel/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar-unrel/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar-unrel/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar-unrel/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar-unrel/eval/hints new file mode 100644 index 00000000..ddb1dce8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar-unrel/eval/hints @@ -0,0 +1,3 @@ +debhelper-dh-runit-but-lacks-breaks-substvar-unrel (source): debian-build-system dh [debian/rules] +debhelper-dh-runit-but-lacks-breaks-substvar-unrel (source): debhelper-compat-virtual-relation 14 [debian/control] +debhelper-dh-runit-but-lacks-breaks-substvar-unrel (source): debhelper-compat-level 14 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar/ORIGIN new file mode 100644 index 00000000..68718306 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar/debian/changelog new file mode 100644 index 00000000..3d4ed706 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar/debian/changelog @@ -0,0 +1,17 @@ +debhelper-dh-runit-but-lacks-breaks-substvar (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-dh-runit-but-lacks-breaks-substvar + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-dh-runit-but-lacks-breaks-substvar (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-dh-runit-but-lacks-breaks-substvar + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar/debian/control new file mode 100644 index 00000000..aad172da --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar/debian/control @@ -0,0 +1,42 @@ +Source: debhelper-dh-runit-but-lacks-breaks-substvar +Priority: optional +Section: python +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 13), dh-runit +Rules-Requires-Root: no + +Package: debhelper-dh-runit-but-lacks-breaks-substvar-missing +Architecture: all +Depends: ${misc:Depends}, runit +Description: Check Breaks requirements for dh --with dh_runit (true positive) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + Missing breaks. + +Package: debhelper-dh-runit-but-lacks-breaks-substvar-present +Architecture: all +Depends: ${misc:Depends}, runit +Breaks: ${runit:Breaks} +Description: Check Breaks requirements for dh --with dh_runit (false positive) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + Has breaks. + +Package: debhelper-dh-runit-but-lacks-breaks-substvar-unrelated +Architecture: all +Depends: ${misc:Depends} +Breaks: ${runit:Breaks} +Description: Check Breaks requirements for dh --with dh_runit (unrelated) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + No, breaks, but unrelated. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar/debian/rules new file mode 100755 index 00000000..47c42483 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar/debian/rules @@ -0,0 +1,14 @@ +#!/usr/bin/make -f + +# dh-runit is disabled by default on Ubuntu +export DH_RUNIT_FORCE_ENABLE=1 + +%: + dh $@ --with runit + +override_dh_runit: + for X in $(shell dh_listpackages); do \ + echo "debian/test.runscript disable,name=$$X" >> debian/$$X.runit; \ + done + dh_runit + rm -f debian/*.runit diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar/debian/test.runscript/run b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar/debian/test.runscript/run new file mode 100644 index 00000000..1277a68a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar/debian/test.runscript/run @@ -0,0 +1,4 @@ +#!/bin/sh +echo "Test!" + +exec sv down . diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar/eval/hints new file mode 100644 index 00000000..c92471dd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-runit-but-lacks-breaks-substvar/eval/hints @@ -0,0 +1,5 @@ +debhelper-dh-runit-but-lacks-breaks-substvar (source): package-uses-old-debhelper-compat-version 13 +debhelper-dh-runit-but-lacks-breaks-substvar (source): package-uses-dh-runit-but-lacks-breaks-substvar debhelper-dh-runit-but-lacks-breaks-substvar-missing [debian/rules] +debhelper-dh-runit-but-lacks-breaks-substvar (source): debian-build-system dh [debian/rules] +debhelper-dh-runit-but-lacks-breaks-substvar (source): debhelper-compat-virtual-relation 13 [debian/control] +debhelper-dh-runit-but-lacks-breaks-substvar (source): debhelper-compat-level 13 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-unnecessary-arguments/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-unnecessary-arguments/ORIGIN new file mode 100644 index 00000000..67f4d781 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-unnecessary-arguments/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-dh-unnecessary-arguments + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-unnecessary-arguments/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-unnecessary-arguments/debian/changelog new file mode 100644 index 00000000..a3132dca --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-unnecessary-arguments/debian/changelog @@ -0,0 +1,17 @@ +debhelper-dh-unnecessary-arguments (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-dh-unnecessary-arguments + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-dh-unnecessary-arguments (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-dh-unnecessary-arguments + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-unnecessary-arguments/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-unnecessary-arguments/debian/control new file mode 100644 index 00000000..433b3259 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-unnecessary-arguments/debian/control @@ -0,0 +1,17 @@ +Source: debhelper-dh-unnecessary-arguments +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 10) +Homepage: https://lintian.debian.org/ + +Package: debhelper-dh-unnecessary-arguments +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for packages using --parallel + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-unnecessary-arguments/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-unnecessary-arguments/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-unnecessary-arguments/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-unnecessary-arguments/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-unnecessary-arguments/debian/rules new file mode 100755 index 00000000..eab1d8ef --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-unnecessary-arguments/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ --parallel --with=systemd diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-unnecessary-arguments/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-unnecessary-arguments/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-unnecessary-arguments/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-unnecessary-arguments/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-unnecessary-arguments/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-unnecessary-arguments/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-unnecessary-arguments/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-unnecessary-arguments/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-unnecessary-arguments/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-unnecessary-arguments/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-unnecessary-arguments/eval/hints new file mode 100644 index 00000000..c64d1f3b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-unnecessary-arguments/eval/hints @@ -0,0 +1,6 @@ +debhelper-dh-unnecessary-arguments (source): package-uses-old-debhelper-compat-version 10 +debhelper-dh-unnecessary-arguments (source): debian-rules-uses-unnecessary-dh-argument 10 >= 10 dh ... --with=systemd [debian/rules:4] +debhelper-dh-unnecessary-arguments (source): debian-rules-uses-unnecessary-dh-argument 10 >= 10 dh ... --parallel [debian/rules:4] +debhelper-dh-unnecessary-arguments (source): debian-build-system dh [debian/rules] +debhelper-dh-unnecessary-arguments (source): debhelper-compat-virtual-relation 10 [debian/control] +debhelper-dh-unnecessary-arguments (source): debhelper-compat-level 10 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel/ORIGIN new file mode 100644 index 00000000..914899b4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-dh-with-python3-unrel + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel/debian/changelog new file mode 100644 index 00000000..83f0d119 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel/debian/changelog @@ -0,0 +1,17 @@ +debhelper-dh-with-python3-unrel (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-dh-with-python3-unrel + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-dh-with-python3-unrel (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-dh-with-python3-unrel + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel/debian/control new file mode 100644 index 00000000..ba4212a0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel/debian/control @@ -0,0 +1,16 @@ +Source: debhelper-dh-with-python3-unrel +Priority: optional +Section: python +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), dh-python, python3:any, dh-python +Rules-Requires-Root: no + +Package: python3-debhelper-dh-with-python3-unrel +Architecture: all +Depends: ${misc:Depends} +Description: Check dependency requirements for dh --with python3 (false positive) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel/debian/rules new file mode 100755 index 00000000..25115de0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ --with python3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel/eval/hints new file mode 100644 index 00000000..ce15c394 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel/eval/hints @@ -0,0 +1,3 @@ +debhelper-dh-with-python3-unrel (source): debian-build-system dh [debian/rules] +debhelper-dh-with-python3-unrel (source): debhelper-compat-virtual-relation 14 [debian/control] +debhelper-dh-with-python3-unrel (source): debhelper-compat-level 14 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel2/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel2/ORIGIN new file mode 100644 index 00000000..59bacd12 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel2/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-dh-with-python3-unrel2 + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel2/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel2/debian/changelog new file mode 100644 index 00000000..913214c6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel2/debian/changelog @@ -0,0 +1,17 @@ +debhelper-dh-with-python3-unrel2 (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-dh-with-python3-unrel2 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-dh-with-python3-unrel2 (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-dh-with-python3-unrel2 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel2/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel2/debian/control new file mode 100644 index 00000000..01a96a3d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel2/debian/control @@ -0,0 +1,16 @@ +Source: debhelper-dh-with-python3-unrel2 +Priority: optional +Section: python +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), dh-python, python3-all-dev:any +Rules-Requires-Root: no + +Package: python3-debhelper-dh-with-python3-unrel2 +Architecture: any +Depends: ${misc:Depends} +Description: Check dependency requirements for dh --with python3 (false positive) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel2/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel2/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel2/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel2/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel2/debian/rules new file mode 100755 index 00000000..25115de0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel2/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ --with python3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel2/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel2/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel2/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel2/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel2/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel2/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel2/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel2/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel2/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel2/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel2/eval/hints new file mode 100644 index 00000000..27f43e60 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3-unrel2/eval/hints @@ -0,0 +1,3 @@ +debhelper-dh-with-python3-unrel2 (source): debian-build-system dh [debian/rules] +debhelper-dh-with-python3-unrel2 (source): debhelper-compat-virtual-relation 14 [debian/control] +debhelper-dh-with-python3-unrel2 (source): debhelper-compat-level 14 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3/ORIGIN new file mode 100644 index 00000000..fdf61a02 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-dh-with-python3 + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3/debian/changelog new file mode 100644 index 00000000..d51e24c6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3/debian/changelog @@ -0,0 +1,17 @@ +debhelper-dh-with-python3 (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-dh-with-python3 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-dh-with-python3 (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-dh-with-python3 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3/debian/control new file mode 100644 index 00000000..35068987 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3/debian/control @@ -0,0 +1,16 @@ +Source: debhelper-dh-with-python3 +Priority: optional +Section: python +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), python3:any +Rules-Requires-Root: no + +Package: python3-debhelper-dh-with-python3 +Architecture: all +Depends: ${misc:Depends} +Description: Check dependency requirements for dh --with python3 + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3/debian/rules new file mode 100755 index 00000000..25115de0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ --with python3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3/eval/hints new file mode 100644 index 00000000..27f66276 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-python3/eval/hints @@ -0,0 +1,4 @@ +debhelper-dh-with-python3 (source): missing-build-dependency-for-dh-addon python3 (does not satisfy dh-python:any | dh-sequence-python3:any | pybuild-plugin-pyproject:any) [debian/rules] +debhelper-dh-with-python3 (source): debian-build-system dh [debian/rules] +debhelper-dh-with-python3 (source): debhelper-compat-virtual-relation 14 [debian/control] +debhelper-dh-with-python3 (source): debhelper-compat-level 14 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-quilt/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-quilt/ORIGIN new file mode 100644 index 00000000..9aa0707f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-quilt/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-dh-with-quilt + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-quilt/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-quilt/debian/changelog new file mode 100644 index 00000000..ba29b10e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-quilt/debian/changelog @@ -0,0 +1,17 @@ +debhelper-dh-with-quilt (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-dh-with-quilt + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-dh-with-quilt (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-dh-with-quilt + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-quilt/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-quilt/debian/control new file mode 100644 index 00000000..ec9d87b9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-quilt/debian/control @@ -0,0 +1,17 @@ +Source: debhelper-dh-with-quilt +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: debhelper-dh-with-quilt +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check dependency requirements for dh --with quilt + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-quilt/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-quilt/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-quilt/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-quilt/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-quilt/debian/rules new file mode 100755 index 00000000..931d500c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-quilt/debian/rules @@ -0,0 +1,3 @@ +#!/usr/bin/make -f +%: + dh $@ --with quilt diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-quilt/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-quilt/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-quilt/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-quilt/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-quilt/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-quilt/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-quilt/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-quilt/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-quilt/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-quilt/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-quilt/eval/hints new file mode 100644 index 00000000..79f7cb92 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-dh-with-quilt/eval/hints @@ -0,0 +1,4 @@ +debhelper-dh-with-quilt (source): missing-build-dependency-for-dh-addon quilt (does not satisfy quilt:any) [debian/rules] +debhelper-dh-with-quilt (source): debian-build-system dh [debian/rules] +debhelper-dh-with-quilt (source): debhelper-compat-virtual-relation 14 [debian/control] +debhelper-dh-with-quilt (source): debhelper-compat-level 14 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-excessive-overrides/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-excessive-overrides/ORIGIN new file mode 100644 index 00000000..e28e25f6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-excessive-overrides/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-excessive-overrides + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-excessive-overrides/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-excessive-overrides/debian/changelog new file mode 100644 index 00000000..f59c15c5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-excessive-overrides/debian/changelog @@ -0,0 +1,17 @@ +debhelper-excessive-overrides (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-excessive-overrides + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-excessive-overrides (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-excessive-overrides + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-excessive-overrides/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-excessive-overrides/debian/control new file mode 100644 index 00000000..7c7b77e9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-excessive-overrides/debian/control @@ -0,0 +1,17 @@ +Source: debhelper-excessive-overrides +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: debhelper-excessive-overrides +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for excessive number of overrides + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-excessive-overrides/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-excessive-overrides/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-excessive-overrides/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-excessive-overrides/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-excessive-overrides/debian/rules new file mode 100755 index 00000000..3aab6c49 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-excessive-overrides/debian/rules @@ -0,0 +1,14 @@ +#!/usr/bin/make -f + +%: + dh $@ + +# Commands not to run +override_dh_installcatalogs: +override_dh_installemacsen override_dh_installifupdown: +override_dh_installinfo override_dh_installmenu override_dh_installmime: +override_dh_installmodules override_dh_installlogcheck: +override_dh_installpam override_dh_installppp override_dh_installudev override_dh_installwm: +override_dh_installxfonts override_dh_lintian override_dh_icons override_dh_perl override_dh_usrlocal: +override_dh_installcron override_dh_installdebconf: +override_dh_installlogrotate override_dh_installgsettings: diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-excessive-overrides/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-excessive-overrides/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-excessive-overrides/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-excessive-overrides/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-excessive-overrides/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-excessive-overrides/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-excessive-overrides/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-excessive-overrides/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-excessive-overrides/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-excessive-overrides/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-excessive-overrides/eval/hints new file mode 100644 index 00000000..8f0db8bf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-excessive-overrides/eval/hints @@ -0,0 +1,4 @@ +debhelper-excessive-overrides (source): excessive-debhelper-overrides 21 +debhelper-excessive-overrides (source): debian-build-system dh [debian/rules] +debhelper-excessive-overrides (source): debhelper-compat-virtual-relation 14 [debian/control] +debhelper-excessive-overrides (source): debhelper-compat-level 14 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files-compat-9/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files-compat-9/ORIGIN new file mode 100644 index 00000000..3fcc23f7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files-compat-9/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-executable-files-compat-9 + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files-compat-9/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files-compat-9/debian/changelog new file mode 100644 index 00000000..0a43f52a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files-compat-9/debian/changelog @@ -0,0 +1,17 @@ +debhelper-executable-files-compat-9 (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-executable-files-compat-9 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-executable-files-compat-9 (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-executable-files-compat-9 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files-compat-9/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files-compat-9/debian/control new file mode 100644 index 00000000..9bd0d4f8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files-compat-9/debian/control @@ -0,0 +1,17 @@ +Source: debhelper-executable-files-compat-9 +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: debhelper-executable-files-compat-9 +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Tests related to executable packaging files + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files-compat-9/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files-compat-9/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files-compat-9/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files-compat-9/debian/docs b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files-compat-9/debian/docs new file mode 100755 index 00000000..438f2fd9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files-compat-9/debian/docs @@ -0,0 +1,2 @@ +#! /bin/sh +# This is acceptable (though useless) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files-compat-9/debian/manpages b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files-compat-9/debian/manpages new file mode 100755 index 00000000..094e0056 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files-compat-9/debian/manpages @@ -0,0 +1,2 @@ +# /o\ this is bad... + diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files-compat-9/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files-compat-9/debian/rules new file mode 100755 index 00000000..44e34f95 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files-compat-9/debian/rules @@ -0,0 +1,6 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_installman: diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files-compat-9/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files-compat-9/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files-compat-9/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files-compat-9/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files-compat-9/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files-compat-9/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files-compat-9/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files-compat-9/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files-compat-9/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files-compat-9/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files-compat-9/eval/hints new file mode 100644 index 00000000..71ac6acd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files-compat-9/eval/hints @@ -0,0 +1,4 @@ +debhelper-executable-files-compat-9 (source): executable-debhelper-file-without-being-executable [debian/manpages] +debhelper-executable-files-compat-9 (source): debian-build-system dh [debian/rules] +debhelper-executable-files-compat-9 (source): debhelper-compat-virtual-relation 14 [debian/control] +debhelper-executable-files-compat-9 (source): debhelper-compat-level 14 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files/ORIGIN new file mode 100644 index 00000000..ddf06bd5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-executable-files + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files/debian/changelog new file mode 100755 index 00000000..87684735 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files/debian/changelog @@ -0,0 +1,17 @@ +debhelper-executable-files (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-executable-files + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-executable-files (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-executable-files + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files/debian/compat new file mode 100644 index 00000000..45a4fb75 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files/debian/compat @@ -0,0 +1 @@ +8 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files/debian/control new file mode 100755 index 00000000..a2e0e47e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files/debian/control @@ -0,0 +1,17 @@ +Source: debhelper-executable-files +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 8~) +Homepage: https://lintian.debian.org/ + +Package: debhelper-executable-files +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Tests related to executable packaging files + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files/debian/copyright new file mode 100755 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files/debian/manpages b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files/debian/manpages new file mode 100755 index 00000000..1a248525 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files/debian/manpages @@ -0,0 +1 @@ +#!/bin/sh diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files/eval/hints new file mode 100644 index 00000000..0e2cfcc1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-executable-files/eval/hints @@ -0,0 +1,7 @@ +debhelper-executable-files (source): package-uses-deprecated-debhelper-compat-version 8 +debhelper-executable-files (source): package-file-is-executable [debian/manpages] +debhelper-executable-files (source): package-file-is-executable [debian/copyright] +debhelper-executable-files (source): package-file-is-executable [debian/control] +debhelper-executable-files (source): package-file-is-executable [debian/changelog] +debhelper-executable-files (source): debian-build-system dh [debian/rules] +debhelper-executable-files (source): debhelper-compat-level 8 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-lacks-versioned-deps/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-lacks-versioned-deps/ORIGIN new file mode 100644 index 00000000..efbb3eb8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-lacks-versioned-deps/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-lacks-versioned-deps + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-lacks-versioned-deps/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-lacks-versioned-deps/debian/changelog new file mode 100644 index 00000000..56fa9e4d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-lacks-versioned-deps/debian/changelog @@ -0,0 +1,17 @@ +debhelper-lacks-versioned-deps (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-lacks-versioned-deps + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-lacks-versioned-deps (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-lacks-versioned-deps + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-lacks-versioned-deps/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-lacks-versioned-deps/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-lacks-versioned-deps/debian/compat @@ -0,0 +1 @@ +9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-lacks-versioned-deps/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-lacks-versioned-deps/debian/control new file mode 100644 index 00000000..9c19e088 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-lacks-versioned-deps/debian/control @@ -0,0 +1,16 @@ +Source: debhelper-lacks-versioned-deps +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper +Rules-Requires-Root: no + +Package: debhelper-lacks-versioned-deps +Architecture: all +Depends: ${misc:Depends} +Description: Test pedantic dependency requirements for debhelper + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-lacks-versioned-deps/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-lacks-versioned-deps/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-lacks-versioned-deps/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-lacks-versioned-deps/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-lacks-versioned-deps/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-lacks-versioned-deps/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-lacks-versioned-deps/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-lacks-versioned-deps/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-lacks-versioned-deps/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-lacks-versioned-deps/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-lacks-versioned-deps/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-lacks-versioned-deps/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-lacks-versioned-deps/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-lacks-versioned-deps/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-lacks-versioned-deps/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-lacks-versioned-deps/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-lacks-versioned-deps/eval/hints new file mode 100644 index 00000000..a300c5ed --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-lacks-versioned-deps/eval/hints @@ -0,0 +1,4 @@ +debhelper-lacks-versioned-deps (source): package-uses-deprecated-debhelper-compat-version 9 +debhelper-lacks-versioned-deps (source): no-versioned-debhelper-prerequisite 9 +debhelper-lacks-versioned-deps (source): debian-build-system dh [debian/rules] +debhelper-lacks-versioned-deps (source): debhelper-compat-level 9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-misc-depends-fp/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-misc-depends-fp/ORIGIN new file mode 100644 index 00000000..2122558b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-misc-depends-fp/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-misc-depends-fp + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-misc-depends-fp/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-misc-depends-fp/debian/changelog new file mode 100644 index 00000000..af4b7d03 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-misc-depends-fp/debian/changelog @@ -0,0 +1,17 @@ +debhelper-misc-depends-fp (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-misc-depends-fp + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-misc-depends-fp (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-misc-depends-fp + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-misc-depends-fp/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-misc-depends-fp/debian/control new file mode 100644 index 00000000..799983d5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-misc-depends-fp/debian/control @@ -0,0 +1,16 @@ +Source: debhelper-misc-depends-fp +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 13) +Rules-Requires-Root: no + +Package: debhelper-misc-depends-fp +Architecture: all +Depends:${misc:Depends}, ${shlibs:Depends} +Description: Test against missing reading the Depends field + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-misc-depends-fp/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-misc-depends-fp/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-misc-depends-fp/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-misc-depends-fp/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-misc-depends-fp/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-misc-depends-fp/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-misc-depends-fp/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-misc-depends-fp/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-misc-depends-fp/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-misc-depends-fp/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-misc-depends-fp/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-misc-depends-fp/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-misc-depends-fp/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-misc-depends-fp/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-misc-depends-fp/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-misc-depends-fp/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-misc-depends-fp/eval/hints new file mode 100644 index 00000000..fa70b338 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-misc-depends-fp/eval/hints @@ -0,0 +1,4 @@ +debhelper-misc-depends-fp (source): package-uses-old-debhelper-compat-version 13 +debhelper-misc-depends-fp (source): debian-build-system dh [debian/rules] +debhelper-misc-depends-fp (source): debhelper-compat-virtual-relation 13 [debian/control] +debhelper-misc-depends-fp (source): debhelper-compat-level 13 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-no-depends/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-no-depends/ORIGIN new file mode 100644 index 00000000..0fed1590 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-no-depends/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-no-depends + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-no-depends/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-no-depends/debian/changelog new file mode 100644 index 00000000..65ac2c62 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-no-depends/debian/changelog @@ -0,0 +1,17 @@ +debhelper-no-depends (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-no-depends + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-no-depends (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-no-depends + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-no-depends/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-no-depends/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-no-depends/debian/compat @@ -0,0 +1 @@ +9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-no-depends/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-no-depends/debian/control new file mode 100644 index 00000000..968f5448 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-no-depends/debian/control @@ -0,0 +1,33 @@ +Source: debhelper-no-depends +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Rules-Requires-Root: no + +Package: debhelper-no-depends +Architecture: all +Description: Test dependency requirements for debhelper + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: debhelper-pre-depends +Architecture: all +Pre-Depends: ${misc:Depends} +Description: Test dependency requirements for debhelper extra string + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. Extra + string to not to trigger duplicated description tags. It may + be an empty package. + +Package: debhelper-suggests +Architecture: all +Suggests: ${misc:Depends} +Description: Test dependency requirements for debhelper another extra string + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. Extra + string. It may be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-no-depends/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-no-depends/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-no-depends/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-no-depends/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-no-depends/debian/rules new file mode 100755 index 00000000..79ec4da4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-no-depends/debian/rules @@ -0,0 +1,22 @@ +#!/usr/bin/make -f +%: + dh $@ + +binary: binary-arch binary-indep +binary-arch: +binary-indep: + -dh_clideps + -dh_gstscancodecs + dh_lisp || true +# We don't warn about commands inside make conditionals, so none of these +# get any warnings. +ifeq "$(USE_DH_PYTHON3)" "y" + dh_python3 +else + ifeq "$(USE_PYSUPPORT)" "y" + dh_pysupport + endif +endif + dh binary-indep + -dh_strip_nondeterminism + -dh_scour diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-no-depends/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-no-depends/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-no-depends/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-no-depends/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-no-depends/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-no-depends/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-no-depends/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-no-depends/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-no-depends/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-no-depends/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-no-depends/eval/hints new file mode 100644 index 00000000..4beaf2db --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-no-depends/eval/hints @@ -0,0 +1,12 @@ +debhelper-no-depends (source): weak-dependency-on-misc-depends debhelper-suggests +debhelper-no-depends (source): package-uses-deprecated-debhelper-compat-version 9 +debhelper-no-depends (source): package-uses-debhelper-but-lacks-build-depends [debian/rules] +debhelper-no-depends (source): no-versioned-debhelper-prerequisite 9 +debhelper-no-depends (source): missing-build-dependency-for-dh_-command dh_strip_nondeterminism (does not satisfy dh-strip-nondeterminism:any) [debian/rules] +debhelper-no-depends (source): missing-build-dependency-for-dh_-command dh_scour (does not satisfy scour:any) [debian/rules] +debhelper-no-depends (source): missing-build-dependency-for-dh_-command dh_lisp (does not satisfy dh-lisp:any) [debian/rules] +debhelper-no-depends (source): missing-build-dependency-for-dh_-command dh_gstscancodecs (does not satisfy libgstreamer1.0-dev:any) [debian/rules] +debhelper-no-depends (source): missing-build-dependency-for-dh_-command dh_clideps (does not satisfy cli-common-dev:any) [debian/rules] +debhelper-no-depends (source): debian-build-system dh [debian/rules] +debhelper-no-depends (source): debhelper-compat-level 9 +debhelper-no-depends (source): debhelper-but-no-misc-depends debhelper-no-depends diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-override-typos/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-override-typos/ORIGIN new file mode 100644 index 00000000..c115455f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-override-typos/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-override-typos + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-override-typos/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-override-typos/debian/changelog new file mode 100644 index 00000000..778b3b75 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-override-typos/debian/changelog @@ -0,0 +1,17 @@ +debhelper-override-typos (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-override-typos + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-override-typos (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-override-typos + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-override-typos/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-override-typos/debian/control new file mode 100644 index 00000000..77caf23c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-override-typos/debian/control @@ -0,0 +1,17 @@ +Source: debhelper-override-typos +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: debhelper-override-typos +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for typos in override targets + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-override-typos/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-override-typos/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-override-typos/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-override-typos/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-override-typos/debian/rules new file mode 100755 index 00000000..6787305c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-override-typos/debian/rules @@ -0,0 +1,43 @@ +#!/usr/bin/make -f + +%: + dh $@ + +# Bad +override_dh_nump: # Multiple matches should emit only one tag +override_dh_instakk: + override_dh_installcrons: +override_dh_install_examples: +override_dh_install_changelogs : # Extra space +override_dh_perls override_dh_python3 : # Bad then good +override_dh_python3 override_dh_perls : # Good then bad +override_dh_instakk override_dh_install_examples : # Both broken, with space +foo override_dh_installdebs bar override_dh_installxmlcatalog: # combining regular and overrides + +# Don't worry about anything beyond a colon even if wrong; it will fail anyway. +override_dh_testdirs: override_dh_ucfs + +# Specifically check for missing "auto" ("dh_override_auto_build" has a +# distance of "5" to "dh_override_build") +override_dh_build: + +# Missing space +override dh_install: + +execute_after_dh_nope: +execute_before_dh_nope: + +# Good +.PHONY: override_dh_ucfs +override_dh_install: +override_dh_install : + override_dh_install: # +prefix_override_dh_gconfs: +override_dh_will_never_exist: +override_dh_python3 override_dh_perl : +override_dh_auto_configure-% override_dh_auto_install-%: +foo override_dh_installdeb bar override_dh_installxmlcatalogs: # combining regular and overrides +override_dh_install: $(PY3VERS:%=install-python%) +# override_dh_instal: would be a typo, but in a comment it doesn't matter +execute_after_dh_install: +execute_before_dh_install: diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-override-typos/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-override-typos/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-override-typos/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-override-typos/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-override-typos/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-override-typos/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-override-typos/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-override-typos/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-override-typos/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-override-typos/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-override-typos/eval/hints new file mode 100644 index 00000000..21b50f19 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-override-typos/eval/hints @@ -0,0 +1,19 @@ +debhelper-override-typos (source): typo-in-debhelper-override-target override_dh_testdirs => override_dh_testdir [debian/rules:18] +debhelper-override-typos (source): typo-in-debhelper-override-target override_dh_perls => override_dh_perl [debian/rules:13] +debhelper-override-typos (source): typo-in-debhelper-override-target override_dh_perls => override_dh_perl [debian/rules:12] +debhelper-override-typos (source): typo-in-debhelper-override-target override_dh_nump => override_dh_numpy3 [debian/rules:7] +debhelper-override-typos (source): typo-in-debhelper-override-target override_dh_installxmlcatalog => override_dh_installxmlcatalogs [debian/rules:15] +debhelper-override-typos (source): typo-in-debhelper-override-target override_dh_installdebs => override_dh_installdeb [debian/rules:15] +debhelper-override-typos (source): typo-in-debhelper-override-target override_dh_installcrons => override_dh_installcron [debian/rules:9] +debhelper-override-typos (source): typo-in-debhelper-override-target override_dh_install_examples => override_dh_installexamples [debian/rules:14] +debhelper-override-typos (source): typo-in-debhelper-override-target override_dh_install_examples => override_dh_installexamples [debian/rules:10] +debhelper-override-typos (source): typo-in-debhelper-override-target override_dh_install_changelogs => override_dh_installchangelogs [debian/rules:11] +debhelper-override-typos (source): typo-in-debhelper-override-target override_dh_instakk => override_dh_install [debian/rules:8] +debhelper-override-typos (source): typo-in-debhelper-override-target override_dh_instakk => override_dh_install [debian/rules:14] +debhelper-override-typos (source): typo-in-debhelper-override-target override_dh_build => override_dh_auto_build [debian/rules:22] +debhelper-override-typos (source): typo-in-debhelper-override-target override dh_install => override_dh_install [debian/rules:25] +debhelper-override-typos (source): typo-in-debhelper-override-target execute_before_dh_nope => execute_before_dh_gnome [debian/rules:28] +debhelper-override-typos (source): typo-in-debhelper-override-target execute_after_dh_nope => execute_after_dh_gnome [debian/rules:27] +debhelper-override-typos (source): debian-build-system dh [debian/rules] +debhelper-override-typos (source): debhelper-compat-virtual-relation 14 [debian/control] +debhelper-override-typos (source): debhelper-compat-level 14 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-minus/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-minus/ORIGIN new file mode 100644 index 00000000..2af92ad6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-minus/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-minus + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-minus/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-minus/debian/changelog new file mode 100644 index 00000000..391cb09e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-minus/debian/changelog @@ -0,0 +1,17 @@ +debhelper-package-uses-debhelper-with-prefix-minus (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-package-uses-debhelper-with-prefix-minus + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-package-uses-debhelper-with-prefix-minus (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-package-uses-debhelper-with-prefix-minus + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-minus/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-minus/debian/control new file mode 100644 index 00000000..debea17d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-minus/debian/control @@ -0,0 +1,17 @@ +Source: debhelper-package-uses-debhelper-with-prefix-minus +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: debhelper-package-uses-debhelper-with-prefix-minus +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for packages using debhelper with a - prefix + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-minus/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-minus/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-minus/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-minus/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-minus/debian/rules new file mode 100755 index 00000000..d61a4e02 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-minus/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + -dh $@ diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-minus/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-minus/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-minus/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-minus/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-minus/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-minus/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-minus/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-minus/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-minus/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-minus/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-minus/eval/hints new file mode 100644 index 00000000..4c384fbe --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-minus/eval/hints @@ -0,0 +1,3 @@ +debhelper-package-uses-debhelper-with-prefix-minus (source): debian-build-system dh [debian/rules] +debhelper-package-uses-debhelper-with-prefix-minus (source): debhelper-compat-virtual-relation 14 [debian/control] +debhelper-package-uses-debhelper-with-prefix-minus (source): debhelper-compat-level 14 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-plus/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-plus/ORIGIN new file mode 100644 index 00000000..54f8b1cf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-plus/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-plus + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-plus/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-plus/debian/changelog new file mode 100644 index 00000000..4045fe76 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-plus/debian/changelog @@ -0,0 +1,17 @@ +debhelper-package-uses-debhelper-with-prefix-plus (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-package-uses-debhelper-with-prefix-plus + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-package-uses-debhelper-with-prefix-plus (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-package-uses-debhelper-with-prefix-plus + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-plus/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-plus/debian/control new file mode 100644 index 00000000..dcf6d13c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-plus/debian/control @@ -0,0 +1,17 @@ +Source: debhelper-package-uses-debhelper-with-prefix-plus +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: debhelper-package-uses-debhelper-with-prefix-plus +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for packages using debhelper with a + prefix + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-plus/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-plus/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-plus/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-plus/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-plus/debian/rules new file mode 100755 index 00000000..d6bb7806 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-plus/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + +dh $@ diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-plus/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-plus/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-plus/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-plus/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-plus/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-plus/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-plus/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-plus/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-plus/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-plus/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-plus/eval/hints new file mode 100644 index 00000000..80490656 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-package-uses-debhelper-with-prefix-plus/eval/hints @@ -0,0 +1,3 @@ +debhelper-package-uses-debhelper-with-prefix-plus (source): debian-build-system dh [debian/rules] +debhelper-package-uses-debhelper-with-prefix-plus (source): debhelper-compat-virtual-relation 14 [debian/control] +debhelper-package-uses-debhelper-with-prefix-plus (source): debhelper-compat-level 14 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token-unneeded/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token-unneeded/ORIGIN new file mode 100644 index 00000000..3e24becf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token-unneeded/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-script-token-unneeded + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token-unneeded/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token-unneeded/debian/changelog new file mode 100644 index 00000000..066d6a9c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token-unneeded/debian/changelog @@ -0,0 +1,17 @@ +debhelper-script-token-unneeded (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-script-token-unneeded + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-script-token-unneeded (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-script-token-unneeded + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token-unneeded/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token-unneeded/debian/control new file mode 100644 index 00000000..11ad46af --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token-unneeded/debian/control @@ -0,0 +1,17 @@ +Source: debhelper-script-token-unneeded +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: debhelper-script-token-unneeded +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check unnecessary debhelper script token + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token-unneeded/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token-unneeded/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token-unneeded/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token-unneeded/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token-unneeded/debian/postinst new file mode 100644 index 00000000..185dc3a6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token-unneeded/debian/postinst @@ -0,0 +1,6 @@ +#!/bin/sh +set -e +run something + +# We should have a debhelper token. +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token-unneeded/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token-unneeded/debian/rules new file mode 100755 index 00000000..cd6ef15c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token-unneeded/debian/rules @@ -0,0 +1,38 @@ +#!/usr/bin/make -f +# +# Use an alternate rules file that doesn't call dh to test not warning +# about debhelper script tokens if we call no programs that care about +# them. + +pkg = $(shell dh_listpackages) + +build: build-indep build-arch +build-indep: +build-arch: + +clean: + dh_testdir + dh_testroot + dh_clean + +binary: binary-indep binary-arch +binary-arch: +binary-indep: + dh_testdir + dh_testroot + dh_prep + dh_install + dh_installchangelogs + # dh_installdocs may modify maintainer scripts + install -m 644 debian/copyright debian/$(pkg)/usr/share/doc/$(pkg) + dh_link + dh_compress + dh_fixperms + # dh_installdeb needs #DEBHELPER# token too + mkdir -p debian/$(pkg)/DEBIAN + install -m 755 debian/postinst debian/$(pkg)/DEBIAN + dh_gencontrol + dh_md5sums + dh_builddeb + +.PHONY: build-arch build-indep build binary binary-arch binary-indep clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token-unneeded/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token-unneeded/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token-unneeded/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token-unneeded/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token-unneeded/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token-unneeded/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token-unneeded/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token-unneeded/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token-unneeded/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token-unneeded/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token-unneeded/eval/hints new file mode 100644 index 00000000..b9c9d9a4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token-unneeded/eval/hints @@ -0,0 +1,3 @@ +debhelper-script-token-unneeded (source): debian-build-system debhelper [debian/rules] +debhelper-script-token-unneeded (source): debhelper-compat-virtual-relation 14 [debian/control] +debhelper-script-token-unneeded (source): debhelper-compat-level 14 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token/ORIGIN new file mode 100644 index 00000000..c1390841 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/debhelper-script-token + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token/debian/changelog new file mode 100644 index 00000000..8d58518a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token/debian/changelog @@ -0,0 +1,17 @@ +debhelper-script-token (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-script-token + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-script-token (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-script-token + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token/debian/control new file mode 100644 index 00000000..c273061c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token/debian/control @@ -0,0 +1,17 @@ +Source: debhelper-script-token +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: debhelper-script-token +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check debhelper script token with rule minimization + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token/debian/postinst new file mode 100644 index 00000000..185dc3a6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token/debian/postinst @@ -0,0 +1,6 @@ +#!/bin/sh +set -e +run something + +# We should have a debhelper token. +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token/eval/hints new file mode 100644 index 00000000..ec7bd55e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/debhelper-script-token/eval/hints @@ -0,0 +1,4 @@ +debhelper-script-token (source): maintainer-script-lacks-debhelper-token [debian/postinst] +debhelper-script-token (source): debian-build-system dh [debian/rules] +debhelper-script-token (source): debhelper-compat-virtual-relation 14 [debian/control] +debhelper-script-token (source): debhelper-compat-level 14 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/ORIGIN new file mode 100644 index 00000000..df4831b2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/legacy-debconf + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/changelog new file mode 100644 index 00000000..1aa50be8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/changelog @@ -0,0 +1,6 @@ +debconf (1~rc1) unstable; urgency=low + + * Initial Release + * Changelog line with exactly 80 characters which tests the line-too-long tag. + + -- Lintian Maintainers Wed, 3 May 2006 18:07:19 -0500 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/control new file mode 100644 index 00000000..37b76641 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/control @@ -0,0 +1,52 @@ +Source: debconf +Section: utils +Priority: optional +Build-Depends: debhelper-compat (= 14) +Maintainer: Lintian Maintainers +Standards-Version: 3.7.2 + +Package: debconf-test +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (dummy) + +Package: debconf-test-noscripts +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (noscripts) + Package missing postinst/postrm/config. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: debconf-test-preinst +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (preinst) + Package uses debconf only in preinst. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: debconf-test-postinst +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (postinst) + Package uses debconf only in postinst. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: debconf-udeb +Section: debian-installer +XC-Package-Type: udeb +XB-Installer-Menu-Item: 100 +Architecture: any +Depends: ${shlibs:Depends} +Description: Test udeb package for the debconf checks of lintian (dummy) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/copyright new file mode 100644 index 00000000..84843ee3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/copyright @@ -0,0 +1,10 @@ +Copyright (C) 2004 Frank Lichtenheld + +Test for really old FSF address: + +Free Software Foundation, Inc., 675 Mass Ave, Cambridge, +MA 02139, USA. + +Test for a dh-make boilerplate: +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test-noscripts.templates b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test-noscripts.templates new file mode 100644 index 00000000..93f80713 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test-noscripts.templates @@ -0,0 +1,3 @@ +Template: debconf/test +Type: text +_description: Foo bar (1) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test-postinst.postinst b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test-postinst.postinst new file mode 100644 index 00000000..56ab8712 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test-postinst.postinst @@ -0,0 +1,10 @@ +#!/bin/sh +set -e + +. /usr/share/debconf/confmodule + +db_input medium debconf/test + +#DEBHELPER# + +true diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test-postinst.postrm b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test-postinst.postrm new file mode 100644 index 00000000..cbf5e3b2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test-postinst.postrm @@ -0,0 +1,7 @@ +#!/bin/sh +set -e +if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_purge +fi +#DEBHELPER# diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test-postinst.templates b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test-postinst.templates new file mode 100644 index 00000000..2a2a8ab6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test-postinst.templates @@ -0,0 +1,3 @@ +Template: debconf/test +Type: text +_description: Enter something: diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test-preinst.postrm b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test-preinst.postrm new file mode 100644 index 00000000..cbf5e3b2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test-preinst.postrm @@ -0,0 +1,7 @@ +#!/bin/sh +set -e +if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_purge +fi +#DEBHELPER# diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test-preinst.preinst b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test-preinst.preinst new file mode 100644 index 00000000..bf6f0749 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test-preinst.preinst @@ -0,0 +1,13 @@ +#!/bin/sh +set -e + +# Obsolete name for the confmodule +. /usr/share/debconf/confmodule.sh + +. /usr/share/debconf/confmodule + +db_input medium debconf/test + +#DEBHELPER# + +true diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test-preinst.templates b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test-preinst.templates new file mode 100644 index 00000000..2a2a8ab6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test-preinst.templates @@ -0,0 +1,3 @@ +Template: debconf/test +Type: text +_description: Enter something: diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test.config b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test.config new file mode 100644 index 00000000..9e32d06f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test.config @@ -0,0 +1,24 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +db_settitle "Funky lintian test" + +# Bad priorities. +db_text LOW debconf/test +db_input normal debconf/test + +# Valid priorities. +db_text \ +high debconf/test +foo=medium +db_input $foo debconf/test +db_input "$foo" debconf/test +db_input 'medium' debconf/test + +# debconf/transtring should not be flagged as unused +# (it's aliased to debconf/alias, which is used) +db_register debconf/transtring debconf/alias +db_input medium debconf/alias diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test.postinst b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test.postinst new file mode 100644 index 00000000..b3870371 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test.postinst @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +# Not supposed to do this here. +db_input medium debconf/test + +true diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test.templates b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test.templates new file mode 100644 index 00000000..811bb6cf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test.templates @@ -0,0 +1,101 @@ +Template: debconf/test +Type: text +_description: Foo bar (1) + +Template: debconf/testmulti +Type: multiselect +__Choices: foo, bar, boo +_Description: test comma usages in choices fields + +Template: debconf/testmulti-escape +Type: multiselect +_Choices: foo\, bar, boo +_Description: test escaped comma usages in choices fields: + +Template: debconf/testboolean +Type: boolean +_Description: Enter yes or no: + Do you want to answer this question? + +Template: debconf/teststring +Type: string +_Description: This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + +Template: debconf/testnote +Type: note +Description: This should be a title and not a really long sentence that ends in a regular period. + +Template: debconf/1st-person +Type: select +__Choices: one, two +_Description: Select one of these: + I am a stupid test of first-person syntax that tells you to select yes + even though yes isn't an option in this prompt. + +Template: debconf/internal +Type: boolean +Description: For internal use only + We are testing that style checks are not applied to templates that are + marked as internal. + +Template: debconf/no-description +Type: string + +Template: debconf/translate +Type: boolean +_Default: false +_Description: Should this really be translated? + +Template: debconf/transtring +Type: string +_Default: 1 +_Description: Count of templates: + The number of useless numbers that a translator would have to translate + for this template. + +Template: debconf/language +__Choices: English, Spanish, German, French +# This is the default choice. Translators should put their own language, +# if available, here instead, but the value MUST be the English version +# of the value for the package scripts to work properly. +_Default: English[ translators, see the comment in the PO files] +_Description: The default language, an example of a default that should + be translated. + +Template: debconf/error +Type: error +_Description: An error occurred + This is a sample Debconf error template. + +Template: debconf/should-be-boolean +Type: select +__Choices: yes, no +_Description: Choose: + Pick yes or no. + +Template: debconf/should-be-no-longer-a-problem +Type: boolean +_Description: Decide, lintian + Using "no longer" should no longer be detected as + making-assumptions-about-interfaces-in-templates by lintian. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test.templates.de b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test.templates.de new file mode 100644 index 00000000..f9ea1219 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test.templates.de @@ -0,0 +1,3 @@ +Template: debconf/testmulti +Type: multiselect +Choices: foo, bar\, boo, boo diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test.templates.in b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-test.templates.in new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-udeb.postinst b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-udeb.postinst new file mode 100644 index 00000000..4ce41f08 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-udeb.postinst @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +ldconfig + +true diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-udeb.templates b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-udeb.templates new file mode 100644 index 00000000..5d7cf5a7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/debconf-udeb.templates @@ -0,0 +1,3 @@ +Template: debian-installer/debconf-udeb/title +Type: text +_description: This is just a test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/po/POTFILES.in b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/po/POTFILES.in new file mode 100644 index 00000000..d0c82f08 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/po/POTFILES.in @@ -0,0 +1,2 @@ +[type: gettext/rfc822deb] debconf-test.templates +[type: gettext/rfc822deb] debconf-udeb.templates diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/po/de.po b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/po/de.po new file mode 100644 index 00000000..86c57968 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/po/de.po @@ -0,0 +1,66 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2004-12-06 01:01+0100\n" +"Last-Translator: Frank Lichtenheld \n" +"Language-Team: debian-l10n-german@l.d.o\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "foo" +msgstr "foo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "bar" +msgstr "bar, boo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "boo" +msgstr "boo" + +#. Type: multiselect +#. Description +#: ../debconf-test.templates:8 +msgid "test comma usages in choices fields" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:11 +msgid "foo\\, bar, boo" +msgstr "foo, bar, boo" + +#. Type: text +#. description +#: ../debconf-udeb.templates:3 +msgid "This is just a test" +msgstr "Dies ist nur ein Test" diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/po/fr.po b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/po/fr.po new file mode 100644 index 00000000..c74deb28 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/po/fr.po @@ -0,0 +1,60 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"Last-Translator: Frank Lichtenheld \n" +"Language-Team: debian-l10n-german@l.d.o\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "foo" +msgstr "foo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "bar" +msgstr "bar, boo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "boo" +msgstr "boo" + +#. Type: multiselect +#. Description +#: ../debconf-test.templates:8 +msgid "test comma usages in choices fields" +msgstr "" + +#. Type: text +#. description +#: ../debconf-udeb.templates:3 +msgid "This is just a test" +msgstr " diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/po/lang.po b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/po/lang.po new file mode 100644 index 00000000..7ac498af --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/po/lang.po @@ -0,0 +1,15 @@ +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/po/nds.po b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/po/nds.po new file mode 100644 index 00000000..7ac498af --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/po/nds.po @@ -0,0 +1,15 @@ +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/po/output b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/po/output new file mode 100644 index 00000000..c3df1a5b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/po/output @@ -0,0 +1 @@ +2 utf8 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/po/pt_BR.po b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/po/pt_BR.po new file mode 100644 index 00000000..7ac498af --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/po/pt_BR.po @@ -0,0 +1,15 @@ +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/po/sample-file.po b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/po/sample-file.po new file mode 100644 index 00000000..8dcc0ffa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/po/sample-file.po @@ -0,0 +1 @@ +This is some file that isn't actually a valid .po file. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/po/templates.pot b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/po/templates.pot new file mode 100644 index 00000000..914c77f0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/po/templates.pot @@ -0,0 +1,61 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "foo" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "bar" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "boo" +msgstr "" + +#. Type: multiselect +#. Description +#: ../debconf-test.templates:8 +msgid "test comma usages in choices fields" +msgstr "" + +#. Type: text +#. description +#: ../debconf-udeb.templates:3 +msgid "This is just a test" +msgstr "" diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/pycompat b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/pycompat new file mode 100644 index 00000000..0cfbf088 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/pycompat @@ -0,0 +1 @@ +2 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/pyversions b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/pyversions new file mode 100644 index 00000000..6f290b06 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/pyversions @@ -0,0 +1 @@ +>= 2.7 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/rules new file mode 100755 index 00000000..933901ac --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/rules @@ -0,0 +1,64 @@ +#!/usr/bin/make -f + +deb_dir = debian/debconf +udeb_dir = debian/debconf-udeb +build_dirs = $(deb_dir) $(udeb_dir) + +build-indep: +# There are no architecture-independent files to be built +# by this package. If there were any they would be made +# here. + +build-arch: + dh_testdir + touch build + +build: build-indep build-arch + +clean: + dh_testdir + dh_testroot + -rm -f build + + dh_clean + +binary-indep: build +# There are no architecture-independent files to be uploaded +# generated by this package. If there were any they would be +# made here. + +binary-arch: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs -a + + dh_installchangelogs -a + dh_installdocs -a + dh_installdebconf -pdebconf-test + dh_installdebconf -pdebconf-test-noscripts --noscripts + dh_installdebconf -pdebconf-test-preinst --noscripts + dh_installdebconf -pdebconf-test-postinst --noscripts + dh_installdebconf -pdebconf-udeb + + + + + dh_compress -a + dh_fixperms -a + +# The shlibs stuff doesn't matter here so do it in a weird order to +# test warnings. + dh_installdeb -a + dh_shlibdeps -a + dh_makeshlibs -a + dh_gencontrol -a + dh_md5sums + dh_builddeb -a + dh_makeshlibs -a + +# Below here is fairly generic really + +binary: binary-indep binary-arch + +.PHONY: build-arch build-indep build binary binary-arch binary-indep clean checkroot diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/eval/hints new file mode 100644 index 00000000..35225ae1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-debconf/eval/hints @@ -0,0 +1,4 @@ +debconf (source): maintainer-script-lacks-debhelper-token [debian/debconf-test.postinst] +debconf (source): debian-build-system debhelper [debian/rules] +debconf (source): debhelper-compat-virtual-relation 14 [debian/control] +debconf (source): debhelper-compat-level 14 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/ORIGIN new file mode 100644 index 00000000..9fe265b4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/legacy-fields + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/debian/changelog new file mode 100644 index 00000000..1840a57f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/debian/changelog @@ -0,0 +1,10 @@ +fields (1.5-.3) unstable; urgency=low + + * This package adds tests for the following tags: + - debian-revision-not-well-formed + - depends-on-python-minimal + - essential-no-not-needed + - debian-revision-should-not-be-zero + - new-essential-package + + -- Tobias Quathamer Sun, 10 Apr 2011 14:30:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/debian/compat new file mode 100644 index 00000000..b1bd38b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/debian/compat @@ -0,0 +1 @@ +13 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/debian/control new file mode 100644 index 00000000..d980a6e2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/debian/control @@ -0,0 +1,28 @@ +Source: fields +Section: does-not-exist +Priority: standard +Maintainer: Lintian Maintainers +Standards-Version: 3.9.2 + +Package: fields +Essential: no +Architecture: all +Depends: python-minimal +Description: Generate some errors + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: another-version +Essential: yes +Section: admin +Architecture: all +Description: Also generate some errors + This package gets another version number and tries to sneak in a new + essential package. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/debian/rules new file mode 100755 index 00000000..11ad4a75 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/debian/rules @@ -0,0 +1,33 @@ +#!/usr/bin/make -f + +tmp=debian/tmp + +build-arch: + +build-indep: + +build: build-arch build-indep + +binary-arch: + +binary-indep: + install -d $(tmp)/usr/share/doc/fields + install -m 644 debian/changelog \ + $(tmp)/usr/share/doc/fields/changelog + gzip -n -9 $(tmp)/usr/share/doc/fields/changelog + dh_md5sums -pfields -P$(tmp) + dpkg-gencontrol -pfields -P$(tmp) + dpkg --build $(tmp) .. + rm -rf $(tmp) + + # Create another package with a different version + dh_md5sums -panother-version -P$(tmp) + dpkg-gencontrol -panother-version -v123.4-0 -P$(tmp) + dpkg --build $(tmp) .. + +binary: binary-arch binary-indep + +clean: + rm -rf debian/files $(tmp) debian/substvars + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/eval/hints new file mode 100644 index 00000000..d9a25e62 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-fields/eval/hints @@ -0,0 +1,9 @@ +fields (source): uses-debhelper-compat-file [debian/compat] +fields (source): package-uses-old-debhelper-compat-version 13 +fields (source): package-uses-debhelper-but-lacks-build-depends [debian/rules] +fields (source): no-versioned-debhelper-prerequisite 13 +fields (source): missing-build-dependency-for-dh_-command dh_md5sums (does not satisfy debhelper:any | debhelper-compat:any) [debian/rules] +fields (source): debian-build-system debhelper [debian/rules] +fields (source): debhelper-compat-level 13 +fields (source): debhelper-but-no-misc-depends fields +fields (source): debhelper-but-no-misc-depends another-version diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/Makefile b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/Makefile new file mode 100644 index 00000000..657dc2ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/Makefile @@ -0,0 +1,55 @@ +# This is the correct way to build a lib + +CC=gcc +CFLAGS=-g -Wall -Winline -O2 +LDFLAGS=-Wl,--no-as-needed + +OBJS=baz.o extra.o +SHOBJS=baz.sho extra.sho +NOPICOBJS = $(SHOBJS) + +all: libbaz1.a libbaz2.a libbaz1.so.1.0.3b libbaz2.so libbaz3.so.1.0.3b \ + libbaz.so + +libbaz2.so: libbaz2.so.1.0 + ln -sf $^ $@ +libbaz2.so.1.0: libbaz2.so.1.0.3b + ln -sf $^ $@ + +# Oops, forget the soname altogether +libbaz1.so.1.0.3b: $(NOPICOBJS) + $(CC) $(LDFLAGS) -o $@ -shared $^ -lc + +libbaz2.so.1.0.3b: $(SHOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz2.so.1.0 $^ -lc + +# Non-PIC. We can't test this on all architectures +libbaz3.so.1.0.3b: $(NOPICOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz3.so.1 $^ -lc + +# Non-versioned SONAME. +libbaz.so: $(SHOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz.so $^ -lc + +#%.o-noreentrant: %.c +# $(CC) $(LDFLAGS) $(CFLAGS) -o $@ -c $< + +%.sho: %.c + $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -fPIC -o $@ -c $< + +%.o: %.c + $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -o $@ -c $< + +libbaz2.a: $(OBJS) + ar cq $@ $(OBJS) + strip --strip-unneeded --remove-section=.comment \ + --remove-section=-note $@ + ranlib $@ + +# The pic one in the .a (wrong), no archive table +libbaz1.a: $(SHOBJS) + ar cqS $@ $^ + strip --strip-unneeded --remove-section=.comment \ + --remove-section=-note $@ +clean: + rm -f *.a *.o *.so* *.sho diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/ORIGIN new file mode 100644 index 00000000..c56194ca --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/legacy-libbaz + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/baz.c b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/baz.c new file mode 100644 index 00000000..4d5fc458 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/baz.c @@ -0,0 +1,6 @@ +#include + +double pw(double p) +{ + return exp(p); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/changelog new file mode 100644 index 00000000..44c0a832 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/changelog @@ -0,0 +1,6 @@ +libbaz (1-1) unstable; urgency=low + + * Initial setup + + -- Sean 'Shaleh' Perry Tue, 30 Jan 2001 15:23:59 -0800 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/compat new file mode 100644 index 00000000..b1bd38b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/compat @@ -0,0 +1 @@ +13 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/control new file mode 100644 index 00000000..15066870 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/control @@ -0,0 +1,58 @@ +Source: libbaz +Section: libs +Priority: optional +Maintainer: Lintian Maintainer +Build-depends: debhelper (>=4) +Standards-Version: 3.2.1 + +Package: libbaz1 +Architecture: any +Provides: libbaz +Description: test handling of library packages + Regression test for lintian's handling of libraries. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz1-dev +Architecture: any +Depends: libbaz1 (= ${source:Version}), perlapi-5.8.8 +Description: development package + Regression test for lintian's handling of libraries (dev). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2 +Architecture: any +Depends: ${shlibs:Depends}, libssl0.9.8 +Description: test handling of library packages (good) + Regression test for lintian's handling of libraries (good). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2-dev +Architecture: any +Depends: ${shlibs:Depends}, libbaz2 (= ${source:Version}) +Description: development package (good) + Regression test for lintian's handling of libraries (dev good). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2-dbg +Architecture: any +Depends: libbaz2 (= ${binary:Version}) +Priority: optional +Description: debugging package + Regression test for lintian's handling of libraries (debug). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/copyright new file mode 100644 index 00000000..a874c878 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/copyright @@ -0,0 +1,8 @@ +This package is released under public domain. This is distributed in the hope +that it will be useful, but without any warranty; without even the implied +warranty of merchantability or fitness for a particular purpose. + +A reference to /usr/share/common-licenses/GPL-2 to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +However, this has an OpenSSL exception. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/dev.postinst b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/dev.postinst new file mode 100644 index 00000000..683e3cc5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/dev.postinst @@ -0,0 +1,4 @@ +#!/bin/sh -e + +$PKG=libbaz1-dev + diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/dev.prerm b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/dev.prerm new file mode 100644 index 00000000..683e3cc5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/dev.prerm @@ -0,0 +1,4 @@ +#!/bin/sh -e + +$PKG=libbaz1-dev + diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/lib.postinst b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/lib.postinst new file mode 100644 index 00000000..ec0b98ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/lib.postinst @@ -0,0 +1,10 @@ +#!/bin/sh -e + +$PKG=libbaz1 + +if [ "$1" = "configure" ]; then + if [ -d /usr/doc -a ! -e /usr/doc/$PKG -a -d /usr/share/doc/$PKG ] +; then + ln -sf ../share/doc/$PKG /usr/doc/$PKG + fi +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/lib.prerm b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/lib.prerm new file mode 100644 index 00000000..50e37c3b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/lib.prerm @@ -0,0 +1,7 @@ +#!/bin/sh -e + +$PKG=libbaz1 + +if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/$PKG ]; then + rm -f /usr/doc/$PKG +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/lib.shlibs b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/lib.shlibs new file mode 100644 index 00000000..b88e2882 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/lib.shlibs @@ -0,0 +1,8 @@ +libdoesntexist2 1.0 libbaz1 +libdoesntexist2 1.0 libbaz1 +libbaz2 1.1 libbaz +libbaz3 1 libbaz1 (>> 1-1) +libbaz4 1 libbaz1 (= 1-1) +libbaz5 1 libbaz2 +udeb: libdoesntexist2 1.0 libbaz2 +udeb: libdoesntexist2 1.0 libbaz2 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/lib.symbols b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/lib.symbols new file mode 100644 index 00000000..72f9d8ab --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/lib.symbols @@ -0,0 +1,3 @@ +libbaz.so.2 libbaz1 #MINVER# + pw 1-1 + foo 1.1-1 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/rules new file mode 100755 index 00000000..fa99bc8a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/rules @@ -0,0 +1,121 @@ +#!/usr/bin/make -f + +lib_tmp=debian/tmp-lib +dev_tmp=debian/tmp-dev + +LIB=libbaz1 +DEV=libbaz1-dev + +VENDORARCH := $(shell perl -MConfig -wE'say substr($$Config{vendorarch},1)') + +build-arch: + $(MAKE) + +build-indep: + +build: build-arch build-indep + +clean: + $(MAKE) clean + dh_clean -plibbaz2 -plibbaz2-dev + rm -f debian/files debian/substvars + rm -rf $(lib_tmp) $(dev_tmp) + +# Now the correct libbaz2-dev package +binary-correct: + install -d debian/libbaz2-dev/usr/lib + cp -a libbaz2.a libbaz2.so debian/libbaz2-dev/usr/lib + # usually, I'd also include some .h files to /usr/include + + # Now the correct libbaz2 package + install -d debian/libbaz2/usr/lib + cp -a libbaz2.so.* debian/libbaz2/usr/lib + chmod a-x debian/libbaz2/usr/lib/* + + # General stuff that is tested in other testsets: + dh_installdocs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_compress -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + + # Mess up the libbaz2 changelog files to test the symlink handling. + ln -s /usr/share/doc/lintian/changelog.gz \ + debian/libbaz2/usr/share/doc/libbaz2/changelog.gz + install -m 644 debian/changelog \ + debian/libbaz2-dev/usr/share/doc/libbaz2-dev/foo + ln -s foo debian/libbaz2-dev/usr/share/doc/libbaz2-dev/changelog + + # Okay, if either line is omitted, it should be noted + dh_strip --dbg-package=libbaz2-dbg -plibbaz2 -plibbaz2-dev + dh_makeshlibs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_shlibdeps -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + + # and again, regular packaging stuff + dh_installdeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + echo udeb: libbaz2 1.0 libbaz2 >> debian/libbaz2/DEBIAN/shlibs + dh_gencontrol -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_builddeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + +# and the incorrect one +binary-arch: build-arch binary-correct + # first, the lib package + install -d $(lib_tmp)/usr/lib + # resp. no soname (check), wrong soname (check), and no-pic (check) + cp -a libbaz1.so.1.0* $(lib_tmp)/usr/lib + cp -a libbaz2.so.1.0.3b $(lib_tmp)/usr/lib/libfoo2.so.1.0.3b + install -m644 libbaz3.so.1.0.3b $(lib_tmp)/usr/lib/libbaz3.so.1.0.3b + # let's include the .a in the non-dev too (TODO) + # Also, libbaz1.a hasn't a symbol table (TODO) + cp -a *.a $(lib_tmp)/usr/lib + # And a wrong .so symlink (wrong, only in -dev, TODO) + ln -s libfoo3.so.0.9 $(lib_tmp)/usr/lib/libfoo3.so + # And a wrong .so.X symlink (wrong, should point to a real existing + # shlib, TODO) + ln -s libfoo.so.0.9.1 $(lib_tmp)/usr/lib/libfoo.so.0.9 + # And a plain .so (wrong, TODO) + touch $(lib_tmp)/usr/lib/libbar2.so + # And a non-versioned SONAME. + install -m644 libbaz.so $(lib_tmp)/usr/lib/libbaz.so + strip --remove-section=.comment --strip-unneeded $(lib_tmp)/usr/lib/libbaz.so + # Pretend to be a Perl module to test a lack of Perl dependencies. + install -d $(lib_tmp)/$(VENDORARCH)/auto/Foo + install -m 644 libbaz2.so.1.0.3b $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + strip $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + + install -d $(lib_tmp)/usr/share/doc/$(LIB) + install -m 644 debian/copyright $(lib_tmp)/usr/share/doc/$(LIB) + install -m 644 debian/changelog $(lib_tmp)/usr/share/doc/$(LIB) + gzip -n -9 $(lib_tmp)/usr/share/doc/$(LIB)/changelog + install -d $(lib_tmp)/DEBIAN + install -m 755 debian/lib.postinst $(lib_tmp)/DEBIAN/postinst + install -m 755 debian/lib.prerm $(lib_tmp)/DEBIAN/prerm + touch $(lib_tmp)/usr/share/doc/README.Debian + #dpkg-shlibdeps $(lib_tmp)/usr/lib/libbaz.so.1.0 + install -m 755 debian/lib.shlibs $(lib_tmp)/DEBIAN/shlibs + install -m 755 debian/lib.symbols $(lib_tmp)/DEBIAN/symbols + dpkg-gencontrol -isp -p$(LIB) -P$(lib_tmp) + dpkg --build $(lib_tmp) .. + + # now the -dev package + install -d $(dev_tmp)/usr/include + install -d $(lib_tmp)/usr/lib + # let's also install the .so at the same time... (wrong, TODO) + cp -a *.a *.so.* $(lib_tmp)/usr/lib + # and fuck up permission (TODO) + chmod a+x $(lib_tmp)/usr/lib/*.a + # Pretend to be a Perl module to test a lack of Perl dependencies. + install -d $(dev_tmp)/$(VENDORARCH)/auto/Foo + install -m 644 libbaz2.so.1.0.3b $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + strip $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + install -d $(dev_tmp)/usr/share/doc + ln -s $(LIB) $(dev_tmp)/usr/share/doc/$(DEV) + install -d $(dev_tmp)/DEBIAN + install -m 755 debian/dev.postinst $(dev_tmp)/DEBIAN/postinst + install -m 755 debian/dev.prerm $(dev_tmp)/DEBIAN/prerm + dpkg-gencontrol -isp -p$(DEV) -P$(dev_tmp) + dpkg --build $(dev_tmp) .. + + +binary: binary-arch + +# The mention of binary-indep here should be sufficient to suppress the +# warning that it's not present. +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/source.lintian-overrides b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/source.lintian-overrides new file mode 100644 index 00000000..6008d271 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/source.lintian-overrides @@ -0,0 +1 @@ +libbaz source: maintainer-script-lacks-debhelper-token diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/eval/hints new file mode 100644 index 00000000..4dffc593 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/eval/hints @@ -0,0 +1,14 @@ +libbaz (source): uses-debhelper-compat-file [debian/compat] +libbaz (source): package-uses-old-debhelper-compat-version 13 +libbaz (source): no-versioned-debhelper-prerequisite 13 +libbaz (source): maintainer-script-lacks-debhelper-token [debian/lib.prerm] +libbaz (source): maintainer-script-lacks-debhelper-token [debian/lib.postinst] +libbaz (source): maintainer-script-lacks-debhelper-token [debian/dev.prerm] +libbaz (source): maintainer-script-lacks-debhelper-token [debian/dev.postinst] +libbaz (source): debian-build-system debhelper [debian/rules] +libbaz (source): debhelper-compat-level 13 +libbaz (source): debhelper-but-no-misc-depends libbaz2-dev +libbaz (source): debhelper-but-no-misc-depends libbaz2-dbg +libbaz (source): debhelper-but-no-misc-depends libbaz2 +libbaz (source): debhelper-but-no-misc-depends libbaz1-dev +libbaz (source): debhelper-but-no-misc-depends libbaz1 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/extra.c b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-libbaz/extra.c new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/ORIGIN new file mode 100644 index 00000000..e577e09b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/legacy-maintainer-scripts + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/changelog new file mode 100644 index 00000000..a0c6dc5a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/changelog @@ -0,0 +1,57 @@ +maintainer-scripts (7+dfsg-0.1) unstable; urgency=low + + * Doing an upload for QA but I fail to give it a correct version number, + have some uploaders, and also fail to mention it... Bad me ;) + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 02:05:29 +0200 + +maintainer-scripts (6.1) unstable; urgency=low + + * I made this entry on my local PC, oops ;) + + -- Jeroen van Wolffelaar Sat, 21 Feb 2004 18:29:37 +0100 + +maintainer-scripts (6) unstable; urgency=low + + * added ldconfig calls to postrm to check test the postrm tests + from shared-libs + + -- Frank Lichtenheld Sat, 21 Feb 2004 18:29:36 +0100 + +maintainer-scripts (5) unstable; urgency=low + + * added bash style arrays to postinst, this one is for you Torsten (-: + + -- Sean 'Shaleh' Perry Fri, 30 Mar 2001 23:27:06 -0800 + +maintainer-scripts (4) unstable; urgency=low + + * added a here document to the prerm, along with two more bashisms + * made postrm a bash script to check that bash scripts are not searched + + -- Sean 'Shaleh' Perry Mon, 26 Feb 2001 13:02:57 -0800 + +maintainer-scripts (3) unstable; urgency=low + + * Added check for '.' called as '. foo || bar', lintian 1.11.15 failed this + thinking the '||' was a argument. + * also added an invalid call to '. foo bar' + * postinst now has a space between the #! and /bin/sh to test the interpreter + checking code. + + -- Sean 'Shaleh' Perry Tue, 9 Jan 2001 23:06:25 -0800 + +maintainer-scripts (2) unstable; urgency=low + + * Fix location of changelog. + * prerm and postrm do 'update-alternatives --remove'; should only complain + about postrm. + + -- Colin Watson Fri, 29 Dec 2000 06:01:24 +0000 + +maintainer-scripts (1) unstable; urgency=low + + * Initial version + * postinst and prerm set the usr/doc symlink + + -- Sean 'Shaleh' Perry Thu, 16 Nov 2000 09:11:40 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/control new file mode 100644 index 00000000..44614e1b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/control @@ -0,0 +1,18 @@ +Source: maintainer-scripts +Section: misc +Priority: optional +Maintainer: QA group +Uploaders: Anyone but Jeroen +Build-Depends: debhelper-compat (= 13), dash (>= 0.5.10.2) +Standards-Version: 3.1.1 +Rules-Requires-Root: binary-targets +XS-Dm-Upload-Allowed: Yes + +Package: maintainer-scripts +Architecture: all +Depends: test +Description: test lintian's maintainer script checks + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/postinst new file mode 100644 index 00000000..e56ed3bf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/postinst @@ -0,0 +1,181 @@ +#! /bin/sh -e + +if [ "$1" = "configure" ]; then + if [ -d /usr/doc -a ! -e /usr/doc/maintainer-scripts -a -d /usr/share/doc/maintainer-scripts ]; then + ln -sf ../share/doc/maintainer-scripts /usr/doc/maintainer-scripts + fi +fi + +# valid +. /usr/share/lintian/shell || exit 0 +. /usr/share/lintian/shell >/dev/null +. /usr/share/lintian/shell 2>/dev/null +. /usr/share/lintian/shell /dev/null +update-rc.d $FOO defaults +update-rc.d foo remove + +# valid +FOO=/tmp +FOO=/var/tmp +: ${FOO:=/tmp} +FOO=`mktemp /tmp/scripts.XXXXXX` +rm "$FOO" +FOO=`tempfile -n/tmp/scripts.tmp` +mkdir /var/tmp/scripts +FOO="/tmp/false.positive.XXXXXX" +# invalid +echo foo >>/tmp/scripts.tmp +rm /tmp/scripts.tmp +rmdir /var/tmp/scripts + +# invalid, maintainer-script-hides-init-failure +invoke-rc.d foo start || exit 0 + +# The right way to invoke an rc script +if which invoke-rc.d >/dev/null 2>&1; then + invoke-rc.d package start +else + /etc/init.d/package start +fi + +# Example ucf invocation. +ucf /usr/share/foo/configuration /etc/foo.conf + +# Calling gconftool directly. +gconftool-2 --makefile-install-rule foo.schema + +# Calling gconf-schemas with no dependency. +gconf-schemas --register foo.schema + +# Calling update-xmlcatalog with no dependency. +update-xmlcatalog --add --type system --id "/usr/share/sgml/dtd/foo" \ + --package maintainer-scripts --root + +# Maintainer scripts shouldn't touch /var/lib/dpkg/status. This is the old +# recipe from the dpkg wiki that should be replaced with dpkg-query. +sed -n -e \"/^Conffiles:/,/^[^ ]/{\\\\' /etc/conffile'{s/.* //;p}}\" \ + /var/lib/dpkg/status + +# Don't modify these files. +echo 'broken 6714/tcp' >> /etc/services +cp /nonexistent /etc/protocols +mv /usr/share/doc/rpc /etc/rpc + +# But this is okay. +cp /etc/protocols /etc/protocols.new + +# This is also wrong. +echo 'broken' > /etc/inetd.conf +cp /etc/inetd.conf.new /etc/inetd.conf + +# But this is fine. +cp /etc/inetd.conf /srv/chroot/etc/inetd.conf + +# Deprecated +install-sgmlcatalog --install package +install-sgmlcatalog --remove package + +# This too is a heredoc. +some-program > /etc/config-file <<'EOF' +echo "All of the array is: ${H[@]}" +EOF + +# But this isn't. +cat '</dev/null; then + ucf --purge /etc/foo.conf +fi + +# This isn't allowed. +rm /tmp/foo /dev/device +rm /dev/device1 + +# But this is okay. +rm /tmp/foo > /dev/null + +# Not allowed here even with remove. +install-sgmlcatalog --remove package diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/preinst b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/preinst new file mode 100644 index 00000000..60589785 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/preinst @@ -0,0 +1,18 @@ +#!/bin/sh + +update-rc.d foo remove +update-rc.d bar defaults + +# Obsolete dpkg assertions. +dpkg --assert-support-predepends || exit 1 +dpkg --assert-working-epoch || exit 1 +dpkg --assert-long-filenames || exit 1 +dpkg --assert-multi-conrep || exit 1 + +/bin/grep -E --mmap "^Package: foo$" /var/lib/dpkg/status + +# continuation lines +update-alternatives --install /usr/bin/fakeroot fakeroot \ + /usr/bin/fakeroot-ng 5 \ + --slave /usr/share/man/man1/fakeroot.1.gz \ + fakeroot.1.gz /usr/share/man/man1/fakeroot-ng.1.gz diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/prerm b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/prerm new file mode 100644 index 00000000..076ecafb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/prerm @@ -0,0 +1,188 @@ +#!/bin/sh + +if [ "$1" != "upgrade" ]; then + update-alternatives --remove dummy /usr/bin/dummy-alternative +fi + +if ([ "$1" = "upgrade" ] || [ "$1" = "remove" ]) && [ -L /usr/doc/maintainer-scripts ]; the +n + rm -f /usr/doc/maintainer-scripts +fi + +cat </dev/null +} + +source $FOO + +trap "echo hi" EXIT HUP 3 + +if [[ "$2" = "purge" ]]; then + kill -HUP $$ +fi + +#this is ok though +if test -n $(echo foo | perl -pe 's/[[:space:]]//go'); then + echo 1 +fi + +update-rc.d foo remove + +# More false positives for bashism checks. None of these are errors. +echo "$line" | grep -q '{fonts/map,}/{\$progname,pdftex,dvips,}//' +echo "$line" | grep -q "${fonts},${foo}" +echo '$[1+2]' +printf "foo |& bar" +perl -e "print q( kill -HUP $? )" + +# Still catch disallowed expansions in double-quotes, though. +echo "${line:3:1}" + +# The wrong way to run an init script (no invoke-rc.d). +/etc/init.d/package stop + +# This is the only install-sgmlcatalog call that's allowed. +install-sgmlcatalog --quiet --remove package + +# More bashisms checks + +read -x foo +read -x +read -r foo +read foo +read + +echo "a\\b" +echo 'a\nb' + +echo "${UID}" +echo "$EUID" +echo "$SHLVL" +echo "$DIRSTACK" +echo "$SECONDS" +echo "$BASH" +echo "$BASH_FOO" +echo "$SHELLOPTS" +echo "$PIPESTATUS" + +bar="$(cut '-d|' -f2 <<< "$foo")" + +VAR=1 +VAR+=a + +echos() { + echo -n -e "bar" + echo -e -n "bar" + echo -en "bar" + echo -ne "bar" + echo "bar" + echo "echo -e foo" +} + +ech.os() { + echo foo >& 2 + echo foo >&bar + echo foo >& bar +} + +echoes() { + echo "abc\nxyz" + echo 'xyz\rabc' + echo foo\cbar + + echo -e "abc\nxyz" + echo -net 'xyz\rabc' + echo -e foo\cbar +} + +foobar.() { + suspend x + suspended x + caller x + complete x + compgen x + declare -a foo +} + +.foobar() { + typeset -x bar + disown 1 + builtin foo + set -B + alias -p + unalias -a +} + +IFS="()" + +ulimit +shopt +type -v bar +time ls +dirs +diff <(tac a) <(tac b) + +pushd + +local foo=bar +local -x foo + +popd + +readonly -f + +echo bar > /dev/tcp +export x +export -x x +export -p x + +sh -x +sh -D +sh --foo +sh +O + +# Brace expansion checks +echo {a,b} +echo {abc},{bcd} + +foobar() +{ + # This is a function +} + + foo.bar() +( + # This is a function with a bad name +) + +foobar@() +{ + # As is this +} + +# This is ok +read -r foo +# but these aren't +read -r +read -p "Would you like to restart the service?" foo bar +read --fish + +set -e + +source "$BAR" +source '$BAR' +source ~/bar +source a diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/rules new file mode 100755 index 00000000..5fcef009 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/rules @@ -0,0 +1,35 @@ +#!/usr/bin/make -f + +build-arch: + +build-indep: + +build: build-arch build-indep + +binary-arch: + +binary-indep: + install -d debian/tmp/DEBIAN + install -m 0755 debian/preinst debian/tmp/DEBIAN + install -m 0755 debian/postinst debian/tmp/DEBIAN + install -m 0755 debian/prerm debian/tmp/DEBIAN + install -m 0755 debian/postrm debian/tmp/DEBIAN + install -m 0644 debian/triggers debian/tmp/DEBIAN + install -d debian/tmp/usr/share/doc/maintainer-scripts + install -m 0644 debian/changelog \ + debian/tmp/usr/share/doc/maintainer-scripts/changelog + gzip -n -9 debian/tmp/usr/share/doc/maintainer-scripts/changelog + dpkg-gencontrol -isp + dpkg --build debian/tmp .. + +binary: binary-arch binary-indep + +# Make sure we see dh_clean even in a rule clean depends on. Not the point of +# this test suite, but a convenient place to put it. +clean: clean1 clean2 clean3 +clean1: +clean2: + dh_clean +clean3: + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/triggers b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/triggers new file mode 100644 index 00000000..f6270949 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/triggers @@ -0,0 +1,4 @@ +# Example triggers file +activate foo + +interest bar diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/watch new file mode 100644 index 00000000..430eea3b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/debian/watch @@ -0,0 +1,11 @@ +# A whitespace is fine for uscan: + version=5 + +# Following line should not be matched: +#opts=uversionmangle=s/$/+debian/,dversionmangle=s/foo/bar/ \ +# Following one is incorrect, there's a missing backslash at the end +opts=uversionmangle=s/$/+dfsg/,dversionmangle=s/foo/bar/ + +# 'active' is useless here, but it works anyway +options=active \ +http://domain.tld/foo-(.+)\.tar\.gz \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/eval/hints new file mode 100644 index 00000000..d0f696e6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-maintainer-scripts/eval/hints @@ -0,0 +1,5 @@ +maintainer-scripts (source): package-uses-old-debhelper-compat-version 13 +maintainer-scripts (source): debian-build-system debhelper [debian/rules] +maintainer-scripts (source): debhelper-compat-virtual-relation 13 [debian/control] +maintainer-scripts (source): debhelper-compat-level 13 +maintainer-scripts (source): debhelper-but-no-misc-depends maintainer-scripts diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/ORIGIN new file mode 100644 index 00000000..a4224408 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/legacy-scripts + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/csh-foo b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/csh-foo new file mode 100644 index 00000000..eaf47a15 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/csh-foo @@ -0,0 +1,2 @@ +#! /bin/csh + diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/changelog new file mode 100644 index 00000000..9c6bc545 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/changelog @@ -0,0 +1,41 @@ +scripts (6ds-1ubuntu0.5.10.1) unstable; urgency=low + + * I'm also not able to write my name. + * Added a script in /etc/Xsession.d + * Bizarre version number courtesy of + https://wiki.ubuntu.com/SecurityUpdateProcedures#Prepare + + -- Mark 'HE' Brokschmitt Thu, 23 Jun 2005 14:32:39 +0200 + +scripts (5-1) unstable; urgency=low + + * I'm making a typo in my own name... And I want lintian to warn me about + it. + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 02:26:34 +0200 + +scripts (4-1) unstable; urgency=low + + * Add new example to check that not executable files with a shebang line + called *in don't trigger the script-not-executable warning. + + -- Marc 'HE' Brockschmidt Wed, 14 Apr 2004 19:44:04 +0200 + +scripts (3-3) unstable; urgency=low + + * Add suidperlfoo and some code in debian/rules to + check the new suidperl checks + + -- Frank Lichtenheld Wed, 31 Mar 2004 21:06:20 +0000 + +scripts (2-1) unstable; urgency=low + + * Add tkfoo script for tk checkings + + -- Lintian Maintainers Sat, 21 Feb 2004 17:13:36 +0100 + +scripts (1-0) unstable; urgency=low + + * Initial version + + -- Lintian Maintainers Sat, 10 Feb 2001 15:37:31 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/control new file mode 100644 index 00000000..e172d446 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/control @@ -0,0 +1,15 @@ +Source: scripts +Section: interpreters +Priority: optional +Maintainer: Lintian Maintainers +Uploaders: Jeroen van Wolfelaar , Marc 'HE' Brockschmidt +Standards-Version: 3.2.1 + +Package: scripts +Architecture: all +Depends: test, ruby1.8, build-essential, libssl0.9.7, php7.0-cli +Recommends: tk8.4 | wish +Description: test lintian's script file checks + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/copyright new file mode 100644 index 00000000..ad8a119e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/copyright @@ -0,0 +1,5 @@ +This file contains the phrase "under the same terms as Perl itself" to +trigger warnings about not having common-licenses references. + +This file contains the phrase "public domain" which should suppress +warnings about no copyright date. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/postinst new file mode 100644 index 00000000..7c5baf1f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/postinst @@ -0,0 +1,14 @@ +#!/bin/sh + +if [ -x "/etc/init.d/lsb-broken" ] ; then + update-rc.d lsb-broken defaults >/dev/null +fi +if [ -x "/etc/init.d/no-lsb" ] ; then + update-rc.d no-lsb defaults >/dev/null +fi +if [ -x "/etc/init.d/skeleton" ] ; then + update-rc.d skeleton defaults >/dev/null +fi +if [ -x "/etc/init.d/lsb-other" ] ; then + update-rc.d lsb-other defaults >/dev/null +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/postrm b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/postrm new file mode 100644 index 00000000..8fa75a25 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/postrm @@ -0,0 +1,9 @@ +#!/bin/sh -e + +if [ "$1" = purge ] ; then + update-rc.d lsb-broken remove >/dev/null + update-rc.d no-lsb remove >/dev/null + update-rc.d skeleton remove >/dev/null + update-rc.d lsb-other remove >/dev/null + update-rc.d lsb-other remove >/dev/null +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/preinst b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/preinst new file mode 100644 index 00000000..07995570 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/preinst @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e +set -x + +# +# Some comments here +# + +# This serves as an example of an "empty" script, so +# please do not add any real code here, thank you :) + +#DEBHELPER# + +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/rules new file mode 100755 index 00000000..0b3bf4f5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/rules @@ -0,0 +1,102 @@ +#!/usr/bin/make -f + +tmp=debian/tmp + +build-arch: + echo "Hi, in an arch: all package, I am a bug!" + +build-indep: + +build: build-arch build-indep + +binary-arch: + echo "Hi, in an arch: all package, I am a bug!" + +binary-indep: + install -d $(tmp)/usr/bin/ + install -d $(tmp)/etc/X11/Xsession.d/ + install -d $(tmp)/etc/init.d/ + install -d $(tmp)/etc/csh/login.d/ + install -d $(tmp)/etc/fish.d/ + install -d $(tmp)/usr/share/scripts/ + install -d $(tmp)/usr/share/doc/scripts/ + install -d $(tmp)/usr/lib/cgi-bin + install -d $(tmp)/DEBIAN + + install -m 755 csh-foo $(tmp)/etc/csh/login.d/ + install -m 755 envfoo $(tmp)/usr/bin/ + install -m 755 fish-foo $(tmp)/etc/fish.d/ + install -m 755 jruby-broken $(tmp)/usr/bin/ + install -m 755 perlfoo $(tmp)/usr/bin/ + install -m 755 rubyfoo $(tmp)/usr/bin/ +# This doesn't use "env" but should also trigger script-in-usr-share-doc + install -m 755 rubyfoo $(tmp)/usr/share/doc/scripts/ + install -m 755 make-foo $(tmp)/usr/bin/ + install -m 755 lefty-foo $(tmp)/usr/bin/ + install -m 4751 perlfoo $(tmp)/usr/bin/suidperlfoo2 + install -m 755 sh-broken $(tmp)/usr/bin/ + install -m 4555 suidperlfoo $(tmp)/usr/bin/ + install -m 755 tkfoo $(tmp)/usr/bin/ + install -m 755 wishfoo $(tmp)/usr/bin/ + install -m 644 xsession-test $(tmp)/etc/X11/Xsession.d/ + +# Permissions here aren't part of what's being tested, but let us exercise +# some other errors. + install -m 755 perl-bizarre-1 $(tmp)/usr/bin/ + install -m 750 perl-bizarre-2 $(tmp)/usr/bin/ + install -m 754 perl-bizarre-3 $(tmp)/usr/bin/ + install -m 705 guile-bizarre $(tmp)/usr/bin/ + +# First one should produce a warning; second one shouldn't. + + install -m 644 init-skeleton $(tmp)/etc/init.d/skeleton + install -m 755 init-no-lsb $(tmp)/etc/init.d/no-lsb + install -m 755 init-lsb-broken $(tmp)/etc/init.d/lsb-broken + install -m 755 init-lsb-other $(tmp)/etc/init.d/lsb-other + + install -m 755 phpfoo $(tmp)/usr/share/scripts/ + sed 's/php$$/php7.0/' phpfoo > $(tmp)/usr/share/scripts/php7.0foo + chmod 755 $(tmp)/usr/share/scripts/php7.0foo + + install -m 755 phpenvfoo $(tmp)/usr/share/scripts/ + sed 's/php$$/php7.0/' phpenvfoo > $(tmp)/usr/share/scripts/php7.0envfoo + chmod 755 $(tmp)/usr/share/scripts/php7.0envfoo + + echo "#!/usr/bin/perl" >> $(tmp)/usr/share/scripts/foobar.in + chmod 644 $(tmp)/usr/share/scripts/foobar.in + + touch $(tmp)/usr/share/scripts/mono.exe + chmod 755 $(tmp)/usr/share/scripts/mono.exe + + echo "#!/bin/sh" > $(tmp)/usr/share/scripts/foo\$$bar + chmod 755 $(tmp)/usr/share/scripts/foo\$$bar + + echo "#!/bin/sh" > $(tmp)/usr/lib/cgi-bin/cgi-script + chmod 755 $(tmp)/usr/lib/cgi-bin/cgi-script + + echo "#!/bin/sh" > $(tmp)/usr/bin/test.sh + chmod 755 $(tmp)/usr/bin/test.sh + + + dh_testroot # dummy to test missing debhelper dependency + + + install -m 644 debian/changelog $(tmp)/usr/share/doc/scripts/changelog.Debian + gzip -n -9 $(tmp)/usr/share/doc/scripts/changelog.Debian + install -m 644 debian/copyright $(tmp)/usr/share/doc/scripts/copyright + + install -m 644 debian/scripts.conffiles $(tmp)/DEBIAN/conffiles + install -m 755 debian/preinst $(tmp)/DEBIAN/preinst + install -m 755 debian/postinst $(tmp)/DEBIAN/postinst + install -m 755 debian/postrm $(tmp)/DEBIAN/postrm + touch $(tmp)/DEBIAN/prerm + chmod 755 $(tmp)/DEBIAN/prerm + dpkg-gencontrol -isp + dpkg --build $(tmp) .. + +binary: binary-arch binary-indep + +clean: + rm -rf debian/files $(tmp) debian/substvars + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/scripts.conffiles b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/scripts.conffiles new file mode 100644 index 00000000..01a371a6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/scripts.conffiles @@ -0,0 +1,6 @@ +/etc/init.d/lsb-broken +/etc/init.d/lsb-other +/etc/init.d/no-lsb +/etc/X11/Xsession.d/xsession-test +/etc/csh/login.d/csh-foo +/etc/fish.d/fish-foo diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/watch new file mode 100644 index 00000000..dba58153 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/debian/watch @@ -0,0 +1,8 @@ +# watch file with upstream version mangling + +version=2 +opts="uversionmangle=s/$/ds/" \ +http://qa.debian.org/watch/sf.php?project=foo scripts\.([\d.]+)\.tar\.gz debian uupdate + +version=3 +http://ftp.sf.net/foo/foo_bar(.+)\.Z 5 uupdate \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/envfoo b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/envfoo new file mode 100755 index 00000000..e005037f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/envfoo @@ -0,0 +1,4 @@ +#! /bin/env python + +if __name__ == '__main__': + print 'Hi there' diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/eval/hints new file mode 100644 index 00000000..74036900 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/eval/hints @@ -0,0 +1,7 @@ +scripts (source): package-uses-deprecated-debhelper-compat-version 1 +scripts (source): package-uses-debhelper-but-lacks-build-depends [debian/rules] +scripts (source): no-versioned-debhelper-prerequisite 1 +scripts (source): missing-build-dependency-for-dh_-command dh_testroot (does not satisfy debhelper:any | debhelper-compat:any) [debian/rules] +scripts (source): debian-build-system debhelper [debian/rules] +scripts (source): debhelper-but-no-misc-depends scripts +scripts (source): debhelper-base-compat-level-is-missing diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/fish-foo b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/fish-foo new file mode 100644 index 00000000..7f59139a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/fish-foo @@ -0,0 +1,2 @@ +#! /usr/bin/fish + diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/guile-bizarre b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/guile-bizarre new file mode 100644 index 00000000..70e2c745 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/guile-bizarre @@ -0,0 +1,6 @@ +#! /bin/sh +# -*- scheme -*- +exec guile -s $0 $* +# Seen in the wild as build-guile-gtk in libguilegtk-1.2-dev (0.31-5.1) +# Tests script_is_evil_and_wrong +!# diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/init-lsb-broken b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/init-lsb-broken new file mode 100644 index 00000000..e4dfa92b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/init-lsb-broken @@ -0,0 +1,34 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: bad-lsb +# Required-Start: $local_fs $remote_fs +# Required-Stop: +# Default-Start: 1 2 3 4 5 +# Default-Stop: S 0 1 6 X +# Short-Description: Example Lintian initscript +# but this can't be continued +# Description: An example of a bad LSB section in an init script. +# This continuation is allowed (with spaces). +# This one is too (with tabs). +# X-Debian-Foo: Some unknown but valid keyword. +# Foo: Some invalid keyword. + +# Whoops, no terminating line. + +# And then we have this duplicate section. +### BEGIN INIT INFO +# Required-Start: This one doesn't count. +### END INIT INFO + +# Hey, look at all of those missing actions! But stop isn't missing. +case "$1" in + start|stop) + echo "Blah" + ;; + *) + echo "Usage: foo start" >&2 + exit 3 + ;; +esac + +: diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/init-lsb-other b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/init-lsb-other new file mode 100644 index 00000000..adb47959 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/init-lsb-other @@ -0,0 +1,22 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: lsb-other +# Required-Start: $local_fs $remote_fs +# Required-Stop: $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Description: This is another LSB script test, which has a missing +# Short-Description. +### END INIT INFO + +case "$1" in + start|stop|restart|reload|force-reload) + echo "Blah" + ;; + *) + echo "Usage: foo start" >&2 + exit 3 + ;; +esac + +: diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/init-no-lsb b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/init-no-lsb new file mode 100644 index 00000000..6b994dd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/init-no-lsb @@ -0,0 +1,17 @@ +#! /bin/sh +# No LSB section, but otherwise okay. (Well, the messages are bad, but we +# don't check that yet.) + +case "$1" in + start) + echo "Blah starting" + ;; + stop) + echo "Blah stopping" + ;; + restart|force-reload) + echo "Blah restarting" + ;; +esac + +: diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/init-skeleton b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/init-skeleton new file mode 100644 index 00000000..c868508f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/init-skeleton @@ -0,0 +1,150 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: skeleton +# Required-Start: $local_fs $remote_fs +# Required-Stop: $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: S 0 1 6 +# Short-Description: Example Lintian initscript +# Description: This file should be used to construct scripts to be +# placed in /etc/init.d. +### END INIT INFO + +# Do NOT "set -e" + +# PATH should only include /usr/* if it runs after the mountnfs.sh script +PATH=/usr/sbin:/usr/bin:/sbin:/bin +DESC="Description of the service" +NAME=daemonexecutablename +DAEMON=/usr/sbin/$NAME +DAEMON_ARGS="--options args" +PIDFILE=/var/run/$NAME.pid +SCRIPTNAME=/etc/init.d/$NAME + +# Exit if the package is not installed +[ -x "$DAEMON" ] || exit 0 + +# Read configuration variable file if it is present +[ -r /etc/default/$NAME ] && . /etc/default/$NAME + +# Load the VERBOSE setting and other rcS variables +[ -f /etc/default/rcS ] && . /etc/default/rcS + +# Define LSB log_* functions. +# Depend on lsb-base (>= 3.0-6) to ensure that this file is present. +. /lib/lsb/init-functions + +# +# Function that starts the daemon/service +# +do_start() +{ + # Return + # 0 if daemon has been started + # 1 if daemon was already running + # 2 if daemon could not be started + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ + || return 1 + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ + $DAEMON_ARGS \ + || return 2 + # Add code here, if necessary, that waits for the process to be ready + # to handle requests from services started subsequently which depend + # on this one. As a last resort, sleep for some time. +} + +# +# Function that stops the daemon/service +# +do_stop() +{ + # Return + # 0 if daemon has been stopped + # 1 if daemon was already stopped + # 2 if daemon could not be stopped + # other if a failure occurred + start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME + RETVAL="$?" + [ "$RETVAL" = 2 ] && return 2 + # Wait for children to finish too if this is a daemon that forks + # and if the daemon is only ever run from this initscript. + # If the above conditions are not satisfied then add some other code + # that waits for the process to drop all resources that could be + # needed by services started subsequently. A last resort is to + # sleep for some time. + start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON + [ "$?" = 2 ] && return 2 + # Many daemons don't delete their pidfiles when they exit. + rm -f $PIDFILE + return "$RETVAL" +} + +# +# Function that sends a SIGHUP to the daemon/service +# +do_reload() { + # + # If the daemon can reload its configuration without + # restarting (for example, when it is sent a SIGHUP), + # then implement that here. + # + start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME + return 0 +} + +case "$1" in + start) + [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" + do_start + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + stop) + [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" + do_stop + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + #reload|force-reload) + # + # If do_reload() is not implemented then leave this commented out + # and leave 'force-reload' as an alias for 'restart'. + # + #log_daemon_msg "Reloading $DESC" "$NAME" + #do_reload + #log_end_msg $? + #;; + restart|force-reload) + # + # If the "reload" option is implemented then remove the + # 'force-reload' alias + # + log_daemon_msg "Restarting $DESC" "$NAME" + do_stop + case "$?" in + 0|1) + do_start + case "$?" in + 0) log_end_msg 0 ;; + 1) log_end_msg 1 ;; # Old process is still running + *) log_end_msg 1 ;; # Failed to start + esac + ;; + *) + # Failed to stop + log_end_msg 1 + ;; + esac + ;; + *) + #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 + exit 3 + ;; +esac + +: diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/jruby-broken b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/jruby-broken new file mode 100644 index 00000000..56f574df --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/jruby-broken @@ -0,0 +1,2 @@ +#!/usr/bin/jruby +# There's no non-versioned jruby, so this should be an error. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/lefty-foo b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/lefty-foo new file mode 100644 index 00000000..52c003ed --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/lefty-foo @@ -0,0 +1,2 @@ +#!/usr/local/bin/lefty + diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/make-foo b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/make-foo new file mode 100644 index 00000000..6b787b50 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/make-foo @@ -0,0 +1,3 @@ +#!/usr/bin/make + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/perl-bizarre-1 b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/perl-bizarre-1 new file mode 100644 index 00000000..fc632c85 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/perl-bizarre-1 @@ -0,0 +1,11 @@ +#! /bin/sh +eval '(exit $?0)' && eval 'PERL_BADLANG=x;export PERL_BADLANG;: \ +;exec perl -x -S -- "$0" ${1+"$@"};#'if 0; +eval 'setenv PERL_BADLANG x;exec perl -x -S -- "$0" $argv:q;#'.q+ +#!perl -w +package Htex::a2ping; $0=~/(.*)/s;unshift@INC,'.';do($1);die$@if$@;__END__+if !1; +# This Perl script was generated by JustLib2 at Wed Apr 23 09:14:13 2003. +# Don't touch/remove any lines above; http://www.inf.bme.hu/~pts/justlib + +# The above was actually seen in the wild and stresses the +# script_is_evil_and_wrong test. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/perl-bizarre-2 b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/perl-bizarre-2 new file mode 100644 index 00000000..afd9cfe5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/perl-bizarre-2 @@ -0,0 +1,7 @@ +#!/bin/sh +eval 'exec /usr/bin/perl -wS $0 ${1+"$@"}' + if $running_under_some_shell; + +# I'm someone following perlrun except without using the Perl #! line. +# Now something to choke bash. +while (<>) { if (/%#/) { print } } diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/perl-bizarre-3 b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/perl-bizarre-3 new file mode 100644 index 00000000..44baf75e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/perl-bizarre-3 @@ -0,0 +1,6 @@ +eval '(exit $?0)' && eval 'exec perl -wS $0 ${1+"$@"}' +& eval 'exec /usr/bin/perl -wS $0 $argv:q' + if $running_under_some_shell; + +# More utterly bizarreness from perlrun. This one even doesn't work if +# there's a valid #! line on the first line. I don't understand why.... diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/perlfoo b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/perlfoo new file mode 100644 index 00000000..5b27ed0b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/perlfoo @@ -0,0 +1,3 @@ +#! /usr/bin/perl + +print "Hello, World!"; diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/phpenvfoo b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/phpenvfoo new file mode 100644 index 00000000..cbbfb2eb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/phpenvfoo @@ -0,0 +1,7 @@ +#!/usr/bin/env php + + +Dumb PHP script + + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/phpfoo b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/phpfoo new file mode 100644 index 00000000..e0595e65 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/phpfoo @@ -0,0 +1,7 @@ +#!/usr/bin/php + + +Dumb PHP script + + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/rubyfoo b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/rubyfoo new file mode 100644 index 00000000..80246058 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/rubyfoo @@ -0,0 +1,4 @@ +#!/bin/ruby1.8 + +# Ok, that example is really pathetic, but until we have +# some better code in checks/scripts, it will do diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/sh-broken b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/sh-broken new file mode 100644 index 00000000..7b790744 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/sh-broken @@ -0,0 +1,2 @@ +#!/bin/sh +if fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/suidperlfoo b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/suidperlfoo new file mode 100644 index 00000000..bcbc471d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/suidperlfoo @@ -0,0 +1,3 @@ +#! /usr/bin/suidperl + +print "Hello, World!"; diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/tkfoo b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/tkfoo new file mode 100755 index 00000000..533595a5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/tkfoo @@ -0,0 +1,31 @@ +#!/bin/sh +# +# Insane amount of empty lines and comments + +# +# +# +# + +# +# + +# +# +# + +# +# + +# +# This line makes the next one a comment in Tcl \ +exec wish "$0" -- ${1+"$@"} + +# lintian should not check the following for syntax +# if it detects the line above correctly +# Code snippet taken from eTkTab + +if { [array names prefs keybindings] != "" } { + # Read in the file + array set unparsed_bindings [ read_settings_file $prefs(keybindings)] +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/wishfoo b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/wishfoo new file mode 100644 index 00000000..035c9ad1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/wishfoo @@ -0,0 +1,4 @@ +#!/usr/bin/wish +# +# This is not actually a wish script, here to force a test of wish +# dependencies. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/xsession-test b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/xsession-test new file mode 100644 index 00000000..ca49d729 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/legacy-scripts/xsession-test @@ -0,0 +1,3 @@ +#!/bin/sh + +echo "Foo." diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/oeverride-typo/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/oeverride-typo/ORIGIN new file mode 100644 index 00000000..86af652e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/oeverride-typo/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/oeverride-typo + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/oeverride-typo/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/oeverride-typo/debian/changelog new file mode 100644 index 00000000..4cc118af --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/oeverride-typo/debian/changelog @@ -0,0 +1,17 @@ +oeverride-typo (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: oeverride-typo + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +oeverride-typo (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: oeverride-typo + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/oeverride-typo/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/oeverride-typo/debian/control new file mode 100644 index 00000000..8cef68da --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/oeverride-typo/debian/control @@ -0,0 +1,17 @@ +Source: oeverride-typo +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: oeverride-typo +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Uses the misspelling 'oeverride' in a dh rule target + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/oeverride-typo/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/oeverride-typo/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/oeverride-typo/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/oeverride-typo/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/oeverride-typo/debian/rules new file mode 100755 index 00000000..c62e10f9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/oeverride-typo/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh $@ + +# typo in prefix +oeverride_dh_missing: diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/oeverride-typo/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/oeverride-typo/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/oeverride-typo/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/oeverride-typo/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/oeverride-typo/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/oeverride-typo/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/oeverride-typo/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/oeverride-typo/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/oeverride-typo/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/oeverride-typo/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/oeverride-typo/eval/hints new file mode 100644 index 00000000..d5e89cb9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/oeverride-typo/eval/hints @@ -0,0 +1,4 @@ +oeverride-typo (source): typo-in-debhelper-override-target oeverride_dh_missing => override_dh_missing [debian/rules:7] +oeverride-typo (source): debian-build-system dh [debian/rules] +oeverride-typo (source): debhelper-compat-virtual-relation 14 [debian/control] +oeverride-typo (source): debhelper-compat-level 14 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-does-not-use-debhelper/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-does-not-use-debhelper/ORIGIN new file mode 100644 index 00000000..1b6ff941 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-does-not-use-debhelper/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/package-does-not-use-debhelper + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-does-not-use-debhelper/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-does-not-use-debhelper/debian/changelog new file mode 100644 index 00000000..00e59463 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-does-not-use-debhelper/debian/changelog @@ -0,0 +1,17 @@ +package-does-not-use-debhelper (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: package-does-not-use-debhelper + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +package-does-not-use-debhelper (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: package-does-not-use-debhelper + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-does-not-use-debhelper/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-does-not-use-debhelper/debian/control new file mode 100644 index 00000000..773b2edf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-does-not-use-debhelper/debian/control @@ -0,0 +1,14 @@ +Source: package-does-not-use-debhelper +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: binary-targets + +Package: package-does-not-use-debhelper +Architecture: all +Description: Test for packages not using debhelper + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-does-not-use-debhelper/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-does-not-use-debhelper/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-does-not-use-debhelper/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-does-not-use-debhelper/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-does-not-use-debhelper/debian/rules new file mode 100755 index 00000000..24a53e2b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-does-not-use-debhelper/debian/rules @@ -0,0 +1,23 @@ +#!/usr/bin/make -f + +PKG = debhelper-package-does-not-use-debhelper +DOCS = debian/tmp/usr/share/doc/$(PKG) + +clean: + rm -rf debian/tmp + +build: + +binary: + install -d debian/tmp/DEBIAN $(DOCS) + install -m 0644 -t $(DOCS) debian/copyright debian/changelog + gzip -9n $(DOCS)/changelog + cd debian/tmp && \ + find * -type f ! -regex "DEBIAN/.*" -print0 | \ + LC_ALL=C sort -z | xargs -0r md5sum > DEBIAN/md5sums + chown -R 0:0 debian/tmp + chmod -R u+w,go=rX debian/tmp + dpkg-gencontrol + dpkg --build debian/tmp .. + +.PHONY: binary binary-arch binary-indep build-arch build-indep clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-does-not-use-debhelper/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-does-not-use-debhelper/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-does-not-use-debhelper/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-does-not-use-debhelper/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-does-not-use-debhelper/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-does-not-use-debhelper/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-does-not-use-debhelper/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-does-not-use-debhelper/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-does-not-use-debhelper/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-does-not-use-debhelper/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-does-not-use-debhelper/eval/hints new file mode 100644 index 00000000..adb64397 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-does-not-use-debhelper/eval/hints @@ -0,0 +1,2 @@ +package-does-not-use-debhelper (source): package-does-not-use-debhelper [debian/rules] +package-does-not-use-debhelper (source): debian-build-system other [debian/rules] diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-build-driver/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-build-driver/ORIGIN new file mode 100644 index 00000000..d22d1979 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-build-driver/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/package-uses-debputy-build-driver +Skeleton: upload-builder-only + +Filled test-package sources from t/templates + t/skeletons and the +build-spec overlay. Does not build .deb / .dsc / .changes; tests do that. +eval/hints is transcribed verbatim. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-build-driver/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-build-driver/debian/changelog new file mode 100644 index 00000000..92e6d014 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-build-driver/debian/changelog @@ -0,0 +1,6 @@ +package-uses-debputy-build-driver (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: package-uses-debputy-build-driver + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-build-driver/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-build-driver/debian/control new file mode 100644 index 00000000..41439983 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-build-driver/debian/control @@ -0,0 +1,14 @@ +Source: package-uses-debputy-build-driver +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: dh-debputy +Build-Driver: debputy + +Package: package-uses-debputy-build-driver +Architecture: all +Description: Test for packages using debputy as Build-Driver + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-build-driver/eval/desc b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-build-driver/eval/desc new file mode 100644 index 00000000..dd0e8cd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-build-driver/eval/desc @@ -0,0 +1,2 @@ +Testname: package-uses-debputy-build-driver +Check: debhelper diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-build-driver/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-build-driver/eval/hints new file mode 100644 index 00000000..06d00ada --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-build-driver/eval/hints @@ -0,0 +1,2 @@ +package-uses-debputy-build-driver (source): package-does-not-use-debhelper [debian/control:7] +package-uses-debputy-build-driver (source): debian-build-system debputy [debian/control] diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-sequencer/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-sequencer/ORIGIN new file mode 100644 index 00000000..3cd0ca08 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-sequencer/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/package-uses-debputy-sequencer + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-sequencer/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-sequencer/debian/changelog new file mode 100644 index 00000000..cdf343b9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-sequencer/debian/changelog @@ -0,0 +1,17 @@ +package-uses-debputy-sequencer (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: package-uses-debputy-sequencer + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +package-uses-debputy-sequencer (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: package-uses-debputy-sequencer + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-sequencer/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-sequencer/debian/control new file mode 100644 index 00000000..77487e50 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-sequencer/debian/control @@ -0,0 +1,13 @@ +Source: package-uses-debputy-sequencer +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), dh-sequence-zz-debputy + +Package: package-uses-debputy-sequencer +Architecture: all +Description: Test for packages using debputy sequencer + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-sequencer/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-sequencer/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-sequencer/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-sequencer/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-sequencer/debian/rules new file mode 100755 index 00000000..b8b1ea0e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-sequencer/debian/rules @@ -0,0 +1,6 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-sequencer/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-sequencer/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-sequencer/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-sequencer/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-sequencer/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-sequencer/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-sequencer/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-sequencer/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-sequencer/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-sequencer/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-sequencer/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-sequencer/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-sequencer/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-sequencer/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-sequencer/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-sequencer/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-sequencer/eval/hints new file mode 100644 index 00000000..bba1c6cd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-debputy-sequencer/eval/hints @@ -0,0 +1,3 @@ +package-uses-debputy-sequencer (source): debian-build-system dh [debian/rules] +package-uses-debputy-sequencer (source): debhelper-compat-virtual-relation 14 [debian/control] +package-uses-debputy-sequencer (source): debhelper-compat-level 14 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-x-dh-compat/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-x-dh-compat/ORIGIN new file mode 100644 index 00000000..1fe8c409 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-x-dh-compat/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/package-uses-x-dh-compat + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-x-dh-compat/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-x-dh-compat/debian/changelog new file mode 100644 index 00000000..d9c3ca8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-x-dh-compat/debian/changelog @@ -0,0 +1,17 @@ +package-uses-x-dh-compat (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: package-uses-x-dh-compat + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +package-uses-x-dh-compat (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: package-uses-x-dh-compat + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-x-dh-compat/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-x-dh-compat/debian/control new file mode 100644 index 00000000..124b3dfd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-x-dh-compat/debian/control @@ -0,0 +1,14 @@ +Source: package-uses-x-dh-compat +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 13.15~) +X-DH-Compat: 14 + +Package: package-uses-x-dh-compat +Architecture: all +Description: Test for packages using X-DH-Compat to specify compat level + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-x-dh-compat/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-x-dh-compat/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-x-dh-compat/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-x-dh-compat/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-x-dh-compat/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-x-dh-compat/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-x-dh-compat/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-x-dh-compat/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-x-dh-compat/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-x-dh-compat/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-x-dh-compat/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-x-dh-compat/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-x-dh-compat/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-x-dh-compat/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-x-dh-compat/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-x-dh-compat/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-x-dh-compat/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-x-dh-compat/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-x-dh-compat/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-x-dh-compat/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-x-dh-compat/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-x-dh-compat/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-x-dh-compat/eval/hints new file mode 100644 index 00000000..f95c034b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/package-uses-x-dh-compat/eval/hints @@ -0,0 +1,2 @@ +package-uses-x-dh-compat (source): debian-build-system dh [debian/rules] +package-uses-x-dh-compat (source): debhelper-compat-level 14 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/rules-uses-deprecated-systemd-override/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/rules-uses-deprecated-systemd-override/ORIGIN new file mode 100644 index 00000000..46a211dd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/rules-uses-deprecated-systemd-override/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/rules-uses-deprecated-systemd-override + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/rules-uses-deprecated-systemd-override/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/rules-uses-deprecated-systemd-override/debian/changelog new file mode 100644 index 00000000..7a4f2de3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/rules-uses-deprecated-systemd-override/debian/changelog @@ -0,0 +1,17 @@ +rules-uses-deprecated-systemd-override (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-uses-deprecated-systemd-override + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +rules-uses-deprecated-systemd-override (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-uses-deprecated-systemd-override + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/rules-uses-deprecated-systemd-override/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/rules-uses-deprecated-systemd-override/debian/control new file mode 100644 index 00000000..2af822f7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/rules-uses-deprecated-systemd-override/debian/control @@ -0,0 +1,17 @@ +Source: rules-uses-deprecated-systemd-override +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 12) +Homepage: https://lintian.debian.org/ + +Package: rules-uses-deprecated-systemd-override +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for override_dh_systemd_enable with compat levels 11 + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/rules-uses-deprecated-systemd-override/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/rules-uses-deprecated-systemd-override/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/rules-uses-deprecated-systemd-override/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/rules-uses-deprecated-systemd-override/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/rules-uses-deprecated-systemd-override/debian/rules new file mode 100755 index 00000000..d5fb60d4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/rules-uses-deprecated-systemd-override/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_systemd_enable: + dh_systemd_enable + +override_dh_systemd_start: + dh_systemd_start + +override_dh_systemd_start-arch: + dh_systemd_start diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/rules-uses-deprecated-systemd-override/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/rules-uses-deprecated-systemd-override/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/rules-uses-deprecated-systemd-override/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/rules-uses-deprecated-systemd-override/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/rules-uses-deprecated-systemd-override/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/rules-uses-deprecated-systemd-override/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/rules-uses-deprecated-systemd-override/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/rules-uses-deprecated-systemd-override/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/rules-uses-deprecated-systemd-override/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/rules-uses-deprecated-systemd-override/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/rules-uses-deprecated-systemd-override/eval/hints new file mode 100644 index 00000000..466a42e0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/rules-uses-deprecated-systemd-override/eval/hints @@ -0,0 +1,6 @@ +rules-uses-deprecated-systemd-override (source): package-uses-old-debhelper-compat-version 12 +rules-uses-deprecated-systemd-override (source): debian-rules-uses-deprecated-systemd-override override_dh_systemd_start-arch [debian/rules:12] +rules-uses-deprecated-systemd-override (source): debian-rules-uses-deprecated-systemd-override override_dh_systemd_enable [debian/rules:6] +rules-uses-deprecated-systemd-override (source): debian-build-system dh [debian/rules] +rules-uses-deprecated-systemd-override (source): debhelper-compat-virtual-relation 12 [debian/control] +rules-uses-deprecated-systemd-override (source): debhelper-compat-level 12 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/temporary/debhelper-internal-files/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debhelper/temporary/debhelper-internal-files/ORIGIN new file mode 100644 index 00000000..abc09c24 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/temporary/debhelper-internal-files/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debhelper/temporary/debhelper-internal-files + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/temporary/debhelper-internal-files/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debhelper/temporary/debhelper-internal-files/debian/changelog new file mode 100644 index 00000000..d4ecd050 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/temporary/debhelper-internal-files/debian/changelog @@ -0,0 +1,17 @@ +debhelper-internal-files (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-internal-files + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-internal-files (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-internal-files + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/temporary/debhelper-internal-files/debian/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/temporary/debhelper-internal-files/debian/control new file mode 100644 index 00000000..b2b8c61b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/temporary/debhelper-internal-files/debian/control @@ -0,0 +1,17 @@ +Source: debhelper-internal-files +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: debhelper-internal-files +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for spotting unremoved debhelper temp files + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/temporary/debhelper-internal-files/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debhelper/temporary/debhelper-internal-files/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/temporary/debhelper-internal-files/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/temporary/debhelper-internal-files/debian/package.debhelper.log b/packages/debmagic/tests/lintian-parity/checks/debhelper/temporary/debhelper-internal-files/debian/package.debhelper.log new file mode 100644 index 00000000..3cb1115f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/temporary/debhelper-internal-files/debian/package.debhelper.log @@ -0,0 +1 @@ +debhelper log file for package diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/temporary/debhelper-internal-files/debian/package.postinst.debhelper b/packages/debmagic/tests/lintian-parity/checks/debhelper/temporary/debhelper-internal-files/debian/package.postinst.debhelper new file mode 100644 index 00000000..1cd1647e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/temporary/debhelper-internal-files/debian/package.postinst.debhelper @@ -0,0 +1 @@ +Internal debhelper file for package diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/temporary/debhelper-internal-files/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debhelper/temporary/debhelper-internal-files/debian/rules new file mode 100755 index 00000000..b792adba --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/temporary/debhelper-internal-files/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh $@ + +clean: + # No such thing diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/temporary/debhelper-internal-files/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debhelper/temporary/debhelper-internal-files/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/temporary/debhelper-internal-files/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/temporary/debhelper-internal-files/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debhelper/temporary/debhelper-internal-files/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/temporary/debhelper-internal-files/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/temporary/debhelper-internal-files/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debhelper/temporary/debhelper-internal-files/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/temporary/debhelper-internal-files/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debhelper/temporary/debhelper-internal-files/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debhelper/temporary/debhelper-internal-files/eval/hints new file mode 100644 index 00000000..1e0d3cf5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debhelper/temporary/debhelper-internal-files/eval/hints @@ -0,0 +1,2 @@ +debhelper-internal-files (source): temporary-debhelper-file [debian/package.postinst.debhelper] +debhelper-internal-files (source): temporary-debhelper-file [debian/package.debhelper.log] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/ORIGIN new file mode 100644 index 00000000..867f88e5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/debian/changelog new file mode 100644 index 00000000..6ac188b9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/debian/changelog @@ -0,0 +1,17 @@ +changelog-distribution-does-not-match-changes-file (1.0) experimental; urgency=low + + * Lintian Test Suite. + * Test: changelog-distribution-does-not-match-changes-file + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-distribution-does-not-match-changes-file (0.0.1) experimental; urgency=low + + * Lintian Test Suite. + * Test: changelog-distribution-does-not-match-changes-file + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/debian/control new file mode 100644 index 00000000..ce1cb66a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/debian/control @@ -0,0 +1,17 @@ +Source: changelog-distribution-does-not-match-changes-file +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-distribution-does-not-match-changes-file +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test upload with unstable in changes but experimental in changelog + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/eval/hints new file mode 100644 index 00000000..cede1172 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/eval/hints @@ -0,0 +1 @@ +changelog-distribution-does-not-match-changes-file (binary): changelog-distribution-does-not-match-changes-file experimental != unstable [usr/share/doc/changelog-distribution-does-not-match-changes-file/changelog.gz:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-become-native/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-become-native/ORIGIN new file mode 100644 index 00000000..d8f3c1b7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-become-native/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-become-native + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-become-native/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-become-native/debian/changelog new file mode 100644 index 00000000..e1e62b10 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-become-native/debian/changelog @@ -0,0 +1,12 @@ +changelog-file-become-native (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-become-native + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-become-native (0.1-2) unstable; urgency=low + + * An earlier non-native version. + + -- Debian Lintian Maintainers Tue, 1 Jan 2008 22:45:57 +0000 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-become-native/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-become-native/debian/control new file mode 100644 index 00000000..39ec3eb5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-become-native/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-become-native +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-become-native +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for packages where the version suddenly becomes native + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-become-native/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-become-native/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-become-native/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-become-native/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-become-native/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-become-native/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-become-native/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-become-native/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-become-native/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-become-native/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-become-native/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-become-native/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-become-native/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-become-native/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-become-native/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-become-native/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-become-native/eval/hints new file mode 100644 index 00000000..05caab0c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-become-native/eval/hints @@ -0,0 +1 @@ +changelog-file-become-native (source): odd-historical-debian-changelog-version 0.1-2 (for native) [debian/changelog:8] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/ORIGIN new file mode 100644 index 00000000..d74d449f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/debian/changelog new file mode 100644 index 00000000..fee1e8a5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/debian/changelog @@ -0,0 +1,12 @@ +changelog-file-consecutive-debian-revision-unrel (1.0-1) unstable; urgency=low + + * Version reused, new source package name. + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-consecutive-debian-revision-unrel-oldname (1.0-3) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-consecutive-debian-revision-unrel + + -- Debian Lintian Maintainers Fri, 06 Feb 2009 22:22:37 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/debian/control new file mode 100644 index 00000000..b703e55d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-consecutive-debian-revision-unrel +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-consecutive-debian-revision-unrel +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for false positive in non-consecutive-debian-revision + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name-native/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name-native/ORIGIN new file mode 100644 index 00000000..92907d1a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name-native/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name-native + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name-native/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name-native/debian/changelog new file mode 100644 index 00000000..0a04c5ed --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name-native/debian/changelog @@ -0,0 +1,17 @@ +changelog-file-dch-wrong-name-native (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-dch-wrong-name-native + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-dch-wrong-name-native (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-dch-wrong-name-native + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name-native/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name-native/debian/control new file mode 100644 index 00000000..f80d040d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name-native/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-dch-wrong-name-native +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-dch-wrong-name-native +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test if Debian changelog has the wrong name + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name-native/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name-native/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name-native/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name-native/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name-native/debian/rules new file mode 100755 index 00000000..c8b797ab --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name-native/debian/rules @@ -0,0 +1,11 @@ +#!/usr/bin/make -f + +PKG:=$(shell dh_listpackages) +DOC_DIR:=debian/$(PKG)/usr/share/doc/$(PKG) + +%: + dh $@ + +override_dh_md5sums: + mv $(DOC_DIR)/changelog.gz $(DOC_DIR)/changelog.Debian.gz + dh_md5sums diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name-native/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name-native/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name-native/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name-native/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name-native/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name-native/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name-native/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name-native/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name-native/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name-native/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name-native/eval/hints new file mode 100644 index 00000000..dae41eee --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name-native/eval/hints @@ -0,0 +1 @@ +changelog-file-dch-wrong-name-native (binary): wrong-name-for-changelog-of-native-package [usr/share/doc/changelog-file-dch-wrong-name-native/changelog.Debian.gz] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/ChangeLog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/ChangeLog new file mode 100644 index 00000000..a935b07f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/ChangeLog @@ -0,0 +1,5 @@ +2011-09-10 Niels Thykier + + * This is a non-Debian ChangeLog. Lintian should not be tricked + to believe this is a Debian changelog. + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/ORIGIN new file mode 100644 index 00000000..79095312 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/debian/changelog new file mode 100644 index 00000000..4d4ddf62 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/debian/changelog @@ -0,0 +1,17 @@ +changelog-file-dch-wrong-name (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-dch-wrong-name + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-dch-wrong-name (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-dch-wrong-name + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/debian/control new file mode 100644 index 00000000..77fc9123 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-dch-wrong-name +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-dch-wrong-name +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test if Debian changelog has the wrong name + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/debian/rules new file mode 100755 index 00000000..2d5cd311 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/debian/rules @@ -0,0 +1,11 @@ +#!/usr/bin/make -f + +PKG:=$(shell dh_listpackages) +DOC_DIR:=debian/$(PKG)/usr/share/doc/$(PKG) + +%: + dh $@ + +override_dh_md5sums: + mv $(DOC_DIR)/changelog.Debian.gz $(DOC_DIR)/changelog.debian.gz + dh_md5sums diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/eval/hints new file mode 100644 index 00000000..b726e934 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-dch-wrong-name/eval/hints @@ -0,0 +1 @@ +changelog-file-dch-wrong-name (binary): wrong-name-for-debian-changelog-file [usr/share/doc/changelog-file-dch-wrong-name/changelog.debian.gz] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry-unrel/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry-unrel/ORIGIN new file mode 100644 index 00000000..1c3f1715 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry-unrel/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-empty-entry-unrel + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry-unrel/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry-unrel/debian/changelog new file mode 100644 index 00000000..183628ef --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry-unrel/debian/changelog @@ -0,0 +1,12 @@ +changelog-file-empty-entry-unrel (1.0) UNRELEASED; urgency=low + + * . + * + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-empty-entry-unrel (0.1) unstable; urgency=low + + * First upload (Closes: #123456). + + -- Debian Lintian Maintainers Fri, 06 Feb 2009 22:22:37 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry-unrel/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry-unrel/debian/control new file mode 100644 index 00000000..4f96b0dd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry-unrel/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-empty-entry-unrel +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-empty-entry-unrel +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check changelog empty entry (UNRELEASED) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry-unrel/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry-unrel/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry-unrel/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry-unrel/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry-unrel/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry-unrel/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry-unrel/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry-unrel/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry-unrel/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry-unrel/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry-unrel/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry-unrel/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry-unrel/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry-unrel/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry-unrel/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry-unrel/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry-unrel/eval/hints new file mode 100644 index 00000000..2b08d4c3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry-unrel/eval/hints @@ -0,0 +1 @@ +changelog-file-empty-entry-unrel (binary): debian-changelog-line-too-short . [usr/share/doc/changelog-file-empty-entry-unrel/changelog.gz:3] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry/ORIGIN new file mode 100644 index 00000000..a8dd24be --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (3d907cb9f489573ab5a581d13f640319335262b6) +t/recipes/checks/debian/changelog/changelog-file-empty-entry +Skeleton: upload-native + +Filled test-package sources from t/templates + t/skeletons and the +build-spec overlay. Does not build .deb / .dsc / .changes; tests do that. +eval/hints is transcribed verbatim. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry/debian/changelog new file mode 100644 index 00000000..9a2f1ee9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry/debian/changelog @@ -0,0 +1,10 @@ +changelog-file-empty-entry (1.0) unstable; urgency=low + + * . + * + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-empty-entry (0.1) unstable; urgency=low + + -- Debian Lintian Maintainers Fri, 06 Feb 2009 22:22:37 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry/debian/control new file mode 100644 index 00000000..1290dce7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-empty-entry +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-empty-entry +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check changelog empty entry + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry/eval/desc b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry/eval/desc new file mode 100644 index 00000000..a8848753 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry/eval/desc @@ -0,0 +1,2 @@ +Testname: changelog-file-empty-entry +Check: debian/changelog diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry/eval/hints new file mode 100644 index 00000000..82d59350 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-empty-entry/eval/hints @@ -0,0 +1,4 @@ +changelog-file-empty-entry (binary): syntax-error-in-debian-changelog "found trailer where expected start of change data" [usr/share/doc/changelog-file-empty-entry/changelog.gz:10] +changelog-file-empty-entry (binary): syntax-error-in-debian-changelog "badly formatted trailer line" [usr/share/doc/changelog-file-empty-entry/changelog.gz:6] +changelog-file-empty-entry (binary): debian-changelog-line-too-short . [usr/share/doc/changelog-file-empty-entry/changelog.gz:3] +changelog-file-empty-entry (binary): changelog-empty-entry [usr/share/doc/changelog-file-empty-entry/changelog.gz:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/ORIGIN new file mode 100644 index 00000000..efd88c2f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-new + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/debian/changelog new file mode 100644 index 00000000..426c3b4c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/debian/changelog @@ -0,0 +1,11 @@ +changelog-file-epoch-change-without-comment-new (1:1.0) unstable; urgency=low + + * This changelog entry introduces a version prefix. + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-epoch-change-without-comment-new (999999) unstable; urgency=low + + * Initial upload. + + -- Debian Lintian Maintainers Fri, 06 Feb 2009 22:22:37 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/debian/control new file mode 100644 index 00000000..6d0f0387 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-epoch-change-without-comment-new +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-epoch-change-without-comment-new +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check changelog for accidental epoch changes + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/eval/hints new file mode 100644 index 00000000..5a62f5ba --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/eval/hints @@ -0,0 +1 @@ +changelog-file-epoch-change-without-comment-new (source): epoch-change-without-comment 999999 -> 1:1.0 [debian/changelog:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/ORIGIN new file mode 100644 index 00000000..f6ff5add --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-same + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/debian/changelog new file mode 100644 index 00000000..e35f50ed --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/debian/changelog @@ -0,0 +1,11 @@ +changelog-file-epoch-change-without-comment-same (2:1.0) unstable; urgency=low + + * This changelog entry has the same prefix as before. + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-epoch-change-without-comment-same (2:0) unstable; urgency=low + + * Initial upload. + + -- Debian Lintian Maintainers Fri, 06 Feb 2009 22:22:37 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/debian/control new file mode 100644 index 00000000..6a742830 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-epoch-change-without-comment-same +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-epoch-change-without-comment-same +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check changelog for accidental epoch changes (false positive) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/ORIGIN new file mode 100644 index 00000000..250a39c3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/debian/changelog new file mode 100644 index 00000000..f30a528e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/debian/changelog @@ -0,0 +1,12 @@ +changelog-file-epoch-change-without-comment-unrel (2:1.0) unstable; urgency=low + + * This changelog entry bumps the epoch and references the word in the + changelog. + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-epoch-change-without-comment-unrel (1:999999) unstable; urgency=low + + * Initial upload. + + -- Debian Lintian Maintainers Fri, 06 Feb 2009 22:22:37 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/debian/control new file mode 100644 index 00000000..84e49ebc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-epoch-change-without-comment-unrel +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-epoch-change-without-comment-unrel +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check changelog for accidental epoch changes (false positive) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment/ORIGIN new file mode 100644 index 00000000..2bd85dfc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment/debian/changelog new file mode 100644 index 00000000..199fe77c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment/debian/changelog @@ -0,0 +1,11 @@ +changelog-file-epoch-change-without-comment (2:1.0) unstable; urgency=low + + * This changelog entry bumps the version. + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-epoch-change-without-comment (1:99999999) unstable; urgency=low + + * Initial upload. + + -- Debian Lintian Maintainers Fri, 06 Feb 2009 22:22:37 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment/debian/control new file mode 100644 index 00000000..caeb338c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-epoch-change-without-comment +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-epoch-change-without-comment +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check changelog for accidental epoch changes + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment/eval/hints new file mode 100644 index 00000000..c8fe1d56 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-change-without-comment/eval/hints @@ -0,0 +1 @@ +changelog-file-epoch-change-without-comment (source): epoch-change-without-comment 1:99999999 -> 2:1.0 [debian/changelog:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/ORIGIN new file mode 100644 index 00000000..4fde33f0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/debian/changelog new file mode 100644 index 00000000..e48fd2fc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/debian/changelog @@ -0,0 +1,12 @@ +changelog-file-epoch-changed-upstream-version-decrease (2:1.0) unstable; urgency=low + + * This changelog entry bumps the epoch and the upstream version number + decreased (correctly). + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-epoch-changed-upstream-version-decrease (1:9999999) unstable; urgency=low + + * Initial upload. + + -- Debian Lintian Maintainers Fri, 06 Feb 2009 22:22:37 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/debian/control new file mode 100644 index 00000000..f9f34ccb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-epoch-changed-upstream-version-decrease +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-epoch-changed-upstream-version-decrease +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check changelog for accidental epoch changes (decrease) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/ORIGIN new file mode 100644 index 00000000..fe5eeb5b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/debian/changelog new file mode 100644 index 00000000..a4167ec3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/debian/changelog @@ -0,0 +1,12 @@ +changelog-file-epoch-changed-upstream-version-increase (2:1.0-3) unstable; urgency=low + + * This changelog entry bumps the epoch and the upstream version number + increased too. + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-epoch-changed-upstream-version-increase (1:0.9-4) unstable; urgency=low + + * Initial upload. + + -- Debian Lintian Maintainers Fri, 06 Feb 2009 22:22:37 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/debian/control new file mode 100644 index 00000000..835f1a1f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-epoch-changed-upstream-version-increase +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-epoch-changed-upstream-version-increase +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check changelog for accidental epoch changes (increase) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/eval/hints new file mode 100644 index 00000000..2ac17d45 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/eval/hints @@ -0,0 +1 @@ +changelog-file-epoch-changed-upstream-version-increase (source): epoch-changed-but-upstream-version-did-not-go-backwards 1:0.9-4 -> 2:1.0-3 [debian/changelog:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/ORIGIN new file mode 100644 index 00000000..610d3998 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/debian/changelog new file mode 100644 index 00000000..528a45de --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/debian/changelog @@ -0,0 +1,11 @@ +changelog-file-epoch-changed-upstream-version-same (2:1.0-3) unstable; urgency=low + + * This changelog entry bumps the epoch but not the upstream version number, + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-epoch-changed-upstream-version-same (1:1.0-3) unstable; urgency=low + + * Initial upload. + + -- Debian Lintian Maintainers Fri, 06 Feb 2009 22:22:37 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/debian/control new file mode 100644 index 00000000..4ff3727c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-epoch-changed-upstream-version-same +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-epoch-changed-upstream-version-same +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check changelog for accidental epoch changes (same) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/eval/hints new file mode 100644 index 00000000..8bb66caa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/eval/hints @@ -0,0 +1,2 @@ +changelog-file-epoch-changed-upstream-version-same (source): latest-debian-changelog-entry-reuses-existing-version 2:1.0-3 ~ 1:1.0-3 (last used: Fri, 06 Feb 2009 22:22:37 -0800) [debian/changelog:1] +changelog-file-epoch-changed-upstream-version-same (source): epoch-changed-but-upstream-version-did-not-go-backwards 1:1.0-3 -> 2:1.0-3 [debian/changelog:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch-nmu/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch-nmu/ORIGIN new file mode 100644 index 00000000..a09d766b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch-nmu/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-etch-nmu + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch-nmu/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch-nmu/debian/changelog new file mode 100644 index 00000000..e409fc2e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch-nmu/debian/changelog @@ -0,0 +1,7 @@ +changelog-file-etch-nmu (1.0-1etch1.1) unstable; urgency=low + + * Non-maintainer upload. + * Lintian Test Suite. + * Test: changelog-file-etch-nmu + + -- Russ Allbery Tue, 31 Mar 2026 17:46:22 +0200 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch-nmu/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch-nmu/debian/control new file mode 100644 index 00000000..e5491910 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch-nmu/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-etch-nmu +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-etch-nmu +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for a code name in an unstable upload + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch-nmu/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch-nmu/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch-nmu/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch-nmu/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch-nmu/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch-nmu/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch-nmu/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch-nmu/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch-nmu/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch-nmu/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch-nmu/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch-nmu/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch-nmu/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch-nmu/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch-nmu/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch-nmu/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch-nmu/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch-nmu/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch-nmu/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch-nmu/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch-nmu/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch-nmu/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch-nmu/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch/ORIGIN new file mode 100644 index 00000000..58056f09 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-etch + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch/debian/changelog new file mode 100644 index 00000000..abdfa6b5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch/debian/changelog @@ -0,0 +1,17 @@ +changelog-file-etch (1.0-1etch1) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-etch + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-etch (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-etch + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch/debian/control new file mode 100644 index 00000000..2e07302d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-etch +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-etch +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for a code name in an unstable upload + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch/eval/hints new file mode 100644 index 00000000..8b1b7016 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-etch/eval/hints @@ -0,0 +1 @@ +changelog-file-etch (source): version-refers-to-distribution 1.0-1etch1 [debian/changelog:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental-false-positive/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental-false-positive/ORIGIN new file mode 100644 index 00000000..c30428ba --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental-false-positive/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-experimental-false-positive + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental-false-positive/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental-false-positive/debian/changelog new file mode 100644 index 00000000..d1ba7a0c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental-false-positive/debian/changelog @@ -0,0 +1,13 @@ +changelog-file-experimental-false-positive (1.0-3) unstable; urgency=low + + * Lintian Test Suite. + * Upload to sid. + * Test: changelog-file-experimental-false-positive + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-experimental-false-positive (1.0-1) experimental; urgency=low + + * First upload to experimental. + + -- Debian Lintian Maintainers Fri, 06 Feb 2009 22:22:37 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental-false-positive/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental-false-positive/debian/control new file mode 100644 index 00000000..6bad2527 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental-false-positive/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-experimental-false-positive +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-experimental-false-positive +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check experimental to unstable changes false positive + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental-false-positive/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental-false-positive/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental-false-positive/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental-false-positive/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental-false-positive/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental-false-positive/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental-false-positive/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental-false-positive/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental-false-positive/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental-false-positive/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental-false-positive/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental-false-positive/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental-false-positive/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental-false-positive/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental-false-positive/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental-false-positive/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental-false-positive/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental-false-positive/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental-false-positive/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental-false-positive/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental-false-positive/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental-false-positive/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental-false-positive/eval/hints new file mode 100644 index 00000000..318b4f21 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental-false-positive/eval/hints @@ -0,0 +1 @@ +changelog-file-experimental-false-positive (source): non-consecutive-debian-revision 1.0-1 -> 1.0-3 [debian/changelog:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental/ORIGIN new file mode 100644 index 00000000..bd281362 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-experimental + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental/debian/changelog new file mode 100644 index 00000000..0dbf4c73 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental/debian/changelog @@ -0,0 +1,12 @@ +changelog-file-experimental (1.0-3) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-experimental + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-experimental (1.0-1) experimental; urgency=low + + * First upload to experimental. + + -- Debian Lintian Maintainers Fri, 06 Feb 2009 22:22:37 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental/debian/control new file mode 100644 index 00000000..3e24d192 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-experimental +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-experimental +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check experimental to unstable changes + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental/eval/hints new file mode 100644 index 00000000..58aaeee8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-experimental/eval/hints @@ -0,0 +1,2 @@ +changelog-file-experimental (source): non-consecutive-debian-revision 1.0-1 -> 1.0-3 [debian/changelog:1] +changelog-file-experimental (binary): experimental-to-unstable-without-comment [usr/share/doc/changelog-file-experimental/changelog.Debian.gz:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/ORIGIN new file mode 100644 index 00000000..bcf37646 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-extra-upstream + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/changelog new file mode 100644 index 00000000..2d85e109 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/changelog @@ -0,0 +1 @@ +This is some upstream changelog file. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/debian/changelog new file mode 100644 index 00000000..9a1e78e7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/debian/changelog @@ -0,0 +1,17 @@ +changelog-file-extra-upstream (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-extra-upstream + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-extra-upstream (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-extra-upstream + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/debian/control new file mode 100644 index 00000000..c3640c6a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-extra-upstream +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-extra-upstream +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check a package with ChangeLog and changelog.gz + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/debian/docs b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/debian/docs new file mode 100644 index 00000000..6d10dce7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/debian/docs @@ -0,0 +1 @@ +changelog diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-extra-upstream/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-general/ORIGIN new file mode 100644 index 00000000..d3a9530e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-general/debian/changelog new file mode 100644 index 00000000..dae58082 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-general/debian/changelog @@ -0,0 +1,42 @@ +changelog-file-general (1:1.0-1) unstable; urgency=low + + + * Test: changelog-file-general + * Upload to experimental. + * improbable-bug-number-in-closes (Closes: #1234) + * Another bug closer without a colon (Closes #555555) + * This line is too long since it contains words and words and words but doesn't + have any wrapping except at column 81. + * http://www.example.com/but-a-really-long-url-does-not-count-as-a-long-line-at-all + See http://www.example.com/but-a-really-long-url-does-not-count-as-a-long-line-at-all + even if preceded by See. + * Misspelled Closes (Close: #666666) + + * Here is another really long in the changelog, and it would be really nice if a + certain program would report its line number correctly. Especially since, + we have an extra empty line in the start of the entry. + + * Below is another very long line (UTF-8), which should have a "visual" width + of ~75 characters, but consists of over 200 bytes. + üüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüü + + * It might even fix TEMP-1234567-abcdef, though probably not. + * We refer to the epoch bump here. + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-general (1.0-1) unstable; urgency=low + + * Duplicate changelog entry to trigger tags. + + -- Unknown Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-general (0.1) unstable; urgency=low + + * Used to be a syntax error here. + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +Local variables: +add-log-mailing-address: "rra@debian.org" +End: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-general/debian/control new file mode 100644 index 00000000..cab9ded0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-general/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-general +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-general +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: General tests for changelog-file tags + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-general/debian/rules new file mode 100755 index 00000000..9171128c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-general/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f +pkg = $(shell dh_listpackages) + +%: + dh $@ + +override_dh_installchangelogs: + install -c -m 644 debian/changelog \ + debian/$(pkg)/usr/share/doc/$(pkg)/changelog.Debian + gzip -1 -n debian/$(pkg)/usr/share/doc/$(pkg)/changelog.Debian diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-general/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-general/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-general/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-general/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-general/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-general/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-general/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-general/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-general/eval/hints new file mode 100644 index 00000000..083916bd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-general/eval/hints @@ -0,0 +1,14 @@ +changelog-file-general (source): latest-debian-changelog-entry-without-new-date [debian/changelog:1] +changelog-file-general (source): latest-debian-changelog-entry-reuses-existing-version 1:1.0-1 ~ 1.0-1 (last used: CURRENT) [debian/changelog:1] +changelog-file-general (source): epoch-changed-but-upstream-version-did-not-go-backwards 1.0-1 -> 1:1.0-1 [debian/changelog:1] +changelog-file-general (binary): possible-missing-colon-in-closes Closes #555555 [usr/share/doc/changelog-file-general/changelog.Debian.gz:1] +changelog-file-general (binary): misspelled-closes-bug Close: #666666 [usr/share/doc/changelog-file-general/changelog.Debian.gz:1] +changelog-file-general (binary): latest-changelog-entry-without-new-date [usr/share/doc/changelog-file-general/changelog.Debian.gz:1] +changelog-file-general (binary): improbable-bug-number-in-closes 1234 [usr/share/doc/changelog-file-general/changelog.Debian.gz:1] +changelog-file-general (binary): debian-changelog-line-too-long [usr/share/doc/changelog-file-general/changelog.Debian.gz:8] +changelog-file-general (binary): debian-changelog-line-too-long [usr/share/doc/changelog-file-general/changelog.Debian.gz:15] +changelog-file-general (binary): debian-changelog-file-contains-obsolete-user-emacs-settings [usr/share/doc/changelog-file-general/changelog.Debian.gz:41] +changelog-file-general (binary): changelog-references-temp-security-identifier TEMP-1234567-abcdef [usr/share/doc/changelog-file-general/changelog.Debian.gz:1] +changelog-file-general (binary): changelog-not-compressed-with-max-compression [usr/share/doc/changelog-file-general/changelog.Debian.gz] +changelog-file-general (binary): bogus-mail-host-in-debian-changelog unknown@unknown (for version 1.0-1) [usr/share/doc/changelog-file-general/changelog.Debian.gz:28] +changelog-file-general (binary): bad-intended-distribution intended for experimental but uploaded to unstable [usr/share/doc/changelog-file-general/changelog.Debian.gz:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-invalid-date/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-invalid-date/ORIGIN new file mode 100644 index 00000000..a389cfcd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-invalid-date/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-invalid-date + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-invalid-date/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-invalid-date/debian/changelog new file mode 100644 index 00000000..7e8800d3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-invalid-date/debian/changelog @@ -0,0 +1,8 @@ +changelog-file-invalid-date (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-invalid-date + * Suppress "should close ITP bug" messages. (Closes: #123456) + * Writes out "Sept" and "Thurs"; should be "Sep" and "Thu". + + -- Debian Lintian Maintainers Thurs, 14 Sept 2017 10:47:43 +0000 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-invalid-date/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-invalid-date/debian/control new file mode 100644 index 00000000..eb40d0b0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-invalid-date/debian/control @@ -0,0 +1,16 @@ +Source: changelog-file-invalid-date +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.1.0 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no + +Package: changelog-file-invalid-date +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for invalid dates + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-invalid-date/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-invalid-date/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-invalid-date/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-invalid-date/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-invalid-date/debian/rules new file mode 100644 index 00000000..e99ea185 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-invalid-date/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all +PKG := changelog-file-invalid-date + +%: + dh $@ + +override_dh_installchangelogs: + cp debian/changelog debian/$(PKG)/usr/share/doc/$(PKG)/changelog diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-invalid-date/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-invalid-date/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-invalid-date/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-invalid-date/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-invalid-date/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-invalid-date/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-invalid-date/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-invalid-date/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-invalid-date/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-invalid-date/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-invalid-date/eval/hints new file mode 100644 index 00000000..472360d3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-invalid-date/eval/hints @@ -0,0 +1,2 @@ +changelog-file-invalid-date (binary): invalid-date-in-debian-changelog (Thurs -> Thu) [usr/share/doc/changelog-file-invalid-date/changelog.gz:1] +changelog-file-invalid-date (binary): invalid-date-in-debian-changelog (Sept -> Sep) [usr/share/doc/changelog-file-invalid-date/changelog.gz:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-line-too-short/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-line-too-short/ORIGIN new file mode 100644 index 00000000..085556bb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-line-too-short/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-line-too-short + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-line-too-short/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-line-too-short/debian/changelog new file mode 100644 index 00000000..32af177b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-line-too-short/debian/changelog @@ -0,0 +1,17 @@ +changelog-file-line-too-short (1.0-1) unstable; urgency=low + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + * The following lines are too short. + * R³ + * dh 11 + * 12345 + + * The following entries are long enough. + * dh 11. + * 123456 + + * These are false positives. + * 123: + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-line-too-short/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-line-too-short/debian/control new file mode 100644 index 00000000..46a2597e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-line-too-short/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-line-too-short +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-line-too-short +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for short changelog entries + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-line-too-short/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-line-too-short/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-line-too-short/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-line-too-short/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-line-too-short/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-line-too-short/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-line-too-short/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-line-too-short/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-line-too-short/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-line-too-short/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-line-too-short/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-line-too-short/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-line-too-short/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-line-too-short/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-line-too-short/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-line-too-short/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-line-too-short/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-line-too-short/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-line-too-short/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-line-too-short/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-line-too-short/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-line-too-short/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-line-too-short/eval/hints new file mode 100644 index 00000000..92d4bf6d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-line-too-short/eval/hints @@ -0,0 +1,3 @@ +changelog-file-line-too-short (binary): debian-changelog-line-too-short dh 11 [usr/share/doc/changelog-file-line-too-short/changelog.Debian.gz:7] +changelog-file-line-too-short (binary): debian-changelog-line-too-short R³ [usr/share/doc/changelog-file-line-too-short/changelog.Debian.gz:6] +changelog-file-line-too-short (binary): debian-changelog-line-too-short 12345 [usr/share/doc/changelog-file-line-too-short/changelog.Debian.gz:8] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing-explicit-entry/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing-explicit-entry/ORIGIN new file mode 100644 index 00000000..7cf0c6a9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing-explicit-entry/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-missing-explicit-entry + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing-explicit-entry/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing-explicit-entry/debian/changelog new file mode 100644 index 00000000..aa28e6dc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing-explicit-entry/debian/changelog @@ -0,0 +1,12 @@ +changelog-file-missing-explicit-entry (1.2-3+deb9u1) stable-proposed-updates; urgency=low + + * New version. + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-missing-explicit-entry (0.9-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-missing-explicit-entry + + -- Debian Lintian Maintainers Tue, 1 Jan 2008 22:45:57 +0000 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing-explicit-entry/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing-explicit-entry/debian/control new file mode 100644 index 00000000..b2fd0353 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing-explicit-entry/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-missing-explicit-entry +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-missing-explicit-entry +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for missing (stable update, etc.) entries + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing-explicit-entry/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing-explicit-entry/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing-explicit-entry/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing-explicit-entry/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing-explicit-entry/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing-explicit-entry/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing-explicit-entry/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing-explicit-entry/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing-explicit-entry/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing-explicit-entry/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing-explicit-entry/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing-explicit-entry/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing-explicit-entry/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing-explicit-entry/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing-explicit-entry/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing-explicit-entry/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing-explicit-entry/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing-explicit-entry/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing-explicit-entry/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing-explicit-entry/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing-explicit-entry/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing-explicit-entry/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing-explicit-entry/eval/hints new file mode 100644 index 00000000..b24457ea --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing-explicit-entry/eval/hints @@ -0,0 +1 @@ +changelog-file-missing-explicit-entry (source): changelog-file-missing-explicit-entry 0.9-1 -> 1.2-3 (missing) -> 1.2-3+deb9u1 [debian/changelog:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing/ORIGIN new file mode 100644 index 00000000..f2429ac4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-missing + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing/debian/changelog new file mode 100644 index 00000000..2d224c56 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing/debian/changelog @@ -0,0 +1,17 @@ +changelog-file-missing (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-missing + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-missing (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-missing + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing/debian/control new file mode 100644 index 00000000..5abc3916 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-missing +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-missing +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test if Debian changelog is missing + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing/debian/rules new file mode 100755 index 00000000..a687494a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f + +%: + dh $@ + + +override_dh_md5sums: + find debian/*/ -type f -a -name 'changelog*' -delete + dh_md5sums diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing/eval/hints new file mode 100644 index 00000000..de5ad151 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-missing/eval/hints @@ -0,0 +1 @@ +changelog-file-missing (binary): no-changelog usr/share/doc/changelog-file-missing/changelog.Debian.gz (non-native package) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-new-upstream/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-new-upstream/ORIGIN new file mode 100644 index 00000000..480a4aea --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-new-upstream/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-new-upstream + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-new-upstream/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-new-upstream/debian/changelog new file mode 100644 index 00000000..facfba58 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-new-upstream/debian/changelog @@ -0,0 +1,14 @@ +changelog-file-new-upstream (1.0-2) unstable; urgency=low + + * New upstream bugfix release. + * Lintian Test Suite. + * Test: changelog-file-new-upstream + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-new-upstream (1.0-1) unstable; urgency=low + + * Old changelog entry to trigger the tag. + + -- Debian Lintian Maintainers Sat, 20 Mar 2010 16:09:18 -0700 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-new-upstream/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-new-upstream/debian/control new file mode 100644 index 00000000..286bed09 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-new-upstream/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-new-upstream +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-new-upstream +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check a new upstream version without a version change + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-new-upstream/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-new-upstream/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-new-upstream/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-new-upstream/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-new-upstream/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-new-upstream/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-new-upstream/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-new-upstream/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-new-upstream/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-new-upstream/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-new-upstream/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-new-upstream/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-new-upstream/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-new-upstream/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-new-upstream/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-new-upstream/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-new-upstream/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-new-upstream/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-new-upstream/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-new-upstream/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-new-upstream/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-new-upstream/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-new-upstream/eval/hints new file mode 100644 index 00000000..6c35244e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-new-upstream/eval/hints @@ -0,0 +1 @@ +changelog-file-new-upstream (source): possible-new-upstream-release-without-new-version [debian/changelog:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/ORIGIN new file mode 100644 index 00000000..62f6ffaf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/debian/NEWS b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/debian/NEWS new file mode 100644 index 00000000..6a69656c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/debian/NEWS @@ -0,0 +1,7 @@ +changelog-file-news-and-changelog-not-compressed (1.0) unstable; urgency=low + + Something incredibly important... or maybe this is just a + lintian test for an uncompressed NEWS file. + + -- Niels Thykier Wed, 10 Aug 2011 21:09:24 +0200 + \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/debian/changelog new file mode 100644 index 00000000..21491346 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/debian/changelog @@ -0,0 +1,17 @@ +changelog-file-news-and-changelog-not-compressed (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-news-and-changelog-not-compressed + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-news-and-changelog-not-compressed (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-news-and-changelog-not-compressed + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/debian/control new file mode 100644 index 00000000..776e7efb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-news-and-changelog-not-compressed +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-news-and-changelog-not-compressed +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: General tests for changelog-file tags + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/debian/rules new file mode 100755 index 00000000..f957b516 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/debian/rules @@ -0,0 +1,14 @@ +#!/usr/bin/make -f +pkg = $(shell dh_listpackages) + +%: + dh $@ + +override_dh_installchangelogs: + install -c -m 644 debian/changelog \ + debian/$(pkg)/usr/share/doc/$(pkg)/changelog + install -c -m 644 debian/NEWS \ + debian/$(pkg)/usr/share/doc/$(pkg)/NEWS.Debian + +override_dh_compress: + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/eval/hints new file mode 100644 index 00000000..2715a6c0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/eval/hints @@ -0,0 +1,2 @@ +changelog-file-news-and-changelog-not-compressed (binary): debian-news-file-not-compressed [usr/share/doc/changelog-file-news-and-changelog-not-compressed/NEWS.Debian] +changelog-file-news-and-changelog-not-compressed (binary): changelog-file-not-compressed [usr/share/doc/changelog-file-news-and-changelog-not-compressed/changelog] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-general/ORIGIN new file mode 100644 index 00000000..9cbd308a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-news-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-general/debian/NEWS b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-general/debian/NEWS new file mode 100644 index 00000000..d862b427 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-general/debian/NEWS @@ -0,0 +1,11 @@ +changelog-file-news-general (1.0) UNRELEASED; urgency=high + + * This is a major change, which shouldn't be using an asterisk. It also + has an ISO 8859-1 character: µ and a speling error. + + -- Russ Allbery Tue, 31 Mar 2026 17:46:22 +0200 +changelog-file-news-general (0.9) unstable; urgency=low + + Another entry, this one with a syntax error in the date. + + -- Russ Allbery Tue, 31 Mar 2026 17:46:22 +0200 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-general/debian/changelog new file mode 100644 index 00000000..c56b08b8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-general/debian/changelog @@ -0,0 +1,17 @@ +changelog-file-news-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-news-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-news-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-news-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-general/debian/control new file mode 100644 index 00000000..36b567dc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-general/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-news-general +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-news-general +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: General checks for NEWS.Debian + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-general/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-general/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-general/eval/hints new file mode 100644 index 00000000..e04e26e9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-general/eval/hints @@ -0,0 +1,7 @@ +changelog-file-news-general (binary): syntax-error-in-debian-news-file "found eof where expected more change data or trailer" [usr/share/doc/changelog-file-news-general/NEWS.Debian.gz:12] +changelog-file-news-general (binary): syntax-error-in-debian-news-file "badly formatted trailer line" [usr/share/doc/changelog-file-news-general/NEWS.Debian.gz:11] +changelog-file-news-general (binary): spelling-error-in-news-debian speling spelling [usr/share/doc/changelog-file-news-general/NEWS.Debian.gz] +changelog-file-news-general (binary): debian-news-entry-uses-asterisk [usr/share/doc/changelog-file-news-general/NEWS.Debian.gz:1] +changelog-file-news-general (binary): debian-news-entry-has-strange-distribution UNRELEASED [usr/share/doc/changelog-file-news-general/NEWS.Debian.gz:1] +changelog-file-news-general (binary): changelog-news-debian-mismatch Urgency low != high [usr/share/doc/changelog-file-news-general/NEWS.Debian.gz:1] +changelog-file-news-general (binary): changelog-news-debian-mismatch Distribution unstable != UNRELEASED [usr/share/doc/changelog-file-news-general/NEWS.Debian.gz:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-version/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-version/ORIGIN new file mode 100644 index 00000000..24483efe --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-version/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-news-version + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-version/debian/NEWS b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-version/debian/NEWS new file mode 100644 index 00000000..6bfc63be --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-version/debian/NEWS @@ -0,0 +1,6 @@ +changelog-file-news-version (2.0) unstable; urgency=low + + This is some news entry about something. + + -- Russ Allbery Tue, 31 Mar 2026 17:46:22 +0200 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-version/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-version/debian/changelog new file mode 100644 index 00000000..3f9187e2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-version/debian/changelog @@ -0,0 +1,17 @@ +changelog-file-news-version (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-news-version + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-news-version (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-news-version + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-version/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-version/debian/control new file mode 100644 index 00000000..8b49bdfd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-version/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-news-version +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-news-version +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check mismatches of the NEWS.Debian version + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-version/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-version/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-version/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-version/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-version/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-version/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-version/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-version/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-version/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-version/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-version/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-version/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-version/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-version/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-version/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-version/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-version/eval/hints new file mode 100644 index 00000000..6f9c9f0a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-version/eval/hints @@ -0,0 +1 @@ +changelog-file-news-version (binary): debian-news-entry-has-unknown-version 2.0 [usr/share/doc/changelog-file-news-version/NEWS.Debian.gz:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-wrong-name/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-wrong-name/ORIGIN new file mode 100644 index 00000000..4966332c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-wrong-name/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-news-wrong-name + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-wrong-name/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-wrong-name/debian/changelog new file mode 100644 index 00000000..4f9a55bb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-wrong-name/debian/changelog @@ -0,0 +1,17 @@ +changelog-file-news-wrong-name (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-news-wrong-name + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-news-wrong-name (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-news-wrong-name + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-wrong-name/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-wrong-name/debian/control new file mode 100644 index 00000000..818bc919 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-wrong-name/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-news-wrong-name +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-news-wrong-name +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for NEWS.Debian installed with wrong name + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-wrong-name/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-wrong-name/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-wrong-name/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-wrong-name/debian/package-news b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-wrong-name/debian/package-news new file mode 100644 index 00000000..928a48c7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-wrong-name/debian/package-news @@ -0,0 +1,6 @@ +changelog-file-wrong-name (1.0) unstable; urgency=low + + Some interesting information. + + -- Niels Thykier Sun, 22 Jul 2012 20:30:00 +0000 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-wrong-name/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-wrong-name/debian/rules new file mode 100755 index 00000000..952d45ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-wrong-name/debian/rules @@ -0,0 +1,11 @@ +#!/usr/bin/make -f + +PKG=$(shell dh_listpackages) +DOC=debian/$(PKG)/usr/share/doc/$(PKG) + +%: + dh $@ + +override_dh_installchangelogs: + dh_installchangelogs + gzip -n -9c < debian/package-news > $(DOC)/news.debian.gz diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-wrong-name/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-wrong-name/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-wrong-name/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-wrong-name/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-wrong-name/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-wrong-name/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-wrong-name/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-wrong-name/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-wrong-name/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-wrong-name/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-wrong-name/eval/hints new file mode 100644 index 00000000..3636bbbb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-news-wrong-name/eval/hints @@ -0,0 +1 @@ +changelog-file-news-wrong-name (binary): wrong-name-for-debian-news-file [usr/share/doc/changelog-file-news-wrong-name/news.debian.gz] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch-native/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch-native/ORIGIN new file mode 100644 index 00000000..81f17ec0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch-native/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-no-dch-native + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch-native/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch-native/debian/changelog new file mode 100644 index 00000000..ad948f0f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch-native/debian/changelog @@ -0,0 +1,17 @@ +changelog-file-no-dch-native (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-no-dch-native + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-no-dch-native (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-no-dch-native + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch-native/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch-native/debian/control new file mode 100644 index 00000000..7903cf6c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch-native/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-no-dch-native +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-no-dch-native +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test if Debian changelog is missing in native pkg + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch-native/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch-native/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch-native/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch-native/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch-native/debian/rules new file mode 100755 index 00000000..f7139c25 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch-native/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_md5sums: + find debian/*/ -type f -a -iname 'changelog.*' -delete + dh_md5sums diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch-native/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch-native/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch-native/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch-native/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch-native/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch-native/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch-native/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch-native/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch-native/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch-native/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch-native/eval/hints new file mode 100644 index 00000000..8172b294 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch-native/eval/hints @@ -0,0 +1 @@ +changelog-file-no-dch-native (binary): no-changelog usr/share/doc/changelog-file-no-dch-native/changelog.gz (native package) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/ChangeLog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/ChangeLog new file mode 100644 index 00000000..a935b07f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/ChangeLog @@ -0,0 +1,5 @@ +2011-09-10 Niels Thykier + + * This is a non-Debian ChangeLog. Lintian should not be tricked + to believe this is a Debian changelog. + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/ORIGIN new file mode 100644 index 00000000..8018a1d3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (3d907cb9f489573ab5a581d13f640319335262b6) +t/recipes/checks/debian/changelog/changelog-file-no-dch +Skeleton: upload-non-native + +Filled test-package sources from t/templates + t/skeletons and the +build-spec overlay. Does not build .deb / .dsc / .changes; tests do that. +eval/hints is transcribed verbatim. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/debian/changelog new file mode 100644 index 00000000..83e46d7f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/debian/changelog @@ -0,0 +1,17 @@ +changelog-file-no-dch (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-no-dch + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-no-dch (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-no-dch + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/debian/control new file mode 100644 index 00000000..8e5155ac --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-no-dch +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-no-dch +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test if Debian changelog is missing + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/debian/rules new file mode 100755 index 00000000..93079197 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_installchangelogs: + # This is needed for Ubuntu, where debhelper does not install + # upstream changelogs by default + dh_installchangelogs ChangeLog + +override_dh_md5sums: + find debian/*/ -type f -a -iname 'changelog.debian*' -delete + dh_md5sums diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/eval/desc b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/eval/desc new file mode 100644 index 00000000..ff7ebdfc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/eval/desc @@ -0,0 +1,3 @@ +Testname: changelog-file-no-dch +Test-Against: syntax-error-in-debian-changelog +Check: debian/changelog diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/eval/hints new file mode 100644 index 00000000..e09922fe --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-no-dch/eval/hints @@ -0,0 +1,2 @@ +changelog-file-no-dch (binary): syntax-error-in-debian-changelog "not a Debian changelog" [usr/share/doc/changelog-file-no-dch/changelog.gz:1] +changelog-file-no-dch (binary): debian-changelog-file-missing-or-wrong-name diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-reuses-existing-version/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-reuses-existing-version/ORIGIN new file mode 100644 index 00000000..d489be82 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-reuses-existing-version/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-reuses-existing-version + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-reuses-existing-version/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-reuses-existing-version/debian/changelog new file mode 100644 index 00000000..109c5a05 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-reuses-existing-version/debian/changelog @@ -0,0 +1,45 @@ +changelog-file-reuses-existing-version (3:1.0) unstable; urgency=low + + * Third use of 1.0. + * This changelog entry bumps the epoch and references the word in the + changelog. + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-reuses-existing-version (3:0) unstable; urgency=low + + * Bumping epoch to inject a changelog entry to ensure we check later entries. + + -- Debian Lintian Maintainers Fri, 06 Feb 2010 22:22:37 -0800 + +other (1.0) unstable; urgency=low + + * This has the same version but different source and is thus a + false-positive. + + -- Debian Lintian Maintainers Fri, 06 Feb 2009 22:22:37 -0800 + +changelog-file-reuses-existing-version (2:1.0) unstable; urgency=low + + * Second use of version 1.0. True positive. + + -- Debian Lintian Maintainers Fri, 06 Feb 2008 22:22:37 -0800 + +changelog-file-reuses-existing-version (2:0) unstable; urgency=low + + * Bumping epoch to inject a changelog entry to ensure we check later entries. + + -- Debian Lintian Maintainers Fri, 06 Feb 2007 22:22:37 -0800 + +changelog-file-reuses-existing-version (1:1.0) unstable; urgency=low + + * Initial use of version 1.0. This is a false positive as we should + * stop after 2:1.0. + + -- Debian Lintian Maintainers Fri, 06 Feb 2006 22:22:37 -0800 + +changelog-file-reuses-existing-version (1:0) unstable; urgency=low + + * Add epoch. + + -- Debian Lintian Maintainers Fri, 06 Feb 2005 22:22:37 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-reuses-existing-version/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-reuses-existing-version/debian/control new file mode 100644 index 00000000..1904f302 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-reuses-existing-version/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-reuses-existing-version +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-reuses-existing-version +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check changelog for re-used version numbers + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-reuses-existing-version/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-reuses-existing-version/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-reuses-existing-version/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-reuses-existing-version/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-reuses-existing-version/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-reuses-existing-version/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-reuses-existing-version/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-reuses-existing-version/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-reuses-existing-version/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-reuses-existing-version/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-reuses-existing-version/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-reuses-existing-version/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-reuses-existing-version/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-reuses-existing-version/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-reuses-existing-version/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-reuses-existing-version/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-reuses-existing-version/eval/hints new file mode 100644 index 00000000..5016c574 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-reuses-existing-version/eval/hints @@ -0,0 +1 @@ +changelog-file-reuses-existing-version (source): latest-debian-changelog-entry-reuses-existing-version 3:1.0 ~ 2:1.0 (last used: Fri, 06 Feb 2008 22:22:37 -0800) [debian/changelog:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-stable/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-stable/ORIGIN new file mode 100644 index 00000000..592da29d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-stable/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-stable + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-stable/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-stable/debian/changelog new file mode 100644 index 00000000..9c4a2570 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-stable/debian/changelog @@ -0,0 +1,6 @@ +changelog-file-stable (1.0-1etch1) stable-proposed-updates; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-stable + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-stable/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-stable/debian/control new file mode 100644 index 00000000..8b20ec72 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-stable/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-stable +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-stable +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test a stable-proposed-updates package + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-stable/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-stable/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-stable/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-stable/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-stable/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-stable/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-stable/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-stable/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-stable/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-stable/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-stable/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-stable/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-stable/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-stable/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-stable/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-stable/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-stable/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-stable/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-stable/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-stable/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-stable/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-stable/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-stable/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-strange-date/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-strange-date/ORIGIN new file mode 100644 index 00000000..568b640c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-strange-date/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (3d907cb9f489573ab5a581d13f640319335262b6) +t/recipes/checks/debian/changelog/changelog-file-strange-date +Skeleton: upload-native + +Filled test-package sources from t/templates + t/skeletons and the +build-spec overlay. Does not build .deb / .dsc / .changes; tests do that. +eval/hints is transcribed verbatim. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-strange-date/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-strange-date/debian/changelog new file mode 100644 index 00000000..ee6066c4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-strange-date/debian/changelog @@ -0,0 +1,12 @@ +changelog-file-strange-date (2.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-strange-date + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-strange-date (1.0) unstable; urgency=low + + * The date will fail with some dpkg version see #794674 + + -- Debian Lintian Maintainers The, 15 Apr 2004 23:33:51 +0200 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-strange-date/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-strange-date/debian/control new file mode 100644 index 00000000..e711d41e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-strange-date/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-strange-date +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), dpkg (<< 1.18.2) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-strange-date +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test some strange date in changelog + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-strange-date/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-strange-date/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-strange-date/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-strange-date/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-strange-date/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-strange-date/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-strange-date/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-strange-date/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-strange-date/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-strange-date/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-strange-date/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-strange-date/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-strange-date/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-strange-date/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-strange-date/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-strange-date/eval/desc b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-strange-date/eval/desc new file mode 100644 index 00000000..c8662242 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-strange-date/eval/desc @@ -0,0 +1,3 @@ +Testname: changelog-file-strange-date +See-Also: Debian Bug#794674 +Check: debian/changelog diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-strange-date/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-strange-date/eval/hints new file mode 100644 index 00000000..d8424c87 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-strange-date/eval/hints @@ -0,0 +1 @@ +changelog-file-strange-date (binary): syntax-error-in-debian-changelog line 12 "couldn't parse date The, 15 Apr 2004 23:33:51 +0200" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-symlink/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-symlink/ORIGIN new file mode 100644 index 00000000..cfdee0c6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-symlink/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-symlink + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-symlink/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-symlink/debian/changelog new file mode 100644 index 00000000..39487c5d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-symlink/debian/changelog @@ -0,0 +1,17 @@ +changelog-file-symlink (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-symlink + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-symlink (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-symlink + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-symlink/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-symlink/debian/control new file mode 100644 index 00000000..91be84e8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-symlink/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-symlink +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-symlink +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test if Debian changelog is a symlink + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-symlink/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-symlink/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-symlink/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-symlink/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-symlink/debian/rules new file mode 100755 index 00000000..fa478f6f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-symlink/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f + +%: + dh $@ + + +override_dh_md5sums: + DIR=$$(find debian/*/ -type f -a -name 'changelog.gz' \ + -exec dirname {} \; ) ; \ + rm -f $$DIR/changelog.gz ; \ + ln -s ../lintian/changelog.gz $$DIR/changelog.gz + dh_md5sums diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-symlink/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-symlink/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-symlink/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-symlink/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-symlink/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-symlink/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-symlink/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-symlink/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-symlink/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-symlink/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-symlink/eval/hints new file mode 100644 index 00000000..90d61c47 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-symlink/eval/hints @@ -0,0 +1 @@ +changelog-file-symlink (binary): debian-changelog-file-is-a-symlink [usr/share/doc/changelog-file-symlink/changelog.gz] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased-signed-changes/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased-signed-changes/ORIGIN new file mode 100644 index 00000000..af516907 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased-signed-changes/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased-signed-changes/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased-signed-changes/debian/changelog new file mode 100644 index 00000000..899eaa81 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased-signed-changes/debian/changelog @@ -0,0 +1,17 @@ +changelog-file-unreleased-signed-changes (1.0) UNRELEASED; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-unreleased-signed-changes + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-unreleased-signed-changes (0.0.1) UNRELEASED; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-unreleased-signed-changes + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased-signed-changes/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased-signed-changes/debian/control new file mode 100644 index 00000000..8fb2b6d1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased-signed-changes/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-unreleased-signed-changes +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-unreleased-signed-changes +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Warn about UNRELEASED distribution in changelog if changes is signed + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased-signed-changes/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased-signed-changes/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased-signed-changes/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased-signed-changes/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased-signed-changes/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased-signed-changes/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased-signed-changes/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased-signed-changes/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased-signed-changes/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased-signed-changes/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased-signed-changes/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased-signed-changes/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased-signed-changes/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased-signed-changes/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased-signed-changes/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased-signed-changes/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased-signed-changes/eval/hints new file mode 100644 index 00000000..a4d8b634 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased-signed-changes/eval/hints @@ -0,0 +1 @@ +changelog-file-unreleased-signed-changes (source): unreleased-changelog-distribution [debian/changelog:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased/ORIGIN new file mode 100644 index 00000000..319249dd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-unreleased + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased/debian/changelog new file mode 100644 index 00000000..0cf0409f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased/debian/changelog @@ -0,0 +1,13 @@ +changelog-file-unreleased (2.0) UNRELEASED; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-unreleased + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-unreleased (1.0) unstable; urgency=low + + * An older changelog entry to test suppression of errors about the + changelog entry having the same date as the previous one. + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased/debian/control new file mode 100644 index 00000000..a16a545c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-unreleased +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-unreleased +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Suppress new date warnings for UNRELEASED + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unreleased/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unstable-dist-with-exp-version/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unstable-dist-with-exp-version/ORIGIN new file mode 100644 index 00000000..33970701 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unstable-dist-with-exp-version/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-unstable-dist-with-exp-version + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unstable-dist-with-exp-version/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unstable-dist-with-exp-version/debian/changelog new file mode 100644 index 00000000..1bf3ccbf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unstable-dist-with-exp-version/debian/changelog @@ -0,0 +1,6 @@ +version-refers-to-unstable-distribution-with-exp-version.tag (1.0-1~exp1) unstable; urgency=low + + * Lintian Test Suite. + * Test: version-refers-to-unstable-distribution-with-exp-version.tag + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unstable-dist-with-exp-version/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unstable-dist-with-exp-version/debian/control new file mode 100644 index 00000000..c951c10d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unstable-dist-with-exp-version/debian/control @@ -0,0 +1,17 @@ +Source: version-refers-to-unstable-distribution-with-exp-version.tag +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: version-refers-to-unstable-distribution-with-exp-version.tag +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test a exp version with unstable distribution package + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unstable-dist-with-exp-version/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unstable-dist-with-exp-version/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unstable-dist-with-exp-version/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unstable-dist-with-exp-version/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unstable-dist-with-exp-version/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unstable-dist-with-exp-version/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unstable-dist-with-exp-version/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unstable-dist-with-exp-version/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unstable-dist-with-exp-version/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unstable-dist-with-exp-version/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unstable-dist-with-exp-version/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unstable-dist-with-exp-version/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unstable-dist-with-exp-version/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unstable-dist-with-exp-version/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unstable-dist-with-exp-version/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unstable-dist-with-exp-version/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unstable-dist-with-exp-version/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unstable-dist-with-exp-version/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unstable-dist-with-exp-version/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unstable-dist-with-exp-version/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unstable-dist-with-exp-version/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unstable-dist-with-exp-version/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unstable-dist-with-exp-version/eval/hints new file mode 100644 index 00000000..32ae28f8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-unstable-dist-with-exp-version/eval/hints @@ -0,0 +1 @@ +version-refers-to-unstable-distribution-with-exp-version.tag (source): version-refers-to-unstable-distribution-with-exp-version 1.0-1~exp1 [debian/changelog:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/ORIGIN new file mode 100644 index 00000000..37b918cf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-upstream-html-only + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/debian/changelog new file mode 100644 index 00000000..bd997cbc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/debian/changelog @@ -0,0 +1,17 @@ +changelog-file-upstream-html-only (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-upstream-html-only + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-upstream-html-only (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-upstream-html-only + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/debian/control new file mode 100644 index 00000000..e22dfef3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-upstream-html-only +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-upstream-html-only +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check HTML-only upstream changelog + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/debian/rules new file mode 100644 index 00000000..12f2c850 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/debian/rules @@ -0,0 +1,11 @@ +#!/usr/bin/make -f + +PKG:=$(shell dh_listpackages) +DOC:=debian/$(PKG)/usr/share/doc/$(PKG) + +%: + dh $@ + +override_dh_installchangelogs: + dh_installchangelogs + cp some-changelog.html $(DOC)/changelog.html diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/eval/hints new file mode 100644 index 00000000..696aa50c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/eval/hints @@ -0,0 +1 @@ +changelog-file-upstream-html-only (binary): html-changelog-without-text-version [usr/share/doc/changelog-file-upstream-html-only/changelog.html.gz] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/some-changelog.html b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/some-changelog.html new file mode 100644 index 00000000..2a4614a5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-upstream-html-only/some-changelog.html @@ -0,0 +1,8 @@ + + + Hallo World + + +

A wonderful changelog written in HTML

+ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/ORIGIN new file mode 100644 index 00000000..3e6ef68a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/debian/changelog new file mode 100644 index 00000000..719e823a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/debian/changelog @@ -0,0 +1,17 @@ +changelog-file-wrong-name-upstream (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-wrong-name-upstream + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-file-wrong-name-upstream (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-wrong-name-upstream + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/debian/control new file mode 100644 index 00000000..f946c95d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/debian/control @@ -0,0 +1,17 @@ +Source: changelog-file-wrong-name-upstream +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-file-wrong-name-upstream +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check a wrong name for an upstream changelog + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/debian/rules new file mode 100644 index 00000000..45fbec86 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/debian/rules @@ -0,0 +1,11 @@ +#!/usr/bin/make -f + +PKG:=$(shell dh_listpackages) +DOC:=debian/$(PKG)/usr/share/doc/$(PKG) + +%: + dh $@ + +override_dh_installchangelogs: + dh_installchangelogs + cp some-changelog $(DOC)/Changes diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/eval/hints new file mode 100644 index 00000000..44bf518c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/eval/hints @@ -0,0 +1 @@ +changelog-file-wrong-name-upstream (binary): wrong-name-for-upstream-changelog [usr/share/doc/changelog-file-wrong-name-upstream/Changes] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/some-changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/some-changelog new file mode 100644 index 00000000..336f590a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-name-upstream/some-changelog @@ -0,0 +1 @@ +Hallo World diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-weekday/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-weekday/ORIGIN new file mode 100644 index 00000000..7f2b2a63 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-weekday/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-file-wrong-weekday + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-weekday/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-weekday/debian/changelog new file mode 100644 index 00000000..6257899d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-weekday/debian/changelog @@ -0,0 +1,10 @@ +changelog-file-wrong-weekday (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-file-wrong-weekday + * Suppress "should close ITP bug" messages. (Closes: #123456) + + * A bit of wishful thinking that the date below was a Friday. + + -- Debian Lintian Maintainers Fri, 07 Apr 2016 17:00:00 +0000 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-weekday/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-weekday/debian/control new file mode 100644 index 00000000..7eea4ee6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-weekday/debian/control @@ -0,0 +1,16 @@ +Source: changelog-file-wrong-weekday +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 3.9.8 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no + +Package: changelog-file-wrong-weekday +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for wrong weekday in changelog date + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-weekday/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-weekday/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-weekday/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-weekday/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-weekday/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-weekday/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-weekday/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-weekday/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-weekday/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-weekday/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-weekday/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-weekday/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-weekday/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-weekday/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-weekday/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-weekday/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-weekday/eval/hints new file mode 100644 index 00000000..22e8a794 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-file-wrong-weekday/eval/hints @@ -0,0 +1 @@ +changelog-file-wrong-weekday (binary): debian-changelog-has-wrong-day-of-week 2016-04-07 was a Thursday [usr/share/doc/changelog-file-wrong-weekday/changelog.gz:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-bzr/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-bzr/ORIGIN new file mode 100644 index 00000000..950e0ea2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-bzr/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-version-bzr + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-bzr/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-bzr/debian/changelog new file mode 100644 index 00000000..de9757ea --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-bzr/debian/changelog @@ -0,0 +1,17 @@ +changelog-version-bzr (0.7+bzr49+repack1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-version-bzr + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-version-bzr (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-version-bzr + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-bzr/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-bzr/debian/control new file mode 100644 index 00000000..476e42e3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-bzr/debian/control @@ -0,0 +1,17 @@ +Source: changelog-version-bzr +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-version-bzr +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for +bzr in version (vs binNMU) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-bzr/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-bzr/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-bzr/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-bzr/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-bzr/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-bzr/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-bzr/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-bzr/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-bzr/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-bzr/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-bzr/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-bzr/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-bzr/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-bzr/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-bzr/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-bzr/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-bzr/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-bzr/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-bzr/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-bzr/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-bzr/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-bzr/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-bzr/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-non-native-simple/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-non-native-simple/ORIGIN new file mode 100644 index 00000000..b4d58b88 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-non-native-simple/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-version-non-native-simple + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-non-native-simple/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-non-native-simple/debian/changelog new file mode 100644 index 00000000..b630c078 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-non-native-simple/debian/changelog @@ -0,0 +1,17 @@ +changelog-version-non-native-simple (1-2) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-version-non-native-simple + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-version-non-native-simple (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-version-non-native-simple + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-non-native-simple/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-non-native-simple/debian/control new file mode 100644 index 00000000..d08d21bf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-non-native-simple/debian/control @@ -0,0 +1,17 @@ +Source: changelog-version-non-native-simple +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-version-non-native-simple +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for normal versions + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-non-native-simple/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-non-native-simple/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-non-native-simple/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-non-native-simple/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-non-native-simple/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-non-native-simple/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-non-native-simple/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-non-native-simple/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-non-native-simple/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-non-native-simple/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-non-native-simple/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-non-native-simple/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-non-native-simple/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-non-native-simple/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-non-native-simple/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-non-native-simple/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-non-native-simple/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-non-native-simple/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-non-native-simple/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-non-native-simple/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-non-native-simple/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-non-native-simple/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-non-native-simple/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-special-chars/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-special-chars/ORIGIN new file mode 100644 index 00000000..2bceae78 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-special-chars/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/changelog-version-special-chars + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-special-chars/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-special-chars/debian/changelog new file mode 100644 index 00000000..03272984 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-special-chars/debian/changelog @@ -0,0 +1,17 @@ +changelog-version-special-chars (2:1.5+important~personal1-stable-7) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-version-special-chars + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changelog-version-special-chars (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: changelog-version-special-chars + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-special-chars/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-special-chars/debian/control new file mode 100644 index 00000000..add5ef78 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-special-chars/debian/control @@ -0,0 +1,17 @@ +Source: changelog-version-special-chars +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: changelog-version-special-chars +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for weird versions + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-special-chars/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-special-chars/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-special-chars/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-special-chars/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-special-chars/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-special-chars/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-special-chars/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-special-chars/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-special-chars/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-special-chars/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-special-chars/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-special-chars/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-special-chars/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-special-chars/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-special-chars/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-special-chars/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-special-chars/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-special-chars/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-special-chars/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-special-chars/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-special-chars/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-special-chars/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-special-chars/eval/hints new file mode 100644 index 00000000..fddb586c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/changelog-version-special-chars/eval/hints @@ -0,0 +1,3 @@ +changelog-version-special-chars (source): hyphen-in-upstream-part-of-debian-changelog-version 1.5+important~personal1-stable [debian/changelog:1] +changelog-version-special-chars (source): epoch-changed-but-upstream-version-did-not-go-backwards 0.0.1-1 -> 2:1.5+important~personal1-stable-7 [debian/changelog:1] +changelog-version-special-chars (source): epoch-change-without-comment 0.0.1-1 -> 2:1.5+important~personal1-stable-7 [debian/changelog:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/cruft-native-dash-version/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/cruft-native-dash-version/ORIGIN new file mode 100644 index 00000000..a07f6dc5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/cruft-native-dash-version/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/cruft-native-dash-version + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/cruft-native-dash-version/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/cruft-native-dash-version/debian/changelog new file mode 100644 index 00000000..48ce5893 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/cruft-native-dash-version/debian/changelog @@ -0,0 +1,17 @@ +cruft-native-dash-version (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-native-dash-version + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +cruft-native-dash-version (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-native-dash-version + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/cruft-native-dash-version/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/cruft-native-dash-version/debian/control new file mode 100644 index 00000000..dcd95f09 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/cruft-native-dash-version/debian/control @@ -0,0 +1,17 @@ +Source: cruft-native-dash-version +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: cruft-native-dash-version +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for native packages with dash version + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/cruft-native-dash-version/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/cruft-native-dash-version/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/cruft-native-dash-version/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/cruft-native-dash-version/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/cruft-native-dash-version/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/cruft-native-dash-version/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/cruft-native-dash-version/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/cruft-native-dash-version/debian/source/format new file mode 100644 index 00000000..d3827e75 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/cruft-native-dash-version/debian/source/format @@ -0,0 +1 @@ +1.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/cruft-native-dash-version/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/cruft-native-dash-version/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/cruft-native-dash-version/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/cruft-native-dash-version/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/cruft-native-dash-version/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/cruft-native-dash-version/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/cruft-native-dash-version/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/cruft-native-dash-version/eval/hints new file mode 100644 index 00000000..0a358d5a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/cruft-native-dash-version/eval/hints @@ -0,0 +1 @@ +cruft-native-dash-version (source): malformed-debian-changelog-version 1.0-1 (for native) [debian/changelog:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/date-based-version/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/date-based-version/ORIGIN new file mode 100644 index 00000000..a997e503 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/date-based-version/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/date-based-version + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/date-based-version/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/date-based-version/debian/changelog new file mode 100644 index 00000000..73ee6151 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/date-based-version/debian/changelog @@ -0,0 +1,8 @@ +date-based-version (20180219-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: date-based-version + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/date-based-version/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/date-based-version/debian/control new file mode 100644 index 00000000..cc65926d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/date-based-version/debian/control @@ -0,0 +1,17 @@ +Source: date-based-version +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: date-based-version +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Date-based version number + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/date-based-version/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/date-based-version/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/date-based-version/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/date-based-version/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/date-based-version/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/date-based-version/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/date-based-version/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/date-based-version/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/date-based-version/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/date-based-version/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/date-based-version/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/date-based-version/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/date-based-version/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/date-based-version/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/date-based-version/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/date-based-version/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/date-based-version/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/date-based-version/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/date-based-version/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/date-based-version/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/date-based-version/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/date-based-version/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/date-based-version/eval/hints new file mode 100644 index 00000000..a39ae26d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/date-based-version/eval/hints @@ -0,0 +1 @@ +date-based-version (binary): new-package-uses-date-based-version-number 20180219-1 (better: 0~20180219-1) [usr/share/doc/date-based-version/changelog.Debian.gz:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad-rc/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad-rc/ORIGIN new file mode 100644 index 00000000..bb254131 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad-rc/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/fields-version-bad-rc + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad-rc/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad-rc/debian/changelog new file mode 100644 index 00000000..534ab47c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad-rc/debian/changelog @@ -0,0 +1,17 @@ +fields-version-bad-rc (1.0+rc3-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: fields-version-bad-rc + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +fields-version-bad-rc (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: fields-version-bad-rc + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad-rc/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad-rc/debian/control new file mode 100644 index 00000000..44ded32d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad-rc/debian/control @@ -0,0 +1,17 @@ +Source: fields-version-bad-rc +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: fields-version-bad-rc +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for bad release candidate versions + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad-rc/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad-rc/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad-rc/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad-rc/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad-rc/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad-rc/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad-rc/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad-rc/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad-rc/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad-rc/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad-rc/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad-rc/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad-rc/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad-rc/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad-rc/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad-rc/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad-rc/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad-rc/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad-rc/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad-rc/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad-rc/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad-rc/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad-rc/eval/hints new file mode 100644 index 00000000..7a6da940 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad-rc/eval/hints @@ -0,0 +1 @@ +fields-version-bad-rc (source): rc-version-greater-than-expected-version 1.0+rc3 > 1.0 (consider using 1.0~rc3) [debian/changelog:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad/ORIGIN new file mode 100644 index 00000000..b45e337a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/fields-version-bad + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad/debian/changelog new file mode 100644 index 00000000..f8156720 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad/debian/changelog @@ -0,0 +1,7 @@ +fields-version-bad (0-.3) unstable; urgency=low + + * Lintian Test Suite. + * Test: fields-version-bad + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad/debian/control new file mode 100644 index 00000000..5a5970a0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad/debian/control @@ -0,0 +1,17 @@ +Source: fields-version-bad +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: fields-version-bad +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for weird versions + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad/debian/rules new file mode 100644 index 00000000..ce09a535 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_gencontrol: + dh_gencontrol -- -v1.0-0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-bad/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dfsg-native/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dfsg-native/ORIGIN new file mode 100644 index 00000000..ea843797 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dfsg-native/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/fields-version-dfsg-native + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dfsg-native/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dfsg-native/debian/changelog new file mode 100644 index 00000000..1cb5ef86 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dfsg-native/debian/changelog @@ -0,0 +1,17 @@ +fields-version-dfsg-native (1.0.dfsg1) unstable; urgency=low + + * Lintian Test Suite. + * Test: fields-version-dfsg-native + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +fields-version-dfsg-native (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: fields-version-dfsg-native + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dfsg-native/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dfsg-native/debian/control new file mode 100644 index 00000000..beeb8170 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dfsg-native/debian/control @@ -0,0 +1,17 @@ +Source: fields-version-dfsg-native +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: fields-version-dfsg-native +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Use of dfsg in a native package + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dfsg-native/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dfsg-native/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dfsg-native/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dfsg-native/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dfsg-native/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dfsg-native/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dfsg-native/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dfsg-native/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dfsg-native/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dfsg-native/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dfsg-native/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dfsg-native/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dfsg-native/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dfsg-native/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dfsg-native/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dfsg-native/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dfsg-native/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dfsg-native/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dot-dfsg/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dot-dfsg/ORIGIN new file mode 100644 index 00000000..28c93d2c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dot-dfsg/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/fields-version-dot-dfsg + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dot-dfsg/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dot-dfsg/debian/changelog new file mode 100644 index 00000000..e1924db7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dot-dfsg/debian/changelog @@ -0,0 +1,17 @@ +fields-version-dot-dfsg (1.0.dfsg1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: fields-version-dot-dfsg + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +fields-version-dot-dfsg (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: fields-version-dot-dfsg + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dot-dfsg/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dot-dfsg/debian/control new file mode 100644 index 00000000..1c7533fc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dot-dfsg/debian/control @@ -0,0 +1,17 @@ +Source: fields-version-dot-dfsg +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: fields-version-dot-dfsg +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Use of ".dfsg" + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dot-dfsg/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dot-dfsg/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dot-dfsg/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dot-dfsg/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dot-dfsg/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dot-dfsg/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dot-dfsg/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dot-dfsg/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dot-dfsg/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dot-dfsg/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dot-dfsg/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dot-dfsg/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dot-dfsg/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dot-dfsg/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dot-dfsg/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dot-dfsg/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dot-dfsg/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dot-dfsg/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dot-dfsg/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dot-dfsg/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dot-dfsg/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dot-dfsg/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dot-dfsg/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dot-dfsg/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dsfg/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dsfg/ORIGIN new file mode 100644 index 00000000..dac341df --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dsfg/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/fields-version-dsfg + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dsfg/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dsfg/debian/changelog new file mode 100644 index 00000000..c2303d91 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dsfg/debian/changelog @@ -0,0 +1,17 @@ +fields-version-dsfg (1.0+dsfg1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: fields-version-dsfg + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +fields-version-dsfg (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: fields-version-dsfg + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dsfg/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dsfg/debian/control new file mode 100644 index 00000000..9b517b4a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dsfg/debian/control @@ -0,0 +1,17 @@ +Source: fields-version-dsfg +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: fields-version-dsfg +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for the dsfg typo + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dsfg/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dsfg/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dsfg/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dsfg/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dsfg/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dsfg/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dsfg/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dsfg/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dsfg/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dsfg/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dsfg/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dsfg/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dsfg/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dsfg/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dsfg/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dsfg/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dsfg/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dsfg/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dsfg/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dsfg/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dsfg/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dsfg/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dsfg/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/fields-version-dsfg/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/INSTALL b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/INSTALL new file mode 100644 index 00000000..3b50ea95 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/INSTALL @@ -0,0 +1,176 @@ +Basic Installation +================== + + These are generic installation instructions. + + The `configure' shell script attempts to guess correct values for +various system-dependent variables used during compilation. It uses +those values to create a `Makefile' in each directory of the package. +It may also create one or more `.h' files containing system-dependent +definitions. Finally, it creates a shell script `config.status' that +you can run in the future to recreate the current configuration, a file +`config.cache' that saves the results of its tests to speed up +reconfiguring, and a file `config.log' containing compiler output +(useful mainly for debugging `configure'). + + If you need to do unusual things to compile the package, please try +to figure out how `configure' could check whether to do them, and mail +diffs or instructions to the address given in the `README' so they can +be considered for the next release. If at some point `config.cache' +contains results you don't want to keep, you may remove or edit it. + + The file `configure.in' is used to create `configure' by a program +called `autoconf'. You only need `configure.in' if you want to change +it or regenerate `configure' using a newer version of `autoconf'. + +The simplest way to compile this package is: + + 1. `cd' to the directory containing the package's source code and type + `./configure' to configure the package for your system. If you're + using `csh' on an old version of System V, you might need to type + `sh ./configure' instead to prevent `csh' from trying to execute + `configure' itself. + + Running `configure' takes a while. While running, it prints some + messages telling which features it is checking for. + + 2. Type `make' to compile the package. + + 3. Optionally, type `make check' to run any self-tests that come with + the package. + + 4. Type `make install' to install the programs and any data files and + documentation. + + 5. You can remove the program binaries and object files from the + source code directory by typing `make clean'. To also remove the + files that `configure' created (so you can compile the package for + a different kind of computer), type `make distclean'. There is + also a `make maintainer-clean' target, but that is intended mainly + for the package's developers. If you use it, you may have to get + all sorts of other programs in order to regenerate files that came + with the distribution. + +Compilers and Options +===================== + + Some systems require unusual options for compilation or linking that +the `configure' script does not know about. You can give `configure' +initial values for variables by setting them in the environment. Using +a Bourne-compatible shell, you can do that on the command line like +this: + CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure + +Or on systems that have the `env' program, you can do it like this: + env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure + +Compiling For Multiple Architectures +==================================== + + You can compile the package for more than one kind of computer at the +same time, by placing the object files for each architecture in their +own directory. To do this, you must use a version of `make' that +supports the `VPATH' variable, such as GNU `make'. `cd' to the +directory where you want the object files and executables to go and run +the `configure' script. `configure' automatically checks for the +source code in the directory that `configure' is in and in `..'. + + If you have to use a `make' that does not supports the `VPATH' +variable, you have to compile the package for one architecture at a time +in the source code directory. After you have installed the package for +one architecture, use `make distclean' before reconfiguring for another +architecture. + +Installation Names +================== + + By default, `make install' will install the package's files in +`/usr/local/bin', `/usr/local/man', etc. You can specify an +installation prefix other than `/usr/local' by giving `configure' the +option `--prefix=PATH'. + + You can specify separate installation prefixes for +architecture-specific files and architecture-independent files. If you +give `configure' the option `--exec-prefix=PATH', the package will use +PATH as the prefix for installing programs and libraries. +Documentation and other data files will still use the regular prefix. + + If the package supports it, you can cause programs to be installed +with an extra prefix or suffix on their names by giving `configure' the +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. + +Optional Features +================= + + Some packages pay attention to `--enable-FEATURE' options to +`configure', where FEATURE indicates an optional part of the package. +They may also pay attention to `--with-PACKAGE' options, where PACKAGE +is something like `gnu-as' or `x' (for the X Window System). The +`README' should mention any `--enable-' and `--with-' options that the +package recognizes. + + For packages that use the X Window System, `configure' can usually +find the X include and library files automatically, but if it doesn't, +you can use the `configure' options `--x-includes=DIR' and +`--x-libraries=DIR' to specify their locations. + +Specifying the System Type +========================== + + There may be some features `configure' can not figure out +automatically, but needs to determine by the type of host the package +will run on. Usually `configure' can figure that out, but if it prints +a message saying it can not guess the host type, give it the +`--host=TYPE' option. TYPE can either be a short name for the system +type, such as `sun4', or a canonical name with three fields: + CPU-COMPANY-SYSTEM + +See the file `config.sub' for the possible values of each field. If +`config.sub' isn't included in this package, then this package doesn't +need to know the host type. + + If you are building compiler tools for cross-compiling, you can also +use the `--target=TYPE' option to select the type of system they will +produce code for and the `--build=TYPE' option to select the type of +system on which you are compiling the package. + +Sharing Defaults +================ + + If you want to set default values for `configure' scripts to share, +you can create a site shell script called `config.site' that gives +default values for variables like `CC', `cache_file', and `prefix'. +`configure' looks for `PREFIX/share/config.site' if it exists, then +`PREFIX/etc/config.site' if it exists. Or, you can set the +`CONFIG_SITE' environment variable to the location of the site script. +A warning: not all `configure' scripts look for a site script. + +Operation Controls +================== + + `configure' recognizes the following options to control how it +operates. + +`--cache-file=FILE' + Use and save the results of the tests in FILE instead of + `./config.cache'. Set FILE to `/dev/null' to disable caching, for + debugging `configure'. + +`--help' + Print a summary of the options to `configure', and exit. + +`--quiet' +`--silent' +`-q' + Do not print messages saying which checks are being made. + +`--srcdir=DIR' + Look for the package's source code in directory DIR. Usually + `configure' can determine that directory automatically. + +`--version' + Print the version of Autoconf used to generate the `configure' + script, and exit. + +`configure' also accepts some other, not widely useful, options. + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/Makefile new file mode 100644 index 00000000..da1dc555 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/Makefile @@ -0,0 +1,12 @@ +all: hello hello-static + +hello: hello.c + gcc hello.c -o hello + +hello-static: hello.c + gcc -static hello.c -o hello-static + +clean: + rm -f hello hello-static + +distclean: clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/ORIGIN new file mode 100644 index 00000000..b50d130b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/legacy-binary + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/NEWS.Debian b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/NEWS.Debian new file mode 100644 index 00000000..945632a3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/NEWS.Debian @@ -0,0 +1,12 @@ +binary (4-1.1) UNRELEASED; urgency=high + + This is a Debian NEWS entry that isn't encoded properly in UTF-8: ü. + It also has a usefull speling error. + + -- Russ Allbery Sun, 14 Oct 2007 17:11:36 -0700 + +binary (1) unstable; urgency=low + + This is another entry but this one isn't syntactically valid. + + -- Russ Allbery 2007-10-14 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/README.Debian b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/README.Debian new file mode 100644 index 00000000..94bcc0ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/README.Debian @@ -0,0 +1,5 @@ +this is a binary package to test lintian's handling of bins. +Check handling of D-Bus and dbus (neither of which should produce +warnings). + + -- Russ Allbery , Wed, 6 Feb 2008 18:35:11 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/changelog new file mode 100644 index 00000000..35b8c0bf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/changelog @@ -0,0 +1,47 @@ +binary (4-1.1) unstable; urgency=low + + * I'm doing an comaintainer-upload, acknowledging a NMU, but with a version + number which suggests I'm doing a NMU myself. + + Lintian-maintainers: Please don't update this changelog, otherwise you'll + probably break the checks/nmu checks. + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 01:49:42 +0200 + +binary (4-1) unstable; urgency=low + + * Weird version number for the new check for accidents with native + packaging. + * Date was fixed by BR and this test was put on changelog-file-strange-date + due to dpkg bug, see #794674. + + -- Marc 'HE' Brockschmidt Thu, 15 Apr 2004 23:33:51 +0200 + +binary (4) unstable; urgency=low + + * Add big file to /usr/share to trigger the big-usr-share check + + -- Jeroen van Wolffelaar Fri, 27 Feb 2004 10:15:59 +0100 + +binary (3) unstable; urgency=unlimited + + * Add some bogus menu entries using su-to-root in a bogus way + + -- Jeroen van Wolffelaar Thu, 12 Feb 2004 20:11:22 +0100 + +binary (2) unstable; urgency=low + + * Added an INSTALL document which policy 6.3 suggests not to do + + -- Sean 'Shaleh' Perry Tue, 30 Jan 2001 15:23:59 -0800 + +binary (1) unstable; urgency=low + + * hello.c added + * hello-static is same as hello, but compiled statically + * added a menu entry which lacks a Section + * added a postinst + * postinst calls suidregister which is no longer policy compliant + + -- Sean 'Shaleh' Perry Wed, 10 Jan 2001 08:55:34 -0800 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/conffiles b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/conffiles new file mode 100644 index 00000000..d1a08433 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/conffiles @@ -0,0 +1 @@ +/etc/menu-methods/lintian diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/control new file mode 100644 index 00000000..c797357b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/control @@ -0,0 +1,42 @@ +Source: binary +Section: misc +Priority: optional +Maintainer: Lintian Maintainers +Uploaders: Co-maintainer one , Jeroen van Wolffelaar , Co-maintainer three +Standards-Version: 3.2.1 +Homepage: http://lintian.debian.org/ +Vcs-Svn: http://svn.wolffelaar.nl/lintian/trunk +XS-Vcs-Browser: http://svn.wolffelaar.nl/lintian/trunk +XS-Dm-Upload-Allowed: yes + +Package: binary +Architecture: any +Pre-Depends: ${shlibs:Depends}, xorg, binary-data (= ${source:Version}), libssl0.9.8 +Homepage: +Vcs-Svn: http://svn.wolffelaar.nl/lintian/trunk +Description: test handling of binary files + Regression test for lintian's handling of binary files for debian. This + is checked for picky spelling errors. + . + This package list [ subversion | gconf ] should not be flagged as a spelling + mistake. The spelling correction for dont should be correct. + . + Homepage: http://lintian.debian.org/ + +Package: binary-data +Architecture: all +Depends: binary (= ${source:Version}), libssl-not-openssl, + libssl0.9.8 | or-something-else +Description: test handling of binary relationships + Regression test for lintian's checking of package relationships between + arch:any and arch:all packages. + . + This mention of subversion should be flagged as a spelling mistake. + +#Package: binary-comment +#Architecture: space-almonds +#Depends: * +#Depends: * +#Description: test comment support +# Yes, comments are actually allowed in debian/control, so none of the +# above should produce errors. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/copyright new file mode 100644 index 00000000..1d6806de --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/copyright @@ -0,0 +1,15 @@ +hello.c is released under public domain. This is distributed in the hope that +it will be useful, but without any warranty; without even the implied warranty +of merchantability or fitness for a particular purpose. + +A reference to /usr/share/common-licenses/GPL-2 to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +Test for old FSF address: + +Free Software Foundation, Inc., 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. + +Test for deprecated ntionl ncoding. + +Improper capitalization of linux or debian isn't caught here. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/doc-base b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/doc-base new file mode 100644 index 00000000..7e5b38f2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/doc-base @@ -0,0 +1,41 @@ +Document: binary!docs +Title: Broken debian binary doc-base control file +Author: Russ Allbery +Abstract: This control file exercises various tests of doc-base control + files, including several things that aren't tested yet. The third and + fourth one has trailing whitespace. + . + This section has a speling error and bad character. + . + The above separator was fine. +Section: Non/Existant +Unknown: Some field + + + +Format: debiandoc-sgML +Files: /usr/share/doc/binary/binary.sgml.gz +Unknown: Some field + +Format: ESP +Index: /usr/share/doc/binary/binary.txt + +Index: /usr/share/doc/binary/html/index.html + /usr/share/doc/binary/html/ch1.html + /usr/share/doc/binary/html/ch4.html + + +Format: HTML +Index: /usr/share/doc/binary/html/index.html +Files: /usr/share/doc/binary/html/ch?.h*l + /usr/share/doc/binary/hml/*.html + +Format: inFO +Files: /usr/share/info/binary.info.gz + +Format: HTML +Index: /usr/share/doc/binary/html/index.html +Files: /usr/share/doc/binary/html/ch5.html + /usr/share/doc/binary/html/ch6.html + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/goodbye.desktop b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/goodbye.desktop new file mode 100644 index 00000000..f6ce8e3f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/goodbye.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Name:Goodbye +# Name=Goodbye +Comment=Say hello! +SpecialTag=This doesn't exist! +Exec=goodbye +icon=hello +Terminal=true +Type=Application +Categories=WeirdStuff;Screensaver; +Encoding=ISO-10646-1 +[Other Entry] +Name=Goodbye diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/hello.desktop b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/hello.desktop new file mode 100644 index 00000000..f7954685 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/hello.desktop @@ -0,0 +1,14 @@ +# some random comment + +# [Foo Bar] +[KDE Desktop Entry] +Name=Hello +Name[en_US]=Hello +Comment=Say hello! +Exec=kdesu hello +Icon=hello +Terminal=true +Type=Application +Categories=GNOME;GTK;System;Applet;X-Foo;Settings; +Encoding=UTF-8 +OnlyShowIn=GNOME; diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/menu b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/menu new file mode 100644 index 00000000..e8972f4f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/menu @@ -0,0 +1,26 @@ +?package(binary):needs=text title="Hello World" command="/usr/bin/hello" +?package(binary):needs=text section="Applications/System" title="Run cfdisk (0)" command="/usr/bin/su-to-root cfdisk" +?package(binary):needs="text" section="Applications/System/Hardware" title="Run cfdisk (1)" command="sux -p cfdisk" +?package(binary):needs="x11" section="Window Managers" title="Run xfdisk" command="/usr/sbin/su-to-root -c xfdisk" +?package(binary):needs="wm" section="Applications/System/Administration" title="Run fdisk-wm" command="su-to-root -c hello" +?package(binary):section="Apps/Games" title="I'm not root!" command="su-to-root -c imnothere" +?package(binary):needs="text" section="Apps/System" title="I'm not here!" command="/imnothere" +?package(binary,other-binary):\ + needs="text"\ + section="Applications/Shells"\ + title="more than one required"\ + command="other-bin -s omething" +?package(binary):needs="wmmodule" section="WindowManagers/Modules" title="somemodule" command="ModuleCmd" +?package(binary):needs="wmmodule" section="FVWM Modules" title="somemodule" command="ModuleCmd" +?package(binary):needs="text" section="Applications/System/Administration" title="I'm not in /usr/bin!" command="iminusrbin" +?package(binary):needs="text"\ + section="Applications/System/Administration"\ + title="I'm not root!" command="su-to-root -c imnothere" +?package(binary):needs="text" section="Applications/System/Administration"\ + title="Run cfdisk (0)" command="cfdisk" +?package(binary):needs="text" section="Applications/System/Administration" title="Hello World" command="/usr/bin/hello" +?package(binary):needs="wm" section="FVWM Modules" title="Fake Module" command="hello" +?package(binary):needs="fvwmmodule" section="Window Maker" title="Fake Module"\ + command="hello" +?package(binary):needs="x11" section="Applications/System/Hardware" title="Run xfdisk" command="su-to-root -c 'xfdisk -f'" +?package(binary):needs="text" section="Applications/System/Administration" title="foo" command="sh /path/to/foo" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/menu-method b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/menu-method new file mode 100644 index 00000000..9f07bd73 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/menu-method @@ -0,0 +1,22 @@ +#!/usr/bin/install-menu + +# -*- mode: shell-script; -*- +#I need menu-1! +# + +!include notmenu.h + +compat="menu-2" + +outputencoding="UTF-8"; +outputlanguage="C"; + +x11 = AppEntry("false"); +text = AppEntry("true"); + +startmenu = ""; +endmenu = ""; +submenutitle = ""; +rootprefix = "/var/lib/lintian/menu"; +userprefix = ".local/share/lintian/menu"; + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/postinst new file mode 100644 index 00000000..29e18619 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/postinst @@ -0,0 +1,6 @@ +#! /bin/bash -e + +if [ $1 eq 'configure' ] +then + suidregister hello-static root root 4755 +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/rules new file mode 100755 index 00000000..a962ea92 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/rules @@ -0,0 +1,92 @@ +#!/usr/bin/make -f + +tmp=debian/tmp + +# This reference to $(PWD) should not cause an error but the one below +# should. +build-arch: + make + echo $(PWD) + +build: build-arch + +clean: + make -i clean + [ ! -f debian/files ] || rm -f debian/files + [ ! -f debian/substvars ] || rm -f debian/substvars + [ ! -d debian/tmp ] || rm -rf debian/tmp + [ ! -d debian/binary ] || rm -rf debian/binary + [ ! -d debian/binary-data ] || rm -rf debian/binary-data + +binary-arch: build + install -d $(tmp)/usr/bin + install -d $(tmp)/boot/hello + install -m 755 hello $(tmp)/usr/bin + touch $(tmp)/usr/bin/iminusrbin + chmod 755 $(tmp)/usr/bin/iminusrbin + install -m 755 hello-static $(tmp)/usr/bin + strip $(tmp)/usr/bin/hello-static + install -m 755 hello-static $(tmp)/usr/bin/hello.static + strip --remove-section=.comment --remove-section=.note $(tmp)/usr/bin/hello.static + ln $(tmp)/usr/bin/hello.static $(tmp)/usr/bin/static-hello + install -m 755 hello-static $(tmp)/boot/hello + strip --remove-section=.comment --remove-section=.note $(tmp)/boot/hello/hello-static + install -d $(tmp)/usr/share/doc/binary + install -m 644 INSTALL $(tmp)/usr/share/doc/binary + install -d $(tmp)/usr/share/doc/binary/html + echo '' > $(tmp)/usr/share/doc/binary/html/index.html + echo '' > $(tmp)/usr/share/doc/binary/html/ch1.html + ln -s ../html/./ch1.html $(tmp)/usr/share/doc/binary/html/ch2.html + ln -s /usr/share/doc/binary/htm/ch1.html $(tmp)/usr/share/doc/binary/html/ch3.html + echo '' > $(tmp)/usr/share/doc/binary/html/ch5.html + ln $(tmp)/usr/share/doc/binary/html/ch5.html \ + $(tmp)/usr/share/doc/binary/html/ch6.html + install -d $(tmp)/usr/share/menu + install -d $(tmp)/usr/lib/menu + install -d $(tmp)/usr/share/binary + install -m 644 debian/menu $(tmp)/usr/share/menu/binary + install -m 644 debian/menu $(tmp)/usr/lib/menu/binary + install -d $(tmp)/etc/menu-methods + install -m 755 debian/menu-method $(tmp)/etc/menu-methods/lintian + install -d $(tmp)/usr/share/doc-base + install -m 644 debian/doc-base $(tmp)/usr/share/doc-base/binary + touch '$(tmp)/usr/share/doc-base/space ' + install -m 644 debian/README.Debian $(tmp)/usr/share/doc/binary + install -m 644 debian/NEWS.Debian $(tmp)/usr/share/doc/binary + gzip -n -9 $(tmp)/usr/share/doc/binary/NEWS.Debian + install -m 644 debian/copyright $(tmp)/usr/share/doc/binary + install -m 644 debian/changelog $(tmp)/usr/share/doc/binary + #gzip -n -9 $(tmp)/usr/share/doc/binary/changelog + install -d $(tmp)/DEBIAN + install -m 755 debian/postinst $(tmp)/DEBIAN + install -m 644 debian/conffiles $(tmp)/DEBIAN + + install -d $(tmp)/usr/share/applications + install -m 644 debian/hello.desktop \ + $(tmp)/usr/share/applications/hello.desktop + install -m 755 debian/goodbye.desktop \ + $(tmp)/usr/share/applications/goodbye.desktop + + # should be ok... + echo boe > $(tmp)/usr/bar + ln $(tmp)/usr/bar $(tmp)/usr/foo + # but this isn't + echo boe > $(tmp)/usr/bar2 + ln $(tmp)/usr/bar2 $(tmp)/usr/share/baz + + dd if=/dev/zero of=$(tmp)/usr/share/binary/largefile bs=1024 count=4000 + + install -d debian/binary-data/DEBIAN + install -d debian/binary-data/usr/share/doc + ln -s binary debian/binary-data/usr/share/doc/binary-data + + dpkg-shlibdeps $(tmp)/usr/bin/hello + dpkg-gencontrol -pbinary -isp + dpkg-gencontrol -pbinary-data -Pdebian/binary-data -isp + + dpkg --build debian/tmp .. + dpkg --build debian/binary-data .. + +binary: binary-arch + +.PHONY: build-arch build binary-arch binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/templates b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/templates new file mode 100644 index 00000000..3d928614 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/templates @@ -0,0 +1,16 @@ +# The debconf templates defined here are the sort that you'd use if +# providing a wordlist and an ispell dictionary for the language +# "perl". This shouldn't trigger warnings about not using debconf-po. + +Template: shared/packages-ispell +Type: text +Description: + +Template: shared/packages-wordlist +Type: text +Description: + +Template: miscfiles/languages +Type: text +Default: perl (Pathologically Eclectic Rubbish Lister) +Description: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/eval/hints new file mode 100644 index 00000000..c634eb03 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/eval/hints @@ -0,0 +1,9 @@ +binary (binary): syntax-error-in-debian-news-file "found eof where expected more change data or trailer" [usr/share/doc/binary/NEWS.Debian.gz:13] +binary (binary): syntax-error-in-debian-news-file "badly formatted trailer line" [usr/share/doc/binary/NEWS.Debian.gz:12] +binary (binary): spelling-error-in-news-debian usefull useful [usr/share/doc/binary/NEWS.Debian.gz] +binary (binary): spelling-error-in-news-debian speling spelling [usr/share/doc/binary/NEWS.Debian.gz] +binary (binary): debian-news-entry-has-strange-distribution UNRELEASED [usr/share/doc/binary/NEWS.Debian.gz:1] +binary (binary): debian-changelog-file-missing-or-wrong-name +binary (binary): changelog-news-debian-mismatch Urgency low != high [usr/share/doc/binary/NEWS.Debian.gz:1] +binary (binary): changelog-news-debian-mismatch Distribution unstable != UNRELEASED [usr/share/doc/binary/NEWS.Debian.gz:1] +binary (binary): changelog-file-not-compressed [usr/share/doc/binary/changelog] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/hello.c b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/hello.c new file mode 100644 index 00000000..2fb04e17 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-binary/hello.c @@ -0,0 +1,8 @@ +#include +#include + +int main(int argc, char *argv[]) { + + printf("Hello, World!\n"); + exit(0); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/ORIGIN new file mode 100644 index 00000000..31593589 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/legacy-etcfiles + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/debian/README.Debian b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/debian/README.Debian new file mode 100644 index 00000000..e289bfb2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/debian/README.Debian @@ -0,0 +1,5 @@ +this is a package to test lintian's handling of files in /etc. +Also, there's a random mention of /usr/doc here to prompt a warning. +But /usr/documentation doesn't. + + -- Russ Allbery , Mon, 18 Feb 2008 16:40:55 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/debian/changelog new file mode 100644 index 00000000..4f047b64 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/debian/changelog @@ -0,0 +1,7 @@ +etcfiles (1) unstable; urgency=low + + * Acknowledge NMU (Closes: #123456). + * initial setup + + -- Lintian Maintainers Fri, 21 Sep 2001 11:56:02 -0700 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/debian/conffiles b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/debian/conffiles new file mode 100644 index 00000000..76032b78 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/debian/conffiles @@ -0,0 +1,5 @@ +/etc/proper +/var/lib/foo +/etc/cron.daily/cronfile-normal +/etc/cron.daily/.cronfile-begins-with-fullstop +/etc/cron.daily/cronfile-contains.fullstop diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/debian/conffiles.only b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/debian/conffiles.only new file mode 100644 index 00000000..a4b38954 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/debian/conffiles.only @@ -0,0 +1,2 @@ +/etc/etcfiles/foo +/etc/etcfiles/bar diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/debian/control new file mode 100644 index 00000000..f3dbda7f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/debian/control @@ -0,0 +1,20 @@ +Source: etcfiles +Section: misc +Priority: optional +Maintainer: Lintian Maintainers +Standards-Version: 3.5.0 + +Package: etcfiles +Architecture: any +Depends: ${shlibs:Depends} +Description: test handling of files in /etc + Regression test for lintian's handling of files in /etc. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: only-etcfiles +Architecture: all +Depends: etcfiles (= ${source:Version}) +Description: test handling of conffile-only package diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/debian/rules new file mode 100755 index 00000000..97ff09fc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/debian/rules @@ -0,0 +1,64 @@ +#!/usr/bin/make -f + +tmp=debian/tmp +tmponly=debian/only-etcfiles + +clean: + rm -f debian/files debian/substvars + rm -rf debian/tmp + rm -rf debian/only-etcfiles + +build: +build-arch: +build-indep: +binary-indep: + install -d $(tmp)/etc + install -m 644 proper $(tmp)/etc + install -m 644 improper $(tmp)/etc + mkdir $(tmp)/etc/cron.daily + touch $(tmp)/etc/cron.daily/cronfile-normal + touch $(tmp)/etc/cron.daily/.cronfile-begins-with-fullstop + touch $(tmp)/etc/cron.daily/cronfile-contains.fullstop + ln $(tmp)/etc/improper $(tmp)/etc/improper-link + install -d $(tmp)/usr/share/doc/etcfiles + install -d $(tmp)/var/lib + install -m 644 proper $(tmp)/var/lib/foo + install -m 644 debian/README.Debian $(tmp)/usr/share/doc/etcfiles + install -m 644 debian/changelog $(tmp)/usr/share/doc/etcfiles + #gzip -9 $(tmp)/usr/share/doc/etcfiles/changelog + install -d $(tmp)/DEBIAN + install -m 644 debian/conffiles $(tmp)/DEBIAN + + echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/cronfile-normal' \ + > debian/tmp/DEBIAN/md5sums + echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/.cronfile-begins-with-fullstop' \ + >> debian/tmp/DEBIAN/md5sums + echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/cronfile-contains.fullstop' \ + >> debian/tmp/DEBIAN/md5sums + echo '05c72cacce994208128b7d081116b04a ./etc/proper' \ + >> debian/tmp/DEBIAN/md5sums + echo 'ab371382468880299e5ebd05921764ce etc/improper' \ + >> debian/tmp/DEBIAN/md5sums + echo 'ab371382468880299e5ebd05921764ce usr/bin/foo' \ + >> debian/tmp/DEBIAN/md5sums + echo 'this is a malformed line' \ + >> debian/tmp/DEBIAN/md5sums + echo '56fb27e455dd86d8801f1ecd3a4cee49 usr/share/doc/etcfiles/README.Debian' \ + >> debian/tmp/DEBIAN/md5sums + + install -d $(tmponly)/etc/etcfiles + touch $(tmponly)/etc/etcfiles/foo + touch $(tmponly)/etc/etcfiles/bar + install -d $(tmponly)/usr/share/doc + cd $(tmponly)/usr/share/doc && ln -s etcfiles only-etcfiles + install -d $(tmponly)/DEBIAN + install -m 644 debian/conffiles.only $(tmponly)/DEBIAN/conffiles + + dpkg-gencontrol -isp -petcfiles + dpkg-gencontrol -isp -ponly-etcfiles -P$(tmponly) + dpkg --build $(tmp) .. + dpkg --build $(tmponly) .. + +binary: binary-indep + +.PHONY: binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/eval/hints new file mode 100644 index 00000000..49072d6e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/eval/hints @@ -0,0 +1 @@ +etcfiles (binary): changelog-file-not-compressed [usr/share/doc/etcfiles/changelog] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/improper b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/improper new file mode 100644 index 00000000..23656f41 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/improper @@ -0,0 +1,2 @@ +[config] + var = value \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/proper b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/proper new file mode 100644 index 00000000..f3dc68bf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-etcfiles/proper @@ -0,0 +1,2 @@ +# i am a config file +foo = var \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-fields/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-fields/ORIGIN new file mode 100644 index 00000000..aa676a92 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-fields/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/legacy-fields + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-fields/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-fields/debian/changelog new file mode 100644 index 00000000..1840a57f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-fields/debian/changelog @@ -0,0 +1,10 @@ +fields (1.5-.3) unstable; urgency=low + + * This package adds tests for the following tags: + - debian-revision-not-well-formed + - depends-on-python-minimal + - essential-no-not-needed + - debian-revision-should-not-be-zero + - new-essential-package + + -- Tobias Quathamer Sun, 10 Apr 2011 14:30:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-fields/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-fields/debian/control new file mode 100644 index 00000000..d980a6e2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-fields/debian/control @@ -0,0 +1,28 @@ +Source: fields +Section: does-not-exist +Priority: standard +Maintainer: Lintian Maintainers +Standards-Version: 3.9.2 + +Package: fields +Essential: no +Architecture: all +Depends: python-minimal +Description: Generate some errors + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: another-version +Essential: yes +Section: admin +Architecture: all +Description: Also generate some errors + This package gets another version number and tries to sneak in a new + essential package. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-fields/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-fields/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-fields/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-fields/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-fields/debian/rules new file mode 100755 index 00000000..11ad4a75 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-fields/debian/rules @@ -0,0 +1,33 @@ +#!/usr/bin/make -f + +tmp=debian/tmp + +build-arch: + +build-indep: + +build: build-arch build-indep + +binary-arch: + +binary-indep: + install -d $(tmp)/usr/share/doc/fields + install -m 644 debian/changelog \ + $(tmp)/usr/share/doc/fields/changelog + gzip -n -9 $(tmp)/usr/share/doc/fields/changelog + dh_md5sums -pfields -P$(tmp) + dpkg-gencontrol -pfields -P$(tmp) + dpkg --build $(tmp) .. + rm -rf $(tmp) + + # Create another package with a different version + dh_md5sums -panother-version -P$(tmp) + dpkg-gencontrol -panother-version -v123.4-0 -P$(tmp) + dpkg --build $(tmp) .. + +binary: binary-arch binary-indep + +clean: + rm -rf debian/files $(tmp) debian/substvars + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-fields/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-fields/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-fields/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-fields/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-fields/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-fields/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-fields/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-fields/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-fields/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-fields/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-fields/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-fields/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-fields/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-fields/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-fields/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-fields/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-fields/eval/hints new file mode 100644 index 00000000..33e2889e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-fields/eval/hints @@ -0,0 +1,2 @@ +fields (binary): debian-changelog-file-missing-or-wrong-name +another-version (binary): no-changelog usr/share/doc/another-version/changelog.Debian.gz (non-native package) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/ORIGIN new file mode 100644 index 00000000..482a8bb7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/legacy-filenames + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/data/ .tif b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/data/ .tif new file mode 100644 index 00000000..07fd9140 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/data/ .tif @@ -0,0 +1,2 @@ +This filename was inspired by the ".tif used by fnlib. The real package +uses space.tif. diff --git "a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/data/\".tif" "b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/data/\".tif" new file mode 100644 index 00000000..e0057757 --- /dev/null +++ "b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/data/\".tif" @@ -0,0 +1 @@ +This filename is really used, by fnlib. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/data/Maelstrom Sound b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/data/Maelstrom Sound new file mode 100644 index 00000000..41104109 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/data/Maelstrom Sound @@ -0,0 +1 @@ +This filename occurs in the maelstrom package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/debian/changelog new file mode 100644 index 00000000..f501faaa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/debian/changelog @@ -0,0 +1,78 @@ +filenames (1:12-0.1) unstable; urgency=low + + * /me is doing a correct NMU of this package, bumping the epoch too. + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 02:04:39 +0200 + +filenames (11) unstable; urgency=low + + * Add a README.macos. + + -- Marc 'HE' Brockschmidt Mon, 12 Apr 2004 23:35:24 +0200 + +filenames (10) unstable; urgency=low + + * Some new files to check the checks for the use of /usr/*/X11 and + /usr/X11R6/*. + + -- Marc 'HE' Brockschmidt Sun, 11 Apr 2004 17:35:20 +0200 + +filenames (9) unstable; urgency=low + + * Add a two *.ali files, one with the right permission, one with + the more common, but false one. + + -- Marc 'HE' Brockschmidt Sun, 11 Apr 2004 00:18:16 +0200 + +filenames (8) unstable; urgency=low + + * Add a real ancient file + + -- Frank Lichtenheld Thu, 8 Apr 2004 22:22:40 +0200 + +filenames (7) unstable; urgency=low + + * Add a dozen symlinks, some correct, some not + + -- Jeroen van Wolffelaar Fri, 27 Feb 2004 01:28:42 +0100 + +filenames (6) unstable; urgency=low + + * Add perl files to check if + package-installs-nonbinary-perl-in-usr-lib-perl5 is correctly + issued even after attempting to suppress it in some cases + + -- Frank Lichtenheld Fri, 27 Feb 2004 00:49:44 +0100 + +filenames (5) unstable; urgency=low + + * Added check for too long symlink + + -- Sean 'Shaleh' Perry Wed, 3 Jan 2001 13:20:31 -0800 + +filenames (4) unstable; urgency=low + + * Add /usr/lib/menu/menu file to test the bad-menu-file-name tag. + * Add /usr/lib/menu/README to test the new execption for it. + + -- Richard Braakman Thu, 22 Oct 1998 15:42:52 +0200 + +filenames (3) unstable; urgency=low + + * Don't rely on the installer's umask. + + -- Richard Braakman Thu, 20 Aug 1998 12:45:47 +0200 + +filenames (2) unstable; urgency=low + + * Noted more limitations on what filenames lintian handles. + * Added Changes.gz in /usr/doc/filenames and made a symlink from changelog.gz + to Changes.gz. + + -- Richard Braakman Sat, 4 Jul 1998 15:46:11 +0200 + +filenames (1) unstable; urgency=low + + * Initial version + + -- Richard Braakman Sat, 4 Jul 1998 15:25:01 +0200 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/debian/control new file mode 100644 index 00000000..1ff9c503 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/debian/control @@ -0,0 +1,42 @@ +Source: filenames +Maintainer: Lintian Maintainer +Standards-Version: 3.1.1 +Rules-Requires-Root: binary-targets + +Package: filenames +Architecture: any +Description: see how lintian reacts to weird filenames + This package contains files with the most evil names I could find, + except for ones that lintian is explicitly not designed to handle. + . + Lintian does not handle filenames containing newlines, or filenames + that contain the strings " link to ", " -> ", or ": ". The last one + is used as a separator by the file command, the others are used as + separators by tar. + . + Lintian also does not handle filenames that contain backslashes, or + other characters that are mangled by tar's -tv output. + +Package: filename-games +Architecture: all +Depends: filenames +Section: games +Description: Test game filename/location checks + This package contains files with slightly less evil names than + filenames. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: more-filename-games +Architecture: all +Depends: filenames, filename-games +Section: games +Priority: optional +Description: More test for game filename/location checks + This package contains no evil names, only evil locations. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/debian/doc-base b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/debian/doc-base new file mode 100644 index 00000000..e5a611ba --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/debian/doc-base @@ -0,0 +1,11 @@ +Document: testing +Title: Working doc-base control file +Author: Russ Allbery +Abstract: This control file ensures that we don't get false positives for + correct doc-base files. + . + There isn't anything wrong with this one. +Section: Education + +Format: Text +Files: /usr/share/doc/filenames/README.macosx diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/debian/rules new file mode 100755 index 00000000..fd86970b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/debian/rules @@ -0,0 +1,213 @@ +#!/usr/bin/make -f + +# Copyright (C) 1998 Richard Braakman +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, you can find it on the World Wide +# Web at https://www.gnu.org/copyleft/gpl.html, or write to the Free +# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +# MA 02110-1301, USA. + +VENDORARCH := $(shell perl -MConfig -wE'say substr($$Config{vendorarch},1)') + +clean: + mkdir -p .svn CVS "{arch}" .arch-ids .bzr + touch data/.cvsignore data/svn-commit.tmp data/svk-commitsEr9P.tmp + touch data/.arch-inventory + touch 'data/.#Maelstrom Sound.1.1.1' 'data/Maelstrom Sounce.r121' + touch 'data/Maelstrom Sound.mine' + touch "data/'\\ " + touch filenames.c~ + +build-arch: + +build-indep: + +build: build-arch build-indep + + +binary-arch: + +binary-indep: + install -d debian/tmp/DEBIAN + cp -a data debian/tmp/files + chmod -R go=rX debian/tmp/files + + install -d debian/tmp/usr/lib/filenames + install -m 555 -d debian/tmp/usr/lib/filenames/readonly + touch debian/tmp/usr/lib/filenames/readonly/test + + install -d debian/tmp/usr/lib/menu + install -d debian/tmp/usr/share/menu + touch debian/tmp/usr/lib/menu/README + touch debian/tmp/usr/share/menu/README + touch debian/tmp/usr/lib/menu/menu + touch debian/tmp/usr/share/menu/menu + chmod 644 debian/tmp/usr/lib/menu/* + + install -d debian/tmp/$(VENDORARCH)/foo + mkdir debian/tmp/$(VENDORARCH)/.svn + mkdir debian/tmp/$(VENDORARCH)/CVS + mkdir "debian/tmp/$(VENDORARCH)/{arch}" + mkdir debian/tmp/$(VENDORARCH)/.arch-ids + mkdir debian/tmp/$(VENDORARCH)/.bzr + mkdir debian/tmp/$(VENDORARCH)/.be + mkdir debian/tmp/$(VENDORARCH)/.ditrack + install -d debian/tmp/usr/share/perl5 + echo foo > debian/tmp/$(VENDORARCH)/foo/.gitignore + echo foo > debian/tmp/$(VENDORARCH)/foo/.hgignore + echo foo > debian/tmp/$(VENDORARCH)/foo/.hgtags + echo foo > debian/tmp/$(VENDORARCH)/foo/.hg_archival.txt + + touch debian/tmp/$(VENDORARCH)/foo/.packlist + chmod 644 debian/tmp/$(VENDORARCH)/foo/.packlist + touch debian/tmp/$(VENDORARCH)/foo/bar.pm + TZ=UTC touch -t 197501010101 debian/tmp/$(VENDORARCH)/foo/ancient.pm + chmod 644 debian/tmp/$(VENDORARCH)/foo/bar.pm + + install -d debian/tmp/usr/share/pixmaps + install -d debian/tmp/usr/share/pixmaps/foo + touch debian/tmp/usr/share/pixmaps/license.jpeg + touch debian/tmp/usr/share/pixmaps/licence.jpg + touch debian/tmp/usr/share/pixmaps/copying.xpm + touch debian/tmp/usr/share/pixmaps/foo/COPYING.svg + touch debian/tmp/usr/share/pixmaps/foo/copying.png + touch debian/tmp/usr/share/pixmaps/license.txt + touch debian/tmp/usr/share/pixmaps/license.foo + touch debian/tmp/usr/share/pixmaps/COPYING + + install -d debian/tmp/usr/share/linda/overrides + echo 'foo' > debian/tmp/usr/share/linda/overrides/filenames + + install -d debian/tmp/usr/share/doc/filenames + touch debian/tmp/usr/share/doc/filenames/README.macosx + + echo foo > debian/tmp/usr/share/doc/filenames/bokmål + echo foo > debian/tmp/usr/share/doc/filenames/bokm\\ål + echo foo > debian/tmp/usr/share/doc/filenames/bokml + echo foo > debian/tmp/usr/share/doc/filenames/bokm\\l + + echo foo > debian/tmp/usr/share/doc/filenames/Thumbs.db + echo foo > debian/tmp/usr/share/doc/filenames/.DS_Store + echo foo > debian/tmp/usr/share/doc/filenames/._NEWS.Debian + + touch debian/tmp/usr/share/doc/filenames/news.debian + gzip -n debian/tmp/usr/share/doc/filenames/news.debian + touch debian/tmp/usr/share/doc/filenames/NEWS.Debian + + echo foo > debian/tmp/usr/share/doc/filenames/link-one + ln debian/tmp/usr/share/doc/filenames/link-one \ + debian/tmp/usr/share/doc/filenames/link-two + + install -d debian/tmp/usr/share/doc/filenames/examples + touch debian/tmp/usr/share/doc/filenames/examples/__init__.py + touch debian/tmp/usr/share/doc/filenames/examples/very_interesting_example + touch debian/tmp/usr/share/doc/filenames/examples/very_interesting_example2 + gzip -n debian/tmp/usr/share/doc/filenames/examples/very_interesting_example2 + + install -d debian/tmp/usr/lib/ada/adalib/ + touch debian/tmp/usr/lib/ada/adalib/test.ali debian/tmp/usr/lib/ada/adalib/test2.ali + chmod 0644 debian/tmp/usr/lib/ada/adalib/test.ali + chmod 0444 debian/tmp/usr/lib/ada/adalib/test2.ali + + install -d debian/tmp/usr/bin/X11/ + touch debian/tmp/usr/bin/X11/testxbin + install -d debian/tmp/usr/X11R6/bin + touch debian/tmp/usr/X11R6/bin/testxbin2 + install -d debian/tmp/usr/include/X11 + touch debian/tmp/usr/include/X11/foo.h + + install -d debian/tmp/usr/bin/mh + touch debian/tmp/usr/bin/mh/read + chmod 755 debian/tmp/usr/bin/mh/read + install -d debian/tmp/usr/bin/bin + touch debian/tmp/usr/bin/bin/bad + chmod 755 debian/tmp/usr/bin/bin/bad + + install -m 644 debian/changelog debian/tmp/usr/share/doc/filenames/Changes + gzip -n -9 debian/tmp/usr/share/doc/filenames/Changes + ln -s Changes.gz debian/tmp/usr/share/doc/filenames/changelog.gz + + install -d debian/tmp/var/www + echo foo > debian/tmp/var/www/foo + + install -d debian/tmp/srv/foo + touch debian/tmp/srv/foo/bar + install -d debian/tmp/opt/foo + touch debian/tmp/opt/foo/bar + + install -d debian/tmp/etc/gconf/schemas + touch debian/tmp/etc/gconf/schemas/test.schema + + install -d debian/tmp/usr/lib/sgml + touch debian/tmp/usr/lib/sgml/package + + install -d debian/tmp/usr/share/gnome/apps/System + touch debian/tmp/usr/share/gnome/apps/System/foo.desktop + + install -d debian/tmp/usr/share/filenames + touch debian/tmp/usr/share/filenames/jquery.js + touch debian/tmp/usr/share/filenames/jquery.lite.js + touch debian/tmp/usr/share/filenames/jquery.min.js + touch debian/tmp/usr/share/filenames/jquery.pack.js + touch debian/tmp/usr/share/filenames/mochikit.js + touch debian/tmp/usr/share/filenames/prototype-1.2.3.4.js + touch debian/tmp/usr/share/filenames/prototype.js + touch debian/tmp/usr/share/filenames/prototype.js.gz + touch debian/tmp/usr/share/filenames/scriptaculous.js + touch debian/tmp/usr/share/filenames/yahoo-dom-event.js + touch debian/tmp/usr/share/filenames/yahoo-min.js + + ln -s '../filenames/doc/version6.txt.gz' debian/tmp/usr/share/doc/filenames/version.txt.gz + ln -s ../../share/symlink debian/tmp/usr/lib/filenames/symlink1ok + ln -s ../../../etc/symlink debian/tmp/usr/lib/filenames/symlink1wrong + ln -s ../../../../etc/symlink debian/tmp/usr/lib/filenames/symlink2wrong + ln -s /etc/symlink debian/tmp/usr/lib/filenames/symlink2ok + ln -s /usr/lib/filenames/symlink2 debian/tmp/usr/lib/filenames/symlink3wrong + ln -s test debian/tmp/usr/lib/filenames/symlink3ok + ln -s ../filenames/symlink2 debian/tmp/usr/lib/filenames/symlink4wrong + ln -s ../menu/../somethingelse debian/tmp/usr/lib/filenames/symlink5wrong + ln -s ../menu/somethingelse debian/tmp/usr/lib/filenames/symlink4ok + ln -s ./file4 debian/tmp/usr/lib/filenames/symlink6wrong + ln -s ../menu/./something debian/tmp/usr/lib/filenames/symlink7wrong + ln -s ../menu//something debian/tmp/usr/lib/filenames/symlink8wrong + ln -s ../menu/something/ debian/tmp/usr/lib/filenames/symlink9wrong + ln -s .. debian/tmp/usr/lib/filenames/symlink5ok+warn + ln -s . debian/tmp/usr/lib/filenames/symlink6ok+warn + ln -s / debian/tmp/usr/lib/filenames/symlink7ok+warn + ln -s ../../.. debian/tmp/usr/lib/filenames/symlink10wrong + + install -d debian/tmp/usr/share/doc-base + install -m 644 debian/doc-base debian/tmp/usr/share/doc-base/filenames + + dpkg-gencontrol -pfilenames -Pdebian/tmp + dpkg --build debian/tmp .. + + install -d debian/filename-games debian/filename-games/DEBIAN + install -d debian/filename-games/usr debian/filename-games/usr/games debian/filename-games/usr/bin + echo '#! /bin/sh' > debian/filename-games/usr/bin/test-game + chmod 755 debian/filename-games/usr/bin/test-game + dpkg-gencontrol -pfilename-games -Pdebian/filename-games + dpkg --build debian/filename-games .. + + install -d debian/more-filename-games debian/more-filename-games/DEBIAN + install -d debian/more-filename-games/usr debian/more-filename-games/usr/games debian/more-filename-games/usr/bin + echo '#! /bin/sh' > debian/more-filename-games/usr/bin/another-test-game + echo '#! /bin/sh' > debian/more-filename-games/usr/games/yet-another-test-game + chmod 755 debian/more-filename-games/usr/bin/another-test-game debian/more-filename-games/usr/games/yet-another-test-game + dpkg-gencontrol -pmore-filename-games -Pdebian/more-filename-games + dpkg --build debian/more-filename-games .. + +binary: binary-arch binary-indep + +.PHONY: build-indep build-arch build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/eval/hints new file mode 100644 index 00000000..7ff07b29 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-filenames/eval/hints @@ -0,0 +1,4 @@ +filenames (source): odd-historical-debian-changelog-version 11 (for non-native) [debian/changelog:7] +filenames (binary): wrong-name-for-debian-news-file [usr/share/doc/filenames/news.debian.gz] +filenames (binary): debian-news-file-not-compressed [usr/share/doc/filenames/NEWS.Debian] +filenames (binary): debian-changelog-file-is-a-symlink [usr/share/doc/filenames/changelog.gz] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-foo++/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-foo++/ORIGIN new file mode 100644 index 00000000..42823bbc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-foo++/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/legacy-foo++ + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-foo++/debian/README.Debian b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-foo++/debian/README.Debian new file mode 100644 index 00000000..87bfcdf7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-foo++/debian/README.Debian @@ -0,0 +1,7 @@ +foo++ for Debian +---------------- + +This should trigger a warning, as i use a fake mail address. + + -- Marc 'HE' Brockschmidt , Wed, 14 Apr 2004 01:44:18 +0200 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-foo++/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-foo++/debian/changelog new file mode 100644 index 00000000..d980c54f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-foo++/debian/changelog @@ -0,0 +1,31 @@ +foo++ (5) unstable; urgency=low + + * Add a fake README.Debian to trigger a warning. + * This should trigger + debian-changelog-file-contains-debmake-default-email-address. + + -- Marc 'HE' Brockschmidt Wed, 14 Apr 2003 01:35:47 +0200 + +foo++ (4) unstable; urgency=low + + * This changelog now includes a ISO-8859-1 character: 'ä' + + -- Frank Lichtenheld Fri, 5 Mar 2004 13:41:39 +0100 + +foo++ (3) unstable; urgency=low + + * Set maintainers + uploaders incorrectly + + -- Jeroen van Wolffelaar Fri, 5 Mar 2004 04:20:24 +0100 + +foo++ (2) unstable; urgency=low + + * Added a foo++-helper package to try and catch even more ++ bugs. + + -- Sean 'Shaleh' Perry Sat, 10 Feb 2001 23:16:17 -0800 + +foo++ (1) unstable; urgency=low + + * Initial version + + -- Sean 'Shaleh' Perry Thu, 16 Nov 2000 09:11:40 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-foo++/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-foo++/debian/control new file mode 100644 index 00000000..fb2469e1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-foo++/debian/control @@ -0,0 +1,29 @@ +Source: foo++ +Section: misc +Priority: optional +Maintainer: Lintian Maintainer +Uploaders: Marc 'HE' Brockschmidt , Jeroen van Wolffelaar , + Frank , +Standards-Version: 3.1.1 +XS-Dm-Upload-Allowed: no + +Package: foo++ +Architecture: all +Build-Depends: test +Depends: test, libssl0.9.7 +Description: see how lintian reacts to plus signs in the package name + Regression test to see if lintian tests work on a package with plus signs in + its name. + . + This description also uses non-UTF8 high bytes chars: ÄÖÜß + +Package: foo++-helper +Architecture: all +Depends: test, foo++ +Description: see how lintian reacts to plus signs in the package name + Regression test to see if lintian tests work on a package with plus signs in + its name. This has /usr/share/doc links to foo++ to trigger even more checks. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-foo++/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-foo++/debian/copyright new file mode 100644 index 00000000..e2d6d93e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-foo++/debian/copyright @@ -0,0 +1,7 @@ +A reference to /usr/share/common-licenses/GPL to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +However, there is also a reference to /usr/share/common-licenses/LGPL, so +who knows what bits actually depend on libssl. + +Copr. 2007 Somebody. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-foo++/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-foo++/debian/rules new file mode 100755 index 00000000..63bb4dbe --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-foo++/debian/rules @@ -0,0 +1,36 @@ +#!/usr/bin/make -f + +foo=foo++ +helper=foo++-helper + +build-arch: + +build-indep: + +build: build-arch build-indep + +binary-arch: + +binary-indep: + install -d debian/$(foo)/DEBIAN + install -d debian/$(foo)/usr/share/doc/$(foo) + install -m 644 debian/changelog \ + debian/$(foo)/usr/share/doc/$(foo)/changelog + gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/changelog + install -m 644 debian/README.Debian \ + debian/$(foo)/usr/share/doc/$(foo)/README.Debian + gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/README.Debian + dpkg-gencontrol -isp -p$(foo) -Pdebian/$(foo) + dpkg --build debian/$(foo) .. + + install -d debian/$(helper)/DEBIAN + install -d debian/$(helper)/usr/share/doc/ + ln -sf $(foo) debian/$(helper)/usr/share/doc/$(helper) + dpkg-gencontrol -isp -p$(helper) -Pdebian/$(helper) + dpkg --build debian/$(helper) .. + +binary: binary-arch binary-indep + +clean: + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-foo++/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-foo++/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-foo++/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-foo++/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-foo++/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-foo++/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-foo++/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-foo++/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-foo++/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-foo++/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-foo++/debian/watch new file mode 100644 index 00000000..26f9a3c1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-foo++/debian/watch @@ -0,0 +1,6 @@ +# A comment \ +version=0 + +# uscan does not interpret the backslash above, it is just part of the comment + +http://domain.tld/file-(.*)\.tar\.gz diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-foo++/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-foo++/eval/hints new file mode 100644 index 00000000..2775f3ff --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-foo++/eval/hints @@ -0,0 +1,4 @@ +foo++ (source): latest-debian-changelog-entry-without-new-date [debian/changelog:1] +foo++ (binary): latest-changelog-entry-without-new-date [usr/share/doc/foo++/changelog.gz:1] +foo++ (binary): debian-changelog-has-wrong-day-of-week 2003-04-14 was a Monday [usr/share/doc/foo++/changelog.gz:1] +foo++ (binary): bogus-mail-host-in-debian-changelog he@unknown (for version 5) [usr/share/doc/foo++/changelog.gz:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/Makefile new file mode 100644 index 00000000..657dc2ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/Makefile @@ -0,0 +1,55 @@ +# This is the correct way to build a lib + +CC=gcc +CFLAGS=-g -Wall -Winline -O2 +LDFLAGS=-Wl,--no-as-needed + +OBJS=baz.o extra.o +SHOBJS=baz.sho extra.sho +NOPICOBJS = $(SHOBJS) + +all: libbaz1.a libbaz2.a libbaz1.so.1.0.3b libbaz2.so libbaz3.so.1.0.3b \ + libbaz.so + +libbaz2.so: libbaz2.so.1.0 + ln -sf $^ $@ +libbaz2.so.1.0: libbaz2.so.1.0.3b + ln -sf $^ $@ + +# Oops, forget the soname altogether +libbaz1.so.1.0.3b: $(NOPICOBJS) + $(CC) $(LDFLAGS) -o $@ -shared $^ -lc + +libbaz2.so.1.0.3b: $(SHOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz2.so.1.0 $^ -lc + +# Non-PIC. We can't test this on all architectures +libbaz3.so.1.0.3b: $(NOPICOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz3.so.1 $^ -lc + +# Non-versioned SONAME. +libbaz.so: $(SHOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz.so $^ -lc + +#%.o-noreentrant: %.c +# $(CC) $(LDFLAGS) $(CFLAGS) -o $@ -c $< + +%.sho: %.c + $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -fPIC -o $@ -c $< + +%.o: %.c + $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -o $@ -c $< + +libbaz2.a: $(OBJS) + ar cq $@ $(OBJS) + strip --strip-unneeded --remove-section=.comment \ + --remove-section=-note $@ + ranlib $@ + +# The pic one in the .a (wrong), no archive table +libbaz1.a: $(SHOBJS) + ar cqS $@ $^ + strip --strip-unneeded --remove-section=.comment \ + --remove-section=-note $@ +clean: + rm -f *.a *.o *.so* *.sho diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/ORIGIN new file mode 100644 index 00000000..6bdca21f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/legacy-libbaz + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/baz.c b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/baz.c new file mode 100644 index 00000000..4d5fc458 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/baz.c @@ -0,0 +1,6 @@ +#include + +double pw(double p) +{ + return exp(p); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/changelog new file mode 100644 index 00000000..44c0a832 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/changelog @@ -0,0 +1,6 @@ +libbaz (1-1) unstable; urgency=low + + * Initial setup + + -- Sean 'Shaleh' Perry Tue, 30 Jan 2001 15:23:59 -0800 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/compat new file mode 100644 index 00000000..b1bd38b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/compat @@ -0,0 +1 @@ +13 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/control new file mode 100644 index 00000000..15066870 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/control @@ -0,0 +1,58 @@ +Source: libbaz +Section: libs +Priority: optional +Maintainer: Lintian Maintainer +Build-depends: debhelper (>=4) +Standards-Version: 3.2.1 + +Package: libbaz1 +Architecture: any +Provides: libbaz +Description: test handling of library packages + Regression test for lintian's handling of libraries. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz1-dev +Architecture: any +Depends: libbaz1 (= ${source:Version}), perlapi-5.8.8 +Description: development package + Regression test for lintian's handling of libraries (dev). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2 +Architecture: any +Depends: ${shlibs:Depends}, libssl0.9.8 +Description: test handling of library packages (good) + Regression test for lintian's handling of libraries (good). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2-dev +Architecture: any +Depends: ${shlibs:Depends}, libbaz2 (= ${source:Version}) +Description: development package (good) + Regression test for lintian's handling of libraries (dev good). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2-dbg +Architecture: any +Depends: libbaz2 (= ${binary:Version}) +Priority: optional +Description: debugging package + Regression test for lintian's handling of libraries (debug). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/copyright new file mode 100644 index 00000000..a874c878 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/copyright @@ -0,0 +1,8 @@ +This package is released under public domain. This is distributed in the hope +that it will be useful, but without any warranty; without even the implied +warranty of merchantability or fitness for a particular purpose. + +A reference to /usr/share/common-licenses/GPL-2 to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +However, this has an OpenSSL exception. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/dev.postinst b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/dev.postinst new file mode 100644 index 00000000..683e3cc5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/dev.postinst @@ -0,0 +1,4 @@ +#!/bin/sh -e + +$PKG=libbaz1-dev + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/dev.prerm b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/dev.prerm new file mode 100644 index 00000000..683e3cc5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/dev.prerm @@ -0,0 +1,4 @@ +#!/bin/sh -e + +$PKG=libbaz1-dev + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/lib.postinst b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/lib.postinst new file mode 100644 index 00000000..ec0b98ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/lib.postinst @@ -0,0 +1,10 @@ +#!/bin/sh -e + +$PKG=libbaz1 + +if [ "$1" = "configure" ]; then + if [ -d /usr/doc -a ! -e /usr/doc/$PKG -a -d /usr/share/doc/$PKG ] +; then + ln -sf ../share/doc/$PKG /usr/doc/$PKG + fi +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/lib.prerm b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/lib.prerm new file mode 100644 index 00000000..50e37c3b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/lib.prerm @@ -0,0 +1,7 @@ +#!/bin/sh -e + +$PKG=libbaz1 + +if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/$PKG ]; then + rm -f /usr/doc/$PKG +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/lib.shlibs b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/lib.shlibs new file mode 100644 index 00000000..b88e2882 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/lib.shlibs @@ -0,0 +1,8 @@ +libdoesntexist2 1.0 libbaz1 +libdoesntexist2 1.0 libbaz1 +libbaz2 1.1 libbaz +libbaz3 1 libbaz1 (>> 1-1) +libbaz4 1 libbaz1 (= 1-1) +libbaz5 1 libbaz2 +udeb: libdoesntexist2 1.0 libbaz2 +udeb: libdoesntexist2 1.0 libbaz2 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/lib.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/lib.symbols new file mode 100644 index 00000000..72f9d8ab --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/lib.symbols @@ -0,0 +1,3 @@ +libbaz.so.2 libbaz1 #MINVER# + pw 1-1 + foo 1.1-1 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/rules new file mode 100755 index 00000000..fa99bc8a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/rules @@ -0,0 +1,121 @@ +#!/usr/bin/make -f + +lib_tmp=debian/tmp-lib +dev_tmp=debian/tmp-dev + +LIB=libbaz1 +DEV=libbaz1-dev + +VENDORARCH := $(shell perl -MConfig -wE'say substr($$Config{vendorarch},1)') + +build-arch: + $(MAKE) + +build-indep: + +build: build-arch build-indep + +clean: + $(MAKE) clean + dh_clean -plibbaz2 -plibbaz2-dev + rm -f debian/files debian/substvars + rm -rf $(lib_tmp) $(dev_tmp) + +# Now the correct libbaz2-dev package +binary-correct: + install -d debian/libbaz2-dev/usr/lib + cp -a libbaz2.a libbaz2.so debian/libbaz2-dev/usr/lib + # usually, I'd also include some .h files to /usr/include + + # Now the correct libbaz2 package + install -d debian/libbaz2/usr/lib + cp -a libbaz2.so.* debian/libbaz2/usr/lib + chmod a-x debian/libbaz2/usr/lib/* + + # General stuff that is tested in other testsets: + dh_installdocs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_compress -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + + # Mess up the libbaz2 changelog files to test the symlink handling. + ln -s /usr/share/doc/lintian/changelog.gz \ + debian/libbaz2/usr/share/doc/libbaz2/changelog.gz + install -m 644 debian/changelog \ + debian/libbaz2-dev/usr/share/doc/libbaz2-dev/foo + ln -s foo debian/libbaz2-dev/usr/share/doc/libbaz2-dev/changelog + + # Okay, if either line is omitted, it should be noted + dh_strip --dbg-package=libbaz2-dbg -plibbaz2 -plibbaz2-dev + dh_makeshlibs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_shlibdeps -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + + # and again, regular packaging stuff + dh_installdeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + echo udeb: libbaz2 1.0 libbaz2 >> debian/libbaz2/DEBIAN/shlibs + dh_gencontrol -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_builddeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + +# and the incorrect one +binary-arch: build-arch binary-correct + # first, the lib package + install -d $(lib_tmp)/usr/lib + # resp. no soname (check), wrong soname (check), and no-pic (check) + cp -a libbaz1.so.1.0* $(lib_tmp)/usr/lib + cp -a libbaz2.so.1.0.3b $(lib_tmp)/usr/lib/libfoo2.so.1.0.3b + install -m644 libbaz3.so.1.0.3b $(lib_tmp)/usr/lib/libbaz3.so.1.0.3b + # let's include the .a in the non-dev too (TODO) + # Also, libbaz1.a hasn't a symbol table (TODO) + cp -a *.a $(lib_tmp)/usr/lib + # And a wrong .so symlink (wrong, only in -dev, TODO) + ln -s libfoo3.so.0.9 $(lib_tmp)/usr/lib/libfoo3.so + # And a wrong .so.X symlink (wrong, should point to a real existing + # shlib, TODO) + ln -s libfoo.so.0.9.1 $(lib_tmp)/usr/lib/libfoo.so.0.9 + # And a plain .so (wrong, TODO) + touch $(lib_tmp)/usr/lib/libbar2.so + # And a non-versioned SONAME. + install -m644 libbaz.so $(lib_tmp)/usr/lib/libbaz.so + strip --remove-section=.comment --strip-unneeded $(lib_tmp)/usr/lib/libbaz.so + # Pretend to be a Perl module to test a lack of Perl dependencies. + install -d $(lib_tmp)/$(VENDORARCH)/auto/Foo + install -m 644 libbaz2.so.1.0.3b $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + strip $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + + install -d $(lib_tmp)/usr/share/doc/$(LIB) + install -m 644 debian/copyright $(lib_tmp)/usr/share/doc/$(LIB) + install -m 644 debian/changelog $(lib_tmp)/usr/share/doc/$(LIB) + gzip -n -9 $(lib_tmp)/usr/share/doc/$(LIB)/changelog + install -d $(lib_tmp)/DEBIAN + install -m 755 debian/lib.postinst $(lib_tmp)/DEBIAN/postinst + install -m 755 debian/lib.prerm $(lib_tmp)/DEBIAN/prerm + touch $(lib_tmp)/usr/share/doc/README.Debian + #dpkg-shlibdeps $(lib_tmp)/usr/lib/libbaz.so.1.0 + install -m 755 debian/lib.shlibs $(lib_tmp)/DEBIAN/shlibs + install -m 755 debian/lib.symbols $(lib_tmp)/DEBIAN/symbols + dpkg-gencontrol -isp -p$(LIB) -P$(lib_tmp) + dpkg --build $(lib_tmp) .. + + # now the -dev package + install -d $(dev_tmp)/usr/include + install -d $(lib_tmp)/usr/lib + # let's also install the .so at the same time... (wrong, TODO) + cp -a *.a *.so.* $(lib_tmp)/usr/lib + # and fuck up permission (TODO) + chmod a+x $(lib_tmp)/usr/lib/*.a + # Pretend to be a Perl module to test a lack of Perl dependencies. + install -d $(dev_tmp)/$(VENDORARCH)/auto/Foo + install -m 644 libbaz2.so.1.0.3b $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + strip $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + install -d $(dev_tmp)/usr/share/doc + ln -s $(LIB) $(dev_tmp)/usr/share/doc/$(DEV) + install -d $(dev_tmp)/DEBIAN + install -m 755 debian/dev.postinst $(dev_tmp)/DEBIAN/postinst + install -m 755 debian/dev.prerm $(dev_tmp)/DEBIAN/prerm + dpkg-gencontrol -isp -p$(DEV) -P$(dev_tmp) + dpkg --build $(dev_tmp) .. + + +binary: binary-arch + +# The mention of binary-indep here should be sufficient to suppress the +# warning that it's not present. +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/source.lintian-overrides b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/source.lintian-overrides new file mode 100644 index 00000000..6008d271 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/source.lintian-overrides @@ -0,0 +1 @@ +libbaz source: maintainer-script-lacks-debhelper-token diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/eval/hints new file mode 100644 index 00000000..186319e4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/eval/hints @@ -0,0 +1,9 @@ +libbaz2-dev (binary): initial-upload-closes-no-bugs [usr/share/doc/libbaz2-dev/changelog:1] +libbaz2-dev (binary): debian-changelog-file-missing-or-wrong-name +libbaz2-dev (binary): debian-changelog-file-is-a-symlink [usr/share/doc/libbaz2-dev/changelog] +libbaz2-dev (binary): changelog-file-not-compressed [usr/share/doc/libbaz2-dev/changelog] +libbaz2-dbg (binary): no-changelog usr/share/doc/libbaz2-dbg/changelog.Debian.gz (non-native package) +libbaz2 (binary): debian-changelog-file-missing-or-wrong-name +libbaz2 (binary): debian-changelog-file-is-a-symlink [usr/share/doc/libbaz2/changelog.gz] +libbaz1 (binary): initial-upload-closes-no-bugs [usr/share/doc/libbaz1/changelog.gz:1] +libbaz1 (binary): debian-changelog-file-missing-or-wrong-name diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/extra.c b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-libbaz/extra.c new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/ORIGIN new file mode 100644 index 00000000..5263de3c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/legacy-maintainer-scripts + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/changelog new file mode 100644 index 00000000..a0c6dc5a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/changelog @@ -0,0 +1,57 @@ +maintainer-scripts (7+dfsg-0.1) unstable; urgency=low + + * Doing an upload for QA but I fail to give it a correct version number, + have some uploaders, and also fail to mention it... Bad me ;) + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 02:05:29 +0200 + +maintainer-scripts (6.1) unstable; urgency=low + + * I made this entry on my local PC, oops ;) + + -- Jeroen van Wolffelaar Sat, 21 Feb 2004 18:29:37 +0100 + +maintainer-scripts (6) unstable; urgency=low + + * added ldconfig calls to postrm to check test the postrm tests + from shared-libs + + -- Frank Lichtenheld Sat, 21 Feb 2004 18:29:36 +0100 + +maintainer-scripts (5) unstable; urgency=low + + * added bash style arrays to postinst, this one is for you Torsten (-: + + -- Sean 'Shaleh' Perry Fri, 30 Mar 2001 23:27:06 -0800 + +maintainer-scripts (4) unstable; urgency=low + + * added a here document to the prerm, along with two more bashisms + * made postrm a bash script to check that bash scripts are not searched + + -- Sean 'Shaleh' Perry Mon, 26 Feb 2001 13:02:57 -0800 + +maintainer-scripts (3) unstable; urgency=low + + * Added check for '.' called as '. foo || bar', lintian 1.11.15 failed this + thinking the '||' was a argument. + * also added an invalid call to '. foo bar' + * postinst now has a space between the #! and /bin/sh to test the interpreter + checking code. + + -- Sean 'Shaleh' Perry Tue, 9 Jan 2001 23:06:25 -0800 + +maintainer-scripts (2) unstable; urgency=low + + * Fix location of changelog. + * prerm and postrm do 'update-alternatives --remove'; should only complain + about postrm. + + -- Colin Watson Fri, 29 Dec 2000 06:01:24 +0000 + +maintainer-scripts (1) unstable; urgency=low + + * Initial version + * postinst and prerm set the usr/doc symlink + + -- Sean 'Shaleh' Perry Thu, 16 Nov 2000 09:11:40 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/control new file mode 100644 index 00000000..4661ce0e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/control @@ -0,0 +1,18 @@ +Source: maintainer-scripts +Section: misc +Priority: optional +Maintainer: QA group +Uploaders: Anyone but Jeroen +Build-Depends: debhelper-compat (= 14), dash (>= 0.5.10.2) +Standards-Version: 3.1.1 +Rules-Requires-Root: binary-targets +XS-Dm-Upload-Allowed: Yes + +Package: maintainer-scripts +Architecture: all +Depends: test +Description: test lintian's maintainer script checks + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/postinst new file mode 100644 index 00000000..e56ed3bf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/postinst @@ -0,0 +1,181 @@ +#! /bin/sh -e + +if [ "$1" = "configure" ]; then + if [ -d /usr/doc -a ! -e /usr/doc/maintainer-scripts -a -d /usr/share/doc/maintainer-scripts ]; then + ln -sf ../share/doc/maintainer-scripts /usr/doc/maintainer-scripts + fi +fi + +# valid +. /usr/share/lintian/shell || exit 0 +. /usr/share/lintian/shell >/dev/null +. /usr/share/lintian/shell 2>/dev/null +. /usr/share/lintian/shell /dev/null +update-rc.d $FOO defaults +update-rc.d foo remove + +# valid +FOO=/tmp +FOO=/var/tmp +: ${FOO:=/tmp} +FOO=`mktemp /tmp/scripts.XXXXXX` +rm "$FOO" +FOO=`tempfile -n/tmp/scripts.tmp` +mkdir /var/tmp/scripts +FOO="/tmp/false.positive.XXXXXX" +# invalid +echo foo >>/tmp/scripts.tmp +rm /tmp/scripts.tmp +rmdir /var/tmp/scripts + +# invalid, maintainer-script-hides-init-failure +invoke-rc.d foo start || exit 0 + +# The right way to invoke an rc script +if which invoke-rc.d >/dev/null 2>&1; then + invoke-rc.d package start +else + /etc/init.d/package start +fi + +# Example ucf invocation. +ucf /usr/share/foo/configuration /etc/foo.conf + +# Calling gconftool directly. +gconftool-2 --makefile-install-rule foo.schema + +# Calling gconf-schemas with no dependency. +gconf-schemas --register foo.schema + +# Calling update-xmlcatalog with no dependency. +update-xmlcatalog --add --type system --id "/usr/share/sgml/dtd/foo" \ + --package maintainer-scripts --root + +# Maintainer scripts shouldn't touch /var/lib/dpkg/status. This is the old +# recipe from the dpkg wiki that should be replaced with dpkg-query. +sed -n -e \"/^Conffiles:/,/^[^ ]/{\\\\' /etc/conffile'{s/.* //;p}}\" \ + /var/lib/dpkg/status + +# Don't modify these files. +echo 'broken 6714/tcp' >> /etc/services +cp /nonexistent /etc/protocols +mv /usr/share/doc/rpc /etc/rpc + +# But this is okay. +cp /etc/protocols /etc/protocols.new + +# This is also wrong. +echo 'broken' > /etc/inetd.conf +cp /etc/inetd.conf.new /etc/inetd.conf + +# But this is fine. +cp /etc/inetd.conf /srv/chroot/etc/inetd.conf + +# Deprecated +install-sgmlcatalog --install package +install-sgmlcatalog --remove package + +# This too is a heredoc. +some-program > /etc/config-file <<'EOF' +echo "All of the array is: ${H[@]}" +EOF + +# But this isn't. +cat '</dev/null; then + ucf --purge /etc/foo.conf +fi + +# This isn't allowed. +rm /tmp/foo /dev/device +rm /dev/device1 + +# But this is okay. +rm /tmp/foo > /dev/null + +# Not allowed here even with remove. +install-sgmlcatalog --remove package diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/preinst b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/preinst new file mode 100644 index 00000000..60589785 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/preinst @@ -0,0 +1,18 @@ +#!/bin/sh + +update-rc.d foo remove +update-rc.d bar defaults + +# Obsolete dpkg assertions. +dpkg --assert-support-predepends || exit 1 +dpkg --assert-working-epoch || exit 1 +dpkg --assert-long-filenames || exit 1 +dpkg --assert-multi-conrep || exit 1 + +/bin/grep -E --mmap "^Package: foo$" /var/lib/dpkg/status + +# continuation lines +update-alternatives --install /usr/bin/fakeroot fakeroot \ + /usr/bin/fakeroot-ng 5 \ + --slave /usr/share/man/man1/fakeroot.1.gz \ + fakeroot.1.gz /usr/share/man/man1/fakeroot-ng.1.gz diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/prerm b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/prerm new file mode 100644 index 00000000..076ecafb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/prerm @@ -0,0 +1,188 @@ +#!/bin/sh + +if [ "$1" != "upgrade" ]; then + update-alternatives --remove dummy /usr/bin/dummy-alternative +fi + +if ([ "$1" = "upgrade" ] || [ "$1" = "remove" ]) && [ -L /usr/doc/maintainer-scripts ]; the +n + rm -f /usr/doc/maintainer-scripts +fi + +cat </dev/null +} + +source $FOO + +trap "echo hi" EXIT HUP 3 + +if [[ "$2" = "purge" ]]; then + kill -HUP $$ +fi + +#this is ok though +if test -n $(echo foo | perl -pe 's/[[:space:]]//go'); then + echo 1 +fi + +update-rc.d foo remove + +# More false positives for bashism checks. None of these are errors. +echo "$line" | grep -q '{fonts/map,}/{\$progname,pdftex,dvips,}//' +echo "$line" | grep -q "${fonts},${foo}" +echo '$[1+2]' +printf "foo |& bar" +perl -e "print q( kill -HUP $? )" + +# Still catch disallowed expansions in double-quotes, though. +echo "${line:3:1}" + +# The wrong way to run an init script (no invoke-rc.d). +/etc/init.d/package stop + +# This is the only install-sgmlcatalog call that's allowed. +install-sgmlcatalog --quiet --remove package + +# More bashisms checks + +read -x foo +read -x +read -r foo +read foo +read + +echo "a\\b" +echo 'a\nb' + +echo "${UID}" +echo "$EUID" +echo "$SHLVL" +echo "$DIRSTACK" +echo "$SECONDS" +echo "$BASH" +echo "$BASH_FOO" +echo "$SHELLOPTS" +echo "$PIPESTATUS" + +bar="$(cut '-d|' -f2 <<< "$foo")" + +VAR=1 +VAR+=a + +echos() { + echo -n -e "bar" + echo -e -n "bar" + echo -en "bar" + echo -ne "bar" + echo "bar" + echo "echo -e foo" +} + +ech.os() { + echo foo >& 2 + echo foo >&bar + echo foo >& bar +} + +echoes() { + echo "abc\nxyz" + echo 'xyz\rabc' + echo foo\cbar + + echo -e "abc\nxyz" + echo -net 'xyz\rabc' + echo -e foo\cbar +} + +foobar.() { + suspend x + suspended x + caller x + complete x + compgen x + declare -a foo +} + +.foobar() { + typeset -x bar + disown 1 + builtin foo + set -B + alias -p + unalias -a +} + +IFS="()" + +ulimit +shopt +type -v bar +time ls +dirs +diff <(tac a) <(tac b) + +pushd + +local foo=bar +local -x foo + +popd + +readonly -f + +echo bar > /dev/tcp +export x +export -x x +export -p x + +sh -x +sh -D +sh --foo +sh +O + +# Brace expansion checks +echo {a,b} +echo {abc},{bcd} + +foobar() +{ + # This is a function +} + + foo.bar() +( + # This is a function with a bad name +) + +foobar@() +{ + # As is this +} + +# This is ok +read -r foo +# but these aren't +read -r +read -p "Would you like to restart the service?" foo bar +read --fish + +set -e + +source "$BAR" +source '$BAR' +source ~/bar +source a diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/rules new file mode 100755 index 00000000..5fcef009 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/rules @@ -0,0 +1,35 @@ +#!/usr/bin/make -f + +build-arch: + +build-indep: + +build: build-arch build-indep + +binary-arch: + +binary-indep: + install -d debian/tmp/DEBIAN + install -m 0755 debian/preinst debian/tmp/DEBIAN + install -m 0755 debian/postinst debian/tmp/DEBIAN + install -m 0755 debian/prerm debian/tmp/DEBIAN + install -m 0755 debian/postrm debian/tmp/DEBIAN + install -m 0644 debian/triggers debian/tmp/DEBIAN + install -d debian/tmp/usr/share/doc/maintainer-scripts + install -m 0644 debian/changelog \ + debian/tmp/usr/share/doc/maintainer-scripts/changelog + gzip -n -9 debian/tmp/usr/share/doc/maintainer-scripts/changelog + dpkg-gencontrol -isp + dpkg --build debian/tmp .. + +binary: binary-arch binary-indep + +# Make sure we see dh_clean even in a rule clean depends on. Not the point of +# this test suite, but a convenient place to put it. +clean: clean1 clean2 clean3 +clean1: +clean2: + dh_clean +clean3: + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/triggers b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/triggers new file mode 100644 index 00000000..f6270949 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/triggers @@ -0,0 +1,4 @@ +# Example triggers file +activate foo + +interest bar diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/watch new file mode 100644 index 00000000..430eea3b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/debian/watch @@ -0,0 +1,11 @@ +# A whitespace is fine for uscan: + version=5 + +# Following line should not be matched: +#opts=uversionmangle=s/$/+debian/,dversionmangle=s/foo/bar/ \ +# Following one is incorrect, there's a missing backslash at the end +opts=uversionmangle=s/$/+dfsg/,dversionmangle=s/foo/bar/ + +# 'active' is useless here, but it works anyway +options=active \ +http://domain.tld/foo-(.+)\.tar\.gz \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/eval/hints new file mode 100644 index 00000000..1bae29f5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-maintainer-scripts/eval/hints @@ -0,0 +1,2 @@ +maintainer-scripts (source): odd-historical-debian-changelog-version 6.1 (for non-native) [debian/changelog:8] +maintainer-scripts (binary): bogus-mail-host-in-debian-changelog jeroen@mordor (for version 6.1) [usr/share/doc/maintainer-scripts/changelog.gz:8] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-relations/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-relations/ORIGIN new file mode 100644 index 00000000..c70bb418 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-relations/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/legacy-relations + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-relations/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-relations/debian/changelog new file mode 100644 index 00000000..d23f2272 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-relations/debian/changelog @@ -0,0 +1,33 @@ +relations (5) unstable; urgency=low + + * I'm orphaning this package -- I'm sick of it: it's completely broken, + lintian complains all over the place. + + -- Jeroen van Wolffelaar Sun, 02 Dec 2007 15:59:59 -0800 + +relations (4) unstable; urgency=low + + * Added a package that tests dependencies for multiple versions of + libraries, and test some description stuff in there as well. + + -- Josip Rodin Fri, 29 Nov 2002 20:13:33 +0100 + +relations (3) unstable; urgency=low + + * Added a virtual provides to test against my virtual depends without + a real package first test + + -- Sean 'Shaleh' Perry Thu, 8 Feb 2001 11:29:53 -0800 + +relations (2) unstable; urgency=low + + * Added a depends on dpkg (violates policy) and a versioned depends + on bash (follows policy) + + -- Sean 'Shaleh' Perry Fri, 2 Feb 2001 12:37:17 -0800 + +relations (1) unstable; urgency=low + + * Initial version + + -- Richard Braakman Tue, 7 Jul 1998 16:27:56 +0200 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-relations/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-relations/debian/control new file mode 100644 index 00000000..6cd1c044 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-relations/debian/control @@ -0,0 +1,51 @@ +Source: relations +Section: misc +Priority: optional +Build-Depends: mail-transport-agent, libc6-dev, findutils, foo (= 3) [!amd64 !i386], bar, arch-test1 [i386], arch-test2 [!i386], quilt (>= 0.40), perl +Build-Depends-Indep: make, bash, debmake, build-essential, baz (= 2.0), ghostscript | gs, + car (>= 1.0), car (<= 2.0), caz (= 1.0) [amd64], caz (>= 2.0) [i386], + caz (= 2.0) [powerpc], perl (>= 5.0), foo (<< 4) [!amd64 !i386], libfoo (>= 1.2-1), bozzle [kfreebsd-i386] +Build-Conflicts: foo [amd64 i386], bar [alpha test], xlibs-dev, arch-test1 [powerpc], arch-test2 [!sparc] +Build-Conflicts-Indep: debmake [!powerpc] +Maintainer: Debian QA Group +Standards-Version: 3.7.3 +Homepage: lintian.debian.org +Origin: Debian +Bugs: debbugs://bugs.debian.org/ + +Package: relations +Architecture: all +Section: contrib/misc +Pre-Depends: awk|gawk +Depends: relations(<< 3), dpkg, bash (>> 2.0 ), mail-transport-agent, gawk | awk, foo (>> 2.0), foo (<< 2.2), coreutils, ,null (>= 0), ${misc:Depends}, makedev +Provides: mail-reader +Replaces: relations +Conflicts: foobar (<< 5+5), foo, relations, + gnuwdf, +Suggests: alpha, gnu (>= 44-3-4-8-11.4) | ung (<< 89beta) | nug | ngu, beta, some-other-package +Recommends: emacs21 | emacsen, dpkg, null, some-other-package, ${f-oo:b-ar}, gs | ghostscript | gs-aladdin +Description: Strange dependency relationships (dummy) + This package declares relationships designed to tickle lintian's "fields" + check. It should generate a number of tags for these. + . + The package is built with "dpkg --build --no-check", because some of the + relationships used here are normally rejected by dpkg. + +Package: relations-multiple-libs +Architecture: all +Section: non-free/misc +Depends: libstdc++2.10, libstdc++2.10-glibc2.2, libstdc++3.0, tk8.2, tk8.3, tcl8.0, tcl8.2, tkx8.2, tkx8.3, tclx8.2, libpng2, libpng3, xorg, ${shlibs:Depends}, makedev | udev +Provides: awk +Enhances: foo +Recommends: ${shlibs:Depends}, relations-multiple-libs, gs | gs-gpl, makedev +Breaks: libpng3 (<< 1.0), libpng2 +Suggests: x-dev, ghostscript | gs +Description: Duplicate library dependency relationships. + Duplicate library dependency relationships. + This tests the depending on different versions of the same library + at the same time. + . + At the same time, it conveniently tests some description file checks. :) + . + It is a metapackage from the lintian perspective, so the xorg dependency + should be allowed. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-relations/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-relations/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-relations/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-relations/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-relations/debian/rules new file mode 100755 index 00000000..5027f335 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-relations/debian/rules @@ -0,0 +1,49 @@ +#!/usr/bin/make -f + +# Copyright (C) 1998 Richard Braakman +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, you can find it on the World Wide +# Web at https://www.gnu.org/copyleft/gpl.html, or write to the Free +# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +# MA 02110-1301, USA. + +build-arch: + +build-indep: + +build: build-arch build-indep + +binary-arch: + +binary-indep: + install -d debian/tmp/DEBIAN + dpkg-gencontrol -prelations -isp + dpkg --build debian/tmp ../relations_5_all.deb + install -d debian/tmp/usr/share/doc/ + ln -s relations debian/tmp/usr/share/doc/relations-multiple-libs + dpkg-gencontrol -prelations-multiple-libs -isp + dpkg --build debian/tmp ../relations-multiple-libs_5_all.deb + +binary: binary-arch binary-indep + +clean:: + rm -rf debian/tmp debian/files + +# Test allowing quilt Build-Depends for manual quilt invocations. + TESTING=foo ANOTHER=bar quilt || true + +# Test requiring perl Build-Depends for manual perl invocations. + [ ! -f Build ] || $(PERL) Build distclean + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-relations/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-relations/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-relations/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-relations/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-relations/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-relations/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-relations/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-relations/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-relations/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-relations/debian/tmp/DEBIAN/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-relations/debian/tmp/DEBIAN/control new file mode 100644 index 00000000..87e7fe68 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-relations/debian/tmp/DEBIAN/control @@ -0,0 +1,14 @@ +Package: relations-multiple-libs +Version: 4 +Section: misc +Priority: optional +Architecture: all +Depends: libstdc++2.10, libstdc++2.10-glibc2.2, libstdc++3.0, tk8.2, tk8.3, tcl8.0, tcl8.2, tkx8.2, tkx8.3, tclx8.2, libpng2, libpng3 +Installed-Size: 12 +Maintainer: Lintian Maintainer +Source: relations +Description: Duplicate library dependency relationships. + Duplicate library dependency relationships. This tests the depending on + different versions of the same library at the same time. + . + At the same time, it conveniently tests some description file checks. :) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-relations/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-relations/eval/hints new file mode 100644 index 00000000..f3ccfcb2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/legacy-relations/eval/hints @@ -0,0 +1 @@ +relations (binary): no-changelog usr/share/doc/relations/changelog.gz (native package) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp-unrel/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp-unrel/ORIGIN new file mode 100644 index 00000000..f2eda969 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp-unrel/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/missing-explicit-entry-fp-unrel + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp-unrel/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp-unrel/debian/changelog new file mode 100644 index 00000000..285b906d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp-unrel/debian/changelog @@ -0,0 +1,17 @@ +missing-explicit-entry-fp-unrel (1.13.7-0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: missing-explicit-entry-fp-unrel + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +missing-explicit-entry-fp-unrel (1.13.2-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: missing-explicit-entry-fp-unrel + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp-unrel/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp-unrel/debian/control new file mode 100644 index 00000000..91322b53 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp-unrel/debian/control @@ -0,0 +1,17 @@ +Source: missing-explicit-entry-fp-unrel +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: missing-explicit-entry-fp-unrel +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for false positive of missing changelog entry, with a source NMU on a new upstream version. + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp-unrel/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp-unrel/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp-unrel/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp-unrel/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp-unrel/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp-unrel/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp-unrel/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp-unrel/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp-unrel/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp-unrel/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp-unrel/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp-unrel/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp-unrel/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp-unrel/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp-unrel/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp-unrel/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp-unrel/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp-unrel/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp-unrel/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp-unrel/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp-unrel/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp-unrel/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp-unrel/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp/ORIGIN new file mode 100644 index 00000000..e3048846 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/missing-explicit-entry-fp + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp/debian/changelog new file mode 100644 index 00000000..f0740998 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp/debian/changelog @@ -0,0 +1,17 @@ +missing-explicit-entry-fp (1.2-0+deb9u1) unstable; urgency=low + + * Lintian Test Suite. + * Test: missing-explicit-entry-fp + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +missing-explicit-entry-fp (0.9-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: missing-explicit-entry-fp + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp/debian/control new file mode 100644 index 00000000..13dad41e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp/debian/control @@ -0,0 +1,17 @@ +Source: missing-explicit-entry-fp +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: missing-explicit-entry-fp +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for missing (stable update, etc.) entries, false positive, exception on 0. + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/missing-explicit-entry-fp/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-changelog/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-changelog/ORIGIN new file mode 100644 index 00000000..0d69395a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-changelog/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/nmu-local-changelog + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-changelog/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-changelog/debian/changelog new file mode 100644 index 00000000..6fe4a364 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-changelog/debian/changelog @@ -0,0 +1,9 @@ +nmu-local-changelog (1.0) unstable; urgency=low + + * Local package. + * Lintian Test Suite. + * Test: nmu-local-changelog + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Russ Allbery Tue, 31 Mar 2026 17:46:22 +0200 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-changelog/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-changelog/debian/control new file mode 100644 index 00000000..ea44aadd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-changelog/debian/control @@ -0,0 +1,17 @@ +Source: nmu-local-changelog +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: nmu-local-changelog +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test suppression of NMU tags for local packages + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-changelog/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-changelog/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-changelog/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-changelog/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-changelog/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-changelog/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-changelog/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-changelog/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-changelog/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-changelog/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-changelog/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-changelog/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-changelog/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-changelog/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-changelog/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-changelog/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-changelog/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-version/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-version/ORIGIN new file mode 100644 index 00000000..56774c38 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-version/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/nmu-local-version + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-version/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-version/debian/changelog new file mode 100644 index 00000000..14d8c30c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-version/debian/changelog @@ -0,0 +1,8 @@ +nmu-local-version (1.0local1) unstable; urgency=low + + * Lintian Test Suite. + * Test: nmu-local-version + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Russ Allbery Tue, 31 Mar 2026 17:46:22 +0200 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-version/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-version/debian/control new file mode 100644 index 00000000..ed9c9598 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-version/debian/control @@ -0,0 +1,17 @@ +Source: nmu-local-version +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: nmu-local-version +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test suppression of NMU tags for local packages + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-version/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-version/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-version/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-version/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-version/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-version/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-version/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-version/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-version/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-version/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-version/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-version/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-version/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-version/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-version/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-version/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-local-version/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-new-upstream-version/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-new-upstream-version/ORIGIN new file mode 100644 index 00000000..aeb7e0f2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-new-upstream-version/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/nmu-new-upstream-version + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-new-upstream-version/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-new-upstream-version/debian/changelog new file mode 100644 index 00000000..d2588405 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-new-upstream-version/debian/changelog @@ -0,0 +1,7 @@ +nmu-new-upstream-version (3.1-0.1) unstable; urgency=low + + * Non-maintainer upload. + * Lintian Test Suite. + * Test: nmu-new-upstream-version + + -- Thadeu Lima de Souza Cascardo Tue, 31 Mar 2026 17:46:22 +0200 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-new-upstream-version/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-new-upstream-version/debian/control new file mode 100644 index 00000000..7ab73cc6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-new-upstream-version/debian/control @@ -0,0 +1,17 @@ +Source: nmu-new-upstream-version +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: nmu-new-upstream-version +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for new upstream NMU versions + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-new-upstream-version/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-new-upstream-version/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-new-upstream-version/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-new-upstream-version/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-new-upstream-version/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-new-upstream-version/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-new-upstream-version/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-new-upstream-version/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-new-upstream-version/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-new-upstream-version/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-new-upstream-version/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-new-upstream-version/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-new-upstream-version/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-new-upstream-version/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-new-upstream-version/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-new-upstream-version/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-new-upstream-version/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-new-upstream-version/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-new-upstream-version/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-new-upstream-version/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-new-upstream-version/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-new-upstream-version/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-new-upstream-version/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-new-upstream-version/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-team-upload/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-team-upload/ORIGIN new file mode 100644 index 00000000..459e95be --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-team-upload/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/nmu-team-upload + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-team-upload/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-team-upload/debian/changelog new file mode 100644 index 00000000..35c9903b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-team-upload/debian/changelog @@ -0,0 +1,9 @@ +nmu-team-upload (1.0+nmu1) unstable; urgency=low + + * Team upload. + * Lintian Test Suite. + * Test: nmu-team-upload + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Russ Allbery Tue, 31 Mar 2026 17:46:22 +0200 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-team-upload/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-team-upload/debian/control new file mode 100644 index 00000000..9a1d0a9d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-team-upload/debian/control @@ -0,0 +1,17 @@ +Source: nmu-team-upload +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: nmu-team-upload +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for versioning of a team upload + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-team-upload/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-team-upload/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-team-upload/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-team-upload/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-team-upload/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-team-upload/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-team-upload/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-team-upload/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-team-upload/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-team-upload/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-team-upload/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-team-upload/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-team-upload/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-team-upload/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-team-upload/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-team-upload/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-team-upload/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/nmu-team-upload/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/package-version-0/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/package-version-0/ORIGIN new file mode 100644 index 00000000..b55111c2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/package-version-0/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/package-version-0 + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/package-version-0/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/package-version-0/debian/changelog new file mode 100644 index 00000000..8a473a56 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/package-version-0/debian/changelog @@ -0,0 +1,17 @@ +package-version-0 (0) unstable; urgency=low + + * Lintian Test Suite. + * Test: package-version-0 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +package-version-0 (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: package-version-0 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/package-version-0/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/package-version-0/debian/control new file mode 100644 index 00000000..79588638 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/package-version-0/debian/control @@ -0,0 +1,17 @@ +Source: package-version-0 +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: package-version-0 +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test a package with version 0 + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/package-version-0/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/package-version-0/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/package-version-0/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/package-version-0/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/package-version-0/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/package-version-0/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/package-version-0/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/package-version-0/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/package-version-0/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/package-version-0/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/package-version-0/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/package-version-0/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/package-version-0/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/package-version-0/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/package-version-0/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/package-version-0/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/package-version-0/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/package-version-0/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/sid-and-unstable-match-in-changes/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/sid-and-unstable-match-in-changes/ORIGIN new file mode 100644 index 00000000..0c4d2c6b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/sid-and-unstable-match-in-changes/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/sid-and-unstable-match-in-changes + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/sid-and-unstable-match-in-changes/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/sid-and-unstable-match-in-changes/debian/changelog new file mode 100644 index 00000000..63537754 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/sid-and-unstable-match-in-changes/debian/changelog @@ -0,0 +1,17 @@ +sid-and-unstable-match-in-changes (1.0) sid; urgency=low + + * Lintian Test Suite. + * Test: sid-and-unstable-match-in-changes + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +sid-and-unstable-match-in-changes (0.0.1) sid; urgency=low + + * Lintian Test Suite. + * Test: sid-and-unstable-match-in-changes + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/sid-and-unstable-match-in-changes/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/sid-and-unstable-match-in-changes/debian/control new file mode 100644 index 00000000..e6f49452 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/sid-and-unstable-match-in-changes/debian/control @@ -0,0 +1,17 @@ +Source: sid-and-unstable-match-in-changes +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: sid-and-unstable-match-in-changes +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test if Debian changelog is missing + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/sid-and-unstable-match-in-changes/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/sid-and-unstable-match-in-changes/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/sid-and-unstable-match-in-changes/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/sid-and-unstable-match-in-changes/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/sid-and-unstable-match-in-changes/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/sid-and-unstable-match-in-changes/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/sid-and-unstable-match-in-changes/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/sid-and-unstable-match-in-changes/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/sid-and-unstable-match-in-changes/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/sid-and-unstable-match-in-changes/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/sid-and-unstable-match-in-changes/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/sid-and-unstable-match-in-changes/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/sid-and-unstable-match-in-changes/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/sid-and-unstable-match-in-changes/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/sid-and-unstable-match-in-changes/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/sid-and-unstable-match-in-changes/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/sid-and-unstable-match-in-changes/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/ORIGIN new file mode 100644 index 00000000..af44113c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/spelling-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/changelog new file mode 100644 index 00000000..8aa65df9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/changelog @@ -0,0 +1,13 @@ +spelling-general (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: spelling-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + * This line has a speling error. + - This line has the same speling error, but we should only + get one tag for it. + * Corrected spelling: abov -> above. + * Corrected typo: abov -> above. + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/control new file mode 100644 index 00000000..809e0fb8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/control @@ -0,0 +1,17 @@ +Source: spelling-general +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: spelling-general +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: General checks for spelling errors + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/copyright new file mode 100644 index 00000000..30cbe5c9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/copyright @@ -0,0 +1,21 @@ +This duplicate duplicate word should not trigger. (re. #897402) + +This is part of the testsuite of lintian. See the file debian/copyright +in the lintian source directory for more details. + +Insofar as this is copyrightable, it is: + + Copyright 2010 Russ Allbery + +This text should not generate a spelling error for "ment": + + computer software documentation," as such terms are used in + 48 C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Govern- + ment only as a commercial end item. Consistent with 48 C.F.R. + 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), + +But deafult is still a spelling error. + +This text should not generate a spelling error for the duplicate "a" (re. #844166) + + following Attribution Information: (a) a copyright notice including the name diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/doc-base b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/doc-base new file mode 100644 index 00000000..3839a9bd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/doc-base @@ -0,0 +1,9 @@ +Document: spelling-general +Title: Check for debian doc-base spelling errors +Author: Russ Allbery +Abstract: This control file exercises, picky, speling error checks for + Debian doc-base files, such as meta-package. +Section: Programming + +Format: text +Files: /usr/share/doc/spelling-general/copyright diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/patches/add-readme b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/patches/add-readme new file mode 100644 index 00000000..b1647ba1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/patches/add-readme @@ -0,0 +1,8 @@ +This is a deliberate speling error. duplicate + +duplicate + +--- upstream.orig/README ++++ upstream/README +@@ -0,0 +1 @@ ++Added by patch system. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/patches/nonrel b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/patches/nonrel new file mode 100644 index 00000000..48e77400 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/patches/nonrel @@ -0,0 +1,6 @@ +This is a deliberate speling error. (false positive; description mentions typo) + +--- upstream.orig/nonrel ++++ upstream/nonrel +@@ -0,0 +1 @@ ++Added by patch system. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/patches/series b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/patches/series new file mode 100644 index 00000000..0bfb03d6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/patches/series @@ -0,0 +1,3 @@ +add-readme +spelling +nonrel diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/patches/spelling b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/patches/spelling new file mode 100644 index 00000000..29b9cfd8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/patches/spelling @@ -0,0 +1,6 @@ +This is a deliberate speling error. (false positive; filename match) + +--- upstream.orig/spelling ++++ upstream/spelling +@@ -0,0 +1 @@ ++Added by patch system. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/eval/hints new file mode 100644 index 00000000..70278a2e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/spelling-general/eval/hints @@ -0,0 +1 @@ +spelling-general (binary): spelling-error-in-changelog speling spelling [usr/share/doc/spelling-general/changelog.Debian.gz] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/two-dashes-in-non-native-version/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/two-dashes-in-non-native-version/ORIGIN new file mode 100644 index 00000000..fe8e3ec4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/two-dashes-in-non-native-version/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/changelog/two-dashes-in-non-native-version + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/two-dashes-in-non-native-version/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/two-dashes-in-non-native-version/debian/changelog new file mode 100644 index 00000000..3a2df91b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/two-dashes-in-non-native-version/debian/changelog @@ -0,0 +1,17 @@ +two-dashes-in-non-native-version (4.6.2-1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: two-dashes-in-non-native-version + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +two-dashes-in-non-native-version (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: two-dashes-in-non-native-version + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/two-dashes-in-non-native-version/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/two-dashes-in-non-native-version/debian/control new file mode 100644 index 00000000..b676ff8f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/two-dashes-in-non-native-version/debian/control @@ -0,0 +1,17 @@ +Source: two-dashes-in-non-native-version +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: two-dashes-in-non-native-version +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Two dashes in a non-native version + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/two-dashes-in-non-native-version/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/two-dashes-in-non-native-version/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/two-dashes-in-non-native-version/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/two-dashes-in-non-native-version/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/two-dashes-in-non-native-version/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/two-dashes-in-non-native-version/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/two-dashes-in-non-native-version/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/two-dashes-in-non-native-version/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/two-dashes-in-non-native-version/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/two-dashes-in-non-native-version/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/two-dashes-in-non-native-version/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/two-dashes-in-non-native-version/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/two-dashes-in-non-native-version/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/two-dashes-in-non-native-version/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/two-dashes-in-non-native-version/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/two-dashes-in-non-native-version/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/two-dashes-in-non-native-version/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/two-dashes-in-non-native-version/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/two-dashes-in-non-native-version/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/two-dashes-in-non-native-version/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/two-dashes-in-non-native-version/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/changelog/two-dashes-in-non-native-version/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/two-dashes-in-non-native-version/eval/hints new file mode 100644 index 00000000..c5e06652 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/changelog/two-dashes-in-non-native-version/eval/hints @@ -0,0 +1 @@ +two-dashes-in-non-native-version (source): hyphen-in-upstream-part-of-debian-changelog-version 4.6.2-1 [debian/changelog:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-general/ORIGIN new file mode 100644 index 00000000..e641d0bb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/field/adopted/control-file-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-general/debian/changelog new file mode 100644 index 00000000..266376c7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-general/debian/changelog @@ -0,0 +1,17 @@ +control-file-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +control-file-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-general/debian/control new file mode 100644 index 00000000..0d48933e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-general/debian/control @@ -0,0 +1,118 @@ +Source: control-file-general +Priority: optional +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), + fiddle [amd64 powerpc mips mipsel hppa s390], + faddle + (>> + 2) [ + sparc i386 amd64 + ] +Build-Depends-Indep: perl (> 5.8) +Rules-Requires-Root: no +XS-Vcs-Svn: https://svn.example.com/control-file-general/trunk +#Vcs-Git: git://git.debian.org/collab-maint/.git +#Vcs-Browser: http://git.debian.org/?p=collab-maint/.git;a=summary + +Package: control-file-general +Section: devel +Maintainer: Debian Lintian Maintainers +Build-Conflicts: foo +Architecture: all +Pre-depends: ${misc:Pre-depends}, multiarch-support +Depends: control-file-general, foo, baz, ${shlibs:Depends} ${some:Depends}, ${misc:Depends} +Recommends: foo, bar, no-match${lintian:Foo}, match${lintian:Match}, no-match${lintian:Bar}-foo +Suggests: bar | baz, no-match${lintian:Bar}, match${lintian:Match} +Description: Various problems with debian/control + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-1 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Breaks: libsqlite3-0 (< 3.6.12) +Description: Various problems with debian/control + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-2 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Various problems with debian/control (two) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-3 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, foo (>= 1), + baz (<< 2), + fizz (= 2.0), gcc-${pv:gcc} ${reqv:gcc} +Description: Various problems with debian/control (three) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-4 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, foo | + bar (>= 1), baz +Description: Various problems with debian/control (four) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-5 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Description: Various problems with debian/control + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-dbgsym +Section: debug +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Description: dbg-sym + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-dbg +Section: debug +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Description: debug + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-udeb +Section: debian-installer +Package-Type: udeb +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Various problems with debian/control (udeb) + udeb tests. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-general/debian/rules new file mode 100644 index 00000000..f5db4bbb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-general/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_gencontrol: + echo 'pv:gcc=4.3' >> debian/substvars + echo 'reqv:gcc=(>= 4.3-1)' >> debian/substvars + dh_gencontrol diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-general/eval/hints new file mode 100644 index 00000000..0c6607a6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-general/eval/hints @@ -0,0 +1 @@ +control-file-general (source): adopted-extended-field (in section for source) XS-Vcs-Svn [debian/control:14] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/Makefile new file mode 100644 index 00000000..900ebadb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/Makefile @@ -0,0 +1,12 @@ +NOPIE_CFLAGS = $(filter-out -fPIE,$(CFLAGS)) +NOPIE_LDFLAGS = $(filter-out -fPIE -pie,$(LDFLAGS)) +COMPILE:= $(CC) $(NOPIE_CFLAGS) $(CPPFLAGS) $(NOPIE_LDFLAGS) + +all: + # static version + $(COMPILE) -std=c99 -static -o static basic.c + +clean distclean: + rm -f basic + +check test: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/ORIGIN new file mode 100644 index 00000000..ccbd8f33 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/basic.c b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/basic.c new file mode 100644 index 00000000..7dea5a03 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/basic.c @@ -0,0 +1,12 @@ +#include + +int +main(void) +{ + char t[10]; + printf("Hello world!\n"); + /* Bad choice for reading from stdin, but it forces a stack + protector, so meh. + */ + gets (t); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/debian/changelog new file mode 100644 index 00000000..d639d5e9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/debian/changelog @@ -0,0 +1,17 @@ +control-file-golang-xs-go-import-path (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-golang-xs-go-import-path + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +control-file-golang-xs-go-import-path (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-golang-xs-go-import-path + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/debian/control new file mode 100644 index 00000000..1a70c3ba --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/debian/control @@ -0,0 +1,42 @@ +Source: control-file-golang-xs-go-import-path +Section: net +Priority: optional +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Rules-Requires-Root: no +Build-Depends: debhelper-compat (= 14), + golang-go (>= 2:1.1.1-4) +XS-Go-Import-Path: github.com/Debian/lintian-test-package +Go-Import-Path: github.com/Debian/lintian-test-package + +Package: control-file-golang-xs-go-import-path +Architecture: any +Depends: ${misc:Depends} +Built-Using: ${misc:Built-Using} +Description: False-positive test for XS-Go-Import field + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-golang-xs-go-import-path-dev +Architecture: all +Depends: ${misc:Depends} +Description: False-positive test for XS-Go-Import field (dev) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + This package contains the source. + +Package: control-file-golang-xs-go-import-path-clean-dev +Architecture: all +Depends: ${misc:Depends} +Description: False-positive test for XS-Go-Import field (clean dev) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + This package contains the source, without a built-using tag. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/debian/control-file-golang-xs-go-import-path.install b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/debian/control-file-golang-xs-go-import-path.install new file mode 100644 index 00000000..0ba75d6a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/debian/control-file-golang-xs-go-import-path.install @@ -0,0 +1 @@ +static usr/lib/foo/ diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-pedantic/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-pedantic/ORIGIN new file mode 100644 index 00000000..c50a0ae0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-pedantic/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/field/adopted/control-file-pedantic + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-pedantic/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-pedantic/debian/changelog new file mode 100644 index 00000000..2390f378 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-pedantic/debian/changelog @@ -0,0 +1,17 @@ +control-file-pedantic (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-pedantic + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +control-file-pedantic (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-pedantic + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-pedantic/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-pedantic/debian/control new file mode 100644 index 00000000..2bf74e1f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-pedantic/debian/control @@ -0,0 +1,19 @@ +Source: control-file-pedantic +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no +Homepage: https://lintian.debian.org/ + +Package: control-file-pedantic-udeb +Section: debian-installer +Architecture: all +Depends: ${misc:Depends} +XC-Package-Type: udeb +Description: Pedantic tests for control file issues + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-pedantic/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-pedantic/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-pedantic/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-pedantic/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-pedantic/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-pedantic/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-pedantic/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-pedantic/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-pedantic/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-pedantic/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-pedantic/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-pedantic/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-pedantic/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-pedantic/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-pedantic/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-pedantic/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-pedantic/eval/hints new file mode 100644 index 00000000..d3770ada --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-pedantic/eval/hints @@ -0,0 +1 @@ +control-file-pedantic (source): adopted-extended-field (in section for control-file-pedantic-udeb) XC-Package-Type [debian/control:14] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/ORIGIN new file mode 100644 index 00000000..0bab3b1b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/debian/changelog new file mode 100644 index 00000000..d131b253 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/debian/changelog @@ -0,0 +1,17 @@ +control-file-source-upload-to-non-free-without-autobuild (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-source-upload-to-non-free-without-autobuild + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +control-file-source-upload-to-non-free-without-autobuild (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-source-upload-to-non-free-without-autobuild + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/debian/control new file mode 100644 index 00000000..0d539f5f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/debian/control @@ -0,0 +1,18 @@ +Source: control-file-source-upload-to-non-free-without-autobuild +Priority: optional +Section: non-free/devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no +XS-Autobuild: no +Autobuild: no + +Package: control-file-source-upload-to-non-free-without-autobuild +Architecture: all +Depends: ${misc:Depends} +Description: Check for source-only uploads to non-free without autobuild + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/INSTALL b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/INSTALL new file mode 100644 index 00000000..3b50ea95 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/INSTALL @@ -0,0 +1,176 @@ +Basic Installation +================== + + These are generic installation instructions. + + The `configure' shell script attempts to guess correct values for +various system-dependent variables used during compilation. It uses +those values to create a `Makefile' in each directory of the package. +It may also create one or more `.h' files containing system-dependent +definitions. Finally, it creates a shell script `config.status' that +you can run in the future to recreate the current configuration, a file +`config.cache' that saves the results of its tests to speed up +reconfiguring, and a file `config.log' containing compiler output +(useful mainly for debugging `configure'). + + If you need to do unusual things to compile the package, please try +to figure out how `configure' could check whether to do them, and mail +diffs or instructions to the address given in the `README' so they can +be considered for the next release. If at some point `config.cache' +contains results you don't want to keep, you may remove or edit it. + + The file `configure.in' is used to create `configure' by a program +called `autoconf'. You only need `configure.in' if you want to change +it or regenerate `configure' using a newer version of `autoconf'. + +The simplest way to compile this package is: + + 1. `cd' to the directory containing the package's source code and type + `./configure' to configure the package for your system. If you're + using `csh' on an old version of System V, you might need to type + `sh ./configure' instead to prevent `csh' from trying to execute + `configure' itself. + + Running `configure' takes a while. While running, it prints some + messages telling which features it is checking for. + + 2. Type `make' to compile the package. + + 3. Optionally, type `make check' to run any self-tests that come with + the package. + + 4. Type `make install' to install the programs and any data files and + documentation. + + 5. You can remove the program binaries and object files from the + source code directory by typing `make clean'. To also remove the + files that `configure' created (so you can compile the package for + a different kind of computer), type `make distclean'. There is + also a `make maintainer-clean' target, but that is intended mainly + for the package's developers. If you use it, you may have to get + all sorts of other programs in order to regenerate files that came + with the distribution. + +Compilers and Options +===================== + + Some systems require unusual options for compilation or linking that +the `configure' script does not know about. You can give `configure' +initial values for variables by setting them in the environment. Using +a Bourne-compatible shell, you can do that on the command line like +this: + CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure + +Or on systems that have the `env' program, you can do it like this: + env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure + +Compiling For Multiple Architectures +==================================== + + You can compile the package for more than one kind of computer at the +same time, by placing the object files for each architecture in their +own directory. To do this, you must use a version of `make' that +supports the `VPATH' variable, such as GNU `make'. `cd' to the +directory where you want the object files and executables to go and run +the `configure' script. `configure' automatically checks for the +source code in the directory that `configure' is in and in `..'. + + If you have to use a `make' that does not supports the `VPATH' +variable, you have to compile the package for one architecture at a time +in the source code directory. After you have installed the package for +one architecture, use `make distclean' before reconfiguring for another +architecture. + +Installation Names +================== + + By default, `make install' will install the package's files in +`/usr/local/bin', `/usr/local/man', etc. You can specify an +installation prefix other than `/usr/local' by giving `configure' the +option `--prefix=PATH'. + + You can specify separate installation prefixes for +architecture-specific files and architecture-independent files. If you +give `configure' the option `--exec-prefix=PATH', the package will use +PATH as the prefix for installing programs and libraries. +Documentation and other data files will still use the regular prefix. + + If the package supports it, you can cause programs to be installed +with an extra prefix or suffix on their names by giving `configure' the +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. + +Optional Features +================= + + Some packages pay attention to `--enable-FEATURE' options to +`configure', where FEATURE indicates an optional part of the package. +They may also pay attention to `--with-PACKAGE' options, where PACKAGE +is something like `gnu-as' or `x' (for the X Window System). The +`README' should mention any `--enable-' and `--with-' options that the +package recognizes. + + For packages that use the X Window System, `configure' can usually +find the X include and library files automatically, but if it doesn't, +you can use the `configure' options `--x-includes=DIR' and +`--x-libraries=DIR' to specify their locations. + +Specifying the System Type +========================== + + There may be some features `configure' can not figure out +automatically, but needs to determine by the type of host the package +will run on. Usually `configure' can figure that out, but if it prints +a message saying it can not guess the host type, give it the +`--host=TYPE' option. TYPE can either be a short name for the system +type, such as `sun4', or a canonical name with three fields: + CPU-COMPANY-SYSTEM + +See the file `config.sub' for the possible values of each field. If +`config.sub' isn't included in this package, then this package doesn't +need to know the host type. + + If you are building compiler tools for cross-compiling, you can also +use the `--target=TYPE' option to select the type of system they will +produce code for and the `--build=TYPE' option to select the type of +system on which you are compiling the package. + +Sharing Defaults +================ + + If you want to set default values for `configure' scripts to share, +you can create a site shell script called `config.site' that gives +default values for variables like `CC', `cache_file', and `prefix'. +`configure' looks for `PREFIX/share/config.site' if it exists, then +`PREFIX/etc/config.site' if it exists. Or, you can set the +`CONFIG_SITE' environment variable to the location of the site script. +A warning: not all `configure' scripts look for a site script. + +Operation Controls +================== + + `configure' recognizes the following options to control how it +operates. + +`--cache-file=FILE' + Use and save the results of the tests in FILE instead of + `./config.cache'. Set FILE to `/dev/null' to disable caching, for + debugging `configure'. + +`--help' + Print a summary of the options to `configure', and exit. + +`--quiet' +`--silent' +`-q' + Do not print messages saying which checks are being made. + +`--srcdir=DIR' + Look for the package's source code in directory DIR. Usually + `configure' can determine that directory automatically. + +`--version' + Print the version of Autoconf used to generate the `configure' + script, and exit. + +`configure' also accepts some other, not widely useful, options. + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/Makefile new file mode 100644 index 00000000..da1dc555 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/Makefile @@ -0,0 +1,12 @@ +all: hello hello-static + +hello: hello.c + gcc hello.c -o hello + +hello-static: hello.c + gcc -static hello.c -o hello-static + +clean: + rm -f hello hello-static + +distclean: clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/ORIGIN new file mode 100644 index 00000000..9389ddd0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/field/adopted/legacy-binary + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/NEWS.Debian b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/NEWS.Debian new file mode 100644 index 00000000..29f561c4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/NEWS.Debian @@ -0,0 +1,12 @@ +binary (4-1.1) UNRELEASED; urgency=high + + This is a Debian NEWS entry that isn't encoded properly in UTF-8: . + It also has a usefull speling error. + + -- Russ Allbery Sun, 14 Oct 2007 17:11:36 -0700 + +binary (1) unstable; urgency=low + + This is another entry but this one isn't syntactically valid. + + -- Russ Allbery 2007-10-14 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/README.Debian b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/README.Debian new file mode 100644 index 00000000..94bcc0ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/README.Debian @@ -0,0 +1,5 @@ +this is a binary package to test lintian's handling of bins. +Check handling of D-Bus and dbus (neither of which should produce +warnings). + + -- Russ Allbery , Wed, 6 Feb 2008 18:35:11 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/changelog new file mode 100644 index 00000000..35b8c0bf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/changelog @@ -0,0 +1,47 @@ +binary (4-1.1) unstable; urgency=low + + * I'm doing an comaintainer-upload, acknowledging a NMU, but with a version + number which suggests I'm doing a NMU myself. + + Lintian-maintainers: Please don't update this changelog, otherwise you'll + probably break the checks/nmu checks. + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 01:49:42 +0200 + +binary (4-1) unstable; urgency=low + + * Weird version number for the new check for accidents with native + packaging. + * Date was fixed by BR and this test was put on changelog-file-strange-date + due to dpkg bug, see #794674. + + -- Marc 'HE' Brockschmidt Thu, 15 Apr 2004 23:33:51 +0200 + +binary (4) unstable; urgency=low + + * Add big file to /usr/share to trigger the big-usr-share check + + -- Jeroen van Wolffelaar Fri, 27 Feb 2004 10:15:59 +0100 + +binary (3) unstable; urgency=unlimited + + * Add some bogus menu entries using su-to-root in a bogus way + + -- Jeroen van Wolffelaar Thu, 12 Feb 2004 20:11:22 +0100 + +binary (2) unstable; urgency=low + + * Added an INSTALL document which policy 6.3 suggests not to do + + -- Sean 'Shaleh' Perry Tue, 30 Jan 2001 15:23:59 -0800 + +binary (1) unstable; urgency=low + + * hello.c added + * hello-static is same as hello, but compiled statically + * added a menu entry which lacks a Section + * added a postinst + * postinst calls suidregister which is no longer policy compliant + + -- Sean 'Shaleh' Perry Wed, 10 Jan 2001 08:55:34 -0800 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/conffiles b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/conffiles new file mode 100644 index 00000000..d1a08433 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/conffiles @@ -0,0 +1 @@ +/etc/menu-methods/lintian diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/control new file mode 100644 index 00000000..c797357b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/control @@ -0,0 +1,42 @@ +Source: binary +Section: misc +Priority: optional +Maintainer: Lintian Maintainers +Uploaders: Co-maintainer one , Jeroen van Wolffelaar , Co-maintainer three +Standards-Version: 3.2.1 +Homepage: http://lintian.debian.org/ +Vcs-Svn: http://svn.wolffelaar.nl/lintian/trunk +XS-Vcs-Browser: http://svn.wolffelaar.nl/lintian/trunk +XS-Dm-Upload-Allowed: yes + +Package: binary +Architecture: any +Pre-Depends: ${shlibs:Depends}, xorg, binary-data (= ${source:Version}), libssl0.9.8 +Homepage: +Vcs-Svn: http://svn.wolffelaar.nl/lintian/trunk +Description: test handling of binary files + Regression test for lintian's handling of binary files for debian. This + is checked for picky spelling errors. + . + This package list [ subversion | gconf ] should not be flagged as a spelling + mistake. The spelling correction for dont should be correct. + . + Homepage: http://lintian.debian.org/ + +Package: binary-data +Architecture: all +Depends: binary (= ${source:Version}), libssl-not-openssl, + libssl0.9.8 | or-something-else +Description: test handling of binary relationships + Regression test for lintian's checking of package relationships between + arch:any and arch:all packages. + . + This mention of subversion should be flagged as a spelling mistake. + +#Package: binary-comment +#Architecture: space-almonds +#Depends: * +#Depends: * +#Description: test comment support +# Yes, comments are actually allowed in debian/control, so none of the +# above should produce errors. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/copyright new file mode 100644 index 00000000..1d6806de --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/copyright @@ -0,0 +1,15 @@ +hello.c is released under public domain. This is distributed in the hope that +it will be useful, but without any warranty; without even the implied warranty +of merchantability or fitness for a particular purpose. + +A reference to /usr/share/common-licenses/GPL-2 to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +Test for old FSF address: + +Free Software Foundation, Inc., 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. + +Test for deprecated ntionl ncoding. + +Improper capitalization of linux or debian isn't caught here. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/doc-base b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/doc-base new file mode 100644 index 00000000..7e5b38f2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/doc-base @@ -0,0 +1,41 @@ +Document: binary!docs +Title: Broken debian binary doc-base control file +Author: Russ Allbery +Abstract: This control file exercises various tests of doc-base control + files, including several things that aren't tested yet. The third and + fourth one has trailing whitespace. + . + This section has a speling error and bad character. + . + The above separator was fine. +Section: Non/Existant +Unknown: Some field + + + +Format: debiandoc-sgML +Files: /usr/share/doc/binary/binary.sgml.gz +Unknown: Some field + +Format: ESP +Index: /usr/share/doc/binary/binary.txt + +Index: /usr/share/doc/binary/html/index.html + /usr/share/doc/binary/html/ch1.html + /usr/share/doc/binary/html/ch4.html + + +Format: HTML +Index: /usr/share/doc/binary/html/index.html +Files: /usr/share/doc/binary/html/ch?.h*l + /usr/share/doc/binary/hml/*.html + +Format: inFO +Files: /usr/share/info/binary.info.gz + +Format: HTML +Index: /usr/share/doc/binary/html/index.html +Files: /usr/share/doc/binary/html/ch5.html + /usr/share/doc/binary/html/ch6.html + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/goodbye.desktop b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/goodbye.desktop new file mode 100644 index 00000000..f6ce8e3f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/goodbye.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Name:Goodbye +# Name=Goodbye +Comment=Say hello! +SpecialTag=This doesn't exist! +Exec=goodbye +icon=hello +Terminal=true +Type=Application +Categories=WeirdStuff;Screensaver; +Encoding=ISO-10646-1 +[Other Entry] +Name=Goodbye diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/hello.desktop b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/hello.desktop new file mode 100644 index 00000000..f7954685 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/hello.desktop @@ -0,0 +1,14 @@ +# some random comment + +# [Foo Bar] +[KDE Desktop Entry] +Name=Hello +Name[en_US]=Hello +Comment=Say hello! +Exec=kdesu hello +Icon=hello +Terminal=true +Type=Application +Categories=GNOME;GTK;System;Applet;X-Foo;Settings; +Encoding=UTF-8 +OnlyShowIn=GNOME; diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/menu b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/menu new file mode 100644 index 00000000..e8972f4f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/menu @@ -0,0 +1,26 @@ +?package(binary):needs=text title="Hello World" command="/usr/bin/hello" +?package(binary):needs=text section="Applications/System" title="Run cfdisk (0)" command="/usr/bin/su-to-root cfdisk" +?package(binary):needs="text" section="Applications/System/Hardware" title="Run cfdisk (1)" command="sux -p cfdisk" +?package(binary):needs="x11" section="Window Managers" title="Run xfdisk" command="/usr/sbin/su-to-root -c xfdisk" +?package(binary):needs="wm" section="Applications/System/Administration" title="Run fdisk-wm" command="su-to-root -c hello" +?package(binary):section="Apps/Games" title="I'm not root!" command="su-to-root -c imnothere" +?package(binary):needs="text" section="Apps/System" title="I'm not here!" command="/imnothere" +?package(binary,other-binary):\ + needs="text"\ + section="Applications/Shells"\ + title="more than one required"\ + command="other-bin -s omething" +?package(binary):needs="wmmodule" section="WindowManagers/Modules" title="somemodule" command="ModuleCmd" +?package(binary):needs="wmmodule" section="FVWM Modules" title="somemodule" command="ModuleCmd" +?package(binary):needs="text" section="Applications/System/Administration" title="I'm not in /usr/bin!" command="iminusrbin" +?package(binary):needs="text"\ + section="Applications/System/Administration"\ + title="I'm not root!" command="su-to-root -c imnothere" +?package(binary):needs="text" section="Applications/System/Administration"\ + title="Run cfdisk (0)" command="cfdisk" +?package(binary):needs="text" section="Applications/System/Administration" title="Hello World" command="/usr/bin/hello" +?package(binary):needs="wm" section="FVWM Modules" title="Fake Module" command="hello" +?package(binary):needs="fvwmmodule" section="Window Maker" title="Fake Module"\ + command="hello" +?package(binary):needs="x11" section="Applications/System/Hardware" title="Run xfdisk" command="su-to-root -c 'xfdisk -f'" +?package(binary):needs="text" section="Applications/System/Administration" title="foo" command="sh /path/to/foo" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/menu-method b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/menu-method new file mode 100644 index 00000000..9f07bd73 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/menu-method @@ -0,0 +1,22 @@ +#!/usr/bin/install-menu + +# -*- mode: shell-script; -*- +#I need menu-1! +# + +!include notmenu.h + +compat="menu-2" + +outputencoding="UTF-8"; +outputlanguage="C"; + +x11 = AppEntry("false"); +text = AppEntry("true"); + +startmenu = ""; +endmenu = ""; +submenutitle = ""; +rootprefix = "/var/lib/lintian/menu"; +userprefix = ".local/share/lintian/menu"; + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/postinst new file mode 100644 index 00000000..29e18619 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/postinst @@ -0,0 +1,6 @@ +#! /bin/bash -e + +if [ $1 eq 'configure' ] +then + suidregister hello-static root root 4755 +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/rules new file mode 100755 index 00000000..a962ea92 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/rules @@ -0,0 +1,92 @@ +#!/usr/bin/make -f + +tmp=debian/tmp + +# This reference to $(PWD) should not cause an error but the one below +# should. +build-arch: + make + echo $(PWD) + +build: build-arch + +clean: + make -i clean + [ ! -f debian/files ] || rm -f debian/files + [ ! -f debian/substvars ] || rm -f debian/substvars + [ ! -d debian/tmp ] || rm -rf debian/tmp + [ ! -d debian/binary ] || rm -rf debian/binary + [ ! -d debian/binary-data ] || rm -rf debian/binary-data + +binary-arch: build + install -d $(tmp)/usr/bin + install -d $(tmp)/boot/hello + install -m 755 hello $(tmp)/usr/bin + touch $(tmp)/usr/bin/iminusrbin + chmod 755 $(tmp)/usr/bin/iminusrbin + install -m 755 hello-static $(tmp)/usr/bin + strip $(tmp)/usr/bin/hello-static + install -m 755 hello-static $(tmp)/usr/bin/hello.static + strip --remove-section=.comment --remove-section=.note $(tmp)/usr/bin/hello.static + ln $(tmp)/usr/bin/hello.static $(tmp)/usr/bin/static-hello + install -m 755 hello-static $(tmp)/boot/hello + strip --remove-section=.comment --remove-section=.note $(tmp)/boot/hello/hello-static + install -d $(tmp)/usr/share/doc/binary + install -m 644 INSTALL $(tmp)/usr/share/doc/binary + install -d $(tmp)/usr/share/doc/binary/html + echo '' > $(tmp)/usr/share/doc/binary/html/index.html + echo '' > $(tmp)/usr/share/doc/binary/html/ch1.html + ln -s ../html/./ch1.html $(tmp)/usr/share/doc/binary/html/ch2.html + ln -s /usr/share/doc/binary/htm/ch1.html $(tmp)/usr/share/doc/binary/html/ch3.html + echo '' > $(tmp)/usr/share/doc/binary/html/ch5.html + ln $(tmp)/usr/share/doc/binary/html/ch5.html \ + $(tmp)/usr/share/doc/binary/html/ch6.html + install -d $(tmp)/usr/share/menu + install -d $(tmp)/usr/lib/menu + install -d $(tmp)/usr/share/binary + install -m 644 debian/menu $(tmp)/usr/share/menu/binary + install -m 644 debian/menu $(tmp)/usr/lib/menu/binary + install -d $(tmp)/etc/menu-methods + install -m 755 debian/menu-method $(tmp)/etc/menu-methods/lintian + install -d $(tmp)/usr/share/doc-base + install -m 644 debian/doc-base $(tmp)/usr/share/doc-base/binary + touch '$(tmp)/usr/share/doc-base/space ' + install -m 644 debian/README.Debian $(tmp)/usr/share/doc/binary + install -m 644 debian/NEWS.Debian $(tmp)/usr/share/doc/binary + gzip -n -9 $(tmp)/usr/share/doc/binary/NEWS.Debian + install -m 644 debian/copyright $(tmp)/usr/share/doc/binary + install -m 644 debian/changelog $(tmp)/usr/share/doc/binary + #gzip -n -9 $(tmp)/usr/share/doc/binary/changelog + install -d $(tmp)/DEBIAN + install -m 755 debian/postinst $(tmp)/DEBIAN + install -m 644 debian/conffiles $(tmp)/DEBIAN + + install -d $(tmp)/usr/share/applications + install -m 644 debian/hello.desktop \ + $(tmp)/usr/share/applications/hello.desktop + install -m 755 debian/goodbye.desktop \ + $(tmp)/usr/share/applications/goodbye.desktop + + # should be ok... + echo boe > $(tmp)/usr/bar + ln $(tmp)/usr/bar $(tmp)/usr/foo + # but this isn't + echo boe > $(tmp)/usr/bar2 + ln $(tmp)/usr/bar2 $(tmp)/usr/share/baz + + dd if=/dev/zero of=$(tmp)/usr/share/binary/largefile bs=1024 count=4000 + + install -d debian/binary-data/DEBIAN + install -d debian/binary-data/usr/share/doc + ln -s binary debian/binary-data/usr/share/doc/binary-data + + dpkg-shlibdeps $(tmp)/usr/bin/hello + dpkg-gencontrol -pbinary -isp + dpkg-gencontrol -pbinary-data -Pdebian/binary-data -isp + + dpkg --build debian/tmp .. + dpkg --build debian/binary-data .. + +binary: binary-arch + +.PHONY: build-arch build binary-arch binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/templates b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/templates new file mode 100644 index 00000000..3d928614 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/templates @@ -0,0 +1,16 @@ +# The debconf templates defined here are the sort that you'd use if +# providing a wordlist and an ispell dictionary for the language +# "perl". This shouldn't trigger warnings about not using debconf-po. + +Template: shared/packages-ispell +Type: text +Description: + +Template: shared/packages-wordlist +Type: text +Description: + +Template: miscfiles/languages +Type: text +Default: perl (Pathologically Eclectic Rubbish Lister) +Description: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/eval/hints new file mode 100644 index 00000000..bf0c2ff9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/eval/hints @@ -0,0 +1,2 @@ +binary (source): adopted-extended-field (in section for source) XS-Vcs-Browser [debian/control:9] +binary (source): adopted-extended-field (in section for source) XS-Dm-Upload-Allowed [debian/control:10] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/hello.c b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/hello.c new file mode 100644 index 00000000..2fb04e17 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-binary/hello.c @@ -0,0 +1,8 @@ +#include +#include + +int main(int argc, char *argv[]) { + + printf("Hello, World!\n"); + exit(0); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-foo++/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-foo++/ORIGIN new file mode 100644 index 00000000..171db9c3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-foo++/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/field/adopted/legacy-foo++ + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-foo++/debian/README.Debian b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-foo++/debian/README.Debian new file mode 100644 index 00000000..87bfcdf7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-foo++/debian/README.Debian @@ -0,0 +1,7 @@ +foo++ for Debian +---------------- + +This should trigger a warning, as i use a fake mail address. + + -- Marc 'HE' Brockschmidt , Wed, 14 Apr 2004 01:44:18 +0200 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-foo++/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-foo++/debian/changelog new file mode 100644 index 00000000..e1637f75 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-foo++/debian/changelog @@ -0,0 +1,31 @@ +foo++ (5) unstable; urgency=low + + * Add a fake README.Debian to trigger a warning. + * This should trigger + debian-changelog-file-contains-debmake-default-email-address. + + -- Marc 'HE' Brockschmidt Wed, 14 Apr 2003 01:35:47 +0200 + +foo++ (4) unstable; urgency=low + + * This changelog now includes a ISO-8859-1 character: '' + + -- Frank Lichtenheld Fri, 5 Mar 2004 13:41:39 +0100 + +foo++ (3) unstable; urgency=low + + * Set maintainers + uploaders incorrectly + + -- Jeroen van Wolffelaar Fri, 5 Mar 2004 04:20:24 +0100 + +foo++ (2) unstable; urgency=low + + * Added a foo++-helper package to try and catch even more ++ bugs. + + -- Sean 'Shaleh' Perry Sat, 10 Feb 2001 23:16:17 -0800 + +foo++ (1) unstable; urgency=low + + * Initial version + + -- Sean 'Shaleh' Perry Thu, 16 Nov 2000 09:11:40 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-foo++/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-foo++/debian/control new file mode 100644 index 00000000..cace92cb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-foo++/debian/control @@ -0,0 +1,29 @@ +Source: foo++ +Section: misc +Priority: optional +Maintainer: Lintian Maintainer +Uploaders: Marc 'HE' Brockschmidt , Jeroen van Wolffelaar , + Frank +Standards-Version: 3.1.1 +XS-Dm-Upload-Allowed: no + +Package: foo++ +Architecture: all +Build-Depends: test +Depends: test, libssl0.9.7 +Description: see how lintian reacts to plus signs in the package name + Regression test to see if lintian tests work on a package with plus signs in + its name. + . + This description also uses some UTF8 high bytes chars: ÄÖÜß + +Package: foo++-helper +Architecture: all +Depends: test, foo++ +Description: see how lintian reacts to plus signs in the package name + Regression test to see if lintian tests work on a package with plus signs in + its name. This has /usr/share/doc links to foo++ to trigger even more checks. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-foo++/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-foo++/debian/copyright new file mode 100644 index 00000000..e2d6d93e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-foo++/debian/copyright @@ -0,0 +1,7 @@ +A reference to /usr/share/common-licenses/GPL to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +However, there is also a reference to /usr/share/common-licenses/LGPL, so +who knows what bits actually depend on libssl. + +Copr. 2007 Somebody. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-foo++/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-foo++/debian/rules new file mode 100755 index 00000000..63bb4dbe --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-foo++/debian/rules @@ -0,0 +1,36 @@ +#!/usr/bin/make -f + +foo=foo++ +helper=foo++-helper + +build-arch: + +build-indep: + +build: build-arch build-indep + +binary-arch: + +binary-indep: + install -d debian/$(foo)/DEBIAN + install -d debian/$(foo)/usr/share/doc/$(foo) + install -m 644 debian/changelog \ + debian/$(foo)/usr/share/doc/$(foo)/changelog + gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/changelog + install -m 644 debian/README.Debian \ + debian/$(foo)/usr/share/doc/$(foo)/README.Debian + gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/README.Debian + dpkg-gencontrol -isp -p$(foo) -Pdebian/$(foo) + dpkg --build debian/$(foo) .. + + install -d debian/$(helper)/DEBIAN + install -d debian/$(helper)/usr/share/doc/ + ln -sf $(foo) debian/$(helper)/usr/share/doc/$(helper) + dpkg-gencontrol -isp -p$(helper) -Pdebian/$(helper) + dpkg --build debian/$(helper) .. + +binary: binary-arch binary-indep + +clean: + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-foo++/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-foo++/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-foo++/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-foo++/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-foo++/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-foo++/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-foo++/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-foo++/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-foo++/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-foo++/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-foo++/debian/watch new file mode 100644 index 00000000..26f9a3c1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-foo++/debian/watch @@ -0,0 +1,6 @@ +# A comment \ +version=0 + +# uscan does not interpret the backslash above, it is just part of the comment + +http://domain.tld/file-(.*)\.tar\.gz diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-foo++/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-foo++/eval/hints new file mode 100644 index 00000000..89ba6b20 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/legacy-foo++/eval/hints @@ -0,0 +1 @@ +foo++ (source): adopted-extended-field (in section for source) XS-Dm-Upload-Allowed [debian/control:8] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/testsuite-unknown-suite/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/testsuite-unknown-suite/ORIGIN new file mode 100644 index 00000000..dd8ee196 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/testsuite-unknown-suite/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/field/adopted/testsuite-unknown-suite + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/testsuite-unknown-suite/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/testsuite-unknown-suite/debian/changelog new file mode 100644 index 00000000..8d6359be --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/testsuite-unknown-suite/debian/changelog @@ -0,0 +1,17 @@ +testsuite-unknown-suite (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: testsuite-unknown-suite + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +testsuite-unknown-suite (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: testsuite-unknown-suite + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/testsuite-unknown-suite/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/testsuite-unknown-suite/debian/control new file mode 100644 index 00000000..79449d27 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/testsuite-unknown-suite/debian/control @@ -0,0 +1,17 @@ +Source: testsuite-unknown-suite +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no +XS-Testsuite: autopkgtest, golf + +Package: testsuite-unknown-suite +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Tests for unknown suite in the control being non-file + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/testsuite-unknown-suite/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/testsuite-unknown-suite/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/testsuite-unknown-suite/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/testsuite-unknown-suite/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/testsuite-unknown-suite/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/testsuite-unknown-suite/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/testsuite-unknown-suite/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/testsuite-unknown-suite/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/testsuite-unknown-suite/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/testsuite-unknown-suite/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/testsuite-unknown-suite/debian/tests/control new file mode 100644 index 00000000..19e2aee2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/testsuite-unknown-suite/debian/tests/control @@ -0,0 +1 @@ +Tests: test-1 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/testsuite-unknown-suite/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/testsuite-unknown-suite/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/testsuite-unknown-suite/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/testsuite-unknown-suite/debian/tests/test-1 b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/testsuite-unknown-suite/debian/tests/test-1 new file mode 100644 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/testsuite-unknown-suite/debian/tests/test-1 @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/testsuite-unknown-suite/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/testsuite-unknown-suite/eval/hints new file mode 100644 index 00000000..ad57ccdb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/adopted/testsuite-unknown-suite/eval/hints @@ -0,0 +1 @@ +testsuite-unknown-suite (source): adopted-extended-field (in section for source) XS-Testsuite [debian/control:8] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/architecture/multiline/control-file-important-space/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/architecture/multiline/control-file-important-space/ORIGIN new file mode 100644 index 00000000..bb7cd486 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/architecture/multiline/control-file-important-space/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/field/architecture/multiline/control-file-important-space + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/architecture/multiline/control-file-important-space/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/architecture/multiline/control-file-important-space/debian/changelog new file mode 100644 index 00000000..918e8c1b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/architecture/multiline/control-file-important-space/debian/changelog @@ -0,0 +1,17 @@ +control-file-important-space (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-important-space + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +control-file-important-space (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-important-space + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/architecture/multiline/control-file-important-space/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/architecture/multiline/control-file-important-space/debian/control new file mode 100644 index 00000000..abfb6505 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/architecture/multiline/control-file-important-space/debian/control @@ -0,0 +1,43 @@ +Source: control-file-important-space +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no +Homepage: http://lintian.debian.org/ + +Package: control-file-important-space-broken +Architecture: any-amd64 any-arm64 any-mips64 any-mips64el any-ia64 + any-ppc64 any-ppc64el any-sparc64 +Depends: ${misc:Depends} +Description: Important tests for control file spacing (multiline architecture, broken) + This is a (broken) test package designed to exercise some feature or + tag of Lintian. It is part of the Lintian test suite and may do very + odd things. It should not be installed like a regular package. It + may be an empty package. + . + The Architecture (multi-)line example above is taken from + https://bugs.debian.org/780473 + +Package: control-file-important-space-fine-any-something +Architecture: any-amd64 any-arm64 any-mips64 any-mips64el any-ia64 any-ppc64 any-ppc64el any-sparc64 +Depends: ${misc:Depends} +Description: Important tests for control file spacing (any-something, fine) + This is a (non-broken) test package designed to exercise some feature + or tag of Lintian. It is part of the Lintian test suite and may do + very odd things. It should not be installed like a regular package. + It may be an empty package. + . + This "any-something" package should not show up. + +Package: control-file-important-space-fine-all +Architecture: all +Depends: ${misc:Depends} +Description: Important tests for control file spacing (all, fine) + This is a (non-broken) test package designed to exercise some feature + or tag of Lintian. It is part of the Lintian test suite and may do + very odd things. It should not be installed like a regular package. + It may be an empty package. + . + This "all" package should not show up. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/architecture/multiline/control-file-important-space/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/architecture/multiline/control-file-important-space/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/architecture/multiline/control-file-important-space/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/architecture/multiline/control-file-important-space/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/architecture/multiline/control-file-important-space/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/architecture/multiline/control-file-important-space/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/architecture/multiline/control-file-important-space/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/architecture/multiline/control-file-important-space/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/architecture/multiline/control-file-important-space/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/architecture/multiline/control-file-important-space/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/architecture/multiline/control-file-important-space/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/architecture/multiline/control-file-important-space/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/architecture/multiline/control-file-important-space/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/architecture/multiline/control-file-important-space/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/architecture/multiline/control-file-important-space/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/architecture/multiline/control-file-important-space/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/architecture/multiline/control-file-important-space/eval/hints new file mode 100644 index 00000000..366ed52d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/architecture/multiline/control-file-important-space/eval/hints @@ -0,0 +1 @@ +control-file-important-space (source): multiline-architecture-field Architecture (in section for control-file-important-space-broken) [debian/control:11] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/build-profiles/fields-build-profiles-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/build-profiles/fields-build-profiles-general/ORIGIN new file mode 100644 index 00000000..a28b6527 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/build-profiles/fields-build-profiles-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/field/build-profiles/fields-build-profiles-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/build-profiles/fields-build-profiles-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/build-profiles/fields-build-profiles-general/debian/changelog new file mode 100644 index 00000000..36559855 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/build-profiles/fields-build-profiles-general/debian/changelog @@ -0,0 +1,17 @@ +fields-build-profiles-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: fields-build-profiles-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +fields-build-profiles-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: fields-build-profiles-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/build-profiles/fields-build-profiles-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/build-profiles/fields-build-profiles-general/debian/control new file mode 100644 index 00000000..cebaa2a3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/build-profiles/fields-build-profiles-general/debian/control @@ -0,0 +1,21 @@ +Source: fields-build-profiles-general +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), + big , bpfail1 , + bpcomplicated +Rules-Requires-Root: no + +Package: fields-build-profiles-general-unknown-profile +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Build-Profiles: +Description: General tests for build profiles (unknown profile) + Check for unknown profile names + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/build-profiles/fields-build-profiles-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/build-profiles/fields-build-profiles-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/build-profiles/fields-build-profiles-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/build-profiles/fields-build-profiles-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/build-profiles/fields-build-profiles-general/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/build-profiles/fields-build-profiles-general/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/build-profiles/fields-build-profiles-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/build-profiles/fields-build-profiles-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/build-profiles/fields-build-profiles-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/build-profiles/fields-build-profiles-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/build-profiles/fields-build-profiles-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/build-profiles/fields-build-profiles-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/build-profiles/fields-build-profiles-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/build-profiles/fields-build-profiles-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/build-profiles/fields-build-profiles-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/build-profiles/fields-build-profiles-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/build-profiles/fields-build-profiles-general/eval/hints new file mode 100644 index 00000000..9a667257 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/build-profiles/fields-build-profiles-general/eval/hints @@ -0,0 +1,2 @@ +fields-build-profiles-general (source): varies-content-with-nocheck [debian/control:14] +fields-build-profiles-general (source): invalid-profile-name-in-build-profiles-field unknown (in section for fields-build-profiles-general-unknown-profile) [debian/control:14] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/description/duplicate/control-file-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/description/duplicate/control-file-general/ORIGIN new file mode 100644 index 00000000..cd634630 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/description/duplicate/control-file-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/field/description/duplicate/control-file-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/description/duplicate/control-file-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/description/duplicate/control-file-general/debian/changelog new file mode 100644 index 00000000..266376c7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/description/duplicate/control-file-general/debian/changelog @@ -0,0 +1,17 @@ +control-file-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +control-file-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/description/duplicate/control-file-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/description/duplicate/control-file-general/debian/control new file mode 100644 index 00000000..0d48933e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/description/duplicate/control-file-general/debian/control @@ -0,0 +1,118 @@ +Source: control-file-general +Priority: optional +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), + fiddle [amd64 powerpc mips mipsel hppa s390], + faddle + (>> + 2) [ + sparc i386 amd64 + ] +Build-Depends-Indep: perl (> 5.8) +Rules-Requires-Root: no +XS-Vcs-Svn: https://svn.example.com/control-file-general/trunk +#Vcs-Git: git://git.debian.org/collab-maint/.git +#Vcs-Browser: http://git.debian.org/?p=collab-maint/.git;a=summary + +Package: control-file-general +Section: devel +Maintainer: Debian Lintian Maintainers +Build-Conflicts: foo +Architecture: all +Pre-depends: ${misc:Pre-depends}, multiarch-support +Depends: control-file-general, foo, baz, ${shlibs:Depends} ${some:Depends}, ${misc:Depends} +Recommends: foo, bar, no-match${lintian:Foo}, match${lintian:Match}, no-match${lintian:Bar}-foo +Suggests: bar | baz, no-match${lintian:Bar}, match${lintian:Match} +Description: Various problems with debian/control + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-1 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Breaks: libsqlite3-0 (< 3.6.12) +Description: Various problems with debian/control + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-2 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Various problems with debian/control (two) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-3 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, foo (>= 1), + baz (<< 2), + fizz (= 2.0), gcc-${pv:gcc} ${reqv:gcc} +Description: Various problems with debian/control (three) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-4 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, foo | + bar (>= 1), baz +Description: Various problems with debian/control (four) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-5 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Description: Various problems with debian/control + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-dbgsym +Section: debug +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Description: dbg-sym + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-dbg +Section: debug +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Description: debug + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-udeb +Section: debian-installer +Package-Type: udeb +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Various problems with debian/control (udeb) + udeb tests. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/description/duplicate/control-file-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/description/duplicate/control-file-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/description/duplicate/control-file-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/description/duplicate/control-file-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/description/duplicate/control-file-general/debian/rules new file mode 100644 index 00000000..f5db4bbb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/description/duplicate/control-file-general/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_gencontrol: + echo 'pv:gcc=4.3' >> debian/substvars + echo 'reqv:gcc=(>= 4.3-1)' >> debian/substvars + dh_gencontrol diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/description/duplicate/control-file-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/description/duplicate/control-file-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/description/duplicate/control-file-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/description/duplicate/control-file-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/description/duplicate/control-file-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/description/duplicate/control-file-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/description/duplicate/control-file-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/description/duplicate/control-file-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/description/duplicate/control-file-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/description/duplicate/control-file-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/description/duplicate/control-file-general/eval/hints new file mode 100644 index 00000000..cc92e1d5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/description/duplicate/control-file-general/eval/hints @@ -0,0 +1,2 @@ +control-file-general (source): duplicate-short-description control-file-general control-file-general-1 [debian/control] +control-file-general (source): duplicate-long-description control-file-general control-file-general-1 control-file-general-2 control-file-general-3 control-file-general-4 control-file-general-5 control-file-general-dbg control-file-general-dbgsym [debian/control] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/doubled-up/control-file-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/doubled-up/control-file-general/ORIGIN new file mode 100644 index 00000000..3d2ad0da --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/doubled-up/control-file-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/field/doubled-up/control-file-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/doubled-up/control-file-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/doubled-up/control-file-general/debian/changelog new file mode 100644 index 00000000..266376c7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/doubled-up/control-file-general/debian/changelog @@ -0,0 +1,17 @@ +control-file-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +control-file-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/doubled-up/control-file-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/doubled-up/control-file-general/debian/control new file mode 100644 index 00000000..0d48933e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/doubled-up/control-file-general/debian/control @@ -0,0 +1,118 @@ +Source: control-file-general +Priority: optional +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), + fiddle [amd64 powerpc mips mipsel hppa s390], + faddle + (>> + 2) [ + sparc i386 amd64 + ] +Build-Depends-Indep: perl (> 5.8) +Rules-Requires-Root: no +XS-Vcs-Svn: https://svn.example.com/control-file-general/trunk +#Vcs-Git: git://git.debian.org/collab-maint/.git +#Vcs-Browser: http://git.debian.org/?p=collab-maint/.git;a=summary + +Package: control-file-general +Section: devel +Maintainer: Debian Lintian Maintainers +Build-Conflicts: foo +Architecture: all +Pre-depends: ${misc:Pre-depends}, multiarch-support +Depends: control-file-general, foo, baz, ${shlibs:Depends} ${some:Depends}, ${misc:Depends} +Recommends: foo, bar, no-match${lintian:Foo}, match${lintian:Match}, no-match${lintian:Bar}-foo +Suggests: bar | baz, no-match${lintian:Bar}, match${lintian:Match} +Description: Various problems with debian/control + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-1 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Breaks: libsqlite3-0 (< 3.6.12) +Description: Various problems with debian/control + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-2 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Various problems with debian/control (two) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-3 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, foo (>= 1), + baz (<< 2), + fizz (= 2.0), gcc-${pv:gcc} ${reqv:gcc} +Description: Various problems with debian/control (three) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-4 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, foo | + bar (>= 1), baz +Description: Various problems with debian/control (four) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-5 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Description: Various problems with debian/control + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-dbgsym +Section: debug +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Description: dbg-sym + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-dbg +Section: debug +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Description: debug + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-udeb +Section: debian-installer +Package-Type: udeb +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Various problems with debian/control (udeb) + udeb tests. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/doubled-up/control-file-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/doubled-up/control-file-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/doubled-up/control-file-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/doubled-up/control-file-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/doubled-up/control-file-general/debian/rules new file mode 100644 index 00000000..f5db4bbb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/doubled-up/control-file-general/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_gencontrol: + echo 'pv:gcc=4.3' >> debian/substvars + echo 'reqv:gcc=(>= 4.3-1)' >> debian/substvars + dh_gencontrol diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/doubled-up/control-file-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/doubled-up/control-file-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/doubled-up/control-file-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/doubled-up/control-file-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/doubled-up/control-file-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/doubled-up/control-file-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/doubled-up/control-file-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/doubled-up/control-file-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/doubled-up/control-file-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/doubled-up/control-file-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/doubled-up/control-file-general/eval/hints new file mode 100644 index 00000000..5d692438 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/doubled-up/control-file-general/eval/hints @@ -0,0 +1,3 @@ +control-file-general (source): debian-control-repeats-field-name-in-value (in section for control-file-general-dbgsym) Description [debian/control:91] +control-file-general (source): debian-control-repeats-field-name-in-value (in section for control-file-general-dbg) Description [debian/control:101] +control-file-general (source): debian-control-repeats-field-name-in-value (in section for control-file-general-5) Description [debian/control:81] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/empty/control-has-empty-field/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/empty/control-has-empty-field/ORIGIN new file mode 100644 index 00000000..d771613b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/empty/control-has-empty-field/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/field/empty/control-has-empty-field + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/empty/control-has-empty-field/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/empty/control-has-empty-field/debian/changelog new file mode 100644 index 00000000..73a1a16f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/empty/control-has-empty-field/debian/changelog @@ -0,0 +1,17 @@ +control-has-empty-field (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-has-empty-field + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +control-has-empty-field (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-has-empty-field + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/empty/control-has-empty-field/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/empty/control-has-empty-field/debian/control new file mode 100644 index 00000000..d13e3a8c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/empty/control-has-empty-field/debian/control @@ -0,0 +1,26 @@ +Source: control-has-empty-field +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Uploaders: + Wrapped Onto New Line +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: binary-targets +Homepage: https://lintian.debian.org/ +Vcs-Browser: +# The following line contains "Vcs-Git: \n" +Vcs-Git: + +Package: control-has-empty-field +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Suggests: +# The following line contains "Provides: \n" +Provides: +Recommends: ${false:Positive} +Description: Check for empty fields + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/empty/control-has-empty-field/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/empty/control-has-empty-field/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/empty/control-has-empty-field/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/empty/control-has-empty-field/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/empty/control-has-empty-field/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/empty/control-has-empty-field/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/empty/control-has-empty-field/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/empty/control-has-empty-field/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/empty/control-has-empty-field/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/empty/control-has-empty-field/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/empty/control-has-empty-field/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/empty/control-has-empty-field/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/empty/control-has-empty-field/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/empty/control-has-empty-field/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/empty/control-has-empty-field/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/empty/control-has-empty-field/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/empty/control-has-empty-field/eval/hints new file mode 100644 index 00000000..8f187c3e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/empty/control-has-empty-field/eval/hints @@ -0,0 +1,4 @@ +control-has-empty-field (source): debian-control-has-empty-field (in source paragraph) Vcs-Git [debian/control:13] +control-has-empty-field (source): debian-control-has-empty-field (in source paragraph) Vcs-Browser [debian/control:11] +control-has-empty-field (source): debian-control-has-empty-field (in section for control-has-empty-field) Suggests [debian/control:18] +control-has-empty-field (source): debian-control-has-empty-field (in section for control-has-empty-field) Provides [debian/control:20] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/control-file-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/control-file-general/ORIGIN new file mode 100644 index 00000000..48db18c5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/control-file-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/field/misplaced/control-file-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/control-file-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/control-file-general/debian/changelog new file mode 100644 index 00000000..266376c7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/control-file-general/debian/changelog @@ -0,0 +1,17 @@ +control-file-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +control-file-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/control-file-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/control-file-general/debian/control new file mode 100644 index 00000000..0d48933e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/control-file-general/debian/control @@ -0,0 +1,118 @@ +Source: control-file-general +Priority: optional +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), + fiddle [amd64 powerpc mips mipsel hppa s390], + faddle + (>> + 2) [ + sparc i386 amd64 + ] +Build-Depends-Indep: perl (> 5.8) +Rules-Requires-Root: no +XS-Vcs-Svn: https://svn.example.com/control-file-general/trunk +#Vcs-Git: git://git.debian.org/collab-maint/.git +#Vcs-Browser: http://git.debian.org/?p=collab-maint/.git;a=summary + +Package: control-file-general +Section: devel +Maintainer: Debian Lintian Maintainers +Build-Conflicts: foo +Architecture: all +Pre-depends: ${misc:Pre-depends}, multiarch-support +Depends: control-file-general, foo, baz, ${shlibs:Depends} ${some:Depends}, ${misc:Depends} +Recommends: foo, bar, no-match${lintian:Foo}, match${lintian:Match}, no-match${lintian:Bar}-foo +Suggests: bar | baz, no-match${lintian:Bar}, match${lintian:Match} +Description: Various problems with debian/control + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-1 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Breaks: libsqlite3-0 (< 3.6.12) +Description: Various problems with debian/control + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-2 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Various problems with debian/control (two) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-3 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, foo (>= 1), + baz (<< 2), + fizz (= 2.0), gcc-${pv:gcc} ${reqv:gcc} +Description: Various problems with debian/control (three) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-4 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, foo | + bar (>= 1), baz +Description: Various problems with debian/control (four) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-5 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Description: Various problems with debian/control + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-dbgsym +Section: debug +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Description: dbg-sym + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-dbg +Section: debug +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Description: debug + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-udeb +Section: debian-installer +Package-Type: udeb +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Various problems with debian/control (udeb) + udeb tests. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/control-file-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/control-file-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/control-file-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/control-file-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/control-file-general/debian/rules new file mode 100644 index 00000000..f5db4bbb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/control-file-general/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_gencontrol: + echo 'pv:gcc=4.3' >> debian/substvars + echo 'reqv:gcc=(>= 4.3-1)' >> debian/substvars + dh_gencontrol diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/control-file-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/control-file-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/control-file-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/control-file-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/control-file-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/control-file-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/control-file-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/control-file-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/control-file-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/control-file-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/control-file-general/eval/hints new file mode 100644 index 00000000..f2cf497d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/control-file-general/eval/hints @@ -0,0 +1 @@ +control-file-general (source): build-prerequisite-in-installable-section Build-Conflicts (in section for control-file-general) [debian/control:21] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/legacy-foo++/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/legacy-foo++/ORIGIN new file mode 100644 index 00000000..7c6a6915 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/legacy-foo++/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/field/misplaced/legacy-foo++ + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/legacy-foo++/debian/README.Debian b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/legacy-foo++/debian/README.Debian new file mode 100644 index 00000000..87bfcdf7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/legacy-foo++/debian/README.Debian @@ -0,0 +1,7 @@ +foo++ for Debian +---------------- + +This should trigger a warning, as i use a fake mail address. + + -- Marc 'HE' Brockschmidt , Wed, 14 Apr 2004 01:44:18 +0200 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/legacy-foo++/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/legacy-foo++/debian/changelog new file mode 100644 index 00000000..e1637f75 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/legacy-foo++/debian/changelog @@ -0,0 +1,31 @@ +foo++ (5) unstable; urgency=low + + * Add a fake README.Debian to trigger a warning. + * This should trigger + debian-changelog-file-contains-debmake-default-email-address. + + -- Marc 'HE' Brockschmidt Wed, 14 Apr 2003 01:35:47 +0200 + +foo++ (4) unstable; urgency=low + + * This changelog now includes a ISO-8859-1 character: '' + + -- Frank Lichtenheld Fri, 5 Mar 2004 13:41:39 +0100 + +foo++ (3) unstable; urgency=low + + * Set maintainers + uploaders incorrectly + + -- Jeroen van Wolffelaar Fri, 5 Mar 2004 04:20:24 +0100 + +foo++ (2) unstable; urgency=low + + * Added a foo++-helper package to try and catch even more ++ bugs. + + -- Sean 'Shaleh' Perry Sat, 10 Feb 2001 23:16:17 -0800 + +foo++ (1) unstable; urgency=low + + * Initial version + + -- Sean 'Shaleh' Perry Thu, 16 Nov 2000 09:11:40 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/legacy-foo++/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/legacy-foo++/debian/control new file mode 100644 index 00000000..ce490ee6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/legacy-foo++/debian/control @@ -0,0 +1,29 @@ +Source: foo++ +Section: misc +Priority: optional +Maintainer: Lintian Maintainer +Uploaders: Marc 'HE' Brockschmidt , Jeroen van Wolffelaar , + Frank , +Standards-Version: 3.1.1 +XS-Dm-Upload-Allowed: no + +Package: foo++ +Architecture: all +Build-Depends: test +Depends: test, libssl0.9.7 +Description: see how lintian reacts to plus signs in the package name + Regression test to see if lintian tests work on a package with plus signs in + its name. + . + This description also uses some UTF8 high bytes chars: ÄÖÜß + +Package: foo++-helper +Architecture: all +Depends: test, foo++ +Description: see how lintian reacts to plus signs in the package name + Regression test to see if lintian tests work on a package with plus signs in + its name. This has /usr/share/doc links to foo++ to trigger even more checks. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/legacy-foo++/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/legacy-foo++/debian/copyright new file mode 100644 index 00000000..e2d6d93e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/legacy-foo++/debian/copyright @@ -0,0 +1,7 @@ +A reference to /usr/share/common-licenses/GPL to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +However, there is also a reference to /usr/share/common-licenses/LGPL, so +who knows what bits actually depend on libssl. + +Copr. 2007 Somebody. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/legacy-foo++/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/legacy-foo++/debian/rules new file mode 100755 index 00000000..63bb4dbe --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/legacy-foo++/debian/rules @@ -0,0 +1,36 @@ +#!/usr/bin/make -f + +foo=foo++ +helper=foo++-helper + +build-arch: + +build-indep: + +build: build-arch build-indep + +binary-arch: + +binary-indep: + install -d debian/$(foo)/DEBIAN + install -d debian/$(foo)/usr/share/doc/$(foo) + install -m 644 debian/changelog \ + debian/$(foo)/usr/share/doc/$(foo)/changelog + gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/changelog + install -m 644 debian/README.Debian \ + debian/$(foo)/usr/share/doc/$(foo)/README.Debian + gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/README.Debian + dpkg-gencontrol -isp -p$(foo) -Pdebian/$(foo) + dpkg --build debian/$(foo) .. + + install -d debian/$(helper)/DEBIAN + install -d debian/$(helper)/usr/share/doc/ + ln -sf $(foo) debian/$(helper)/usr/share/doc/$(helper) + dpkg-gencontrol -isp -p$(helper) -Pdebian/$(helper) + dpkg --build debian/$(helper) .. + +binary: binary-arch binary-indep + +clean: + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/legacy-foo++/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/legacy-foo++/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/legacy-foo++/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/legacy-foo++/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/legacy-foo++/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/legacy-foo++/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/legacy-foo++/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/legacy-foo++/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/legacy-foo++/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/legacy-foo++/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/legacy-foo++/debian/watch new file mode 100644 index 00000000..26f9a3c1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/legacy-foo++/debian/watch @@ -0,0 +1,6 @@ +# A comment \ +version=0 + +# uscan does not interpret the backslash above, it is just part of the comment + +http://domain.tld/file-(.*)\.tar\.gz diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/legacy-foo++/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/legacy-foo++/eval/hints new file mode 100644 index 00000000..ba9d3494 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/misplaced/legacy-foo++/eval/hints @@ -0,0 +1 @@ +foo++ (source): build-prerequisite-in-installable-section Build-Depends (in section for foo++) [debian/control:12] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/priority/priority-optional-in-source-and-binary-stanza/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/priority/priority-optional-in-source-and-binary-stanza/ORIGIN new file mode 100644 index 00000000..f8513c35 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/priority/priority-optional-in-source-and-binary-stanza/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/field/priority/priority-optional-in-source-and-binary-stanza + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/priority/priority-optional-in-source-and-binary-stanza/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/priority/priority-optional-in-source-and-binary-stanza/debian/changelog new file mode 100644 index 00000000..217da5a5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/priority/priority-optional-in-source-and-binary-stanza/debian/changelog @@ -0,0 +1,17 @@ +priority-optional-in-source-and-binary-stanza (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: priority-optional-in-source-and-binary-stanza + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +priority-optional-in-source-and-binary-stanza (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: priority-optional-in-source-and-binary-stanza + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/priority/priority-optional-in-source-and-binary-stanza/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/priority/priority-optional-in-source-and-binary-stanza/debian/control new file mode 100644 index 00000000..80dca3e0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/priority/priority-optional-in-source-and-binary-stanza/debian/control @@ -0,0 +1,30 @@ +Source: priority-optional-in-source-and-binary-stanza +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: priority-optional-in-foo +Section: devel +Priority: required +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: "Priority: optional" is declared in source stanza of d/control + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + + +Package: priority-optional-in-bar +Section: devel +Priority: optional +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: "Priority: optional" is declared in source stanza of d/control + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/priority/priority-optional-in-source-and-binary-stanza/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/priority/priority-optional-in-source-and-binary-stanza/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/priority/priority-optional-in-source-and-binary-stanza/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/priority/priority-optional-in-source-and-binary-stanza/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/priority/priority-optional-in-source-and-binary-stanza/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/priority/priority-optional-in-source-and-binary-stanza/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/priority/priority-optional-in-source-and-binary-stanza/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/priority/priority-optional-in-source-and-binary-stanza/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/priority/priority-optional-in-source-and-binary-stanza/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/priority/priority-optional-in-source-and-binary-stanza/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/priority/priority-optional-in-source-and-binary-stanza/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/priority/priority-optional-in-source-and-binary-stanza/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/priority/priority-optional-in-source-and-binary-stanza/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/priority/priority-optional-in-source-and-binary-stanza/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/priority/priority-optional-in-source-and-binary-stanza/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/priority/priority-optional-in-source-and-binary-stanza/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/priority/priority-optional-in-source-and-binary-stanza/eval/hints new file mode 100644 index 00000000..c09171a0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/priority/priority-optional-in-source-and-binary-stanza/eval/hints @@ -0,0 +1,2 @@ +priority-optional-in-source-and-binary-stanza (source): redundant-priority-optional-field [debian/control:2] +priority-optional-in-source-and-binary-stanza (source): redundant-priority-optional-field [debian/control:23] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/control-file-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/control-file-general/ORIGIN new file mode 100644 index 00000000..c5d2e3d6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/control-file-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/field/redundant/control-file-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/control-file-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/control-file-general/debian/changelog new file mode 100644 index 00000000..266376c7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/control-file-general/debian/changelog @@ -0,0 +1,17 @@ +control-file-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +control-file-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/control-file-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/control-file-general/debian/control new file mode 100644 index 00000000..0d48933e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/control-file-general/debian/control @@ -0,0 +1,118 @@ +Source: control-file-general +Priority: optional +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), + fiddle [amd64 powerpc mips mipsel hppa s390], + faddle + (>> + 2) [ + sparc i386 amd64 + ] +Build-Depends-Indep: perl (> 5.8) +Rules-Requires-Root: no +XS-Vcs-Svn: https://svn.example.com/control-file-general/trunk +#Vcs-Git: git://git.debian.org/collab-maint/.git +#Vcs-Browser: http://git.debian.org/?p=collab-maint/.git;a=summary + +Package: control-file-general +Section: devel +Maintainer: Debian Lintian Maintainers +Build-Conflicts: foo +Architecture: all +Pre-depends: ${misc:Pre-depends}, multiarch-support +Depends: control-file-general, foo, baz, ${shlibs:Depends} ${some:Depends}, ${misc:Depends} +Recommends: foo, bar, no-match${lintian:Foo}, match${lintian:Match}, no-match${lintian:Bar}-foo +Suggests: bar | baz, no-match${lintian:Bar}, match${lintian:Match} +Description: Various problems with debian/control + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-1 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Breaks: libsqlite3-0 (< 3.6.12) +Description: Various problems with debian/control + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-2 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Various problems with debian/control (two) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-3 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, foo (>= 1), + baz (<< 2), + fizz (= 2.0), gcc-${pv:gcc} ${reqv:gcc} +Description: Various problems with debian/control (three) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-4 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, foo | + bar (>= 1), baz +Description: Various problems with debian/control (four) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-5 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Description: Various problems with debian/control + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-dbgsym +Section: debug +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Description: dbg-sym + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-dbg +Section: debug +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Description: debug + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-udeb +Section: debian-installer +Package-Type: udeb +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Various problems with debian/control (udeb) + udeb tests. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/control-file-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/control-file-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/control-file-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/control-file-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/control-file-general/debian/rules new file mode 100644 index 00000000..f5db4bbb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/control-file-general/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_gencontrol: + echo 'pv:gcc=4.3' >> debian/substvars + echo 'reqv:gcc=(>= 4.3-1)' >> debian/substvars + dh_gencontrol diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/control-file-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/control-file-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/control-file-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/control-file-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/control-file-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/control-file-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/control-file-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/control-file-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/control-file-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/control-file-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/control-file-general/eval/hints new file mode 100644 index 00000000..d7ec9036 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/control-file-general/eval/hints @@ -0,0 +1 @@ +control-file-general (source): installable-field-mirrors-source (in section for control-file-general) Maintainer [debian/control:20] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/INSTALL b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/INSTALL new file mode 100644 index 00000000..3b50ea95 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/INSTALL @@ -0,0 +1,176 @@ +Basic Installation +================== + + These are generic installation instructions. + + The `configure' shell script attempts to guess correct values for +various system-dependent variables used during compilation. It uses +those values to create a `Makefile' in each directory of the package. +It may also create one or more `.h' files containing system-dependent +definitions. Finally, it creates a shell script `config.status' that +you can run in the future to recreate the current configuration, a file +`config.cache' that saves the results of its tests to speed up +reconfiguring, and a file `config.log' containing compiler output +(useful mainly for debugging `configure'). + + If you need to do unusual things to compile the package, please try +to figure out how `configure' could check whether to do them, and mail +diffs or instructions to the address given in the `README' so they can +be considered for the next release. If at some point `config.cache' +contains results you don't want to keep, you may remove or edit it. + + The file `configure.in' is used to create `configure' by a program +called `autoconf'. You only need `configure.in' if you want to change +it or regenerate `configure' using a newer version of `autoconf'. + +The simplest way to compile this package is: + + 1. `cd' to the directory containing the package's source code and type + `./configure' to configure the package for your system. If you're + using `csh' on an old version of System V, you might need to type + `sh ./configure' instead to prevent `csh' from trying to execute + `configure' itself. + + Running `configure' takes a while. While running, it prints some + messages telling which features it is checking for. + + 2. Type `make' to compile the package. + + 3. Optionally, type `make check' to run any self-tests that come with + the package. + + 4. Type `make install' to install the programs and any data files and + documentation. + + 5. You can remove the program binaries and object files from the + source code directory by typing `make clean'. To also remove the + files that `configure' created (so you can compile the package for + a different kind of computer), type `make distclean'. There is + also a `make maintainer-clean' target, but that is intended mainly + for the package's developers. If you use it, you may have to get + all sorts of other programs in order to regenerate files that came + with the distribution. + +Compilers and Options +===================== + + Some systems require unusual options for compilation or linking that +the `configure' script does not know about. You can give `configure' +initial values for variables by setting them in the environment. Using +a Bourne-compatible shell, you can do that on the command line like +this: + CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure + +Or on systems that have the `env' program, you can do it like this: + env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure + +Compiling For Multiple Architectures +==================================== + + You can compile the package for more than one kind of computer at the +same time, by placing the object files for each architecture in their +own directory. To do this, you must use a version of `make' that +supports the `VPATH' variable, such as GNU `make'. `cd' to the +directory where you want the object files and executables to go and run +the `configure' script. `configure' automatically checks for the +source code in the directory that `configure' is in and in `..'. + + If you have to use a `make' that does not supports the `VPATH' +variable, you have to compile the package for one architecture at a time +in the source code directory. After you have installed the package for +one architecture, use `make distclean' before reconfiguring for another +architecture. + +Installation Names +================== + + By default, `make install' will install the package's files in +`/usr/local/bin', `/usr/local/man', etc. You can specify an +installation prefix other than `/usr/local' by giving `configure' the +option `--prefix=PATH'. + + You can specify separate installation prefixes for +architecture-specific files and architecture-independent files. If you +give `configure' the option `--exec-prefix=PATH', the package will use +PATH as the prefix for installing programs and libraries. +Documentation and other data files will still use the regular prefix. + + If the package supports it, you can cause programs to be installed +with an extra prefix or suffix on their names by giving `configure' the +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. + +Optional Features +================= + + Some packages pay attention to `--enable-FEATURE' options to +`configure', where FEATURE indicates an optional part of the package. +They may also pay attention to `--with-PACKAGE' options, where PACKAGE +is something like `gnu-as' or `x' (for the X Window System). The +`README' should mention any `--enable-' and `--with-' options that the +package recognizes. + + For packages that use the X Window System, `configure' can usually +find the X include and library files automatically, but if it doesn't, +you can use the `configure' options `--x-includes=DIR' and +`--x-libraries=DIR' to specify their locations. + +Specifying the System Type +========================== + + There may be some features `configure' can not figure out +automatically, but needs to determine by the type of host the package +will run on. Usually `configure' can figure that out, but if it prints +a message saying it can not guess the host type, give it the +`--host=TYPE' option. TYPE can either be a short name for the system +type, such as `sun4', or a canonical name with three fields: + CPU-COMPANY-SYSTEM + +See the file `config.sub' for the possible values of each field. If +`config.sub' isn't included in this package, then this package doesn't +need to know the host type. + + If you are building compiler tools for cross-compiling, you can also +use the `--target=TYPE' option to select the type of system they will +produce code for and the `--build=TYPE' option to select the type of +system on which you are compiling the package. + +Sharing Defaults +================ + + If you want to set default values for `configure' scripts to share, +you can create a site shell script called `config.site' that gives +default values for variables like `CC', `cache_file', and `prefix'. +`configure' looks for `PREFIX/share/config.site' if it exists, then +`PREFIX/etc/config.site' if it exists. Or, you can set the +`CONFIG_SITE' environment variable to the location of the site script. +A warning: not all `configure' scripts look for a site script. + +Operation Controls +================== + + `configure' recognizes the following options to control how it +operates. + +`--cache-file=FILE' + Use and save the results of the tests in FILE instead of + `./config.cache'. Set FILE to `/dev/null' to disable caching, for + debugging `configure'. + +`--help' + Print a summary of the options to `configure', and exit. + +`--quiet' +`--silent' +`-q' + Do not print messages saying which checks are being made. + +`--srcdir=DIR' + Look for the package's source code in directory DIR. Usually + `configure' can determine that directory automatically. + +`--version' + Print the version of Autoconf used to generate the `configure' + script, and exit. + +`configure' also accepts some other, not widely useful, options. + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/Makefile new file mode 100644 index 00000000..da1dc555 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/Makefile @@ -0,0 +1,12 @@ +all: hello hello-static + +hello: hello.c + gcc hello.c -o hello + +hello-static: hello.c + gcc -static hello.c -o hello-static + +clean: + rm -f hello hello-static + +distclean: clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/ORIGIN new file mode 100644 index 00000000..c0e1e361 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/field/redundant/legacy-binary + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/NEWS.Debian b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/NEWS.Debian new file mode 100644 index 00000000..29f561c4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/NEWS.Debian @@ -0,0 +1,12 @@ +binary (4-1.1) UNRELEASED; urgency=high + + This is a Debian NEWS entry that isn't encoded properly in UTF-8: . + It also has a usefull speling error. + + -- Russ Allbery Sun, 14 Oct 2007 17:11:36 -0700 + +binary (1) unstable; urgency=low + + This is another entry but this one isn't syntactically valid. + + -- Russ Allbery 2007-10-14 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/README.Debian b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/README.Debian new file mode 100644 index 00000000..94bcc0ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/README.Debian @@ -0,0 +1,5 @@ +this is a binary package to test lintian's handling of bins. +Check handling of D-Bus and dbus (neither of which should produce +warnings). + + -- Russ Allbery , Wed, 6 Feb 2008 18:35:11 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/changelog new file mode 100644 index 00000000..35b8c0bf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/changelog @@ -0,0 +1,47 @@ +binary (4-1.1) unstable; urgency=low + + * I'm doing an comaintainer-upload, acknowledging a NMU, but with a version + number which suggests I'm doing a NMU myself. + + Lintian-maintainers: Please don't update this changelog, otherwise you'll + probably break the checks/nmu checks. + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 01:49:42 +0200 + +binary (4-1) unstable; urgency=low + + * Weird version number for the new check for accidents with native + packaging. + * Date was fixed by BR and this test was put on changelog-file-strange-date + due to dpkg bug, see #794674. + + -- Marc 'HE' Brockschmidt Thu, 15 Apr 2004 23:33:51 +0200 + +binary (4) unstable; urgency=low + + * Add big file to /usr/share to trigger the big-usr-share check + + -- Jeroen van Wolffelaar Fri, 27 Feb 2004 10:15:59 +0100 + +binary (3) unstable; urgency=unlimited + + * Add some bogus menu entries using su-to-root in a bogus way + + -- Jeroen van Wolffelaar Thu, 12 Feb 2004 20:11:22 +0100 + +binary (2) unstable; urgency=low + + * Added an INSTALL document which policy 6.3 suggests not to do + + -- Sean 'Shaleh' Perry Tue, 30 Jan 2001 15:23:59 -0800 + +binary (1) unstable; urgency=low + + * hello.c added + * hello-static is same as hello, but compiled statically + * added a menu entry which lacks a Section + * added a postinst + * postinst calls suidregister which is no longer policy compliant + + -- Sean 'Shaleh' Perry Wed, 10 Jan 2001 08:55:34 -0800 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/conffiles b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/conffiles new file mode 100644 index 00000000..d1a08433 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/conffiles @@ -0,0 +1 @@ +/etc/menu-methods/lintian diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/control new file mode 100644 index 00000000..c797357b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/control @@ -0,0 +1,42 @@ +Source: binary +Section: misc +Priority: optional +Maintainer: Lintian Maintainers +Uploaders: Co-maintainer one , Jeroen van Wolffelaar , Co-maintainer three +Standards-Version: 3.2.1 +Homepage: http://lintian.debian.org/ +Vcs-Svn: http://svn.wolffelaar.nl/lintian/trunk +XS-Vcs-Browser: http://svn.wolffelaar.nl/lintian/trunk +XS-Dm-Upload-Allowed: yes + +Package: binary +Architecture: any +Pre-Depends: ${shlibs:Depends}, xorg, binary-data (= ${source:Version}), libssl0.9.8 +Homepage: +Vcs-Svn: http://svn.wolffelaar.nl/lintian/trunk +Description: test handling of binary files + Regression test for lintian's handling of binary files for debian. This + is checked for picky spelling errors. + . + This package list [ subversion | gconf ] should not be flagged as a spelling + mistake. The spelling correction for dont should be correct. + . + Homepage: http://lintian.debian.org/ + +Package: binary-data +Architecture: all +Depends: binary (= ${source:Version}), libssl-not-openssl, + libssl0.9.8 | or-something-else +Description: test handling of binary relationships + Regression test for lintian's checking of package relationships between + arch:any and arch:all packages. + . + This mention of subversion should be flagged as a spelling mistake. + +#Package: binary-comment +#Architecture: space-almonds +#Depends: * +#Depends: * +#Description: test comment support +# Yes, comments are actually allowed in debian/control, so none of the +# above should produce errors. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/copyright new file mode 100644 index 00000000..1d6806de --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/copyright @@ -0,0 +1,15 @@ +hello.c is released under public domain. This is distributed in the hope that +it will be useful, but without any warranty; without even the implied warranty +of merchantability or fitness for a particular purpose. + +A reference to /usr/share/common-licenses/GPL-2 to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +Test for old FSF address: + +Free Software Foundation, Inc., 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. + +Test for deprecated ntionl ncoding. + +Improper capitalization of linux or debian isn't caught here. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/doc-base b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/doc-base new file mode 100644 index 00000000..7e5b38f2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/doc-base @@ -0,0 +1,41 @@ +Document: binary!docs +Title: Broken debian binary doc-base control file +Author: Russ Allbery +Abstract: This control file exercises various tests of doc-base control + files, including several things that aren't tested yet. The third and + fourth one has trailing whitespace. + . + This section has a speling error and bad character. + . + The above separator was fine. +Section: Non/Existant +Unknown: Some field + + + +Format: debiandoc-sgML +Files: /usr/share/doc/binary/binary.sgml.gz +Unknown: Some field + +Format: ESP +Index: /usr/share/doc/binary/binary.txt + +Index: /usr/share/doc/binary/html/index.html + /usr/share/doc/binary/html/ch1.html + /usr/share/doc/binary/html/ch4.html + + +Format: HTML +Index: /usr/share/doc/binary/html/index.html +Files: /usr/share/doc/binary/html/ch?.h*l + /usr/share/doc/binary/hml/*.html + +Format: inFO +Files: /usr/share/info/binary.info.gz + +Format: HTML +Index: /usr/share/doc/binary/html/index.html +Files: /usr/share/doc/binary/html/ch5.html + /usr/share/doc/binary/html/ch6.html + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/goodbye.desktop b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/goodbye.desktop new file mode 100644 index 00000000..f6ce8e3f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/goodbye.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Name:Goodbye +# Name=Goodbye +Comment=Say hello! +SpecialTag=This doesn't exist! +Exec=goodbye +icon=hello +Terminal=true +Type=Application +Categories=WeirdStuff;Screensaver; +Encoding=ISO-10646-1 +[Other Entry] +Name=Goodbye diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/hello.desktop b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/hello.desktop new file mode 100644 index 00000000..f7954685 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/hello.desktop @@ -0,0 +1,14 @@ +# some random comment + +# [Foo Bar] +[KDE Desktop Entry] +Name=Hello +Name[en_US]=Hello +Comment=Say hello! +Exec=kdesu hello +Icon=hello +Terminal=true +Type=Application +Categories=GNOME;GTK;System;Applet;X-Foo;Settings; +Encoding=UTF-8 +OnlyShowIn=GNOME; diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/menu b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/menu new file mode 100644 index 00000000..e8972f4f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/menu @@ -0,0 +1,26 @@ +?package(binary):needs=text title="Hello World" command="/usr/bin/hello" +?package(binary):needs=text section="Applications/System" title="Run cfdisk (0)" command="/usr/bin/su-to-root cfdisk" +?package(binary):needs="text" section="Applications/System/Hardware" title="Run cfdisk (1)" command="sux -p cfdisk" +?package(binary):needs="x11" section="Window Managers" title="Run xfdisk" command="/usr/sbin/su-to-root -c xfdisk" +?package(binary):needs="wm" section="Applications/System/Administration" title="Run fdisk-wm" command="su-to-root -c hello" +?package(binary):section="Apps/Games" title="I'm not root!" command="su-to-root -c imnothere" +?package(binary):needs="text" section="Apps/System" title="I'm not here!" command="/imnothere" +?package(binary,other-binary):\ + needs="text"\ + section="Applications/Shells"\ + title="more than one required"\ + command="other-bin -s omething" +?package(binary):needs="wmmodule" section="WindowManagers/Modules" title="somemodule" command="ModuleCmd" +?package(binary):needs="wmmodule" section="FVWM Modules" title="somemodule" command="ModuleCmd" +?package(binary):needs="text" section="Applications/System/Administration" title="I'm not in /usr/bin!" command="iminusrbin" +?package(binary):needs="text"\ + section="Applications/System/Administration"\ + title="I'm not root!" command="su-to-root -c imnothere" +?package(binary):needs="text" section="Applications/System/Administration"\ + title="Run cfdisk (0)" command="cfdisk" +?package(binary):needs="text" section="Applications/System/Administration" title="Hello World" command="/usr/bin/hello" +?package(binary):needs="wm" section="FVWM Modules" title="Fake Module" command="hello" +?package(binary):needs="fvwmmodule" section="Window Maker" title="Fake Module"\ + command="hello" +?package(binary):needs="x11" section="Applications/System/Hardware" title="Run xfdisk" command="su-to-root -c 'xfdisk -f'" +?package(binary):needs="text" section="Applications/System/Administration" title="foo" command="sh /path/to/foo" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/menu-method b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/menu-method new file mode 100644 index 00000000..9f07bd73 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/menu-method @@ -0,0 +1,22 @@ +#!/usr/bin/install-menu + +# -*- mode: shell-script; -*- +#I need menu-1! +# + +!include notmenu.h + +compat="menu-2" + +outputencoding="UTF-8"; +outputlanguage="C"; + +x11 = AppEntry("false"); +text = AppEntry("true"); + +startmenu = ""; +endmenu = ""; +submenutitle = ""; +rootprefix = "/var/lib/lintian/menu"; +userprefix = ".local/share/lintian/menu"; + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/postinst new file mode 100644 index 00000000..29e18619 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/postinst @@ -0,0 +1,6 @@ +#! /bin/bash -e + +if [ $1 eq 'configure' ] +then + suidregister hello-static root root 4755 +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/rules new file mode 100755 index 00000000..a962ea92 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/rules @@ -0,0 +1,92 @@ +#!/usr/bin/make -f + +tmp=debian/tmp + +# This reference to $(PWD) should not cause an error but the one below +# should. +build-arch: + make + echo $(PWD) + +build: build-arch + +clean: + make -i clean + [ ! -f debian/files ] || rm -f debian/files + [ ! -f debian/substvars ] || rm -f debian/substvars + [ ! -d debian/tmp ] || rm -rf debian/tmp + [ ! -d debian/binary ] || rm -rf debian/binary + [ ! -d debian/binary-data ] || rm -rf debian/binary-data + +binary-arch: build + install -d $(tmp)/usr/bin + install -d $(tmp)/boot/hello + install -m 755 hello $(tmp)/usr/bin + touch $(tmp)/usr/bin/iminusrbin + chmod 755 $(tmp)/usr/bin/iminusrbin + install -m 755 hello-static $(tmp)/usr/bin + strip $(tmp)/usr/bin/hello-static + install -m 755 hello-static $(tmp)/usr/bin/hello.static + strip --remove-section=.comment --remove-section=.note $(tmp)/usr/bin/hello.static + ln $(tmp)/usr/bin/hello.static $(tmp)/usr/bin/static-hello + install -m 755 hello-static $(tmp)/boot/hello + strip --remove-section=.comment --remove-section=.note $(tmp)/boot/hello/hello-static + install -d $(tmp)/usr/share/doc/binary + install -m 644 INSTALL $(tmp)/usr/share/doc/binary + install -d $(tmp)/usr/share/doc/binary/html + echo '' > $(tmp)/usr/share/doc/binary/html/index.html + echo '' > $(tmp)/usr/share/doc/binary/html/ch1.html + ln -s ../html/./ch1.html $(tmp)/usr/share/doc/binary/html/ch2.html + ln -s /usr/share/doc/binary/htm/ch1.html $(tmp)/usr/share/doc/binary/html/ch3.html + echo '' > $(tmp)/usr/share/doc/binary/html/ch5.html + ln $(tmp)/usr/share/doc/binary/html/ch5.html \ + $(tmp)/usr/share/doc/binary/html/ch6.html + install -d $(tmp)/usr/share/menu + install -d $(tmp)/usr/lib/menu + install -d $(tmp)/usr/share/binary + install -m 644 debian/menu $(tmp)/usr/share/menu/binary + install -m 644 debian/menu $(tmp)/usr/lib/menu/binary + install -d $(tmp)/etc/menu-methods + install -m 755 debian/menu-method $(tmp)/etc/menu-methods/lintian + install -d $(tmp)/usr/share/doc-base + install -m 644 debian/doc-base $(tmp)/usr/share/doc-base/binary + touch '$(tmp)/usr/share/doc-base/space ' + install -m 644 debian/README.Debian $(tmp)/usr/share/doc/binary + install -m 644 debian/NEWS.Debian $(tmp)/usr/share/doc/binary + gzip -n -9 $(tmp)/usr/share/doc/binary/NEWS.Debian + install -m 644 debian/copyright $(tmp)/usr/share/doc/binary + install -m 644 debian/changelog $(tmp)/usr/share/doc/binary + #gzip -n -9 $(tmp)/usr/share/doc/binary/changelog + install -d $(tmp)/DEBIAN + install -m 755 debian/postinst $(tmp)/DEBIAN + install -m 644 debian/conffiles $(tmp)/DEBIAN + + install -d $(tmp)/usr/share/applications + install -m 644 debian/hello.desktop \ + $(tmp)/usr/share/applications/hello.desktop + install -m 755 debian/goodbye.desktop \ + $(tmp)/usr/share/applications/goodbye.desktop + + # should be ok... + echo boe > $(tmp)/usr/bar + ln $(tmp)/usr/bar $(tmp)/usr/foo + # but this isn't + echo boe > $(tmp)/usr/bar2 + ln $(tmp)/usr/bar2 $(tmp)/usr/share/baz + + dd if=/dev/zero of=$(tmp)/usr/share/binary/largefile bs=1024 count=4000 + + install -d debian/binary-data/DEBIAN + install -d debian/binary-data/usr/share/doc + ln -s binary debian/binary-data/usr/share/doc/binary-data + + dpkg-shlibdeps $(tmp)/usr/bin/hello + dpkg-gencontrol -pbinary -isp + dpkg-gencontrol -pbinary-data -Pdebian/binary-data -isp + + dpkg --build debian/tmp .. + dpkg --build debian/binary-data .. + +binary: binary-arch + +.PHONY: build-arch build binary-arch binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/templates b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/templates new file mode 100644 index 00000000..3d928614 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/templates @@ -0,0 +1,16 @@ +# The debconf templates defined here are the sort that you'd use if +# providing a wordlist and an ispell dictionary for the language +# "perl". This shouldn't trigger warnings about not using debconf-po. + +Template: shared/packages-ispell +Type: text +Description: + +Template: shared/packages-wordlist +Type: text +Description: + +Template: miscfiles/languages +Type: text +Default: perl (Pathologically Eclectic Rubbish Lister) +Description: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/eval/hints new file mode 100644 index 00000000..6d49eb7d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/eval/hints @@ -0,0 +1 @@ +binary (source): installable-field-mirrors-source (in section for binary) Vcs-Svn [debian/control:16] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/hello.c b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/hello.c new file mode 100644 index 00000000..2fb04e17 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-binary/hello.c @@ -0,0 +1,8 @@ +#include +#include + +int main(int argc, char *argv[]) { + + printf("Hello, World!\n"); + exit(0); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/Makefile new file mode 100644 index 00000000..657dc2ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/Makefile @@ -0,0 +1,55 @@ +# This is the correct way to build a lib + +CC=gcc +CFLAGS=-g -Wall -Winline -O2 +LDFLAGS=-Wl,--no-as-needed + +OBJS=baz.o extra.o +SHOBJS=baz.sho extra.sho +NOPICOBJS = $(SHOBJS) + +all: libbaz1.a libbaz2.a libbaz1.so.1.0.3b libbaz2.so libbaz3.so.1.0.3b \ + libbaz.so + +libbaz2.so: libbaz2.so.1.0 + ln -sf $^ $@ +libbaz2.so.1.0: libbaz2.so.1.0.3b + ln -sf $^ $@ + +# Oops, forget the soname altogether +libbaz1.so.1.0.3b: $(NOPICOBJS) + $(CC) $(LDFLAGS) -o $@ -shared $^ -lc + +libbaz2.so.1.0.3b: $(SHOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz2.so.1.0 $^ -lc + +# Non-PIC. We can't test this on all architectures +libbaz3.so.1.0.3b: $(NOPICOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz3.so.1 $^ -lc + +# Non-versioned SONAME. +libbaz.so: $(SHOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz.so $^ -lc + +#%.o-noreentrant: %.c +# $(CC) $(LDFLAGS) $(CFLAGS) -o $@ -c $< + +%.sho: %.c + $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -fPIC -o $@ -c $< + +%.o: %.c + $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -o $@ -c $< + +libbaz2.a: $(OBJS) + ar cq $@ $(OBJS) + strip --strip-unneeded --remove-section=.comment \ + --remove-section=-note $@ + ranlib $@ + +# The pic one in the .a (wrong), no archive table +libbaz1.a: $(SHOBJS) + ar cqS $@ $^ + strip --strip-unneeded --remove-section=.comment \ + --remove-section=-note $@ +clean: + rm -f *.a *.o *.so* *.sho diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/ORIGIN new file mode 100644 index 00000000..95c5e71e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/field/redundant/legacy-libbaz + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/baz.c b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/baz.c new file mode 100644 index 00000000..4d5fc458 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/baz.c @@ -0,0 +1,6 @@ +#include + +double pw(double p) +{ + return exp(p); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/changelog new file mode 100644 index 00000000..44c0a832 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/changelog @@ -0,0 +1,6 @@ +libbaz (1-1) unstable; urgency=low + + * Initial setup + + -- Sean 'Shaleh' Perry Tue, 30 Jan 2001 15:23:59 -0800 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/compat new file mode 100644 index 00000000..b1bd38b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/compat @@ -0,0 +1 @@ +13 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/control new file mode 100644 index 00000000..15066870 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/control @@ -0,0 +1,58 @@ +Source: libbaz +Section: libs +Priority: optional +Maintainer: Lintian Maintainer +Build-depends: debhelper (>=4) +Standards-Version: 3.2.1 + +Package: libbaz1 +Architecture: any +Provides: libbaz +Description: test handling of library packages + Regression test for lintian's handling of libraries. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz1-dev +Architecture: any +Depends: libbaz1 (= ${source:Version}), perlapi-5.8.8 +Description: development package + Regression test for lintian's handling of libraries (dev). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2 +Architecture: any +Depends: ${shlibs:Depends}, libssl0.9.8 +Description: test handling of library packages (good) + Regression test for lintian's handling of libraries (good). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2-dev +Architecture: any +Depends: ${shlibs:Depends}, libbaz2 (= ${source:Version}) +Description: development package (good) + Regression test for lintian's handling of libraries (dev good). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2-dbg +Architecture: any +Depends: libbaz2 (= ${binary:Version}) +Priority: optional +Description: debugging package + Regression test for lintian's handling of libraries (debug). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/copyright new file mode 100644 index 00000000..a874c878 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/copyright @@ -0,0 +1,8 @@ +This package is released under public domain. This is distributed in the hope +that it will be useful, but without any warranty; without even the implied +warranty of merchantability or fitness for a particular purpose. + +A reference to /usr/share/common-licenses/GPL-2 to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +However, this has an OpenSSL exception. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/dev.postinst b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/dev.postinst new file mode 100644 index 00000000..683e3cc5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/dev.postinst @@ -0,0 +1,4 @@ +#!/bin/sh -e + +$PKG=libbaz1-dev + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/dev.prerm b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/dev.prerm new file mode 100644 index 00000000..683e3cc5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/dev.prerm @@ -0,0 +1,4 @@ +#!/bin/sh -e + +$PKG=libbaz1-dev + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/lib.postinst b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/lib.postinst new file mode 100644 index 00000000..ec0b98ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/lib.postinst @@ -0,0 +1,10 @@ +#!/bin/sh -e + +$PKG=libbaz1 + +if [ "$1" = "configure" ]; then + if [ -d /usr/doc -a ! -e /usr/doc/$PKG -a -d /usr/share/doc/$PKG ] +; then + ln -sf ../share/doc/$PKG /usr/doc/$PKG + fi +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/lib.prerm b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/lib.prerm new file mode 100644 index 00000000..50e37c3b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/lib.prerm @@ -0,0 +1,7 @@ +#!/bin/sh -e + +$PKG=libbaz1 + +if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/$PKG ]; then + rm -f /usr/doc/$PKG +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/lib.shlibs b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/lib.shlibs new file mode 100644 index 00000000..b88e2882 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/lib.shlibs @@ -0,0 +1,8 @@ +libdoesntexist2 1.0 libbaz1 +libdoesntexist2 1.0 libbaz1 +libbaz2 1.1 libbaz +libbaz3 1 libbaz1 (>> 1-1) +libbaz4 1 libbaz1 (= 1-1) +libbaz5 1 libbaz2 +udeb: libdoesntexist2 1.0 libbaz2 +udeb: libdoesntexist2 1.0 libbaz2 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/lib.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/lib.symbols new file mode 100644 index 00000000..72f9d8ab --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/lib.symbols @@ -0,0 +1,3 @@ +libbaz.so.2 libbaz1 #MINVER# + pw 1-1 + foo 1.1-1 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/rules new file mode 100755 index 00000000..fa99bc8a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/rules @@ -0,0 +1,121 @@ +#!/usr/bin/make -f + +lib_tmp=debian/tmp-lib +dev_tmp=debian/tmp-dev + +LIB=libbaz1 +DEV=libbaz1-dev + +VENDORARCH := $(shell perl -MConfig -wE'say substr($$Config{vendorarch},1)') + +build-arch: + $(MAKE) + +build-indep: + +build: build-arch build-indep + +clean: + $(MAKE) clean + dh_clean -plibbaz2 -plibbaz2-dev + rm -f debian/files debian/substvars + rm -rf $(lib_tmp) $(dev_tmp) + +# Now the correct libbaz2-dev package +binary-correct: + install -d debian/libbaz2-dev/usr/lib + cp -a libbaz2.a libbaz2.so debian/libbaz2-dev/usr/lib + # usually, I'd also include some .h files to /usr/include + + # Now the correct libbaz2 package + install -d debian/libbaz2/usr/lib + cp -a libbaz2.so.* debian/libbaz2/usr/lib + chmod a-x debian/libbaz2/usr/lib/* + + # General stuff that is tested in other testsets: + dh_installdocs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_compress -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + + # Mess up the libbaz2 changelog files to test the symlink handling. + ln -s /usr/share/doc/lintian/changelog.gz \ + debian/libbaz2/usr/share/doc/libbaz2/changelog.gz + install -m 644 debian/changelog \ + debian/libbaz2-dev/usr/share/doc/libbaz2-dev/foo + ln -s foo debian/libbaz2-dev/usr/share/doc/libbaz2-dev/changelog + + # Okay, if either line is omitted, it should be noted + dh_strip --dbg-package=libbaz2-dbg -plibbaz2 -plibbaz2-dev + dh_makeshlibs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_shlibdeps -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + + # and again, regular packaging stuff + dh_installdeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + echo udeb: libbaz2 1.0 libbaz2 >> debian/libbaz2/DEBIAN/shlibs + dh_gencontrol -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_builddeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + +# and the incorrect one +binary-arch: build-arch binary-correct + # first, the lib package + install -d $(lib_tmp)/usr/lib + # resp. no soname (check), wrong soname (check), and no-pic (check) + cp -a libbaz1.so.1.0* $(lib_tmp)/usr/lib + cp -a libbaz2.so.1.0.3b $(lib_tmp)/usr/lib/libfoo2.so.1.0.3b + install -m644 libbaz3.so.1.0.3b $(lib_tmp)/usr/lib/libbaz3.so.1.0.3b + # let's include the .a in the non-dev too (TODO) + # Also, libbaz1.a hasn't a symbol table (TODO) + cp -a *.a $(lib_tmp)/usr/lib + # And a wrong .so symlink (wrong, only in -dev, TODO) + ln -s libfoo3.so.0.9 $(lib_tmp)/usr/lib/libfoo3.so + # And a wrong .so.X symlink (wrong, should point to a real existing + # shlib, TODO) + ln -s libfoo.so.0.9.1 $(lib_tmp)/usr/lib/libfoo.so.0.9 + # And a plain .so (wrong, TODO) + touch $(lib_tmp)/usr/lib/libbar2.so + # And a non-versioned SONAME. + install -m644 libbaz.so $(lib_tmp)/usr/lib/libbaz.so + strip --remove-section=.comment --strip-unneeded $(lib_tmp)/usr/lib/libbaz.so + # Pretend to be a Perl module to test a lack of Perl dependencies. + install -d $(lib_tmp)/$(VENDORARCH)/auto/Foo + install -m 644 libbaz2.so.1.0.3b $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + strip $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + + install -d $(lib_tmp)/usr/share/doc/$(LIB) + install -m 644 debian/copyright $(lib_tmp)/usr/share/doc/$(LIB) + install -m 644 debian/changelog $(lib_tmp)/usr/share/doc/$(LIB) + gzip -n -9 $(lib_tmp)/usr/share/doc/$(LIB)/changelog + install -d $(lib_tmp)/DEBIAN + install -m 755 debian/lib.postinst $(lib_tmp)/DEBIAN/postinst + install -m 755 debian/lib.prerm $(lib_tmp)/DEBIAN/prerm + touch $(lib_tmp)/usr/share/doc/README.Debian + #dpkg-shlibdeps $(lib_tmp)/usr/lib/libbaz.so.1.0 + install -m 755 debian/lib.shlibs $(lib_tmp)/DEBIAN/shlibs + install -m 755 debian/lib.symbols $(lib_tmp)/DEBIAN/symbols + dpkg-gencontrol -isp -p$(LIB) -P$(lib_tmp) + dpkg --build $(lib_tmp) .. + + # now the -dev package + install -d $(dev_tmp)/usr/include + install -d $(lib_tmp)/usr/lib + # let's also install the .so at the same time... (wrong, TODO) + cp -a *.a *.so.* $(lib_tmp)/usr/lib + # and fuck up permission (TODO) + chmod a+x $(lib_tmp)/usr/lib/*.a + # Pretend to be a Perl module to test a lack of Perl dependencies. + install -d $(dev_tmp)/$(VENDORARCH)/auto/Foo + install -m 644 libbaz2.so.1.0.3b $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + strip $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + install -d $(dev_tmp)/usr/share/doc + ln -s $(LIB) $(dev_tmp)/usr/share/doc/$(DEV) + install -d $(dev_tmp)/DEBIAN + install -m 755 debian/dev.postinst $(dev_tmp)/DEBIAN/postinst + install -m 755 debian/dev.prerm $(dev_tmp)/DEBIAN/prerm + dpkg-gencontrol -isp -p$(DEV) -P$(dev_tmp) + dpkg --build $(dev_tmp) .. + + +binary: binary-arch + +# The mention of binary-indep here should be sufficient to suppress the +# warning that it's not present. +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/source.lintian-overrides b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/source.lintian-overrides new file mode 100644 index 00000000..6008d271 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/source.lintian-overrides @@ -0,0 +1 @@ +libbaz source: maintainer-script-lacks-debhelper-token diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/eval/hints new file mode 100644 index 00000000..fc30343a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/eval/hints @@ -0,0 +1 @@ +libbaz (source): installable-field-mirrors-source (in section for libbaz2-dbg) Priority [debian/control:51] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/extra.c b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/redundant/legacy-libbaz/extra.c new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-duplicate/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-duplicate/ORIGIN new file mode 100644 index 00000000..f5dda7cd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-duplicate/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/field/relation/control-file-duplicate + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-duplicate/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-duplicate/debian/changelog new file mode 100644 index 00000000..37eae278 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-duplicate/debian/changelog @@ -0,0 +1,17 @@ +control-file-duplicate (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-duplicate + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +control-file-duplicate (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-duplicate + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-duplicate/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-duplicate/debian/control new file mode 100644 index 00000000..b0459ddc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-duplicate/debian/control @@ -0,0 +1,23 @@ +Source: control-file-duplicate +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 14~), debhelper +Build-Depends-Indep: foobar, foo, foobar +Build-Conflicts: bar, + baz, + bar [i386] +Rules-Requires-Root: no +X-DH-Compat: 14 + +Package: control-file-duplicate +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, ${misc:Depends} +Recommends: foo (>> 1.0) | bar, foo +Suggests: baz (= 1.0), baz, baz (>= 2.0) +Description: Pedantic test for duplicate relations + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-duplicate/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-duplicate/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-duplicate/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-duplicate/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-duplicate/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-duplicate/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-duplicate/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-duplicate/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-duplicate/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-duplicate/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-duplicate/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-duplicate/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-duplicate/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-duplicate/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-duplicate/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-duplicate/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-duplicate/eval/hints new file mode 100644 index 00000000..4bd9ca05 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-duplicate/eval/hints @@ -0,0 +1,5 @@ +control-file-duplicate (source): redundant-control-relation (in source paragraph) Build-Depends-Indep foobar, foobar [debian/control:7] +control-file-duplicate (source): redundant-control-relation (in source paragraph) Build-Depends debhelper, debhelper (>= 14~) [debian/control:6] +control-file-duplicate (source): redundant-control-relation (in source paragraph) Build-Conflicts bar, bar [i386] [debian/control:8] +control-file-duplicate (source): redundant-control-relation (in section for control-file-duplicate) Suggests baz, baz (= 1.0), baz (>= 2.0) [debian/control:18] +control-file-duplicate (source): redundant-control-relation (in section for control-file-duplicate) Depends ${misc:Depends}, ${misc:Depends} [debian/control:16] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-general/ORIGIN new file mode 100644 index 00000000..f694d569 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/field/relation/control-file-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-general/debian/changelog new file mode 100644 index 00000000..266376c7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-general/debian/changelog @@ -0,0 +1,17 @@ +control-file-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +control-file-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-general/debian/control new file mode 100644 index 00000000..0d48933e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-general/debian/control @@ -0,0 +1,118 @@ +Source: control-file-general +Priority: optional +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), + fiddle [amd64 powerpc mips mipsel hppa s390], + faddle + (>> + 2) [ + sparc i386 amd64 + ] +Build-Depends-Indep: perl (> 5.8) +Rules-Requires-Root: no +XS-Vcs-Svn: https://svn.example.com/control-file-general/trunk +#Vcs-Git: git://git.debian.org/collab-maint/.git +#Vcs-Browser: http://git.debian.org/?p=collab-maint/.git;a=summary + +Package: control-file-general +Section: devel +Maintainer: Debian Lintian Maintainers +Build-Conflicts: foo +Architecture: all +Pre-depends: ${misc:Pre-depends}, multiarch-support +Depends: control-file-general, foo, baz, ${shlibs:Depends} ${some:Depends}, ${misc:Depends} +Recommends: foo, bar, no-match${lintian:Foo}, match${lintian:Match}, no-match${lintian:Bar}-foo +Suggests: bar | baz, no-match${lintian:Bar}, match${lintian:Match} +Description: Various problems with debian/control + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-1 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Breaks: libsqlite3-0 (< 3.6.12) +Description: Various problems with debian/control + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-2 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Various problems with debian/control (two) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-3 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, foo (>= 1), + baz (<< 2), + fizz (= 2.0), gcc-${pv:gcc} ${reqv:gcc} +Description: Various problems with debian/control (three) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-4 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, foo | + bar (>= 1), baz +Description: Various problems with debian/control (four) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-5 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Description: Various problems with debian/control + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-dbgsym +Section: debug +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Description: dbg-sym + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-dbg +Section: debug +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Description: debug + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-udeb +Section: debian-installer +Package-Type: udeb +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Various problems with debian/control (udeb) + udeb tests. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-general/debian/rules new file mode 100644 index 00000000..f5db4bbb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-general/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_gencontrol: + echo 'pv:gcc=4.3' >> debian/substvars + echo 'reqv:gcc=(>= 4.3-1)' >> debian/substvars + dh_gencontrol diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-general/eval/hints new file mode 100644 index 00000000..67abb803 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-general/eval/hints @@ -0,0 +1,3 @@ +control-file-general (source): obsolete-relation-form-in-source (in source paragraph) Build-Depends-Indep perl (> 5.8) [debian/control:12] +control-file-general (source): obsolete-relation-form-in-source (in section for control-file-general-1) Breaks libsqlite3-0 (< 3.6.12) [debian/control:37] +control-file-general (source): missing-separator-between-items (in section for control-file-general) '${shlibs:Depends}' and '${some:Depends}' [debian/control:24] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-missing-separator/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-missing-separator/ORIGIN new file mode 100644 index 00000000..5c416468 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-missing-separator/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/field/relation/control-file-missing-separator + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-missing-separator/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-missing-separator/debian/changelog new file mode 100644 index 00000000..47767263 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-missing-separator/debian/changelog @@ -0,0 +1,17 @@ +control-file-missing-separator (1) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-missing-separator + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +control-file-missing-separator (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-missing-separator + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-missing-separator/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-missing-separator/debian/control new file mode 100644 index 00000000..59f082ca --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-missing-separator/debian/control @@ -0,0 +1,30 @@ +Source: control-file-missing-separator +Section: devel +Priority: optional +Maintainer: Debian Lintian Maintainers +Build-Depends: debhelper-compat (= 14), + fiddle [amd64 powerpc + mips mipsel + hppa + s390], + faddle + (>> + 2) [ + sparc i386 amd64 + ] +Standards-Version: 4.7.4.1 + +Package: control-file-missing-separator +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, foo (>= 1) + baz (<< 2), + fizz (= 2.0) +Suggests: p1 + p2 + p3 + p4 + p5 +Description: Test for missing separators in control files + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-missing-separator/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-missing-separator/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-missing-separator/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-missing-separator/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-missing-separator/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-missing-separator/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-missing-separator/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-missing-separator/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-missing-separator/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-missing-separator/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-missing-separator/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-missing-separator/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-missing-separator/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-missing-separator/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-missing-separator/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-missing-separator/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-missing-separator/eval/hints new file mode 100644 index 00000000..232c2635 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/relation/control-file-missing-separator/eval/hints @@ -0,0 +1,2 @@ +control-file-missing-separator (source): missing-separator-between-items (in section for control-file-missing-separator) 'p1' and 'p2' [debian/control:22] +control-file-missing-separator (source): missing-separator-between-items (in section for control-file-missing-separator) 'foo (>= 1)' and 'baz (<< 2)' [debian/control:19] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/ORIGIN new file mode 100644 index 00000000..7aa60783 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/debian/changelog new file mode 100644 index 00000000..3870a877 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/debian/changelog @@ -0,0 +1,17 @@ +control-file-rules-requires-root-binary-targets (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-rules-requires-root-binary-targets + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +control-file-rules-requires-root-binary-targets (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-rules-requires-root-binary-targets + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/debian/control new file mode 100644 index 00000000..466f7dd5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/debian/control @@ -0,0 +1,17 @@ +Source: control-file-rules-requires-root-binary-targets +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: binary-targets +Homepage: https://lintian.debian.org/ + +Package: control-file-rules-requires-root-binary-targets +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for "Rules-Requires-Root: binary-targets" + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/debian/rules new file mode 100644 index 00000000..3d706f5e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_builddeb: + dh_builddeb -- -Zgzip diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/eval/hints new file mode 100644 index 00000000..bd286c76 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/eval/hints @@ -0,0 +1 @@ +control-file-rules-requires-root-binary-targets (source): rules-require-root-explicitly [debian/control:7] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/ORIGIN new file mode 100644 index 00000000..4edbeaf1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/debian/changelog new file mode 100644 index 00000000..c9248540 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/debian/changelog @@ -0,0 +1,17 @@ +control-file-rules-requires-root-no (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-rules-requires-root-no + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +control-file-rules-requires-root-no (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-rules-requires-root-no + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/debian/control new file mode 100644 index 00000000..5371beb1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/debian/control @@ -0,0 +1,17 @@ +Source: control-file-rules-requires-root-no +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no +Homepage: https://lintian.debian.org/ + +Package: control-file-rules-requires-root-no +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for "Rules-Requires-Root: no" + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/debian/rules new file mode 100644 index 00000000..3d706f5e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_builddeb: + dh_builddeb -- -Zgzip diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/eval/hints new file mode 100644 index 00000000..3c6554f8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/eval/hints @@ -0,0 +1,2 @@ +control-file-rules-requires-root-no (source): rules-do-not-require-root [debian/control:7] +control-file-rules-requires-root-no (source): redundant-rules-requires-root-no-field [debian/control:7] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-symlink/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-symlink/ORIGIN new file mode 100644 index 00000000..aaddc401 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-symlink/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/field/rules-requires-root/control-file-symlink + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-symlink/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-symlink/debian/changelog new file mode 100644 index 00000000..11c9ba13 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-symlink/debian/changelog @@ -0,0 +1,17 @@ +control-file-symlink (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-symlink + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +control-file-symlink (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-symlink + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-symlink/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-symlink/debian/control new file mode 120000 index 00000000..f594732f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-symlink/debian/control @@ -0,0 +1 @@ +control.real \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-symlink/debian/control.real b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-symlink/debian/control.real new file mode 100644 index 00000000..c198b078 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-symlink/debian/control.real @@ -0,0 +1,17 @@ +Source: control-file-symlink +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: control-file-symlink +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test if debian/control is a symlink + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-symlink/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-symlink/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-symlink/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-symlink/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-symlink/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-symlink/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-symlink/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-symlink/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-symlink/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-symlink/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-symlink/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-symlink/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-symlink/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-symlink/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-symlink/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-symlink/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-symlink/eval/hints new file mode 100644 index 00000000..cc57c7b3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/control-file-symlink/eval/hints @@ -0,0 +1 @@ +control-file-symlink (source): rules-do-not-require-root [debian/control.real] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/fields-unknown-fields/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/fields-unknown-fields/ORIGIN new file mode 100644 index 00000000..99569d7d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/fields-unknown-fields/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/field/rules-requires-root/fields-unknown-fields + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/fields-unknown-fields/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/fields-unknown-fields/debian/changelog new file mode 100644 index 00000000..f8774457 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/fields-unknown-fields/debian/changelog @@ -0,0 +1,17 @@ +fields-unknown-fields (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: fields-unknown-fields + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +fields-unknown-fields (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: fields-unknown-fields + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/fields-unknown-fields/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/fields-unknown-fields/debian/control new file mode 100644 index 00000000..6a304e32 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/fields-unknown-fields/debian/control @@ -0,0 +1,19 @@ +Source: fields-unknown-fields +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Require-Root: no +Rules-Requires-Root: no +XS-Comment: This is random comment ending up in the dsc file. + +Package: fields-unknown-fields +Architecture: all +Depends: ${misc:Depends}, +Description: General tests for unknown fields + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/fields-unknown-fields/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/fields-unknown-fields/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/fields-unknown-fields/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/fields-unknown-fields/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/fields-unknown-fields/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/fields-unknown-fields/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/fields-unknown-fields/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/fields-unknown-fields/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/fields-unknown-fields/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/fields-unknown-fields/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/fields-unknown-fields/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/fields-unknown-fields/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/fields-unknown-fields/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/fields-unknown-fields/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/fields-unknown-fields/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/fields-unknown-fields/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/fields-unknown-fields/eval/hints new file mode 100644 index 00000000..2b9bce80 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/rules-requires-root/fields-unknown-fields/eval/hints @@ -0,0 +1,3 @@ +fields-unknown-fields (source): spelling-error-in-rules-requires-root Rules-Require-Root [debian/control:7] +fields-unknown-fields (source): rules-do-not-require-root [debian/control:8] +fields-unknown-fields (source): redundant-rules-requires-root-no-field [debian/control:8] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/section/no-section-in-source-stanza/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/section/no-section-in-source-stanza/ORIGIN new file mode 100644 index 00000000..c01c0b54 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/section/no-section-in-source-stanza/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/field/section/no-section-in-source-stanza + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/section/no-section-in-source-stanza/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/section/no-section-in-source-stanza/debian/changelog new file mode 100644 index 00000000..90432b53 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/section/no-section-in-source-stanza/debian/changelog @@ -0,0 +1,17 @@ +no-section-in-source-stanza (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: no-section-in-source-stanza + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +no-section-in-source-stanza (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: no-section-in-source-stanza + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/section/no-section-in-source-stanza/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/section/no-section-in-source-stanza/debian/control new file mode 100644 index 00000000..05268936 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/section/no-section-in-source-stanza/debian/control @@ -0,0 +1,17 @@ +Source: no-section-in-source-stanza +Priority: optional +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no +Homepage: https://lintian.debian.org/ + +Package: no-section-in-source-stanza +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: No Section declared in source stanza of d/control + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/section/no-section-in-source-stanza/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/section/no-section-in-source-stanza/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/section/no-section-in-source-stanza/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/section/no-section-in-source-stanza/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/section/no-section-in-source-stanza/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/section/no-section-in-source-stanza/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/section/no-section-in-source-stanza/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/section/no-section-in-source-stanza/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/section/no-section-in-source-stanza/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/section/no-section-in-source-stanza/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/section/no-section-in-source-stanza/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/section/no-section-in-source-stanza/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/section/no-section-in-source-stanza/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/section/no-section-in-source-stanza/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/section/no-section-in-source-stanza/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/section/no-section-in-source-stanza/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/section/no-section-in-source-stanza/eval/hints new file mode 100644 index 00000000..e12b62a7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/section/no-section-in-source-stanza/eval/hints @@ -0,0 +1 @@ +no-section-in-source-stanza (source): no-source-section [debian/control] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/spacing/control-file-pedantic-space/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/spacing/control-file-pedantic-space/ORIGIN new file mode 100644 index 00000000..d1387120 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/spacing/control-file-pedantic-space/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/field/spacing/control-file-pedantic-space + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/spacing/control-file-pedantic-space/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/spacing/control-file-pedantic-space/debian/changelog new file mode 100644 index 00000000..a34b8530 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/spacing/control-file-pedantic-space/debian/changelog @@ -0,0 +1,17 @@ +control-file-pedantic-space (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-pedantic-space + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +control-file-pedantic-space (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-pedantic-space + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/spacing/control-file-pedantic-space/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/spacing/control-file-pedantic-space/debian/control new file mode 100644 index 00000000..bcce2428 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/spacing/control-file-pedantic-space/debian/control @@ -0,0 +1,17 @@ +Source: control-file-pedantic-space +Priority:optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no +Homepage: https://lintian.debian.org/ + +Package: control-file-pedantic-space +Architecture: all +Depends: ${misc:Depends} +Description: Pedantic tests for control file spacing + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/spacing/control-file-pedantic-space/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/spacing/control-file-pedantic-space/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/spacing/control-file-pedantic-space/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/spacing/control-file-pedantic-space/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/spacing/control-file-pedantic-space/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/spacing/control-file-pedantic-space/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/spacing/control-file-pedantic-space/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/spacing/control-file-pedantic-space/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/spacing/control-file-pedantic-space/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/spacing/control-file-pedantic-space/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/spacing/control-file-pedantic-space/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/spacing/control-file-pedantic-space/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/spacing/control-file-pedantic-space/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/spacing/control-file-pedantic-space/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/spacing/control-file-pedantic-space/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/field/spacing/control-file-pedantic-space/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/spacing/control-file-pedantic-space/eval/hints new file mode 100644 index 00000000..df949b0b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/field/spacing/control-file-pedantic-space/eval/hints @@ -0,0 +1,3 @@ +control-file-pedantic-space (source): debian-control-has-unusual-field-spacing Source [debian/control:1] +control-file-pedantic-space (source): debian-control-has-unusual-field-spacing Section [debian/control:3] +control-file-pedantic-space (source): debian-control-has-unusual-field-spacing Priority [debian/control:2] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/link/control-file-symlink/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/link/control-file-symlink/ORIGIN new file mode 100644 index 00000000..97349709 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/link/control-file-symlink/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/link/control-file-symlink + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/link/control-file-symlink/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/link/control-file-symlink/debian/changelog new file mode 100644 index 00000000..11c9ba13 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/link/control-file-symlink/debian/changelog @@ -0,0 +1,17 @@ +control-file-symlink (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-symlink + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +control-file-symlink (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-symlink + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/link/control-file-symlink/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/link/control-file-symlink/debian/control new file mode 120000 index 00000000..f594732f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/link/control-file-symlink/debian/control @@ -0,0 +1 @@ +control.real \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/link/control-file-symlink/debian/control.real b/packages/debmagic/tests/lintian-parity/checks/debian/control/link/control-file-symlink/debian/control.real new file mode 100644 index 00000000..c198b078 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/link/control-file-symlink/debian/control.real @@ -0,0 +1,17 @@ +Source: control-file-symlink +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: control-file-symlink +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test if debian/control is a symlink + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/link/control-file-symlink/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/link/control-file-symlink/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/link/control-file-symlink/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/link/control-file-symlink/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/link/control-file-symlink/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/link/control-file-symlink/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/link/control-file-symlink/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/link/control-file-symlink/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/link/control-file-symlink/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/link/control-file-symlink/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/link/control-file-symlink/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/link/control-file-symlink/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/link/control-file-symlink/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/link/control-file-symlink/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/link/control-file-symlink/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/link/control-file-symlink/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/link/control-file-symlink/eval/hints new file mode 100644 index 00000000..04be3f2c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/link/control-file-symlink/eval/hints @@ -0,0 +1 @@ +control-file-symlink (source): debian-control-file-is-a-symlink [debian/control] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-general/ORIGIN new file mode 100644 index 00000000..16c6ac7b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/prerequisite/circular/control-file-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-general/debian/changelog new file mode 100644 index 00000000..266376c7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-general/debian/changelog @@ -0,0 +1,17 @@ +control-file-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +control-file-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-general/debian/control new file mode 100644 index 00000000..0d48933e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-general/debian/control @@ -0,0 +1,118 @@ +Source: control-file-general +Priority: optional +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), + fiddle [amd64 powerpc mips mipsel hppa s390], + faddle + (>> + 2) [ + sparc i386 amd64 + ] +Build-Depends-Indep: perl (> 5.8) +Rules-Requires-Root: no +XS-Vcs-Svn: https://svn.example.com/control-file-general/trunk +#Vcs-Git: git://git.debian.org/collab-maint/.git +#Vcs-Browser: http://git.debian.org/?p=collab-maint/.git;a=summary + +Package: control-file-general +Section: devel +Maintainer: Debian Lintian Maintainers +Build-Conflicts: foo +Architecture: all +Pre-depends: ${misc:Pre-depends}, multiarch-support +Depends: control-file-general, foo, baz, ${shlibs:Depends} ${some:Depends}, ${misc:Depends} +Recommends: foo, bar, no-match${lintian:Foo}, match${lintian:Match}, no-match${lintian:Bar}-foo +Suggests: bar | baz, no-match${lintian:Bar}, match${lintian:Match} +Description: Various problems with debian/control + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-1 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Breaks: libsqlite3-0 (< 3.6.12) +Description: Various problems with debian/control + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-2 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Various problems with debian/control (two) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-3 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, foo (>= 1), + baz (<< 2), + fizz (= 2.0), gcc-${pv:gcc} ${reqv:gcc} +Description: Various problems with debian/control (three) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-4 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, foo | + bar (>= 1), baz +Description: Various problems with debian/control (four) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-5 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Description: Various problems with debian/control + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-dbgsym +Section: debug +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Description: dbg-sym + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-dbg +Section: debug +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Description: debug + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-udeb +Section: debian-installer +Package-Type: udeb +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Various problems with debian/control (udeb) + udeb tests. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-general/debian/rules new file mode 100644 index 00000000..f5db4bbb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-general/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_gencontrol: + echo 'pv:gcc=4.3' >> debian/substvars + echo 'reqv:gcc=(>= 4.3-1)' >> debian/substvars + dh_gencontrol diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-general/eval/hints new file mode 100644 index 00000000..1c51dc4d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-general/eval/hints @@ -0,0 +1 @@ +control-file-general (source): circular-installation-prerequisite (in section for control-file-general) Depends control-file-general, foo, baz, ${shlibs:Depends} ${some:Depends}, ${misc:Depends} [debian/control:24] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-suggests-itself/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-suggests-itself/ORIGIN new file mode 100644 index 00000000..f31703a9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-suggests-itself/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/prerequisite/circular/control-file-suggests-itself + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-suggests-itself/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-suggests-itself/debian/changelog new file mode 100644 index 00000000..151dcbcb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-suggests-itself/debian/changelog @@ -0,0 +1,17 @@ +control-file-suggests-itself (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-suggests-itself + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +control-file-suggests-itself (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-suggests-itself + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-suggests-itself/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-suggests-itself/debian/control new file mode 100644 index 00000000..ff0e34b3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-suggests-itself/debian/control @@ -0,0 +1,17 @@ +Source: control-file-suggests-itself +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no + +Package: control-file-suggests-itself +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Suggests: control-file-suggests-itself +Description: Test a package Suggesting itself + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-suggests-itself/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-suggests-itself/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-suggests-itself/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-suggests-itself/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-suggests-itself/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-suggests-itself/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-suggests-itself/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-suggests-itself/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-suggests-itself/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-suggests-itself/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-suggests-itself/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-suggests-itself/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-suggests-itself/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-suggests-itself/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-suggests-itself/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-suggests-itself/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-suggests-itself/eval/hints new file mode 100644 index 00000000..c2e5627c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/control-file-suggests-itself/eval/hints @@ -0,0 +1 @@ +control-file-suggests-itself (source): circular-installation-prerequisite (in section for control-file-suggests-itself) Suggests control-file-suggests-itself [debian/control:12] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/fields-depends-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/fields-depends-general/ORIGIN new file mode 100644 index 00000000..959931cc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/fields-depends-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/prerequisite/circular/fields-depends-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/fields-depends-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/fields-depends-general/debian/changelog new file mode 100644 index 00000000..d5c69382 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/fields-depends-general/debian/changelog @@ -0,0 +1,17 @@ +fields-depends-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: fields-depends-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +fields-depends-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: fields-depends-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/fields-depends-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/fields-depends-general/debian/control new file mode 100644 index 00000000..0e7cbc0b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/fields-depends-general/debian/control @@ -0,0 +1,81 @@ +Source: fields-depends-general +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), libtest-simple-perl (>= 0.98), perl-modules +Rules-Requires-Root: no + +Package: fields-depends-general +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, xorg, bash, + conflict-dep, gawk | awk, new-package | xbase-clients (>= 0.1), fields-depends-general, + gaim (>= 0.1), emacs21, emacs22, emacs23, makedev, libtest-simple-perl (>= 0.98), + packaging-dev, xfont-a, emacs22-gtk, emacs23-el, emacs23-nox, emacs23-lucid, + emacs222, perl-modules, debhelper +Breaks: package-without-version, fields-depends-general (<< 0.1), + replaced-wo-version +Replaces: replaced-wo-version +Conflicts: package-with-version (<< 3.0), conflict-dep +Description: General tests for binary package dependencies + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libfields-depends-general +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, libdb1-compat, perl-modules-5.22 +Recommends: debconf-doc +Conflicts: debhelper +Section: libs +Description: General tests for binary package dependencies -- fake library + This is a fake library designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: py-fields-depends-general +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, python-minimal +Description: General tests for binary package dependencies - Fake Python package + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + The fake Python package. + +Package: fields-depends-general-doc +Section: doc +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, fields-depends-general +Description: General tests for binary package dependencies - Fake Doc package + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + The fake doc package. + +Package: dh-fields-depends-general +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, debhelper +Description: General tests for binary package dependencies - Fake Debhelper package + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + The fake Debhelper package to test false-positives in + binary-package-depends-on-toolchain-package. + +Package: fields-depends-general-source +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, debhelper +Description: General tests for binary package dependencies - Fake DKMS-like package + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + The fake DKMS-like package to test false-positives in + binary-package-depends-on-toolchain-package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/fields-depends-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/fields-depends-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/fields-depends-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/fields-depends-general/debian/install b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/fields-depends-general/debian/install new file mode 100644 index 00000000..6c378890 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/fields-depends-general/debian/install @@ -0,0 +1 @@ +some-file usr/share/lintian diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/fields-depends-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/fields-depends-general/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/fields-depends-general/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/fields-depends-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/fields-depends-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/fields-depends-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/fields-depends-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/fields-depends-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/fields-depends-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/fields-depends-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/fields-depends-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/fields-depends-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/fields-depends-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/fields-depends-general/eval/hints new file mode 100644 index 00000000..44047f12 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/fields-depends-general/eval/hints @@ -0,0 +1 @@ +fields-depends-general (source): circular-installation-prerequisite (in section for fields-depends-general) Depends ${shlibs:Depends}, ${misc:Depends}, xorg, bash, conflict-dep, gawk | awk, new-package | xbase-clients (>= 0.1), fields-depends-general, gaim (>= 0.1), emacs21, emacs22, emacs23, makedev, libtest-simple-perl (>= 0.98), packaging-dev, xfont-a, emacs22-gtk, emacs23-el, emacs23-nox, emacs23-lucid, emacs222, perl-modules, debhelper [debian/control:11] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/fields-depends-general/some-file b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/fields-depends-general/some-file new file mode 100644 index 00000000..7bf08f78 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/fields-depends-general/some-file @@ -0,0 +1,2 @@ +This file is installed into /usr/share/lintian just to ensure that this +package doesn't look like a metapackage for the dependency checks. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/legacy-relations/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/legacy-relations/ORIGIN new file mode 100644 index 00000000..e763c54b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/legacy-relations/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/prerequisite/circular/legacy-relations + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/legacy-relations/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/legacy-relations/debian/changelog new file mode 100644 index 00000000..d23f2272 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/legacy-relations/debian/changelog @@ -0,0 +1,33 @@ +relations (5) unstable; urgency=low + + * I'm orphaning this package -- I'm sick of it: it's completely broken, + lintian complains all over the place. + + -- Jeroen van Wolffelaar Sun, 02 Dec 2007 15:59:59 -0800 + +relations (4) unstable; urgency=low + + * Added a package that tests dependencies for multiple versions of + libraries, and test some description stuff in there as well. + + -- Josip Rodin Fri, 29 Nov 2002 20:13:33 +0100 + +relations (3) unstable; urgency=low + + * Added a virtual provides to test against my virtual depends without + a real package first test + + -- Sean 'Shaleh' Perry Thu, 8 Feb 2001 11:29:53 -0800 + +relations (2) unstable; urgency=low + + * Added a depends on dpkg (violates policy) and a versioned depends + on bash (follows policy) + + -- Sean 'Shaleh' Perry Fri, 2 Feb 2001 12:37:17 -0800 + +relations (1) unstable; urgency=low + + * Initial version + + -- Richard Braakman Tue, 7 Jul 1998 16:27:56 +0200 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/legacy-relations/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/legacy-relations/debian/control new file mode 100644 index 00000000..6cd1c044 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/legacy-relations/debian/control @@ -0,0 +1,51 @@ +Source: relations +Section: misc +Priority: optional +Build-Depends: mail-transport-agent, libc6-dev, findutils, foo (= 3) [!amd64 !i386], bar, arch-test1 [i386], arch-test2 [!i386], quilt (>= 0.40), perl +Build-Depends-Indep: make, bash, debmake, build-essential, baz (= 2.0), ghostscript | gs, + car (>= 1.0), car (<= 2.0), caz (= 1.0) [amd64], caz (>= 2.0) [i386], + caz (= 2.0) [powerpc], perl (>= 5.0), foo (<< 4) [!amd64 !i386], libfoo (>= 1.2-1), bozzle [kfreebsd-i386] +Build-Conflicts: foo [amd64 i386], bar [alpha test], xlibs-dev, arch-test1 [powerpc], arch-test2 [!sparc] +Build-Conflicts-Indep: debmake [!powerpc] +Maintainer: Debian QA Group +Standards-Version: 3.7.3 +Homepage: lintian.debian.org +Origin: Debian +Bugs: debbugs://bugs.debian.org/ + +Package: relations +Architecture: all +Section: contrib/misc +Pre-Depends: awk|gawk +Depends: relations(<< 3), dpkg, bash (>> 2.0 ), mail-transport-agent, gawk | awk, foo (>> 2.0), foo (<< 2.2), coreutils, ,null (>= 0), ${misc:Depends}, makedev +Provides: mail-reader +Replaces: relations +Conflicts: foobar (<< 5+5), foo, relations, + gnuwdf, +Suggests: alpha, gnu (>= 44-3-4-8-11.4) | ung (<< 89beta) | nug | ngu, beta, some-other-package +Recommends: emacs21 | emacsen, dpkg, null, some-other-package, ${f-oo:b-ar}, gs | ghostscript | gs-aladdin +Description: Strange dependency relationships (dummy) + This package declares relationships designed to tickle lintian's "fields" + check. It should generate a number of tags for these. + . + The package is built with "dpkg --build --no-check", because some of the + relationships used here are normally rejected by dpkg. + +Package: relations-multiple-libs +Architecture: all +Section: non-free/misc +Depends: libstdc++2.10, libstdc++2.10-glibc2.2, libstdc++3.0, tk8.2, tk8.3, tcl8.0, tcl8.2, tkx8.2, tkx8.3, tclx8.2, libpng2, libpng3, xorg, ${shlibs:Depends}, makedev | udev +Provides: awk +Enhances: foo +Recommends: ${shlibs:Depends}, relations-multiple-libs, gs | gs-gpl, makedev +Breaks: libpng3 (<< 1.0), libpng2 +Suggests: x-dev, ghostscript | gs +Description: Duplicate library dependency relationships. + Duplicate library dependency relationships. + This tests the depending on different versions of the same library + at the same time. + . + At the same time, it conveniently tests some description file checks. :) + . + It is a metapackage from the lintian perspective, so the xorg dependency + should be allowed. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/legacy-relations/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/legacy-relations/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/legacy-relations/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/legacy-relations/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/legacy-relations/debian/rules new file mode 100755 index 00000000..5027f335 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/legacy-relations/debian/rules @@ -0,0 +1,49 @@ +#!/usr/bin/make -f + +# Copyright (C) 1998 Richard Braakman +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, you can find it on the World Wide +# Web at https://www.gnu.org/copyleft/gpl.html, or write to the Free +# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +# MA 02110-1301, USA. + +build-arch: + +build-indep: + +build: build-arch build-indep + +binary-arch: + +binary-indep: + install -d debian/tmp/DEBIAN + dpkg-gencontrol -prelations -isp + dpkg --build debian/tmp ../relations_5_all.deb + install -d debian/tmp/usr/share/doc/ + ln -s relations debian/tmp/usr/share/doc/relations-multiple-libs + dpkg-gencontrol -prelations-multiple-libs -isp + dpkg --build debian/tmp ../relations-multiple-libs_5_all.deb + +binary: binary-arch binary-indep + +clean:: + rm -rf debian/tmp debian/files + +# Test allowing quilt Build-Depends for manual quilt invocations. + TESTING=foo ANOTHER=bar quilt || true + +# Test requiring perl Build-Depends for manual perl invocations. + [ ! -f Build ] || $(PERL) Build distclean + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/legacy-relations/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/legacy-relations/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/legacy-relations/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/legacy-relations/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/legacy-relations/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/legacy-relations/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/legacy-relations/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/legacy-relations/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/legacy-relations/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/legacy-relations/debian/tmp/DEBIAN/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/legacy-relations/debian/tmp/DEBIAN/control new file mode 100644 index 00000000..87e7fe68 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/legacy-relations/debian/tmp/DEBIAN/control @@ -0,0 +1,14 @@ +Package: relations-multiple-libs +Version: 4 +Section: misc +Priority: optional +Architecture: all +Depends: libstdc++2.10, libstdc++2.10-glibc2.2, libstdc++3.0, tk8.2, tk8.3, tcl8.0, tcl8.2, tkx8.2, tkx8.3, tclx8.2, libpng2, libpng3 +Installed-Size: 12 +Maintainer: Lintian Maintainer +Source: relations +Description: Duplicate library dependency relationships. + Duplicate library dependency relationships. This tests the depending on + different versions of the same library at the same time. + . + At the same time, it conveniently tests some description file checks. :) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/legacy-relations/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/legacy-relations/eval/hints new file mode 100644 index 00000000..32853219 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/circular/legacy-relations/eval/hints @@ -0,0 +1,2 @@ +relations (source): circular-installation-prerequisite (in section for relations-multiple-libs) Recommends ${shlibs:Depends}, relations-multiple-libs, gs | gs-gpl, makedev [debian/control:40] +relations (source): circular-installation-prerequisite (in section for relations) Depends relations (<< 3), dpkg, bash (>> 2.0 ), mail-transport-agent, gawk | awk, foo (>> 2.0), foo (<< 2.2), coreutils, null (>= 0), ${misc:Depends}, makedev [debian/control:20] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/control-file-library-dev/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/control-file-library-dev/ORIGIN new file mode 100644 index 00000000..948219c2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/control-file-library-dev/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/prerequisite/development/control-file-library-dev + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/control-file-library-dev/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/control-file-library-dev/debian/changelog new file mode 100644 index 00000000..c6e8315b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/control-file-library-dev/debian/changelog @@ -0,0 +1,17 @@ +control-file-library-dev (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-library-dev + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +control-file-library-dev (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-library-dev + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/control-file-library-dev/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/control-file-library-dev/debian/control new file mode 100644 index 00000000..dd33443f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/control-file-library-dev/debian/control @@ -0,0 +1,115 @@ +Source: control-file-library-dev +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no + +Package: libcontrol-file-foo1 +Section: libs +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check control file handling of library dev packages (shared lib 1) + First shared library. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: libcontrol-file-bar7ldbl +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check control file handling of library dev packages (shared lib 2) + Second shared library. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: libcontrol-file-dev +Section: libdevel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, + libcontrol-file-foo1 (= ${binary:Version}), + libcontrol-file-bar7ldbl, libcontrol-file-baz9-4 (>= ${binary:Version}), + libfoo4, libcontrol-file-doc, libcontrol-file4-dev +Description: Check control file handling of library dev packages (dev package) + Dev package. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: libcontrol-file-baz9-4 +Section: libs +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check control file handling of library dev packages (shared lib 3) + Third shared library. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: libcontrol-file-doc +Section: doc +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check control file handling of library dev packages (doc package) + Doc package. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: libcontrol-file4-dev +Section: libdevel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, + libcontrol-file-foo1 (<= ${source:Upstream-Version}-99) + | libcontrol-file-baz9-4 (<= ${source:Upstream-Version}-99), + libcontrol-file-foo1 (>= ${binary:Version}) + | libcontrol-file-baz9-4 (>= ${binary:Version}) +Description: Check control file handling of library dev packages (dev package with version) + Dev package containing a number. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: libcontrol-file-all-dev +Section: libdevel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, libcontrol-file-doc, + libcontrol-file-foo1 (>= ${source:Upstream-Version}), + libcontrol-file-foo1 (<= ${source:Version}.1~), + libcontrol-file-baz9-4 (>= ${source:Version}) +Description: Check control file handling of library dev packages (arch: all dev package) + Architecture-independent development package. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: libcontrol-baz-dev +Section: libdevel +Architecture: all +Depends: + libcontrol-file-baz9-4 (= ${binary:Version}), + ${misc:Depends}, + ${shlibs:Depends} +Description: Check control file handling of library dev packages (dev whitespace) + Test proper parsing of leading whitespace in Depends + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/control-file-library-dev/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/control-file-library-dev/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/control-file-library-dev/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/control-file-library-dev/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/control-file-library-dev/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/control-file-library-dev/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/control-file-library-dev/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/control-file-library-dev/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/control-file-library-dev/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/control-file-library-dev/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/control-file-library-dev/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/control-file-library-dev/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/control-file-library-dev/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/control-file-library-dev/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/control-file-library-dev/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/control-file-library-dev/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/control-file-library-dev/eval/hints new file mode 100644 index 00000000..5d06a02d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/control-file-library-dev/eval/hints @@ -0,0 +1,3 @@ +control-file-library-dev (source): weak-library-dev-dependency (in section for libcontrol-file-dev) Depends libcontrol-file-baz9-4 (>= ${binary:Version}) [debian/control:35] +control-file-library-dev (source): weak-library-dev-dependency (in section for libcontrol-file-dev) Depends libcontrol-file-bar7ldbl [debian/control:35] +control-file-library-dev (source): weak-library-dev-dependency (in section for libcontrol-file-all-dev) Depends libcontrol-file-baz9-4 (>= ${source:Version}) [debian/control:90] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/Makefile new file mode 100644 index 00000000..657dc2ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/Makefile @@ -0,0 +1,55 @@ +# This is the correct way to build a lib + +CC=gcc +CFLAGS=-g -Wall -Winline -O2 +LDFLAGS=-Wl,--no-as-needed + +OBJS=baz.o extra.o +SHOBJS=baz.sho extra.sho +NOPICOBJS = $(SHOBJS) + +all: libbaz1.a libbaz2.a libbaz1.so.1.0.3b libbaz2.so libbaz3.so.1.0.3b \ + libbaz.so + +libbaz2.so: libbaz2.so.1.0 + ln -sf $^ $@ +libbaz2.so.1.0: libbaz2.so.1.0.3b + ln -sf $^ $@ + +# Oops, forget the soname altogether +libbaz1.so.1.0.3b: $(NOPICOBJS) + $(CC) $(LDFLAGS) -o $@ -shared $^ -lc + +libbaz2.so.1.0.3b: $(SHOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz2.so.1.0 $^ -lc + +# Non-PIC. We can't test this on all architectures +libbaz3.so.1.0.3b: $(NOPICOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz3.so.1 $^ -lc + +# Non-versioned SONAME. +libbaz.so: $(SHOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz.so $^ -lc + +#%.o-noreentrant: %.c +# $(CC) $(LDFLAGS) $(CFLAGS) -o $@ -c $< + +%.sho: %.c + $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -fPIC -o $@ -c $< + +%.o: %.c + $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -o $@ -c $< + +libbaz2.a: $(OBJS) + ar cq $@ $(OBJS) + strip --strip-unneeded --remove-section=.comment \ + --remove-section=-note $@ + ranlib $@ + +# The pic one in the .a (wrong), no archive table +libbaz1.a: $(SHOBJS) + ar cqS $@ $^ + strip --strip-unneeded --remove-section=.comment \ + --remove-section=-note $@ +clean: + rm -f *.a *.o *.so* *.sho diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/ORIGIN new file mode 100644 index 00000000..e6c5a4ff --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/baz.c b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/baz.c new file mode 100644 index 00000000..4d5fc458 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/baz.c @@ -0,0 +1,6 @@ +#include + +double pw(double p) +{ + return exp(p); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/changelog new file mode 100644 index 00000000..44c0a832 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/changelog @@ -0,0 +1,6 @@ +libbaz (1-1) unstable; urgency=low + + * Initial setup + + -- Sean 'Shaleh' Perry Tue, 30 Jan 2001 15:23:59 -0800 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/compat new file mode 100644 index 00000000..b1bd38b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/compat @@ -0,0 +1 @@ +13 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/control new file mode 100644 index 00000000..15066870 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/control @@ -0,0 +1,58 @@ +Source: libbaz +Section: libs +Priority: optional +Maintainer: Lintian Maintainer +Build-depends: debhelper (>=4) +Standards-Version: 3.2.1 + +Package: libbaz1 +Architecture: any +Provides: libbaz +Description: test handling of library packages + Regression test for lintian's handling of libraries. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz1-dev +Architecture: any +Depends: libbaz1 (= ${source:Version}), perlapi-5.8.8 +Description: development package + Regression test for lintian's handling of libraries (dev). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2 +Architecture: any +Depends: ${shlibs:Depends}, libssl0.9.8 +Description: test handling of library packages (good) + Regression test for lintian's handling of libraries (good). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2-dev +Architecture: any +Depends: ${shlibs:Depends}, libbaz2 (= ${source:Version}) +Description: development package (good) + Regression test for lintian's handling of libraries (dev good). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2-dbg +Architecture: any +Depends: libbaz2 (= ${binary:Version}) +Priority: optional +Description: debugging package + Regression test for lintian's handling of libraries (debug). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/copyright new file mode 100644 index 00000000..a874c878 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/copyright @@ -0,0 +1,8 @@ +This package is released under public domain. This is distributed in the hope +that it will be useful, but without any warranty; without even the implied +warranty of merchantability or fitness for a particular purpose. + +A reference to /usr/share/common-licenses/GPL-2 to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +However, this has an OpenSSL exception. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/dev.postinst b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/dev.postinst new file mode 100644 index 00000000..683e3cc5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/dev.postinst @@ -0,0 +1,4 @@ +#!/bin/sh -e + +$PKG=libbaz1-dev + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/dev.prerm b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/dev.prerm new file mode 100644 index 00000000..683e3cc5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/dev.prerm @@ -0,0 +1,4 @@ +#!/bin/sh -e + +$PKG=libbaz1-dev + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/lib.postinst b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/lib.postinst new file mode 100644 index 00000000..ec0b98ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/lib.postinst @@ -0,0 +1,10 @@ +#!/bin/sh -e + +$PKG=libbaz1 + +if [ "$1" = "configure" ]; then + if [ -d /usr/doc -a ! -e /usr/doc/$PKG -a -d /usr/share/doc/$PKG ] +; then + ln -sf ../share/doc/$PKG /usr/doc/$PKG + fi +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/lib.prerm b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/lib.prerm new file mode 100644 index 00000000..50e37c3b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/lib.prerm @@ -0,0 +1,7 @@ +#!/bin/sh -e + +$PKG=libbaz1 + +if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/$PKG ]; then + rm -f /usr/doc/$PKG +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/lib.shlibs b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/lib.shlibs new file mode 100644 index 00000000..b88e2882 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/lib.shlibs @@ -0,0 +1,8 @@ +libdoesntexist2 1.0 libbaz1 +libdoesntexist2 1.0 libbaz1 +libbaz2 1.1 libbaz +libbaz3 1 libbaz1 (>> 1-1) +libbaz4 1 libbaz1 (= 1-1) +libbaz5 1 libbaz2 +udeb: libdoesntexist2 1.0 libbaz2 +udeb: libdoesntexist2 1.0 libbaz2 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/lib.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/lib.symbols new file mode 100644 index 00000000..72f9d8ab --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/lib.symbols @@ -0,0 +1,3 @@ +libbaz.so.2 libbaz1 #MINVER# + pw 1-1 + foo 1.1-1 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/rules new file mode 100755 index 00000000..fa99bc8a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/rules @@ -0,0 +1,121 @@ +#!/usr/bin/make -f + +lib_tmp=debian/tmp-lib +dev_tmp=debian/tmp-dev + +LIB=libbaz1 +DEV=libbaz1-dev + +VENDORARCH := $(shell perl -MConfig -wE'say substr($$Config{vendorarch},1)') + +build-arch: + $(MAKE) + +build-indep: + +build: build-arch build-indep + +clean: + $(MAKE) clean + dh_clean -plibbaz2 -plibbaz2-dev + rm -f debian/files debian/substvars + rm -rf $(lib_tmp) $(dev_tmp) + +# Now the correct libbaz2-dev package +binary-correct: + install -d debian/libbaz2-dev/usr/lib + cp -a libbaz2.a libbaz2.so debian/libbaz2-dev/usr/lib + # usually, I'd also include some .h files to /usr/include + + # Now the correct libbaz2 package + install -d debian/libbaz2/usr/lib + cp -a libbaz2.so.* debian/libbaz2/usr/lib + chmod a-x debian/libbaz2/usr/lib/* + + # General stuff that is tested in other testsets: + dh_installdocs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_compress -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + + # Mess up the libbaz2 changelog files to test the symlink handling. + ln -s /usr/share/doc/lintian/changelog.gz \ + debian/libbaz2/usr/share/doc/libbaz2/changelog.gz + install -m 644 debian/changelog \ + debian/libbaz2-dev/usr/share/doc/libbaz2-dev/foo + ln -s foo debian/libbaz2-dev/usr/share/doc/libbaz2-dev/changelog + + # Okay, if either line is omitted, it should be noted + dh_strip --dbg-package=libbaz2-dbg -plibbaz2 -plibbaz2-dev + dh_makeshlibs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_shlibdeps -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + + # and again, regular packaging stuff + dh_installdeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + echo udeb: libbaz2 1.0 libbaz2 >> debian/libbaz2/DEBIAN/shlibs + dh_gencontrol -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_builddeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + +# and the incorrect one +binary-arch: build-arch binary-correct + # first, the lib package + install -d $(lib_tmp)/usr/lib + # resp. no soname (check), wrong soname (check), and no-pic (check) + cp -a libbaz1.so.1.0* $(lib_tmp)/usr/lib + cp -a libbaz2.so.1.0.3b $(lib_tmp)/usr/lib/libfoo2.so.1.0.3b + install -m644 libbaz3.so.1.0.3b $(lib_tmp)/usr/lib/libbaz3.so.1.0.3b + # let's include the .a in the non-dev too (TODO) + # Also, libbaz1.a hasn't a symbol table (TODO) + cp -a *.a $(lib_tmp)/usr/lib + # And a wrong .so symlink (wrong, only in -dev, TODO) + ln -s libfoo3.so.0.9 $(lib_tmp)/usr/lib/libfoo3.so + # And a wrong .so.X symlink (wrong, should point to a real existing + # shlib, TODO) + ln -s libfoo.so.0.9.1 $(lib_tmp)/usr/lib/libfoo.so.0.9 + # And a plain .so (wrong, TODO) + touch $(lib_tmp)/usr/lib/libbar2.so + # And a non-versioned SONAME. + install -m644 libbaz.so $(lib_tmp)/usr/lib/libbaz.so + strip --remove-section=.comment --strip-unneeded $(lib_tmp)/usr/lib/libbaz.so + # Pretend to be a Perl module to test a lack of Perl dependencies. + install -d $(lib_tmp)/$(VENDORARCH)/auto/Foo + install -m 644 libbaz2.so.1.0.3b $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + strip $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + + install -d $(lib_tmp)/usr/share/doc/$(LIB) + install -m 644 debian/copyright $(lib_tmp)/usr/share/doc/$(LIB) + install -m 644 debian/changelog $(lib_tmp)/usr/share/doc/$(LIB) + gzip -n -9 $(lib_tmp)/usr/share/doc/$(LIB)/changelog + install -d $(lib_tmp)/DEBIAN + install -m 755 debian/lib.postinst $(lib_tmp)/DEBIAN/postinst + install -m 755 debian/lib.prerm $(lib_tmp)/DEBIAN/prerm + touch $(lib_tmp)/usr/share/doc/README.Debian + #dpkg-shlibdeps $(lib_tmp)/usr/lib/libbaz.so.1.0 + install -m 755 debian/lib.shlibs $(lib_tmp)/DEBIAN/shlibs + install -m 755 debian/lib.symbols $(lib_tmp)/DEBIAN/symbols + dpkg-gencontrol -isp -p$(LIB) -P$(lib_tmp) + dpkg --build $(lib_tmp) .. + + # now the -dev package + install -d $(dev_tmp)/usr/include + install -d $(lib_tmp)/usr/lib + # let's also install the .so at the same time... (wrong, TODO) + cp -a *.a *.so.* $(lib_tmp)/usr/lib + # and fuck up permission (TODO) + chmod a+x $(lib_tmp)/usr/lib/*.a + # Pretend to be a Perl module to test a lack of Perl dependencies. + install -d $(dev_tmp)/$(VENDORARCH)/auto/Foo + install -m 644 libbaz2.so.1.0.3b $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + strip $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + install -d $(dev_tmp)/usr/share/doc + ln -s $(LIB) $(dev_tmp)/usr/share/doc/$(DEV) + install -d $(dev_tmp)/DEBIAN + install -m 755 debian/dev.postinst $(dev_tmp)/DEBIAN/postinst + install -m 755 debian/dev.prerm $(dev_tmp)/DEBIAN/prerm + dpkg-gencontrol -isp -p$(DEV) -P$(dev_tmp) + dpkg --build $(dev_tmp) .. + + +binary: binary-arch + +# The mention of binary-indep here should be sufficient to suppress the +# warning that it's not present. +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/source.lintian-overrides b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/source.lintian-overrides new file mode 100644 index 00000000..6008d271 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/source.lintian-overrides @@ -0,0 +1 @@ +libbaz source: maintainer-script-lacks-debhelper-token diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/eval/hints new file mode 100644 index 00000000..8113d34e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/eval/hints @@ -0,0 +1,2 @@ +libbaz (source): weak-library-dev-dependency (in section for libbaz2-dev) Depends libbaz2 (= ${source:Version}) [debian/control:40] +libbaz (source): weak-library-dev-dependency (in section for libbaz1-dev) Depends libbaz1 (= ${source:Version}) [debian/control:20] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/extra.c b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/development/legacy-libbaz/extra.c new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/control-file-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/control-file-general/ORIGIN new file mode 100644 index 00000000..2cbc3dad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/control-file-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/prerequisite/redundant/control-file-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/control-file-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/control-file-general/debian/changelog new file mode 100644 index 00000000..266376c7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/control-file-general/debian/changelog @@ -0,0 +1,17 @@ +control-file-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +control-file-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/control-file-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/control-file-general/debian/control new file mode 100644 index 00000000..0d48933e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/control-file-general/debian/control @@ -0,0 +1,118 @@ +Source: control-file-general +Priority: optional +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), + fiddle [amd64 powerpc mips mipsel hppa s390], + faddle + (>> + 2) [ + sparc i386 amd64 + ] +Build-Depends-Indep: perl (> 5.8) +Rules-Requires-Root: no +XS-Vcs-Svn: https://svn.example.com/control-file-general/trunk +#Vcs-Git: git://git.debian.org/collab-maint/.git +#Vcs-Browser: http://git.debian.org/?p=collab-maint/.git;a=summary + +Package: control-file-general +Section: devel +Maintainer: Debian Lintian Maintainers +Build-Conflicts: foo +Architecture: all +Pre-depends: ${misc:Pre-depends}, multiarch-support +Depends: control-file-general, foo, baz, ${shlibs:Depends} ${some:Depends}, ${misc:Depends} +Recommends: foo, bar, no-match${lintian:Foo}, match${lintian:Match}, no-match${lintian:Bar}-foo +Suggests: bar | baz, no-match${lintian:Bar}, match${lintian:Match} +Description: Various problems with debian/control + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-1 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Breaks: libsqlite3-0 (< 3.6.12) +Description: Various problems with debian/control + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-2 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Various problems with debian/control (two) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-3 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, foo (>= 1), + baz (<< 2), + fizz (= 2.0), gcc-${pv:gcc} ${reqv:gcc} +Description: Various problems with debian/control (three) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-4 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, foo | + bar (>= 1), baz +Description: Various problems with debian/control (four) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-5 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Description: Various problems with debian/control + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-dbgsym +Section: debug +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Description: dbg-sym + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-dbg +Section: debug +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Description: debug + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-udeb +Section: debian-installer +Package-Type: udeb +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Various problems with debian/control (udeb) + udeb tests. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/control-file-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/control-file-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/control-file-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/control-file-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/control-file-general/debian/rules new file mode 100644 index 00000000..f5db4bbb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/control-file-general/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_gencontrol: + echo 'pv:gcc=4.3' >> debian/substvars + echo 'reqv:gcc=(>= 4.3-1)' >> debian/substvars + dh_gencontrol diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/control-file-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/control-file-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/control-file-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/control-file-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/control-file-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/control-file-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/control-file-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/control-file-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/control-file-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/control-file-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/control-file-general/eval/hints new file mode 100644 index 00000000..06719055 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/control-file-general/eval/hints @@ -0,0 +1,4 @@ +control-file-general (source): redundant-installation-prerequisite (in section for control-file-general) Suggests -> Recommends match${lintian:Match} [debian/control:25] +control-file-general (source): redundant-installation-prerequisite (in section for control-file-general) Suggests -> Recommends bar | baz [debian/control:25] +control-file-general (source): redundant-installation-prerequisite (in section for control-file-general) Suggests -> Depends bar | baz [debian/control:24] +control-file-general (source): redundant-installation-prerequisite (in section for control-file-general) Recommends -> Depends foo [debian/control:24] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/legacy-relations/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/legacy-relations/ORIGIN new file mode 100644 index 00000000..bf5fff33 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/legacy-relations/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/control/prerequisite/redundant/legacy-relations + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/legacy-relations/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/legacy-relations/debian/changelog new file mode 100644 index 00000000..d23f2272 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/legacy-relations/debian/changelog @@ -0,0 +1,33 @@ +relations (5) unstable; urgency=low + + * I'm orphaning this package -- I'm sick of it: it's completely broken, + lintian complains all over the place. + + -- Jeroen van Wolffelaar Sun, 02 Dec 2007 15:59:59 -0800 + +relations (4) unstable; urgency=low + + * Added a package that tests dependencies for multiple versions of + libraries, and test some description stuff in there as well. + + -- Josip Rodin Fri, 29 Nov 2002 20:13:33 +0100 + +relations (3) unstable; urgency=low + + * Added a virtual provides to test against my virtual depends without + a real package first test + + -- Sean 'Shaleh' Perry Thu, 8 Feb 2001 11:29:53 -0800 + +relations (2) unstable; urgency=low + + * Added a depends on dpkg (violates policy) and a versioned depends + on bash (follows policy) + + -- Sean 'Shaleh' Perry Fri, 2 Feb 2001 12:37:17 -0800 + +relations (1) unstable; urgency=low + + * Initial version + + -- Richard Braakman Tue, 7 Jul 1998 16:27:56 +0200 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/legacy-relations/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/legacy-relations/debian/control new file mode 100644 index 00000000..6cd1c044 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/legacy-relations/debian/control @@ -0,0 +1,51 @@ +Source: relations +Section: misc +Priority: optional +Build-Depends: mail-transport-agent, libc6-dev, findutils, foo (= 3) [!amd64 !i386], bar, arch-test1 [i386], arch-test2 [!i386], quilt (>= 0.40), perl +Build-Depends-Indep: make, bash, debmake, build-essential, baz (= 2.0), ghostscript | gs, + car (>= 1.0), car (<= 2.0), caz (= 1.0) [amd64], caz (>= 2.0) [i386], + caz (= 2.0) [powerpc], perl (>= 5.0), foo (<< 4) [!amd64 !i386], libfoo (>= 1.2-1), bozzle [kfreebsd-i386] +Build-Conflicts: foo [amd64 i386], bar [alpha test], xlibs-dev, arch-test1 [powerpc], arch-test2 [!sparc] +Build-Conflicts-Indep: debmake [!powerpc] +Maintainer: Debian QA Group +Standards-Version: 3.7.3 +Homepage: lintian.debian.org +Origin: Debian +Bugs: debbugs://bugs.debian.org/ + +Package: relations +Architecture: all +Section: contrib/misc +Pre-Depends: awk|gawk +Depends: relations(<< 3), dpkg, bash (>> 2.0 ), mail-transport-agent, gawk | awk, foo (>> 2.0), foo (<< 2.2), coreutils, ,null (>= 0), ${misc:Depends}, makedev +Provides: mail-reader +Replaces: relations +Conflicts: foobar (<< 5+5), foo, relations, + gnuwdf, +Suggests: alpha, gnu (>= 44-3-4-8-11.4) | ung (<< 89beta) | nug | ngu, beta, some-other-package +Recommends: emacs21 | emacsen, dpkg, null, some-other-package, ${f-oo:b-ar}, gs | ghostscript | gs-aladdin +Description: Strange dependency relationships (dummy) + This package declares relationships designed to tickle lintian's "fields" + check. It should generate a number of tags for these. + . + The package is built with "dpkg --build --no-check", because some of the + relationships used here are normally rejected by dpkg. + +Package: relations-multiple-libs +Architecture: all +Section: non-free/misc +Depends: libstdc++2.10, libstdc++2.10-glibc2.2, libstdc++3.0, tk8.2, tk8.3, tcl8.0, tcl8.2, tkx8.2, tkx8.3, tclx8.2, libpng2, libpng3, xorg, ${shlibs:Depends}, makedev | udev +Provides: awk +Enhances: foo +Recommends: ${shlibs:Depends}, relations-multiple-libs, gs | gs-gpl, makedev +Breaks: libpng3 (<< 1.0), libpng2 +Suggests: x-dev, ghostscript | gs +Description: Duplicate library dependency relationships. + Duplicate library dependency relationships. + This tests the depending on different versions of the same library + at the same time. + . + At the same time, it conveniently tests some description file checks. :) + . + It is a metapackage from the lintian perspective, so the xorg dependency + should be allowed. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/legacy-relations/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/legacy-relations/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/legacy-relations/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/legacy-relations/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/legacy-relations/debian/rules new file mode 100755 index 00000000..5027f335 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/legacy-relations/debian/rules @@ -0,0 +1,49 @@ +#!/usr/bin/make -f + +# Copyright (C) 1998 Richard Braakman +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, you can find it on the World Wide +# Web at https://www.gnu.org/copyleft/gpl.html, or write to the Free +# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +# MA 02110-1301, USA. + +build-arch: + +build-indep: + +build: build-arch build-indep + +binary-arch: + +binary-indep: + install -d debian/tmp/DEBIAN + dpkg-gencontrol -prelations -isp + dpkg --build debian/tmp ../relations_5_all.deb + install -d debian/tmp/usr/share/doc/ + ln -s relations debian/tmp/usr/share/doc/relations-multiple-libs + dpkg-gencontrol -prelations-multiple-libs -isp + dpkg --build debian/tmp ../relations-multiple-libs_5_all.deb + +binary: binary-arch binary-indep + +clean:: + rm -rf debian/tmp debian/files + +# Test allowing quilt Build-Depends for manual quilt invocations. + TESTING=foo ANOTHER=bar quilt || true + +# Test requiring perl Build-Depends for manual perl invocations. + [ ! -f Build ] || $(PERL) Build distclean + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/legacy-relations/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/legacy-relations/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/legacy-relations/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/legacy-relations/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/legacy-relations/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/legacy-relations/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/legacy-relations/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/legacy-relations/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/legacy-relations/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/legacy-relations/debian/tmp/DEBIAN/control b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/legacy-relations/debian/tmp/DEBIAN/control new file mode 100644 index 00000000..87e7fe68 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/legacy-relations/debian/tmp/DEBIAN/control @@ -0,0 +1,14 @@ +Package: relations-multiple-libs +Version: 4 +Section: misc +Priority: optional +Architecture: all +Depends: libstdc++2.10, libstdc++2.10-glibc2.2, libstdc++3.0, tk8.2, tk8.3, tcl8.0, tcl8.2, tkx8.2, tkx8.3, tclx8.2, libpng2, libpng3 +Installed-Size: 12 +Maintainer: Lintian Maintainer +Source: relations +Description: Duplicate library dependency relationships. + Duplicate library dependency relationships. This tests the depending on + different versions of the same library at the same time. + . + At the same time, it conveniently tests some description file checks. :) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/legacy-relations/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/legacy-relations/eval/hints new file mode 100644 index 00000000..2c936c44 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/control/prerequisite/redundant/legacy-relations/eval/hints @@ -0,0 +1,5 @@ +relations (source): redundant-installation-prerequisite (in section for relations-multiple-libs) Recommends -> Depends ${shlibs:Depends} [debian/control:37] +relations (source): redundant-installation-prerequisite (in section for relations) Suggests -> Recommends some-other-package [debian/control:26] +relations (source): redundant-installation-prerequisite (in section for relations) Recommends -> Depends null [debian/control:20] +relations (source): redundant-installation-prerequisite (in section for relations) Recommends -> Depends dpkg [debian/control:20] +relations (source): redundant-installation-prerequisite (in section for relations) Depends -> Pre-Depends gawk | awk [debian/control:19] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/NOTICE b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/NOTICE new file mode 100644 index 00000000..2a741560 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/NOTICE @@ -0,0 +1 @@ +This file is installed to the binary package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/ORIGIN new file mode 100644 index 00000000..5ca13fbf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/debian/changelog new file mode 100644 index 00000000..9ca983e2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/debian/changelog @@ -0,0 +1,17 @@ +source-copyright-missing-notice-file-for-apache-license-unrel (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-missing-notice-file-for-apache-license-unrel + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +source-copyright-missing-notice-file-for-apache-license-unrel (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-missing-notice-file-for-apache-license-unrel + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/debian/control new file mode 100644 index 00000000..b015fc93 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/debian/control @@ -0,0 +1,17 @@ +Source: source-copyright-missing-notice-file-for-apache-license-unrel +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: source-copyright-missing-notice-file-for-apache-license-unrel +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for no packages missing Apache NOTICE files (false-positive) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/debian/copyright new file mode 100644 index 00000000..61e14af1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/debian/copyright @@ -0,0 +1,23 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Doohickey +Upstream-Contact: J. Random Hacker +Source: http://examples.com/doohickey/source/ + +Files: * +Copyright: © 2011 J. Random Hacker +License: Apache-2.0 + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + . + http://www.apache.org/licenses/LICENSE-2.0 + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + . + On Debian systems, the complete text of the Apache version 2.0 license + can be found in "/usr/share/common-licenses/Apache-2.0". + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/debian/source-copyright-missing-notice-file-for-apache-license-unrel.install b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/debian/source-copyright-missing-notice-file-for-apache-license-unrel.install new file mode 100644 index 00000000..4268786d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/debian/source-copyright-missing-notice-file-for-apache-license-unrel.install @@ -0,0 +1 @@ +NOTICE usr/share/doc/foo diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/NOTICE b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/NOTICE new file mode 100644 index 00000000..6c645260 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/NOTICE @@ -0,0 +1 @@ +This Apache 2.0 license NOTICE is not installed to any binary package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/NOTICE.txt b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/NOTICE.txt new file mode 100644 index 00000000..6c645260 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/NOTICE.txt @@ -0,0 +1 @@ +This Apache 2.0 license NOTICE is not installed to any binary package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/ORIGIN new file mode 100644 index 00000000..bacf7e8a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/debian/changelog new file mode 100644 index 00000000..66b02295 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/debian/changelog @@ -0,0 +1,17 @@ +source-copyright-missing-notice-file-for-apache-license (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-missing-notice-file-for-apache-license + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +source-copyright-missing-notice-file-for-apache-license (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-missing-notice-file-for-apache-license + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/debian/control new file mode 100644 index 00000000..670db5d1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/debian/control @@ -0,0 +1,17 @@ +Source: source-copyright-missing-notice-file-for-apache-license +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: source-copyright-missing-notice-file-for-apache-license +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for no packages missing Apache NOTICE files + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/debian/copyright new file mode 100644 index 00000000..61e14af1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/debian/copyright @@ -0,0 +1,23 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Doohickey +Upstream-Contact: J. Random Hacker +Source: http://examples.com/doohickey/source/ + +Files: * +Copyright: © 2011 J. Random Hacker +License: Apache-2.0 + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + . + http://www.apache.org/licenses/LICENSE-2.0 + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + . + On Debian systems, the complete text of the Apache version 2.0 license + can be found in "/usr/share/common-licenses/Apache-2.0". + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/eval/hints new file mode 100644 index 00000000..0f6d607b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/eval/hints @@ -0,0 +1,3 @@ +source-copyright-missing-notice-file-for-apache-license (source): missing-notice-file-for-apache-license [subdir/NOTICE] +source-copyright-missing-notice-file-for-apache-license (source): missing-notice-file-for-apache-license [NOTICE] +source-copyright-missing-notice-file-for-apache-license (source): missing-notice-file-for-apache-license [NOTICE.txt] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/subdir/NOTICE b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/subdir/NOTICE new file mode 100644 index 00000000..6c645260 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/subdir/NOTICE @@ -0,0 +1 @@ +This Apache 2.0 license NOTICE is not installed to any binary package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/unrel/NOTICE b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/unrel/NOTICE new file mode 100644 index 00000000..bdc5a71e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/unrel/NOTICE @@ -0,0 +1 @@ +This file is not installed but is not a A_pache license NOTICE file anyway. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-doc-symlink/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-doc-symlink/ORIGIN new file mode 100644 index 00000000..fb41cccd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-doc-symlink/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/copyright-file-doc-symlink + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-doc-symlink/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-doc-symlink/debian/changelog new file mode 100644 index 00000000..db283c03 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-doc-symlink/debian/changelog @@ -0,0 +1,17 @@ +copyright-file-doc-symlink (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: copyright-file-doc-symlink + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +copyright-file-doc-symlink (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: copyright-file-doc-symlink + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-doc-symlink/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-doc-symlink/debian/control new file mode 100644 index 00000000..4397b3aa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-doc-symlink/debian/control @@ -0,0 +1,39 @@ +Source: copyright-file-doc-symlink +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no + +Package: copyright-file-doc-symlink +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test a symlinked /usr/share/doc + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-file-doc-symlink-helper +Architecture: all +Depends: copyright-file-doc-symlink (= 1.0), ${shlibs:Depends}, ${misc:Depends} +Description: Test a symlinked /usr/share/doc (symlink) + Helper package with a legitimate /usr/share/doc symlink. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-file-doc-symlink-weak +Architecture: all +Depends: copyright-file-doc-symlink, ${shlibs:Depends}, ${misc:Depends} +Description: Test a symlinked /usr/share/doc (weak) + Helper package with a /usr/share/doc symlink but an insufficiently + strong dependency. Lintian intentionally doesn't diagnose this. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-doc-symlink/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-doc-symlink/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-doc-symlink/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-doc-symlink/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-doc-symlink/debian/rules new file mode 100755 index 00000000..32f23a02 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-doc-symlink/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f + +pkg := copyright-file-doc-symlink + +%: + dh $@ + +override_dh_prep: + mkdir -p debian/$(pkg)-helper/usr/share/doc + ln -s $(pkg) debian/$(pkg)-helper/usr/share/doc/$(pkg)-helper + mkdir -p debian/$(pkg)-weak/usr/share/doc + ln -s $(pkg) debian/$(pkg)-weak/usr/share/doc/$(pkg)-weak diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-doc-symlink/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-doc-symlink/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-doc-symlink/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-doc-symlink/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-doc-symlink/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-doc-symlink/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-doc-symlink/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-doc-symlink/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-doc-symlink/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-doc-symlink/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-doc-symlink/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/ORIGIN new file mode 100644 index 00000000..2293bfd2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/copyright-file-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/changelog new file mode 100644 index 00000000..f92d4057 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/changelog @@ -0,0 +1,17 @@ +copyright-file-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: copyright-file-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +copyright-file-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: copyright-file-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/control new file mode 100644 index 00000000..5dd61e42 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/control @@ -0,0 +1,265 @@ +Source: copyright-file-general +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no + +Package: copyright-iso-8859-1 +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks for non-utf-8-encodings + Tests non-UTF-8 encodings. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-full-gpl +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks inclusion of GPL in full text + Tests the tag for including all of the GPL. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-full-lgpl +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks inclusion of LGPL in full text + Tests the tag for including all of the LGPL. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-full-gfdl +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks inclusion of GFDL in full text + Tests the tag for including all of the GFDL. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-full-apache-2 +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks inclusion of Apache 2.0 in full text + Tests the tag for including all of the Apache 2.0 license. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-misc-errors +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks various errors in copyright files + Tests various random errors in copyright files. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-symlink +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: just use a symlink for the copyright file + Tests the check for a symlinked copyright file. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-compressed +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: include a valid copyright file and compress it + Tests the check for a compressed copyright file. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-old-style +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: use an old-style directory structure + Tests a copyright file using an old-style directory structure. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-full-gpl-1 +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks inclusion of GPL1 + This should trigger errors as GPL1 is in the common license dir. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-full-gpl-2 +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks inclusion of GPL2 + This should trigger errors as GPL2 is in the common license dir. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-php +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks problematic PHP licenses + The PHP licenses are problematic for any software that isn't PHP. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-w3c +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks inclusion of the W3C license + The W3C license text claims to be "GPL compatible", which shouldn't + trigger warnings. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-no-errors +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: this should not emit any error + This copyright file should be fine. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-versionless +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks a valid versionless GPL reference + Refers to the GPL and truly doesn't mention any version. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-missing-perl-license-pointer +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks for perl packages not pointing to common-licenses + Packages under the "same terms as Perl itself" should reference a + license in common-licenses. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-missing-apache2-license-pointer +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks for apache2 packages not pointing to common-licenses + Packages under the apache2-license should reference a + license in common-licenses. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-poor-common-licenses +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks not referring to common licenses + Packages should refer to common licenses with full path if they + use a common license. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-crln +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: check for Windows newlines + This package should trigger a tag for having Windows newlines in + the copyright file. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-full-agpl-3 +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks inclusion of AGPL-3 in full text + This should not trigger a tag as AGPL-3 is not in common-licenses. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-old-fsf +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks use of old FSF address + This should trigger a tag for using old FSF address. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-old-fsf-2 +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks use of old FSF address + This should trigger a tag for using old FSF address. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-old-fsf-3 +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks use of old FSF address + This should trigger a tag for using old FSF address. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-crln.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-crln.copyright new file mode 100644 index 00000000..4e6ab0f1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-crln.copyright @@ -0,0 +1,35 @@ +This package was debianized by Tobias Toedter on +Thu, 20 Mar 2008 23:48:15 +0100 + +It was downloaded from + +Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?recall=184 + +Upstream Authors: + + Tobias Toedter + +Copyright: + + Copyright (C) 2008 Tobias Toedter + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, see . + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL-2'. + +The Debian packaging is Copyright 2008, Tobias Toedter +and is licensed under the GPL, see above. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-full-agpl-3.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-full-agpl-3.copyright new file mode 100644 index 00000000..dba13ed2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-full-agpl-3.copyright @@ -0,0 +1,661 @@ + GNU AFFERO GENERAL PUBLIC LICENSE + Version 3, 19 November 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +our General Public Licenses are intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software. + + A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public. + + The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version. + + An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU Affero General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Remote Network Interaction; Use with the GNU General Public License. + + Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the work with which it is combined will remain governed by version +3 of the GNU General Public License. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU Affero General Public License from time to time. Such new versions +will be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU Affero General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU Affero General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU Affero General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a "Source" link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements. + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU AGPL, see +. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-full-apache-2.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-full-apache-2.copyright new file mode 100644 index 00000000..d6456956 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-full-apache-2.copyright @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-full-gfdl.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-full-gfdl.copyright new file mode 100644 index 00000000..3a6d5a62 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-full-gfdl.copyright @@ -0,0 +1,396 @@ + GNU Free Documentation License + Version 1.2, November 2002 + + + Copyright (C) 2000,2001,2002 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + +0. PREAMBLE + +The purpose of this License is to make a manual, textbook, or other +functional and useful document "free" in the sense of freedom: to +assure everyone the effective freedom to copy and redistribute it, +with or without modifying it, either commercially or noncommercially. +Secondarily, this License preserves for the author and publisher a way +to get credit for their work, while not being considered responsible +for modifications made by others. + +This License is a kind of "copyleft", which means that derivative +works of the document must themselves be free in the same sense. It +complements the GNU General Public License, which is a copyleft +license designed for free software. + +We have designed this License in order to use it for manuals for free +software, because free software needs free documentation: a free +program should come with manuals providing the same freedoms that the +software does. But this License is not limited to software manuals; +it can be used for any textual work, regardless of subject matter or +whether it is published as a printed book. We recommend this License +principally for works whose purpose is instruction or reference. + + +1. APPLICABILITY AND DEFINITIONS + +This License applies to any manual or other work, in any medium, that +contains a notice placed by the copyright holder saying it can be +distributed under the terms of this License. Such a notice grants a +world-wide, royalty-free license, unlimited in duration, to use that +work under the conditions stated herein. The "Document", below, +refers to any such manual or work. Any member of the public is a +licensee, and is addressed as "you". You accept the license if you +copy, modify or distribute the work in a way requiring permission +under copyright law. + +A "Modified Version" of the Document means any work containing the +Document or a portion of it, either copied verbatim, or with +modifications and/or translated into another language. + +A "Secondary Section" is a named appendix or a front-matter section of +the Document that deals exclusively with the relationship of the +publishers or authors of the Document to the Document's overall subject +(or to related matters) and contains nothing that could fall directly +within that overall subject. (Thus, if the Document is in part a +textbook of mathematics, a Secondary Section may not explain any +mathematics.) The relationship could be a matter of historical +connection with the subject or with related matters, or of legal, +commercial, philosophical, ethical or political position regarding +them. + +The "Invariant Sections" are certain Secondary Sections whose titles +are designated, as being those of Invariant Sections, in the notice +that says that the Document is released under this License. If a +section does not fit the above definition of Secondary then it is not +allowed to be designated as Invariant. The Document may contain zero +Invariant Sections. If the Document does not identify any Invariant +Sections then there are none. + +The "Cover Texts" are certain short passages of text that are listed, +as Front-Cover Texts or Back-Cover Texts, in the notice that says that +the Document is released under this License. A Front-Cover Text may +be at most 5 words, and a Back-Cover Text may be at most 25 words. + +A "Transparent" copy of the Document means a machine-readable copy, +represented in a format whose specification is available to the +general public, that is suitable for revising the document +straightforwardly with generic text editors or (for images composed of +pixels) generic paint programs or (for drawings) some widely available +drawing editor, and that is suitable for input to text formatters or +for automatic translation to a variety of formats suitable for input +to text formatters. A copy made in an otherwise Transparent file +format whose markup, or absence of markup, has been arranged to thwart +or discourage subsequent modification by readers is not Transparent. +An image format is not Transparent if used for any substantial amount +of text. A copy that is not "Transparent" is called "Opaque". + +Examples of suitable formats for Transparent copies include plain +ASCII without markup, Texinfo input format, LaTeX input format, SGML +or XML using a publicly available DTD, and standard-conforming simple +HTML, PostScript or PDF designed for human modification. Examples of +transparent image formats include PNG, XCF and JPG. Opaque formats +include proprietary formats that can be read and edited only by +proprietary word processors, SGML or XML for which the DTD and/or +processing tools are not generally available, and the +machine-generated HTML, PostScript or PDF produced by some word +processors for output purposes only. + +The "Title Page" means, for a printed book, the title page itself, +plus such following pages as are needed to hold, legibly, the material +this License requires to appear in the title page. For works in +formats which do not have any title page as such, "Title Page" means +the text near the most prominent appearance of the work's title, +preceding the beginning of the body of the text. + +A section "Entitled XYZ" means a named subunit of the Document whose +title either is precisely XYZ or contains XYZ in parentheses following +text that translates XYZ in another language. (Here XYZ stands for a +specific section name mentioned below, such as "Acknowledgements", +"Dedications", "Endorsements", or "History".) To "Preserve the Title" +of such a section when you modify the Document means that it remains a +section "Entitled XYZ" according to this definition. + +The Document may include Warranty Disclaimers next to the notice which +states that this License applies to the Document. These Warranty +Disclaimers are considered to be included by reference in this +License, but only as regards disclaiming warranties: any other +implication that these Warranty Disclaimers may have is void and has +no effect on the meaning of this License. + + +2. VERBATIM COPYING + +You may copy and distribute the Document in any medium, either +commercially or noncommercially, provided that this License, the +copyright notices, and the license notice saying this License applies +to the Document are reproduced in all copies, and that you add no other +conditions whatsoever to those of this License. You may not use +technical measures to obstruct or control the reading or further +copying of the copies you make or distribute. However, you may accept +compensation in exchange for copies. If you distribute a large enough +number of copies you must also follow the conditions in section 3. + +You may also lend copies, under the same conditions stated above, and +you may publicly display copies. + + +3. COPYING IN QUANTITY + +If you publish printed copies (or copies in media that commonly have +printed covers) of the Document, numbering more than 100, and the +Document's license notice requires Cover Texts, you must enclose the +copies in covers that carry, clearly and legibly, all these Cover +Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on +the back cover. Both covers must also clearly and legibly identify +you as the publisher of these copies. The front cover must present +the full title with all words of the title equally prominent and +visible. You may add other material on the covers in addition. +Copying with changes limited to the covers, as long as they preserve +the title of the Document and satisfy these conditions, can be treated +as verbatim copying in other respects. + +If the required texts for either cover are too voluminous to fit +legibly, you should put the first ones listed (as many as fit +reasonably) on the actual cover, and continue the rest onto adjacent +pages. + +If you publish or distribute Opaque copies of the Document numbering +more than 100, you must either include a machine-readable Transparent +copy along with each Opaque copy, or state in or with each Opaque copy +a computer-network location from which the general network-using +public has access to download using public-standard network protocols +a complete Transparent copy of the Document, free of added material. +If you use the latter option, you must take reasonably prudent steps, +when you begin distribution of Opaque copies in quantity, to ensure +that this Transparent copy will remain thus accessible at the stated +location until at least one year after the last time you distribute an +Opaque copy (directly or through your agents or retailers) of that +edition to the public. + +It is requested, but not required, that you contact the authors of the +Document well before redistributing any large number of copies, to give +them a chance to provide you with an updated version of the Document. + + +4. MODIFICATIONS + +You may copy and distribute a Modified Version of the Document under +the conditions of sections 2 and 3 above, provided that you release +the Modified Version under precisely this License, with the Modified +Version filling the role of the Document, thus licensing distribution +and modification of the Modified Version to whoever possesses a copy +of it. In addition, you must do these things in the Modified Version: + +A. Use in the Title Page (and on the covers, if any) a title distinct + from that of the Document, and from those of previous versions + (which should, if there were any, be listed in the History section + of the Document). You may use the same title as a previous version + if the original publisher of that version gives permission. +B. List on the Title Page, as authors, one or more persons or entities + responsible for authorship of the modifications in the Modified + Version, together with at least five of the principal authors of the + Document (all of its principal authors, if it has fewer than five), + unless they release you from this requirement. +C. State on the Title page the name of the publisher of the + Modified Version, as the publisher. +D. Preserve all the copyright notices of the Document. +E. Add an appropriate copyright notice for your modifications + adjacent to the other copyright notices. +F. Include, immediately after the copyright notices, a license notice + giving the public permission to use the Modified Version under the + terms of this License, in the form shown in the Addendum below. +G. Preserve in that license notice the full lists of Invariant Sections + and required Cover Texts given in the Document's license notice. +H. Include an unaltered copy of this License. +I. Preserve the section Entitled "History", Preserve its Title, and add + to it an item stating at least the title, year, new authors, and + publisher of the Modified Version as given on the Title Page. If + there is no section Entitled "History" in the Document, create one + stating the title, year, authors, and publisher of the Document as + given on its Title Page, then add an item describing the Modified + Version as stated in the previous sentence. +J. Preserve the network location, if any, given in the Document for + public access to a Transparent copy of the Document, and likewise + the network locations given in the Document for previous versions + it was based on. These may be placed in the "History" section. + You may omit a network location for a work that was published at + least four years before the Document itself, or if the original + publisher of the version it refers to gives permission. +K. For any section Entitled "Acknowledgements" or "Dedications", + Preserve the Title of the section, and preserve in the section all + the substance and tone of each of the contributor acknowledgements + and/or dedications given therein. +L. Preserve all the Invariant Sections of the Document, + unaltered in their text and in their titles. Section numbers + or the equivalent are not considered part of the section titles. +M. Delete any section Entitled "Endorsements". Such a section + may not be included in the Modified Version. +N. Do not retitle any existing section to be Entitled "Endorsements" + or to conflict in title with any Invariant Section. +O. Preserve any Warranty Disclaimers. + +If the Modified Version includes new front-matter sections or +appendices that qualify as Secondary Sections and contain no material +copied from the Document, you may at your option designate some or all +of these sections as invariant. To do this, add their titles to the +list of Invariant Sections in the Modified Version's license notice. +These titles must be distinct from any other section titles. + +You may add a section Entitled "Endorsements", provided it contains +nothing but endorsements of your Modified Version by various +parties--for example, statements of peer review or that the text has +been approved by an organization as the authoritative definition of a +standard. + +You may add a passage of up to five words as a Front-Cover Text, and a +passage of up to 25 words as a Back-Cover Text, to the end of the list +of Cover Texts in the Modified Version. Only one passage of +Front-Cover Text and one of Back-Cover Text may be added by (or +through arrangements made by) any one entity. If the Document already +includes a cover text for the same cover, previously added by you or +by arrangement made by the same entity you are acting on behalf of, +you may not add another; but you may replace the old one, on explicit +permission from the previous publisher that added the old one. + +The author(s) and publisher(s) of the Document do not by this License +give permission to use their names for publicity for or to assert or +imply endorsement of any Modified Version. + + +5. COMBINING DOCUMENTS + +You may combine the Document with other documents released under this +License, under the terms defined in section 4 above for modified +versions, provided that you include in the combination all of the +Invariant Sections of all of the original documents, unmodified, and +list them all as Invariant Sections of your combined work in its +license notice, and that you preserve all their Warranty Disclaimers. + +The combined work need only contain one copy of this License, and +multiple identical Invariant Sections may be replaced with a single +copy. If there are multiple Invariant Sections with the same name but +different contents, make the title of each such section unique by +adding at the end of it, in parentheses, the name of the original +author or publisher of that section if known, or else a unique number. +Make the same adjustment to the section titles in the list of +Invariant Sections in the license notice of the combined work. + +In the combination, you must combine any sections Entitled "History" +in the various original documents, forming one section Entitled +"History"; likewise combine any sections Entitled "Acknowledgements", +and any sections Entitled "Dedications". You must delete all sections +Entitled "Endorsements". + + +6. COLLECTIONS OF DOCUMENTS + +You may make a collection consisting of the Document and other documents +released under this License, and replace the individual copies of this +License in the various documents with a single copy that is included in +the collection, provided that you follow the rules of this License for +verbatim copying of each of the documents in all other respects. + +You may extract a single document from such a collection, and distribute +it individually under this License, provided you insert a copy of this +License into the extracted document, and follow this License in all +other respects regarding verbatim copying of that document. + + +7. AGGREGATION WITH INDEPENDENT WORKS + +A compilation of the Document or its derivatives with other separate +and independent documents or works, in or on a volume of a storage or +distribution medium, is called an "aggregate" if the copyright +resulting from the compilation is not used to limit the legal rights +of the compilation's users beyond what the individual works permit. +When the Document is included in an aggregate, this License does not +apply to the other works in the aggregate which are not themselves +derivative works of the Document. + +If the Cover Text requirement of section 3 is applicable to these +copies of the Document, then if the Document is less than one half of +the entire aggregate, the Document's Cover Texts may be placed on +covers that bracket the Document within the aggregate, or the +electronic equivalent of covers if the Document is in electronic form. +Otherwise they must appear on printed covers that bracket the whole +aggregate. + + +8. TRANSLATION + +Translation is considered a kind of modification, so you may +distribute translations of the Document under the terms of section 4. +Replacing Invariant Sections with translations requires special +permission from their copyright holders, but you may include +translations of some or all Invariant Sections in addition to the +original versions of these Invariant Sections. You may include a +translation of this License, and all the license notices in the +Document, and any Warranty Disclaimers, provided that you also include +the original English version of this License and the original versions +of those notices and disclaimers. In case of a disagreement between +the translation and the original version of this License or a notice +or disclaimer, the original version will prevail. + +If a section in the Document is Entitled "Acknowledgements", +"Dedications", or "History", the requirement (section 4) to Preserve +its Title (section 1) will typically require changing the actual +title. + + +9. TERMINATION + +You may not copy, modify, sublicense, or distribute the Document except +as expressly provided for under this License. Any other attempt to +copy, modify, sublicense or distribute the Document is void, and will +automatically terminate your rights under this License. However, +parties who have received copies, or rights, from you under this +License will not have their licenses terminated so long as such +parties remain in full compliance. + + +10. FUTURE REVISIONS OF THIS LICENSE + +The Free Software Foundation may publish new, revised versions +of the GNU Free Documentation License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. See +http://www.gnu.org/copyleft/. + +Each version of the License is given a distinguishing version number. +If the Document specifies that a particular numbered version of this +License "or any later version" applies to it, you have the option of +following the terms and conditions either of that specified version or +of any later version that has been published (not as a draft) by the +Free Software Foundation. If the Document does not specify a version +number of this License, you may choose any version ever published (not +as a draft) by the Free Software Foundation. + + +ADDENDUM: How to use this License for your documents + +To use this License in a document you have written, include a copy of +the License in the document and put the following copyright and +license notices just after the title page: + + Copyright (c) YEAR YOUR NAME. + Permission is granted to copy, distribute and/or modify this document + under the terms of the GNU Free Documentation License, Version 1.2 + or any later version published by the Free Software Foundation; + with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. + A copy of the license is included in the section entitled "GNU + Free Documentation License". + +If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts, +replace the "with...Texts." line with this: + + with the Invariant Sections being LIST THEIR TITLES, with the + Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST. + +If you have Invariant Sections without Cover Texts, or some other +combination of the three, merge those two alternatives to suit the +situation. + +If your document contains nontrivial examples of program code, we +recommend releasing these examples in parallel under your choice of +free software license, such as the GNU General Public License, +to permit their use in free software. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-full-gpl-1.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-full-gpl-1.copyright new file mode 100644 index 00000000..d78fa1c7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-full-gpl-1.copyright @@ -0,0 +1,203 @@ +A copy of the GNU General Public License is available on +the World Wide Web at `http://www.gnu.org/licenses/old-licenses/gpl-1.0.txt'. + + THE COPYRIGHT HOLDER DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, + INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO + EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR + CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, + DATA, PROFITS, QPA OR GPA, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE + OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + PERFORMANCE OF THIS SOFTWARE. + + + GNU GENERAL PUBLIC LICENSE + Version 1, February 1989 + + Copyright (C) 1989 Free Software Foundation, Inc. + + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The license agreements of most software companies try to keep users +at the mercy of those companies. By contrast, our General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. The +General Public License applies to the Free Software Foundation's +software and to any other program whose authors commit to using it. +You can use it for your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Specifically, the General Public License is designed to make +sure that you have the freedom to give away or sell copies of free +software, that you receive source code or can get it if you want it, +that you can change the software or use pieces of it in new free +programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of a such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must tell them their rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any program or other work which +contains a notice placed by the copyright holder saying it may be +distributed under the terms of this General Public License. The +"Program", below, refers to any such program or work, and a "work based +on the Program" means either the Program or any work containing the +Program or a portion of it, either verbatim or with modifications. Each +licensee is addressed as "you". + + 1. You may copy and distribute verbatim copies of the Program's source +code as you receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice and +disclaimer of warranty; keep intact all the notices that refer to this +General Public License and to the absence of any warranty; and give any +other recipients of the Program a copy of this General Public License +along with the Program. You may charge a fee for the physical act of +transferring a copy. + + 2. You may modify your copy or copies of the Program or any portion of +it, and copy and distribute such modifications under the terms of Paragraph +1 above, provided that you also do the following: + + a) cause the modified files to carry prominent notices stating that + you changed the files and the date of any change; and + + b) cause the whole of any work that you distribute or publish, that + in whole or in part contains the Program or any part thereof, either + with or without modifications, to be licensed at no charge to all + third parties under the terms of this General Public License (except + that you may choose to grant warranty protection to some or all + third parties, at your option). + + c) If the modified program normally reads commands interactively when + run, you must cause it, when started running for such interactive use + in the simplest and most usual way, to print or display an + announcement including an appropriate copyright notice and a notice + that there is no warranty (or else, saying that you provide a + warranty) and that users may redistribute the program under these + conditions, and telling the user how to view a copy of this General + Public License. + + d) You may charge a fee for the physical act of transferring a + copy, and you may at your option offer warranty protection in + exchange for a fee. + +Mere aggregation of another independent work with the Program (or its +derivative) on a volume of a storage or distribution medium does not bring +the other work under the scope of these terms. + + 3. You may copy and distribute the Program (or a portion or derivative of +it, under Paragraph 2) in object code or executable form under the terms of +Paragraphs 1 and 2 above provided that you also do one of the following: + + a) accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of + Paragraphs 1 and 2 above; or, + + b) accompany it with a written offer, valid for at least three + years, to give any third party free (except for a nominal charge + for the cost of distribution) a complete machine-readable copy of the + corresponding source code, to be distributed under the terms of + Paragraphs 1 and 2 above; or, + + c) accompany it with the information you received as to where the + corresponding source code may be obtained. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form alone.) + +Source code for a work means the preferred form of the work for making +modifications to it. For an executable file, complete source code means +all the source code for all modules it contains; but, as a special +exception, it need not include source code for modules which are standard +libraries that accompany the operating system on which the executable +file runs, or for standard header files or definitions files that +accompany that operating system. + + 4. You may not copy, modify, sublicense, distribute or transfer the +Program except as expressly provided under this General Public License. +Any attempt otherwise to copy, modify, sublicense, distribute or transfer +the Program is void, and will automatically terminate your rights to use +the Program under this License. However, parties who have received +copies, or rights to use copies, from you under this General Public +License will not have their licenses terminated so long as such parties +remain in full compliance. + + 5. By copying, distributing or modifying the Program (or any work based +on the Program) you indicate your acceptance of this license to do so, +and all its terms and conditions. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the original +licensor to copy, distribute or modify the Program subject to these +terms and conditions. You may not impose any further restrictions on the +recipients' exercise of the rights granted herein. + + 7. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of the license which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +the license, you may choose any version ever published by the Free Software +Foundation. + + 8. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-full-gpl-2.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-full-gpl-2.copyright new file mode 100644 index 00000000..d31f4295 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-full-gpl-2.copyright @@ -0,0 +1,340 @@ +A copy of the GNU General Public License is available on +the World Wide Web at `http://www.gnu.org/licenses/gpl-2.0.txt'. + + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, see . + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-full-gpl.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-full-gpl.copyright new file mode 100644 index 00000000..94a9ed02 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-full-gpl.copyright @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-full-lgpl.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-full-lgpl.copyright new file mode 100644 index 00000000..f20a0d9d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-full-lgpl.copyright @@ -0,0 +1,169 @@ +A copy of the GNU Lesser General Public License is available on +the World Wide Web at `http://www.gnu.org/licenses/lgpl-3.0.txt'. + + + GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. + + 0. Additional Definitions. + + As used herein, "this License" refers to version 3 of the GNU Lesser +General Public License, and the "GNU GPL" refers to version 3 of the GNU +General Public License. + + "The Library" refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. + + An "Application" is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. + + A "Combined Work" is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the "Linked +Version". + + The "Minimal Corresponding Source" for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. + + The "Corresponding Application Code" for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. + + 1. Exception to Section 3 of the GNU GPL. + + You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. + + 2. Conveying Modified Versions. + + If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: + + a) under this License, provided that you make a good faith effort to + ensure that, in the event an Application does not supply the + function or data, the facility still operates, and performs + whatever part of its purpose remains meaningful, or + + b) under the GNU GPL, with none of the additional permissions of + this License applicable to that copy. + + 3. Object Code Incorporating Material from Library Header Files. + + The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: + + a) Give prominent notice with each copy of the object code that the + Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the object code with a copy of the GNU GPL and this license + document. + + 4. Combined Works. + + You may convey a Combined Work under terms of your choice that, +taken together, effectively do not restrict modification of the +portions of the Library contained in the Combined Work and reverse +engineering for debugging such modifications, if you also do each of +the following: + + a) Give prominent notice with each copy of the Combined Work that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the Combined Work with a copy of the GNU GPL and this license + document. + + c) For a Combined Work that displays copyright notices during + execution, include the copyright notice for the Library among + these notices, as well as a reference directing the user to the + copies of the GNU GPL and this license document. + + d) Do one of the following: + + 0) Convey the Minimal Corresponding Source under the terms of this + License, and the Corresponding Application Code in a form + suitable for, and under terms that permit, the user to + recombine or relink the Application with a modified version of + the Linked Version to produce a modified Combined Work, in the + manner specified by section 6 of the GNU GPL for conveying + Corresponding Source. + + 1) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (a) uses at run time + a copy of the Library already present on the user's computer + system, and (b) will operate properly with a modified version + of the Library that is interface-compatible with the Linked + Version. + + e) Provide Installation Information, but only if you would otherwise + be required to provide such information under section 6 of the + GNU GPL, and only to the extent that such information is + necessary to install and execute a modified version of the + Combined Work produced by recombining or relinking the + Application with a modified version of the Linked Version. (If + you use option 4d0, the Installation Information must accompany + the Minimal Corresponding Source and Corresponding Application + Code. If you use option 4d1, you must provide the Installation + Information in the manner specified by section 6 of the GNU GPL + for conveying Corresponding Source.) + + 5. Combined Libraries. + + You may place library facilities that are a work based on the +Library side by side in a single library together with other library +facilities that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: + + a) Accompany the combined library with a copy of the same work based + on the Library, uncombined with any other library facilities, + conveyed under the terms of this License. + + b) Give prominent notice with the combined library that part of it + is a work based on the Library, and explaining where to find the + accompanying uncombined form of the same work. + + 6. Revised Versions of the GNU Lesser General Public License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU Lesser General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. + + Each version is given a distinguishing version number. If the +Library as you received it specifies that a certain numbered version +of the GNU Lesser General Public License "or any later version" +applies to it, you have the option of following the terms and +conditions either of that published version or of any later version +published by the Free Software Foundation. If the Library as you +received it does not specify a version number of the GNU Lesser +General Public License, you may choose any version of the GNU Lesser +General Public License ever published by the Free Software Foundation. + + If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the +Library. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-iso-8859-1.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-iso-8859-1.copyright new file mode 100644 index 00000000..78a493ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-iso-8859-1.copyright @@ -0,0 +1,3 @@ +Copyright (C) 2008 Author + +uerst rgerlich, falls nicht UTF-8 benutzt wrde. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-misc-errors.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-misc-errors.copyright new file mode 100644 index 00000000..dceee0e0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-misc-errors.copyright @@ -0,0 +1,22 @@ +This copyright file contains several errors. + +Downloaded from + +You should not use the template for +Upstream Author(s): Tobias +Copyright 2008 Tobias + +The path /usr/share/common-licences/GPL contains a spelling error. + +It's wrong to reference a compressed license, like this: +/usr/share/common-licenses/BSD.gz + +This path /usr/share/doc/copyright is obsolete. + +The path /usr/share/common-licenses/GPL2 is missing a hyphen. + +This copyright info was automatically extracted from the perl module. +It may not be accurate, so you better check the module sources +if you don't want to get into legal troubles. + +References to /usr/share/common-licenses/BSD are deprecated. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-missing-apache2-license-pointer.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-missing-apache2-license-pointer.copyright new file mode 100644 index 00000000..e71e0f0a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-missing-apache2-license-pointer.copyright @@ -0,0 +1,25 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Midnight Commander +Source: http://www.midnight-commander.org/downloads +Copyright: 1996-2013 Free Software Foundation +License: Apache-2.0 + +Files: * +Copyright: 2004,2007 Oren Ben-Kiki +License: Apache-2.0 + +License: Apache-2.0 + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + . + http://www.apache.org/licenses/LICENSE-2.0 + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-missing-perl-license-pointer.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-missing-perl-license-pointer.copyright new file mode 100644 index 00000000..97f8cda1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-missing-perl-license-pointer.copyright @@ -0,0 +1,5 @@ +This copyright file is for libmythical-perl. The module is licenses under +the same terms as Perl itself but we've forgotten to add a reference to the +copy of the Perl license in common-licenses. + +Copyright 2010 The Mythical Perl Module Team diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-no-errors.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-no-errors.copyright new file mode 100644 index 00000000..f9845c4a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-no-errors.copyright @@ -0,0 +1,35 @@ +This package was debianized by Tobias Toedter on +Thu, 20 Mar 2008 23:48:15 +0100 + +It was downloaded from + +Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?recall=184 + +Upstream Authors: + + Tobias Toedter + +Copyright: + + Copyright (C) 2008 Tobias Toedter + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, see . + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL-2'. + +The Debian packaging is Copyright 2008, Tobias Toedter +and is licensed under the GPL, see above. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-old-fsf-2.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-old-fsf-2.copyright new file mode 100644 index 00000000..c91b947e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-old-fsf-2.copyright @@ -0,0 +1,19 @@ +To the extend this is copyrightable (if at all), it is: + Copyright 2012 Niels Thykier . + +This program is free software; you may redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +This is distributed in the hope that it will be useful, but without +any warranty; without even the implied warranty of merchantability or +fitness for a particular purpose. See the GNU General Public License +for more details. + +A copy of the GNU General Public License version 2 is available as +/usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution +or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. +You can also obtain it by writing to the Free Software Foundation, Inc., +59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-old-fsf-3.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-old-fsf-3.copyright new file mode 100644 index 00000000..d34425b3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-old-fsf-3.copyright @@ -0,0 +1,19 @@ +To the extend this is copyrightable (if at all), it is: + Copyright 2012 Niels Thykier . + +This program is free software; you may redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +This is distributed in the hope that it will be useful, but without +any warranty; without even the implied warranty of merchantability or +fitness for a particular purpose. See the GNU General Public License +for more details. + +A copy of the GNU General Public License version 2 is available as +/usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution +or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. +You can also obtain it by writing to the Free Software Foundation, Inc., +51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-old-fsf.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-old-fsf.copyright new file mode 100644 index 00000000..00946fc5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-old-fsf.copyright @@ -0,0 +1,19 @@ +To the extend this is copyrightable (if at all), it is: + Copyright 2012 Niels Thykier . + +This program is free software; you may redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +This is distributed in the hope that it will be useful, but without +any warranty; without even the implied warranty of merchantability or +fitness for a particular purpose. See the GNU General Public License +for more details. + +A copy of the GNU General Public License version 2 is available as +/usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution +or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. +You can also obtain it by writing to the Free Software Foundation, Inc., +Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-php.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-php.copyright new file mode 100644 index 00000000..338cf096 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-php.copyright @@ -0,0 +1,151 @@ +A copyright file referring to two problematic PHP licenses. + +Copyright 2008 Some Guy. + +-------------------------------------------------------------------- + The PHP License, version 2.02 +Copyright (c) 1999 - 2002 The PHP Group. All rights reserved. +-------------------------------------------------------------------- + +Redistribution and use in source and binary forms, with or without +modification, is permitted provided that the following conditions +are met: + + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + 3. The name "PHP" must not be used to endorse or promote products + derived from this software without prior permission from the + PHP Group. This does not apply to add-on libraries or tools + that work in conjunction with PHP. In such a case the PHP + name may be used to indicate that the product supports PHP. + + 4. The PHP Group may publish revised and/or new versions of the + license from time to time. Each version will be given a + distinguishing version number. + Once covered code has been published under a particular version + of the license, you may always continue to use it under the + terms of that version. You may also choose to use such covered + code under the terms of any subsequent version of the license + published by the PHP Group. No one other than the PHP Group has + the right to modify the terms applicable to covered code created + under this License. + + 5. Redistributions of any form whatsoever must retain the following + acknowledgment: + "This product includes PHP, freely available from + http://www.php.net/". + + 6. The software incorporates the Zend Engine, a product of Zend + Technologies, Ltd. ("Zend"). The Zend Engine is licensed to the + PHP Association (pursuant to a grant from Zend that can be + found at http://www.php.net/license/ZendGrant/) for + distribution to you under this license agreement, only as a + part of PHP. In the event that you separate the Zend Engine + (or any portion thereof) from the rest of the software, or + modify the Zend Engine, or any portion thereof, your use of the + separated or modified Zend Engine software shall not be governed + by this license, and instead shall be governed by the license + set forth at http://www.zend.com/license/ZendLicense/. + + + +THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND +ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A +PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP +DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED +OF THE POSSIBILITY OF SUCH DAMAGE. + +-------------------------------------------------------------------- + +This software consists of voluntary contributions made by many +individuals on behalf of the PHP Group. + +The PHP Group can be contacted via Email at group@php.net. + +For more information on the PHP Group and the PHP project, +please see . + + + + +-------------------------------------------------------------------- + The PHP License, version 3.0 +Copyright (c) 1999 - 2003 The PHP Group. All rights reserved. +-------------------------------------------------------------------- + +Redistribution and use in source and binary forms, with or without +modification, is permitted provided that the following conditions +are met: + + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + + 3. The name "PHP" must not be used to endorse or promote products + derived from this software without prior written permission. For + written permission, please contact group@php.net. + + 4. Products derived from this software may not be called "PHP", nor + may "PHP" appear in their name, without prior written permission + from group@php.net. You may indicate that your software works in + conjunction with PHP by saying "Foo for PHP" instead of calling + it "PHP Foo" or "phpfoo" + + 5. The PHP Group may publish revised and/or new versions of the + license from time to time. Each version will be given a + distinguishing version number. + Once covered code has been published under a particular version + of the license, you may always continue to use it under the terms + of that version. You may also choose to use such covered code + under the terms of any subsequent version of the license + published by the PHP Group. No one other than the PHP Group has + the right to modify the terms applicable to covered code created + under this License. + + 6. Redistributions of any form whatsoever must retain the following + acknowledgment: + "This product includes PHP, freely available from + ". + +THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND +ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A +PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP +DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED +OF THE POSSIBILITY OF SUCH DAMAGE. + +-------------------------------------------------------------------- + +This software consists of voluntary contributions made by many +individuals on behalf of the PHP Group. + +The PHP Group can be contacted via Email at group@php.net. + +For more information on the PHP Group and the PHP project, +please see . + +This product includes the Zend Engine, freely available at +. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-poor-common-licenses.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-poor-common-licenses.copyright new file mode 100644 index 00000000..5c75e483 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-poor-common-licenses.copyright @@ -0,0 +1,23 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see + +The full text of this license is in common-licenses/GPL-3 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-versionless.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-versionless.copyright new file mode 100644 index 00000000..c08f5017 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-versionless.copyright @@ -0,0 +1,2 @@ +This package is copyright (c) 2009, Some Name and is +licensed under the GPL, see `/usr/share/common-licenses/GPL'. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-w3c.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-w3c.copyright new file mode 100644 index 00000000..95c3f40e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/copyright-w3c.copyright @@ -0,0 +1,95 @@ +This package was debianized by J Random Developer on +Tue, 8 Nov 2005 00:27:44 +0100. + +It was downloaded from http://search.cpan.org/dist/W3C-LinkChecker/ + +Copyright Holder: the software was developed by following people for the + W3C: + The W3C Link Checker Team + +License: according to the README file, the source code of the W3C linkchecker +is available under the terms of the W3C Software Copyright (compatible with +the GNU GPL), which can be found at + + http://www.w3.org/Consortium/Legal/copyright-software + +and is reproduced below: + + + W3C � SOFTWARE NOTICE AND LICENSE + + [1]http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 + + This work (and included software, documentation such as READMEs, or + other related items) is being provided by the copyright holders under + the following license. By obtaining, using and/or copying this work, + you (the licensee) agree that you have read, understood, and will + comply with the following terms and conditions. + + Permission to copy, modify, and distribute this software and its + documentation, with or without modification, for any purpose and + without fee or royalty is hereby granted, provided that you include + the following on ALL copies of the software and documentation or + portions thereof, including modifications: + 1. The full text of this NOTICE in a location viewable to users of + the redistributed or derivative work. + 2. Any pre-existing intellectual property disclaimers, notices, or + terms and conditions. If none exist, the [2]W3C Software Short + Notice should be included (hypertext is preferred, text is + permitted) within the body of any redistributed or derivative + code. + 3. Notice of any changes or modifications to the files, including the + date changes were made. (We recommend you provide URIs to the + location from which the code is derived.) + + THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT + HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, + INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS + FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR + DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, + TRADEMARKS OR OTHER RIGHTS. + + COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL + OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR + DOCUMENTATION. + + The name and trademarks of copyright holders may NOT be used in + advertising or publicity pertaining to the software without specific, + written prior permission. Title to copyright in this software and any + associated documentation will at all times remain with copyright + holders. + + ____________________________________ + + This formulation of W3C's notice and license became active on December + 31 2002. This version removes the copyright ownership notice such that + this license can be used with materials other than those owned by the + W3C, reflects that ERCIM is now a host of the W3C, includes references + to this specific dated version of the license, and removes the + ambiguous grant of "use". Otherwise, this version is the same as the + [3]previous version and is written so as to preserve the [4]Free + Software Foundation's assessment of GPL compatibility and [5]OSI's + certification under the [6]Open Source Definition. Please see our + [7]Copyright FAQ for common questions about using materials from our + site, including specific terms and conditions for packages like + libwww, Amaya, and Jigsaw. Other questions about this notice can be + directed to [8]site-policy@w3.org. + + + Joseph Reagle <[9]site-policy@w3.org> + + Last revised $Id: copyright-software-20021231.html,v 1.11 2004/07/06 + 16:02:49 slesch Exp $ + +References + + 1. http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 + 2. http://www.w3.org/Consortium/Legal/2002/copyright-software-short-notice-20021231.html + 3. http://www.w3.org/Consortium/Legal/copyright-software-19980720 + 4. http://www.gnu.org/philosophy/license-list.html#GPLCompatibleLicenses + 5. http://www.opensource.org/licenses/W3C.php + 6. http://www.opensource.org/docs/definition.php + 7. http://www.w3.org/Consortium/Legal/IPR-FAQ + 8. mailto:site-policy@w3.org + 9. mailto:site-policy@w3.org + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/rules new file mode 100755 index 00000000..50ff78fa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/rules @@ -0,0 +1,14 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_installdocs: + dh_installdocs + install -m 644 debian/copyright-no-errors.copyright debian/copyright-symlink/usr/share/doc/copyright-symlink/symlink + rm debian/copyright-symlink/usr/share/doc/copyright-symlink/copyright + ln -s symlink debian/copyright-symlink/usr/share/doc/copyright-symlink/copyright + gzip -n -9 debian/copyright-compressed/usr/share/doc/copyright-compressed/copyright + mkdir -p debian/copyright-old-style/usr/doc/copyright + # This should (now) trigger a no-copyright-file (as there is no copyright file + # in the right location). + mv debian/copyright-old-style/usr/share/doc/copyright-old-style/copyright debian/copyright-old-style/usr/doc/copyright/copyright-old-style diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/eval/hints new file mode 100644 index 00000000..6ef1fd07 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-general/eval/hints @@ -0,0 +1,30 @@ +copyright-symlink (binary): copyright-file-is-symlink [usr/share/doc/copyright-symlink/copyright] +copyright-poor-common-licenses (binary): copyright-not-using-common-license-for-gpl +copyright-poor-common-licenses (binary): copyright-does-not-refer-to-common-license-file /GPL-3 +copyright-old-style (binary): no-copyright-file +copyright-old-fsf-2 (binary): old-fsf-address-in-copyright-file +copyright-old-fsf-3 (binary): old-fsf-address-in-copyright-file +copyright-old-fsf (binary): old-fsf-address-in-copyright-file +copyright-missing-perl-license-pointer (binary): copyright-file-lacks-pointer-to-perl-license +copyright-missing-apache2-license-pointer (binary): copyright-not-using-common-license-for-apache2 +copyright-misc-errors (binary): helper-templates-in-copyright +copyright-misc-errors (binary): copyright-refers-to-old-directory +copyright-misc-errors (binary): copyright-refers-to-nonexistent-license-file usr/share/common-licenses/GPL2 +copyright-misc-errors (binary): copyright-refers-to-incorrect-directory usr/share/common-licences +copyright-misc-errors (binary): copyright-refers-to-deprecated-bsd-license-file +copyright-misc-errors (binary): copyright-refers-to-compressed-license usr/share/common-licenses/BSD.gz +copyright-misc-errors (binary): copyright-has-url-from-dh_make-boilerplate +copyright-misc-errors (binary): copyright-contains-automatically-extracted-boilerplate +copyright-full-lgpl (binary): copyright-not-using-common-license-for-lgpl +copyright-full-gpl-2 (binary): copyright-not-using-common-license-for-lgpl +copyright-full-gpl-2 (binary): copyright-file-contains-full-gpl-license +copyright-full-gpl-1 (binary): copyright-not-using-common-license-for-gpl +copyright-full-gpl (binary): copyright-not-using-common-license-for-gpl +copyright-full-gpl (binary): copyright-file-contains-full-gpl-license +copyright-full-gfdl (binary): copyright-not-using-common-license-for-gfdl +copyright-full-gfdl (binary): copyright-file-contains-full-gfdl-license +copyright-full-apache-2 (binary): copyright-without-copyright-notice +copyright-full-apache-2 (binary): copyright-not-using-common-license-for-apache2 +copyright-full-apache-2 (binary): copyright-file-contains-full-apache-2-license +copyright-crln (binary): copyright-has-crs +copyright-compressed (binary): copyright-file-compressed [usr/share/doc/copyright-compressed/copyright.gz] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-license-symlink/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-license-symlink/ORIGIN new file mode 100644 index 00000000..c2c6b883 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-license-symlink/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/copyright-file-license-symlink + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-license-symlink/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-license-symlink/debian/changelog new file mode 100644 index 00000000..ffe7832c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-license-symlink/debian/changelog @@ -0,0 +1,17 @@ +copyright-file-license-symlink (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: copyright-file-license-symlink + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +copyright-file-license-symlink (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: copyright-file-license-symlink + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-license-symlink/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-license-symlink/debian/control new file mode 100644 index 00000000..857cdfc0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-license-symlink/debian/control @@ -0,0 +1,28 @@ +Source: copyright-file-license-symlink +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no +Homepage: https://lintian.debian.org/ + +Package: copyright-file-license-symlink-bad +Architecture: all +Depends: ${misc:Depends} +Description: Test the versionless license files checks + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-file-license-symlink-pedantic +Architecture: all +Depends: ${misc:Depends} +Description: Test the versionless license files checks -- pedantic edition :) + Checks the pedantic version of the versionless copyright file check. + . + This is a test package designed to exercise some check of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-license-symlink/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-license-symlink/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-license-symlink/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-license-symlink/debian/copyright-file-license-symlink-bad.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-license-symlink/debian/copyright-file-license-symlink-bad.copyright new file mode 100644 index 00000000..512e964f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-license-symlink/debian/copyright-file-license-symlink-bad.copyright @@ -0,0 +1,18 @@ +This is part of the testsuite of lintian. See the file debian/copyright +in the lintian source directory for more details. + +So far as it is copyrightable at all, this template is + Copyright (C) 2008 Frank Lichtenheld + +This program is free software; you may redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation in its version 3. + +This is distributed in the hope that it will be useful, but without +any warranty; without even the implied warranty of merchantability or +fitness for a particular purpose. See the GNU General Public License +for more details. + +A copy of the GNU General Public License version 3 is available as +/usr/share/common-licenses/GPL in the Debian GNU/Linux distribution +or at http://www.gnu.org/licenses/old-licenses/gpl-3.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-license-symlink/debian/copyright-file-license-symlink-pedantic.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-license-symlink/debian/copyright-file-license-symlink-pedantic.copyright new file mode 100644 index 00000000..c36ee1e8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-license-symlink/debian/copyright-file-license-symlink-pedantic.copyright @@ -0,0 +1,19 @@ +This is part of the testsuite of lintian. See the file debian/copyright +in the lintian source directory for more details. + +So far as it is copyrightable at all, this template is + Copyright (C) 2008 Frank Lichtenheld + +This program is free software; you may redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +This is distributed in the hope that it will be useful, but without +any warranty; without even the implied warranty of merchantability or +fitness for a particular purpose. See the GNU General Public License +for more details. + +A copy of the GNU General Public License version 2 is available as +/usr/share/common-licenses/GPL in the Debian GNU/Linux distribution +or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-license-symlink/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-license-symlink/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-license-symlink/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-license-symlink/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-license-symlink/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-license-symlink/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-license-symlink/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-license-symlink/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-license-symlink/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-license-symlink/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-license-symlink/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-license-symlink/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-license-symlink/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-license-symlink/eval/hints new file mode 100644 index 00000000..39f1b25b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-license-symlink/eval/hints @@ -0,0 +1,2 @@ +copyright-file-license-symlink-pedantic (binary): copyright-refers-to-symlink-license usr/share/common-licenses/GPL +copyright-file-license-symlink-bad (binary): copyright-refers-to-versionless-license-file usr/share/common-licenses/GPL diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/ORIGIN new file mode 100644 index 00000000..ce7c7695 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/copyright-file-non-common-license + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/changelog new file mode 100644 index 00000000..28bc6c10 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/changelog @@ -0,0 +1,17 @@ +copyright-file-non-common-license (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: copyright-file-non-common-license + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +copyright-file-non-common-license (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: copyright-file-non-common-license + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/control new file mode 100644 index 00000000..3788ce98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/control @@ -0,0 +1,95 @@ +Source: copyright-file-non-common-license +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no + +Package: copyright-mentions-apache +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks against common license false positive for Apache + Tests against common license false positive for Apache. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-mentions-apache2 +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks against common license false positive for Apache (2) + Tests against common license false positive for Apache (2). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-mentions-apache3 +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks against common license false positive for Apache (3) + Tests against common license false positive for Apache (3). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-mentions-gfdl +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks against common license false positive for gfdl + Tests against common license false positive for gfdl. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-mentions-gpl +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks against common license false positive for gpl + Tests against common license false positive for gpl. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-mentions-lgpl +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks against common license false positive for lgpl + Tests against common license false positive for lgpl. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-mentions-lgpl2 +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks against common license false positive for lgpl (2) + Tests against common license false positive for lgpl (2). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-mentions-perl +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks against common license false positive for perl + Tests against common license false positive for perl. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/copyright-mentions-apache.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/copyright-mentions-apache.copyright new file mode 100644 index 00000000..627f5649 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/copyright-mentions-apache.copyright @@ -0,0 +1,13 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: lintian +Upstream-Contact: Lintian Maintainers +Source: http://git.debian.org/?p=lintian/lintian.git + +Files: * +Copyright: 2015 Lintian Maintainers +License: Mentions-Other-License + +License: Mentions-Other-License + lorem ipsum + lorem ipsum Apache License , Version 2.0 lorem ipsum + lorem ipsum diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/copyright-mentions-apache2.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/copyright-mentions-apache2.copyright new file mode 100644 index 00000000..493add3e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/copyright-mentions-apache2.copyright @@ -0,0 +1,13 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: lintian +Upstream-Contact: Lintian Maintainers +Source: http://git.debian.org/?p=lintian/lintian.git + +Files: * +Copyright: 2015 Lintian Maintainers +License: Mentions-Other-License + +License: Mentions-Other-License + lorem ipsum + lorem ipsum Apache License Version 2.0 lorem ipsum + lorem ipsum diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/copyright-mentions-apache3.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/copyright-mentions-apache3.copyright new file mode 100644 index 00000000..28de0e90 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/copyright-mentions-apache3.copyright @@ -0,0 +1,13 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: lintian +Upstream-Contact: Lintian Maintainers +Source: http://git.debian.org/?p=lintian/lintian.git + +Files: * +Copyright: 2015 Lintian Maintainers +License: Mentions-Other-License + +License: Mentions-Other-License + lorem ipsum + lorem ipsum Apache-2 License lorem ipsum + lorem ipsum diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/copyright-mentions-gfdl.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/copyright-mentions-gfdl.copyright new file mode 100644 index 00000000..75ac1cb2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/copyright-mentions-gfdl.copyright @@ -0,0 +1,13 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: lintian +Upstream-Contact: Lintian Maintainers +Source: http://git.debian.org/?p=lintian/lintian.git + +Files: * +Copyright: 2015 Lintian Maintainers +License: Mentions-Other-License + +License: Mentions-Other-License + lorem ipsum + lorem ipsum GNU Free Documentation License (GFDL) lorem ipsum + lorem ipsum diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/copyright-mentions-gpl.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/copyright-mentions-gpl.copyright new file mode 100644 index 00000000..a33353a6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/copyright-mentions-gpl.copyright @@ -0,0 +1,14 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: lintian +Upstream-Contact: Lintian Maintainers +Source: http://git.debian.org/?p=lintian/lintian.git + +Files: * +Copyright: 2015 Lintian Maintainers +License: Mentions-Other-License + +License: Mentions-Other-License + lorem ipsum + lorem ipsum GNU General Public License (GPL) applies to the changes, + . + lorem ipsum diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/copyright-mentions-lgpl.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/copyright-mentions-lgpl.copyright new file mode 100644 index 00000000..93a09255 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/copyright-mentions-lgpl.copyright @@ -0,0 +1,13 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: lintian +Upstream-Contact: Lintian Maintainers +Source: http://git.debian.org/?p=lintian/lintian.git + +Files: * +Copyright: 2015 Lintian Maintainers +License: Mentions-Other-License + +License: Mentions-Other-License + lorem ipsum + lorem ipsum GNU Lesser General Public License (LGPL) lorem ipsum + lorem ipsum diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/copyright-mentions-lgpl2.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/copyright-mentions-lgpl2.copyright new file mode 100644 index 00000000..74632b59 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/copyright-mentions-lgpl2.copyright @@ -0,0 +1,13 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: lintian +Upstream-Contact: Lintian Maintainers +Source: http://git.debian.org/?p=lintian/lintian.git + +Files: * +Copyright: 2015 Lintian Maintainers +License: Mentions-Other-License + +License: Mentions-Other-License + lorem ipsum + lorem ipsum GNU Library General Public License (LGPL) lorem ipsum + lorem ipsum diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/copyright-mentions-perl.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/copyright-mentions-perl.copyright new file mode 100644 index 00000000..8a757ce4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/copyright-mentions-perl.copyright @@ -0,0 +1,13 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: lintian +Upstream-Contact: Lintian Maintainers +Source: http://git.debian.org/?p=lintian/lintian.git + +Files: * +Copyright: 2015 Lintian Maintainers +License: Mentions-Other-License + +License: Mentions-Other-License + lorem ipsum + lorem ipsum under the same terms as Perl itself lorem ipsum + lorem ipsum diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-non-common-license/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-symlink/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-symlink/ORIGIN new file mode 100644 index 00000000..a52fbab6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-symlink/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/copyright-file-symlink + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-symlink/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-symlink/debian/changelog new file mode 100644 index 00000000..1f3fe817 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-symlink/debian/changelog @@ -0,0 +1,17 @@ +copyright-file-symlink (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: copyright-file-symlink + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +copyright-file-symlink (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: copyright-file-symlink + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-symlink/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-symlink/debian/control new file mode 100644 index 00000000..48a9510a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-symlink/debian/control @@ -0,0 +1,40 @@ +Source: copyright-file-symlink +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no + +Package: symlink-to-foreign +Architecture: all +Depends: ${misc:Depends}, foreign-package +Description: Test for symlinked doc directories (foreign) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + Foreign. + +Package: symlink-outside-usd +Architecture: all +Depends: ${misc:Depends} +Description: Test for symlinked doc directories (usd) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + USD. + +Package: symlink-without-depends +Architecture: all +Depends: ${misc:Depends} +Description: Test for symlinked doc directories (no-deepnds) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + Symlinks without dependency. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-symlink/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-symlink/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-symlink/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-symlink/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-symlink/debian/rules new file mode 100644 index 00000000..d48f7239 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-symlink/debian/rules @@ -0,0 +1,22 @@ +#!/usr/bin/make -f + +USD:=usr/share/doc +%: + dh $@ + + +override_dh_md5sums: + rm -fr debian/symlink-to-foreign/$(USD)/symlink-to-foreign + ln -sf foreign-package \ + debian/symlink-to-foreign/$(USD)/symlink-to-foreign + rm -fr debian/symlink-without-depends/$(USD)/symlink-without-depends + ln -sf foreign-package \ + debian/symlink-without-depends/$(USD)/symlink-without-depends + # Move all of it to usr/lib// + mkdir -p debian/symlink-outside-usd/usr/lib/ + mv debian/symlink-outside-usd/$(USD)/symlink-outside-usd \ + debian/symlink-outside-usd/usr/lib/symlink-outside-usd/ + # with symlink of course :) + ln -s ../../lib/symlink-outside-usd/copyright \ + debian/symlink-outside-usd/$(USD)/symlink-outside-usd + dh_md5sums diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-symlink/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-symlink/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-symlink/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-symlink/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-symlink/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-symlink/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-symlink/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-symlink/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-symlink/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-symlink/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-symlink/eval/hints new file mode 100644 index 00000000..785fbc39 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/copyright-file-symlink/eval/hints @@ -0,0 +1,3 @@ +symlink-without-depends (binary): usr-share-doc-symlink-without-dependency foreign-package +symlink-to-foreign (binary): usr-share-doc-symlink-to-foreign-package foreign-package +symlink-outside-usd (binary): usr-share-doc-symlink-points-outside-of-usr-share-doc ../../lib/symlink-outside-usd/copyright [usr/share/doc/symlink-outside-usd] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/ORIGIN new file mode 100644 index 00000000..2374e0ac --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/appstream-metadata-license-hang + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/debian/changelog new file mode 100644 index 00000000..97e747df --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/debian/changelog @@ -0,0 +1,17 @@ +appstream-metadata-license-hang (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: appstream-metadata-license-hang + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +appstream-metadata-license-hang (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: appstream-metadata-license-hang + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/debian/control new file mode 100644 index 00000000..16ea2e83 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/debian/control @@ -0,0 +1,17 @@ +Source: appstream-metadata-license-hang +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: appstream-metadata-license-hang +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test that lintian does not hang on parsing improper XML for license check + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/improper-xml.xml b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/improper-xml.xml new file mode 100644 index 00000000..71d80d6d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata-license-hang/improper-xml.xml @@ -0,0 +1,3 @@ + + ]> +&xxe; diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/ORIGIN new file mode 100644 index 00000000..168af148 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/appstream-metadata + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/appstream-metadata-invalid.metadata.xml b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/appstream-metadata-invalid.metadata.xml new file mode 100644 index 00000000..a823b8d1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/appstream-metadata-invalid.metadata.xml @@ -0,0 +1 @@ +This is not a valid XML document. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/appstream-metadata-obsolete.metadata.xml b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/appstream-metadata-obsolete.metadata.xml new file mode 100644 index 00000000..31d281ef --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/appstream-metadata-obsolete.metadata.xml @@ -0,0 +1,2 @@ + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/appstream-metadata.desktop b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/appstream-metadata.desktop new file mode 100644 index 00000000..4c914305 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/appstream-metadata.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=appstream-udev-data +Terminal=true +Exec=true +Categories=ConsoleOnly;Game; +Keywords=Text; diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/appstream-metadata.dirs b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/appstream-metadata.dirs new file mode 100644 index 00000000..402f5d54 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/appstream-metadata.dirs @@ -0,0 +1,2 @@ +usr/share/metainfo +usr/share/appdata diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/appstream-metadata.metadata.xml b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/appstream-metadata.metadata.xml new file mode 100644 index 00000000..82294c13 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/appstream-metadata.metadata.xml @@ -0,0 +1,22 @@ + + + appstream-udev-data + MIT + lintian appstream-udev-data + Test AppStream and udev related checks in lintian + +

+ This is a test package designed to exercise some feature or tag + of Lintian. It is part of the Lintian test suite and may do + very odd things. It should not be installed like a regular + package. It may be an empty package. +

+
+ + usb:v0000p0001d* + usb:v0000p0002d* + usb:v0000p0003d* + usb:v0000p0004d* + usb:v0000p000ad* + +
diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/appstream-metadata.udev b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/appstream-metadata.udev new file mode 100644 index 00000000..e2f28412 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/appstream-metadata.udev @@ -0,0 +1,14 @@ +SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="0001", \ + MODE="0666" + +SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="0002", \ + MODE="0660", GROUP="plugdev" + +SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="0003", \ + TAG+="uaccess" + +SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="0004", \ + MODE="0660", GROUP="plugdev", TAG+="uaccess" + +SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="000a", \ + ID_TEST_DEVICE="1" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/changelog new file mode 100644 index 00000000..71fe9ce3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/changelog @@ -0,0 +1,17 @@ +appstream-metadata (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: appstream-metadata + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +appstream-metadata (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: appstream-metadata + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/control new file mode 100644 index 00000000..397c1462 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/control @@ -0,0 +1,17 @@ +Source: appstream-metadata +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: appstream-metadata +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test AppStream and udev metadata in binary package + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/rules new file mode 100644 index 00000000..5fb0c35e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/rules @@ -0,0 +1,15 @@ +#!/usr/bin/make -f + +DESTDIR = debian/$(shell dh_listpackages) +APPSYNC_DIR=$(DESTDIR)/usr/share/metainfo/ +OBSOLETE_APPSYNC_DIR=$(DESTDIR)/usr/share/appdata/ +UDEV_DIR=$(DESTDIR)/lib/udev/rules.d/ + +%: + dh $@ + +override_dh_install: + dh_install + install -m 0644 debian/appstream-metadata.metadata.xml $(APPSYNC_DIR) + install -m 0644 debian/appstream-metadata-invalid.metadata.xml $(APPSYNC_DIR) + install -m 0644 debian/appstream-metadata-obsolete.metadata.xml $(OBSOLETE_APPSYNC_DIR) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/eval/hints new file mode 100644 index 00000000..446654b1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/appstream-metadata/eval/hints @@ -0,0 +1 @@ +appstream-metadata (source): inconsistent-appstream-metadata-license debian/appstream-metadata.metadata.xml (mit != gpl-2+) [debian/copyright] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/ORIGIN new file mode 100644 index 00000000..fa7f584d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/debian/changelog new file mode 100644 index 00000000..10d3a679 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/debian/changelog @@ -0,0 +1,17 @@ +control-file-upstream-signature-missing (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-upstream-signature-missing + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +control-file-upstream-signature-missing (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-upstream-signature-missing + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/debian/control new file mode 100644 index 00000000..263cf892 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/debian/control @@ -0,0 +1,17 @@ +Source: control-file-upstream-signature-missing +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), dpkg (>= 1.18.5) +Homepage: https://lintian.debian.org/ + +Package: control-file-upstream-signature-missing +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: No upstream signature included but package contains a signing key + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/debian/upstream/signing-key.asc b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/debian/upstream/signing-key.asc new file mode 100644 index 00000000..bd03c4eb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/debian/upstream/signing-key.asc @@ -0,0 +1 @@ +Too lazy to fake this file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/eval/hints new file mode 100644 index 00000000..a4ea69bb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/eval/hints @@ -0,0 +1,3 @@ +control-file-upstream-signature-missing (source): add-component-copyright signed [debian/copyright] +control-file-upstream-signature-missing (source): add-component-copyright noext [debian/copyright] +control-file-upstream-signature-missing (source): add-component-copyright component [debian/copyright] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/conjunction-vs-alone/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/conjunction-vs-alone/ORIGIN new file mode 100644 index 00000000..dcaf9ef8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/conjunction-vs-alone/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/conjunction-vs-alone + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/conjunction-vs-alone/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/conjunction-vs-alone/debian/changelog new file mode 100644 index 00000000..4b78f789 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/conjunction-vs-alone/debian/changelog @@ -0,0 +1,17 @@ +conjunction-vs-alone (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: conjunction-vs-alone + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +conjunction-vs-alone (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: conjunction-vs-alone + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/conjunction-vs-alone/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/conjunction-vs-alone/debian/control new file mode 100644 index 00000000..20cd4ffc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/conjunction-vs-alone/debian/control @@ -0,0 +1,17 @@ +Source: conjunction-vs-alone +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: conjunction-vs-alone +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Uses the same license in a conjuntion and alone (false positive) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/conjunction-vs-alone/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/conjunction-vs-alone/debian/copyright new file mode 100644 index 00000000..3c3b46f7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/conjunction-vs-alone/debian/copyright @@ -0,0 +1,21 @@ +# taken from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=801182#8 +# except completed where needed, and with a secure URL +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ + +Files: * +Copyright: (C) 2004-2012 NVIDIA Corporation +License: MooPL + +Files: XF86Config-parser/Generate.c +Copyright: (C) 2005 NVIDIA Corporation +License: GPL-2+ and other-GPL + +Files: debian/* +Copyright: 2005 Randall Donald +License: GPL-2+ + +License: GPL-2+ + Please call the Free Software Foundation for this license. + +License: other-GPL + Please call the Free Software Foundation for this license. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/conjunction-vs-alone/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/conjunction-vs-alone/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/conjunction-vs-alone/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/conjunction-vs-alone/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/conjunction-vs-alone/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/conjunction-vs-alone/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/conjunction-vs-alone/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/conjunction-vs-alone/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/conjunction-vs-alone/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/conjunction-vs-alone/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/conjunction-vs-alone/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/conjunction-vs-alone/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/conjunction-vs-alone/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/conjunction-vs-alone/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/conjunction-vs-alone/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/ORIGIN new file mode 100644 index 00000000..63e4e817 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/copyright-file-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/changelog new file mode 100644 index 00000000..f92d4057 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/changelog @@ -0,0 +1,17 @@ +copyright-file-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: copyright-file-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +copyright-file-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: copyright-file-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/control new file mode 100644 index 00000000..c328c32d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/control @@ -0,0 +1,243 @@ +Source: copyright-file-general +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no + +Package: copyright-iso-8859-1 +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks for non-utf-8-encodings + Tests non-UTF-8 encodings. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-full-gpl +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks inclusion of GPL in full text + Tests the tag for including all of the GPL. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-full-lgpl +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks inclusion of LGPL in full text + Tests the tag for including all of the LGPL. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-full-gfdl +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks inclusion of GFDL in full text + Tests the tag for including all of the GFDL. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-full-apache-2 +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks inclusion of Apache 2.0 in full text + Tests the tag for including all of the Apache 2.0 license. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-misc-errors +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks various errors in copyright files + Tests various random errors in copyright files. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-symlink +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: just use a symlink for the copyright file + Tests the check for a symlinked copyright file. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-compressed +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: include a valid copyright file and compress it + Tests the check for a compressed copyright file. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-old-style +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: use an old-style directory structure + Tests a copyright file using an old-style directory structure. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-full-gpl-1 +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks inclusion of GPL1 + This should trigger errors as GPL1 is in the common license dir. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-full-gpl-2 +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks inclusion of GPL2 + This should trigger errors as GPL2 is in the common license dir. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-php +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks problematic PHP licenses + The PHP licenses are problematic for any software that isn't PHP. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-w3c +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks inclusion of the W3C license + The W3C license text claims to be "GPL compatible", which shouldn't + trigger warnings. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-no-errors +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: this should not emit any error + This copyright file should be fine. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-versionless +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks a valid versionless GPL reference + Refers to the GPL and truly doesn't mention any version. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-missing-perl-license-pointer +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks for perl packages not pointing to common-licenses + Packages under the "same terms as Perl itself" should reference a + license in common-licenses. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-missing-apache2-license-pointer +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks for apache2 packages not pointing to common-licenses + Packages under the apache2-license should reference a + license in common-licenses. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-poor-common-licenses +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks not referring to common licenses + Packages should refer to common licenses with full path if they + use a common license. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-crln +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: check for Windows newlines + This package should trigger a tag for having Windows newlines in + the copyright file. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-full-agpl-3 +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks inclusion of AGPL-3 in full text + This should not trigger a tag as AGPL-3 is not in common-licenses. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-old-fsf +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: checks use of old FSF address + This should trigger a tag for using old FSF address. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-crln.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-crln.copyright new file mode 100644 index 00000000..43b49cfe --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-crln.copyright @@ -0,0 +1,36 @@ +This package was debianized by Tobias Toedter on +Thu, 20 Mar 2008 23:48:15 +0100 + +It was downloaded from + +Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?recall=184 + +Upstream Authors: + + Tobias Toedter + +Copyright: + + Copyright (C) 2008 Tobias Toedter + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL-2'. + +The Debian packaging is Copyright 2008, Tobias Toedter +and is licensed under the GPL, see above. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-full-agpl-3.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-full-agpl-3.copyright new file mode 100644 index 00000000..dba13ed2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-full-agpl-3.copyright @@ -0,0 +1,661 @@ + GNU AFFERO GENERAL PUBLIC LICENSE + Version 3, 19 November 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +our General Public Licenses are intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software. + + A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public. + + The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version. + + An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU Affero General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Remote Network Interaction; Use with the GNU General Public License. + + Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the work with which it is combined will remain governed by version +3 of the GNU General Public License. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU Affero General Public License from time to time. Such new versions +will be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU Affero General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU Affero General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU Affero General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a "Source" link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements. + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU AGPL, see +. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-full-apache-2.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-full-apache-2.copyright new file mode 100644 index 00000000..d6456956 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-full-apache-2.copyright @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-full-gfdl.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-full-gfdl.copyright new file mode 100644 index 00000000..4a0fe1c8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-full-gfdl.copyright @@ -0,0 +1,397 @@ + GNU Free Documentation License + Version 1.2, November 2002 + + + Copyright (C) 2000,2001,2002 Free Software Foundation, Inc. + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + +0. PREAMBLE + +The purpose of this License is to make a manual, textbook, or other +functional and useful document "free" in the sense of freedom: to +assure everyone the effective freedom to copy and redistribute it, +with or without modifying it, either commercially or noncommercially. +Secondarily, this License preserves for the author and publisher a way +to get credit for their work, while not being considered responsible +for modifications made by others. + +This License is a kind of "copyleft", which means that derivative +works of the document must themselves be free in the same sense. It +complements the GNU General Public License, which is a copyleft +license designed for free software. + +We have designed this License in order to use it for manuals for free +software, because free software needs free documentation: a free +program should come with manuals providing the same freedoms that the +software does. But this License is not limited to software manuals; +it can be used for any textual work, regardless of subject matter or +whether it is published as a printed book. We recommend this License +principally for works whose purpose is instruction or reference. + + +1. APPLICABILITY AND DEFINITIONS + +This License applies to any manual or other work, in any medium, that +contains a notice placed by the copyright holder saying it can be +distributed under the terms of this License. Such a notice grants a +world-wide, royalty-free license, unlimited in duration, to use that +work under the conditions stated herein. The "Document", below, +refers to any such manual or work. Any member of the public is a +licensee, and is addressed as "you". You accept the license if you +copy, modify or distribute the work in a way requiring permission +under copyright law. + +A "Modified Version" of the Document means any work containing the +Document or a portion of it, either copied verbatim, or with +modifications and/or translated into another language. + +A "Secondary Section" is a named appendix or a front-matter section of +the Document that deals exclusively with the relationship of the +publishers or authors of the Document to the Document's overall subject +(or to related matters) and contains nothing that could fall directly +within that overall subject. (Thus, if the Document is in part a +textbook of mathematics, a Secondary Section may not explain any +mathematics.) The relationship could be a matter of historical +connection with the subject or with related matters, or of legal, +commercial, philosophical, ethical or political position regarding +them. + +The "Invariant Sections" are certain Secondary Sections whose titles +are designated, as being those of Invariant Sections, in the notice +that says that the Document is released under this License. If a +section does not fit the above definition of Secondary then it is not +allowed to be designated as Invariant. The Document may contain zero +Invariant Sections. If the Document does not identify any Invariant +Sections then there are none. + +The "Cover Texts" are certain short passages of text that are listed, +as Front-Cover Texts or Back-Cover Texts, in the notice that says that +the Document is released under this License. A Front-Cover Text may +be at most 5 words, and a Back-Cover Text may be at most 25 words. + +A "Transparent" copy of the Document means a machine-readable copy, +represented in a format whose specification is available to the +general public, that is suitable for revising the document +straightforwardly with generic text editors or (for images composed of +pixels) generic paint programs or (for drawings) some widely available +drawing editor, and that is suitable for input to text formatters or +for automatic translation to a variety of formats suitable for input +to text formatters. A copy made in an otherwise Transparent file +format whose markup, or absence of markup, has been arranged to thwart +or discourage subsequent modification by readers is not Transparent. +An image format is not Transparent if used for any substantial amount +of text. A copy that is not "Transparent" is called "Opaque". + +Examples of suitable formats for Transparent copies include plain +ASCII without markup, Texinfo input format, LaTeX input format, SGML +or XML using a publicly available DTD, and standard-conforming simple +HTML, PostScript or PDF designed for human modification. Examples of +transparent image formats include PNG, XCF and JPG. Opaque formats +include proprietary formats that can be read and edited only by +proprietary word processors, SGML or XML for which the DTD and/or +processing tools are not generally available, and the +machine-generated HTML, PostScript or PDF produced by some word +processors for output purposes only. + +The "Title Page" means, for a printed book, the title page itself, +plus such following pages as are needed to hold, legibly, the material +this License requires to appear in the title page. For works in +formats which do not have any title page as such, "Title Page" means +the text near the most prominent appearance of the work's title, +preceding the beginning of the body of the text. + +A section "Entitled XYZ" means a named subunit of the Document whose +title either is precisely XYZ or contains XYZ in parentheses following +text that translates XYZ in another language. (Here XYZ stands for a +specific section name mentioned below, such as "Acknowledgements", +"Dedications", "Endorsements", or "History".) To "Preserve the Title" +of such a section when you modify the Document means that it remains a +section "Entitled XYZ" according to this definition. + +The Document may include Warranty Disclaimers next to the notice which +states that this License applies to the Document. These Warranty +Disclaimers are considered to be included by reference in this +License, but only as regards disclaiming warranties: any other +implication that these Warranty Disclaimers may have is void and has +no effect on the meaning of this License. + + +2. VERBATIM COPYING + +You may copy and distribute the Document in any medium, either +commercially or noncommercially, provided that this License, the +copyright notices, and the license notice saying this License applies +to the Document are reproduced in all copies, and that you add no other +conditions whatsoever to those of this License. You may not use +technical measures to obstruct or control the reading or further +copying of the copies you make or distribute. However, you may accept +compensation in exchange for copies. If you distribute a large enough +number of copies you must also follow the conditions in section 3. + +You may also lend copies, under the same conditions stated above, and +you may publicly display copies. + + +3. COPYING IN QUANTITY + +If you publish printed copies (or copies in media that commonly have +printed covers) of the Document, numbering more than 100, and the +Document's license notice requires Cover Texts, you must enclose the +copies in covers that carry, clearly and legibly, all these Cover +Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on +the back cover. Both covers must also clearly and legibly identify +you as the publisher of these copies. The front cover must present +the full title with all words of the title equally prominent and +visible. You may add other material on the covers in addition. +Copying with changes limited to the covers, as long as they preserve +the title of the Document and satisfy these conditions, can be treated +as verbatim copying in other respects. + +If the required texts for either cover are too voluminous to fit +legibly, you should put the first ones listed (as many as fit +reasonably) on the actual cover, and continue the rest onto adjacent +pages. + +If you publish or distribute Opaque copies of the Document numbering +more than 100, you must either include a machine-readable Transparent +copy along with each Opaque copy, or state in or with each Opaque copy +a computer-network location from which the general network-using +public has access to download using public-standard network protocols +a complete Transparent copy of the Document, free of added material. +If you use the latter option, you must take reasonably prudent steps, +when you begin distribution of Opaque copies in quantity, to ensure +that this Transparent copy will remain thus accessible at the stated +location until at least one year after the last time you distribute an +Opaque copy (directly or through your agents or retailers) of that +edition to the public. + +It is requested, but not required, that you contact the authors of the +Document well before redistributing any large number of copies, to give +them a chance to provide you with an updated version of the Document. + + +4. MODIFICATIONS + +You may copy and distribute a Modified Version of the Document under +the conditions of sections 2 and 3 above, provided that you release +the Modified Version under precisely this License, with the Modified +Version filling the role of the Document, thus licensing distribution +and modification of the Modified Version to whoever possesses a copy +of it. In addition, you must do these things in the Modified Version: + +A. Use in the Title Page (and on the covers, if any) a title distinct + from that of the Document, and from those of previous versions + (which should, if there were any, be listed in the History section + of the Document). You may use the same title as a previous version + if the original publisher of that version gives permission. +B. List on the Title Page, as authors, one or more persons or entities + responsible for authorship of the modifications in the Modified + Version, together with at least five of the principal authors of the + Document (all of its principal authors, if it has fewer than five), + unless they release you from this requirement. +C. State on the Title page the name of the publisher of the + Modified Version, as the publisher. +D. Preserve all the copyright notices of the Document. +E. Add an appropriate copyright notice for your modifications + adjacent to the other copyright notices. +F. Include, immediately after the copyright notices, a license notice + giving the public permission to use the Modified Version under the + terms of this License, in the form shown in the Addendum below. +G. Preserve in that license notice the full lists of Invariant Sections + and required Cover Texts given in the Document's license notice. +H. Include an unaltered copy of this License. +I. Preserve the section Entitled "History", Preserve its Title, and add + to it an item stating at least the title, year, new authors, and + publisher of the Modified Version as given on the Title Page. If + there is no section Entitled "History" in the Document, create one + stating the title, year, authors, and publisher of the Document as + given on its Title Page, then add an item describing the Modified + Version as stated in the previous sentence. +J. Preserve the network location, if any, given in the Document for + public access to a Transparent copy of the Document, and likewise + the network locations given in the Document for previous versions + it was based on. These may be placed in the "History" section. + You may omit a network location for a work that was published at + least four years before the Document itself, or if the original + publisher of the version it refers to gives permission. +K. For any section Entitled "Acknowledgements" or "Dedications", + Preserve the Title of the section, and preserve in the section all + the substance and tone of each of the contributor acknowledgements + and/or dedications given therein. +L. Preserve all the Invariant Sections of the Document, + unaltered in their text and in their titles. Section numbers + or the equivalent are not considered part of the section titles. +M. Delete any section Entitled "Endorsements". Such a section + may not be included in the Modified Version. +N. Do not retitle any existing section to be Entitled "Endorsements" + or to conflict in title with any Invariant Section. +O. Preserve any Warranty Disclaimers. + +If the Modified Version includes new front-matter sections or +appendices that qualify as Secondary Sections and contain no material +copied from the Document, you may at your option designate some or all +of these sections as invariant. To do this, add their titles to the +list of Invariant Sections in the Modified Version's license notice. +These titles must be distinct from any other section titles. + +You may add a section Entitled "Endorsements", provided it contains +nothing but endorsements of your Modified Version by various +parties--for example, statements of peer review or that the text has +been approved by an organization as the authoritative definition of a +standard. + +You may add a passage of up to five words as a Front-Cover Text, and a +passage of up to 25 words as a Back-Cover Text, to the end of the list +of Cover Texts in the Modified Version. Only one passage of +Front-Cover Text and one of Back-Cover Text may be added by (or +through arrangements made by) any one entity. If the Document already +includes a cover text for the same cover, previously added by you or +by arrangement made by the same entity you are acting on behalf of, +you may not add another; but you may replace the old one, on explicit +permission from the previous publisher that added the old one. + +The author(s) and publisher(s) of the Document do not by this License +give permission to use their names for publicity for or to assert or +imply endorsement of any Modified Version. + + +5. COMBINING DOCUMENTS + +You may combine the Document with other documents released under this +License, under the terms defined in section 4 above for modified +versions, provided that you include in the combination all of the +Invariant Sections of all of the original documents, unmodified, and +list them all as Invariant Sections of your combined work in its +license notice, and that you preserve all their Warranty Disclaimers. + +The combined work need only contain one copy of this License, and +multiple identical Invariant Sections may be replaced with a single +copy. If there are multiple Invariant Sections with the same name but +different contents, make the title of each such section unique by +adding at the end of it, in parentheses, the name of the original +author or publisher of that section if known, or else a unique number. +Make the same adjustment to the section titles in the list of +Invariant Sections in the license notice of the combined work. + +In the combination, you must combine any sections Entitled "History" +in the various original documents, forming one section Entitled +"History"; likewise combine any sections Entitled "Acknowledgements", +and any sections Entitled "Dedications". You must delete all sections +Entitled "Endorsements". + + +6. COLLECTIONS OF DOCUMENTS + +You may make a collection consisting of the Document and other documents +released under this License, and replace the individual copies of this +License in the various documents with a single copy that is included in +the collection, provided that you follow the rules of this License for +verbatim copying of each of the documents in all other respects. + +You may extract a single document from such a collection, and distribute +it individually under this License, provided you insert a copy of this +License into the extracted document, and follow this License in all +other respects regarding verbatim copying of that document. + + +7. AGGREGATION WITH INDEPENDENT WORKS + +A compilation of the Document or its derivatives with other separate +and independent documents or works, in or on a volume of a storage or +distribution medium, is called an "aggregate" if the copyright +resulting from the compilation is not used to limit the legal rights +of the compilation's users beyond what the individual works permit. +When the Document is included in an aggregate, this License does not +apply to the other works in the aggregate which are not themselves +derivative works of the Document. + +If the Cover Text requirement of section 3 is applicable to these +copies of the Document, then if the Document is less than one half of +the entire aggregate, the Document's Cover Texts may be placed on +covers that bracket the Document within the aggregate, or the +electronic equivalent of covers if the Document is in electronic form. +Otherwise they must appear on printed covers that bracket the whole +aggregate. + + +8. TRANSLATION + +Translation is considered a kind of modification, so you may +distribute translations of the Document under the terms of section 4. +Replacing Invariant Sections with translations requires special +permission from their copyright holders, but you may include +translations of some or all Invariant Sections in addition to the +original versions of these Invariant Sections. You may include a +translation of this License, and all the license notices in the +Document, and any Warranty Disclaimers, provided that you also include +the original English version of this License and the original versions +of those notices and disclaimers. In case of a disagreement between +the translation and the original version of this License or a notice +or disclaimer, the original version will prevail. + +If a section in the Document is Entitled "Acknowledgements", +"Dedications", or "History", the requirement (section 4) to Preserve +its Title (section 1) will typically require changing the actual +title. + + +9. TERMINATION + +You may not copy, modify, sublicense, or distribute the Document except +as expressly provided for under this License. Any other attempt to +copy, modify, sublicense or distribute the Document is void, and will +automatically terminate your rights under this License. However, +parties who have received copies, or rights, from you under this +License will not have their licenses terminated so long as such +parties remain in full compliance. + + +10. FUTURE REVISIONS OF THIS LICENSE + +The Free Software Foundation may publish new, revised versions +of the GNU Free Documentation License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. See +http://www.gnu.org/copyleft/. + +Each version of the License is given a distinguishing version number. +If the Document specifies that a particular numbered version of this +License "or any later version" applies to it, you have the option of +following the terms and conditions either of that specified version or +of any later version that has been published (not as a draft) by the +Free Software Foundation. If the Document does not specify a version +number of this License, you may choose any version ever published (not +as a draft) by the Free Software Foundation. + + +ADDENDUM: How to use this License for your documents + +To use this License in a document you have written, include a copy of +the License in the document and put the following copyright and +license notices just after the title page: + + Copyright (c) YEAR YOUR NAME. + Permission is granted to copy, distribute and/or modify this document + under the terms of the GNU Free Documentation License, Version 1.2 + or any later version published by the Free Software Foundation; + with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. + A copy of the license is included in the section entitled "GNU + Free Documentation License". + +If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts, +replace the "with...Texts." line with this: + + with the Invariant Sections being LIST THEIR TITLES, with the + Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST. + +If you have Invariant Sections without Cover Texts, or some other +combination of the three, merge those two alternatives to suit the +situation. + +If your document contains nontrivial examples of program code, we +recommend releasing these examples in parallel under your choice of +free software license, such as the GNU General Public License, +to permit their use in free software. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-full-gpl-1.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-full-gpl-1.copyright new file mode 100644 index 00000000..1facebea --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-full-gpl-1.copyright @@ -0,0 +1,206 @@ +A copy of the GNU General Public License is available on +the World Wide Web at `http://www.gnu.org/licenses/old-licenses/gpl-1.0.txt'. You can +also obtain it by writing to the Free Software Foundation, Inc., 51 +Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + THE COPYRIGHT HOLDER DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, + INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO + EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR + CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, + DATA, PROFITS, QPA OR GPA, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE + OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + PERFORMANCE OF THIS SOFTWARE. + + + GNU GENERAL PUBLIC LICENSE + Version 1, February 1989 + + Copyright (C) 1989 Free Software Foundation, Inc. + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The license agreements of most software companies try to keep users +at the mercy of those companies. By contrast, our General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. The +General Public License applies to the Free Software Foundation's +software and to any other program whose authors commit to using it. +You can use it for your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Specifically, the General Public License is designed to make +sure that you have the freedom to give away or sell copies of free +software, that you receive source code or can get it if you want it, +that you can change the software or use pieces of it in new free +programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of a such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must tell them their rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any program or other work which +contains a notice placed by the copyright holder saying it may be +distributed under the terms of this General Public License. The +"Program", below, refers to any such program or work, and a "work based +on the Program" means either the Program or any work containing the +Program or a portion of it, either verbatim or with modifications. Each +licensee is addressed as "you". + + 1. You may copy and distribute verbatim copies of the Program's source +code as you receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice and +disclaimer of warranty; keep intact all the notices that refer to this +General Public License and to the absence of any warranty; and give any +other recipients of the Program a copy of this General Public License +along with the Program. You may charge a fee for the physical act of +transferring a copy. + + 2. You may modify your copy or copies of the Program or any portion of +it, and copy and distribute such modifications under the terms of Paragraph +1 above, provided that you also do the following: + + a) cause the modified files to carry prominent notices stating that + you changed the files and the date of any change; and + + b) cause the whole of any work that you distribute or publish, that + in whole or in part contains the Program or any part thereof, either + with or without modifications, to be licensed at no charge to all + third parties under the terms of this General Public License (except + that you may choose to grant warranty protection to some or all + third parties, at your option). + + c) If the modified program normally reads commands interactively when + run, you must cause it, when started running for such interactive use + in the simplest and most usual way, to print or display an + announcement including an appropriate copyright notice and a notice + that there is no warranty (or else, saying that you provide a + warranty) and that users may redistribute the program under these + conditions, and telling the user how to view a copy of this General + Public License. + + d) You may charge a fee for the physical act of transferring a + copy, and you may at your option offer warranty protection in + exchange for a fee. + +Mere aggregation of another independent work with the Program (or its +derivative) on a volume of a storage or distribution medium does not bring +the other work under the scope of these terms. + + 3. You may copy and distribute the Program (or a portion or derivative of +it, under Paragraph 2) in object code or executable form under the terms of +Paragraphs 1 and 2 above provided that you also do one of the following: + + a) accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of + Paragraphs 1 and 2 above; or, + + b) accompany it with a written offer, valid for at least three + years, to give any third party free (except for a nominal charge + for the cost of distribution) a complete machine-readable copy of the + corresponding source code, to be distributed under the terms of + Paragraphs 1 and 2 above; or, + + c) accompany it with the information you received as to where the + corresponding source code may be obtained. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form alone.) + +Source code for a work means the preferred form of the work for making +modifications to it. For an executable file, complete source code means +all the source code for all modules it contains; but, as a special +exception, it need not include source code for modules which are standard +libraries that accompany the operating system on which the executable +file runs, or for standard header files or definitions files that +accompany that operating system. + + 4. You may not copy, modify, sublicense, distribute or transfer the +Program except as expressly provided under this General Public License. +Any attempt otherwise to copy, modify, sublicense, distribute or transfer +the Program is void, and will automatically terminate your rights to use +the Program under this License. However, parties who have received +copies, or rights to use copies, from you under this General Public +License will not have their licenses terminated so long as such parties +remain in full compliance. + + 5. By copying, distributing or modifying the Program (or any work based +on the Program) you indicate your acceptance of this license to do so, +and all its terms and conditions. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the original +licensor to copy, distribute or modify the Program subject to these +terms and conditions. You may not impose any further restrictions on the +recipients' exercise of the rights granted herein. + + 7. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of the license which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +the license, you may choose any version ever published by the Free Software +Foundation. + + 8. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-full-gpl-2.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-full-gpl-2.copyright new file mode 100644 index 00000000..f94bb0d8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-full-gpl-2.copyright @@ -0,0 +1,344 @@ +A copy of the GNU General Public License is available on +the World Wide Web at `http://www.gnu.org/licenses/gpl-2.0.txt'. You can +also obtain it by writing to the Free Software Foundation, Inc., 51 +Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-full-gpl.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-full-gpl.copyright new file mode 100644 index 00000000..94a9ed02 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-full-gpl.copyright @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-full-lgpl.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-full-lgpl.copyright new file mode 100644 index 00000000..5dabe34d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-full-lgpl.copyright @@ -0,0 +1,171 @@ +A copy of the GNU Lesser General Public License is available on +the World Wide Web at `http://www.gnu.org/licenses/lgpl-3.0.txt'. You can +also obtain it by writing to the Free Software Foundation, Inc., 51 +Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + + GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. + + 0. Additional Definitions. + + As used herein, "this License" refers to version 3 of the GNU Lesser +General Public License, and the "GNU GPL" refers to version 3 of the GNU +General Public License. + + "The Library" refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. + + An "Application" is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. + + A "Combined Work" is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the "Linked +Version". + + The "Minimal Corresponding Source" for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. + + The "Corresponding Application Code" for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. + + 1. Exception to Section 3 of the GNU GPL. + + You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. + + 2. Conveying Modified Versions. + + If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: + + a) under this License, provided that you make a good faith effort to + ensure that, in the event an Application does not supply the + function or data, the facility still operates, and performs + whatever part of its purpose remains meaningful, or + + b) under the GNU GPL, with none of the additional permissions of + this License applicable to that copy. + + 3. Object Code Incorporating Material from Library Header Files. + + The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: + + a) Give prominent notice with each copy of the object code that the + Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the object code with a copy of the GNU GPL and this license + document. + + 4. Combined Works. + + You may convey a Combined Work under terms of your choice that, +taken together, effectively do not restrict modification of the +portions of the Library contained in the Combined Work and reverse +engineering for debugging such modifications, if you also do each of +the following: + + a) Give prominent notice with each copy of the Combined Work that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the Combined Work with a copy of the GNU GPL and this license + document. + + c) For a Combined Work that displays copyright notices during + execution, include the copyright notice for the Library among + these notices, as well as a reference directing the user to the + copies of the GNU GPL and this license document. + + d) Do one of the following: + + 0) Convey the Minimal Corresponding Source under the terms of this + License, and the Corresponding Application Code in a form + suitable for, and under terms that permit, the user to + recombine or relink the Application with a modified version of + the Linked Version to produce a modified Combined Work, in the + manner specified by section 6 of the GNU GPL for conveying + Corresponding Source. + + 1) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (a) uses at run time + a copy of the Library already present on the user's computer + system, and (b) will operate properly with a modified version + of the Library that is interface-compatible with the Linked + Version. + + e) Provide Installation Information, but only if you would otherwise + be required to provide such information under section 6 of the + GNU GPL, and only to the extent that such information is + necessary to install and execute a modified version of the + Combined Work produced by recombining or relinking the + Application with a modified version of the Linked Version. (If + you use option 4d0, the Installation Information must accompany + the Minimal Corresponding Source and Corresponding Application + Code. If you use option 4d1, you must provide the Installation + Information in the manner specified by section 6 of the GNU GPL + for conveying Corresponding Source.) + + 5. Combined Libraries. + + You may place library facilities that are a work based on the +Library side by side in a single library together with other library +facilities that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: + + a) Accompany the combined library with a copy of the same work based + on the Library, uncombined with any other library facilities, + conveyed under the terms of this License. + + b) Give prominent notice with the combined library that part of it + is a work based on the Library, and explaining where to find the + accompanying uncombined form of the same work. + + 6. Revised Versions of the GNU Lesser General Public License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU Lesser General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. + + Each version is given a distinguishing version number. If the +Library as you received it specifies that a certain numbered version +of the GNU Lesser General Public License "or any later version" +applies to it, you have the option of following the terms and +conditions either of that published version or of any later version +published by the Free Software Foundation. If the Library as you +received it does not specify a version number of the GNU Lesser +General Public License, you may choose any version of the GNU Lesser +General Public License ever published by the Free Software Foundation. + + If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the +Library. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-iso-8859-1.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-iso-8859-1.copyright new file mode 100644 index 00000000..78a493ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-iso-8859-1.copyright @@ -0,0 +1,3 @@ +Copyright (C) 2008 Author + +uerst rgerlich, falls nicht UTF-8 benutzt wrde. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-misc-errors.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-misc-errors.copyright new file mode 100644 index 00000000..dceee0e0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-misc-errors.copyright @@ -0,0 +1,22 @@ +This copyright file contains several errors. + +Downloaded from + +You should not use the template for +Upstream Author(s): Tobias +Copyright 2008 Tobias + +The path /usr/share/common-licences/GPL contains a spelling error. + +It's wrong to reference a compressed license, like this: +/usr/share/common-licenses/BSD.gz + +This path /usr/share/doc/copyright is obsolete. + +The path /usr/share/common-licenses/GPL2 is missing a hyphen. + +This copyright info was automatically extracted from the perl module. +It may not be accurate, so you better check the module sources +if you don't want to get into legal troubles. + +References to /usr/share/common-licenses/BSD are deprecated. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-missing-apache2-license-pointer.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-missing-apache2-license-pointer.copyright new file mode 100644 index 00000000..e71e0f0a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-missing-apache2-license-pointer.copyright @@ -0,0 +1,25 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Midnight Commander +Source: http://www.midnight-commander.org/downloads +Copyright: 1996-2013 Free Software Foundation +License: Apache-2.0 + +Files: * +Copyright: 2004,2007 Oren Ben-Kiki +License: Apache-2.0 + +License: Apache-2.0 + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + . + http://www.apache.org/licenses/LICENSE-2.0 + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-missing-perl-license-pointer.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-missing-perl-license-pointer.copyright new file mode 100644 index 00000000..97f8cda1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-missing-perl-license-pointer.copyright @@ -0,0 +1,5 @@ +This copyright file is for libmythical-perl. The module is licenses under +the same terms as Perl itself but we've forgotten to add a reference to the +copy of the Perl license in common-licenses. + +Copyright 2010 The Mythical Perl Module Team diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-no-errors.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-no-errors.copyright new file mode 100644 index 00000000..d31a720a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-no-errors.copyright @@ -0,0 +1,36 @@ +This package was debianized by Tobias Toedter on +Thu, 20 Mar 2008 23:48:15 +0100 + +It was downloaded from + +Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?recall=184 + +Upstream Authors: + + Tobias Toedter + +Copyright: + + Copyright (C) 2008 Tobias Toedter + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL-2'. + +The Debian packaging is Copyright 2008, Tobias Toedter +and is licensed under the GPL, see above. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-old-fsf.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-old-fsf.copyright new file mode 100644 index 00000000..00946fc5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-old-fsf.copyright @@ -0,0 +1,19 @@ +To the extend this is copyrightable (if at all), it is: + Copyright 2012 Niels Thykier . + +This program is free software; you may redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +This is distributed in the hope that it will be useful, but without +any warranty; without even the implied warranty of merchantability or +fitness for a particular purpose. See the GNU General Public License +for more details. + +A copy of the GNU General Public License version 2 is available as +/usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution +or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. +You can also obtain it by writing to the Free Software Foundation, Inc., +Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-php.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-php.copyright new file mode 100644 index 00000000..338cf096 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-php.copyright @@ -0,0 +1,151 @@ +A copyright file referring to two problematic PHP licenses. + +Copyright 2008 Some Guy. + +-------------------------------------------------------------------- + The PHP License, version 2.02 +Copyright (c) 1999 - 2002 The PHP Group. All rights reserved. +-------------------------------------------------------------------- + +Redistribution and use in source and binary forms, with or without +modification, is permitted provided that the following conditions +are met: + + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + 3. The name "PHP" must not be used to endorse or promote products + derived from this software without prior permission from the + PHP Group. This does not apply to add-on libraries or tools + that work in conjunction with PHP. In such a case the PHP + name may be used to indicate that the product supports PHP. + + 4. The PHP Group may publish revised and/or new versions of the + license from time to time. Each version will be given a + distinguishing version number. + Once covered code has been published under a particular version + of the license, you may always continue to use it under the + terms of that version. You may also choose to use such covered + code under the terms of any subsequent version of the license + published by the PHP Group. No one other than the PHP Group has + the right to modify the terms applicable to covered code created + under this License. + + 5. Redistributions of any form whatsoever must retain the following + acknowledgment: + "This product includes PHP, freely available from + http://www.php.net/". + + 6. The software incorporates the Zend Engine, a product of Zend + Technologies, Ltd. ("Zend"). The Zend Engine is licensed to the + PHP Association (pursuant to a grant from Zend that can be + found at http://www.php.net/license/ZendGrant/) for + distribution to you under this license agreement, only as a + part of PHP. In the event that you separate the Zend Engine + (or any portion thereof) from the rest of the software, or + modify the Zend Engine, or any portion thereof, your use of the + separated or modified Zend Engine software shall not be governed + by this license, and instead shall be governed by the license + set forth at http://www.zend.com/license/ZendLicense/. + + + +THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND +ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A +PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP +DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED +OF THE POSSIBILITY OF SUCH DAMAGE. + +-------------------------------------------------------------------- + +This software consists of voluntary contributions made by many +individuals on behalf of the PHP Group. + +The PHP Group can be contacted via Email at group@php.net. + +For more information on the PHP Group and the PHP project, +please see . + + + + +-------------------------------------------------------------------- + The PHP License, version 3.0 +Copyright (c) 1999 - 2003 The PHP Group. All rights reserved. +-------------------------------------------------------------------- + +Redistribution and use in source and binary forms, with or without +modification, is permitted provided that the following conditions +are met: + + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + + 3. The name "PHP" must not be used to endorse or promote products + derived from this software without prior written permission. For + written permission, please contact group@php.net. + + 4. Products derived from this software may not be called "PHP", nor + may "PHP" appear in their name, without prior written permission + from group@php.net. You may indicate that your software works in + conjunction with PHP by saying "Foo for PHP" instead of calling + it "PHP Foo" or "phpfoo" + + 5. The PHP Group may publish revised and/or new versions of the + license from time to time. Each version will be given a + distinguishing version number. + Once covered code has been published under a particular version + of the license, you may always continue to use it under the terms + of that version. You may also choose to use such covered code + under the terms of any subsequent version of the license + published by the PHP Group. No one other than the PHP Group has + the right to modify the terms applicable to covered code created + under this License. + + 6. Redistributions of any form whatsoever must retain the following + acknowledgment: + "This product includes PHP, freely available from + ". + +THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND +ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A +PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP +DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED +OF THE POSSIBILITY OF SUCH DAMAGE. + +-------------------------------------------------------------------- + +This software consists of voluntary contributions made by many +individuals on behalf of the PHP Group. + +The PHP Group can be contacted via Email at group@php.net. + +For more information on the PHP Group and the PHP project, +please see . + +This product includes the Zend Engine, freely available at +. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-poor-common-licenses.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-poor-common-licenses.copyright new file mode 100644 index 00000000..5a249808 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-poor-common-licenses.copyright @@ -0,0 +1,24 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see + +The full text of this license is in common-licenses/GPL-3 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-versionless.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-versionless.copyright new file mode 100644 index 00000000..c08f5017 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-versionless.copyright @@ -0,0 +1,2 @@ +This package is copyright (c) 2009, Some Name and is +licensed under the GPL, see `/usr/share/common-licenses/GPL'. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-w3c.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-w3c.copyright new file mode 100644 index 00000000..95c3f40e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/copyright-w3c.copyright @@ -0,0 +1,95 @@ +This package was debianized by J Random Developer on +Tue, 8 Nov 2005 00:27:44 +0100. + +It was downloaded from http://search.cpan.org/dist/W3C-LinkChecker/ + +Copyright Holder: the software was developed by following people for the + W3C: + The W3C Link Checker Team + +License: according to the README file, the source code of the W3C linkchecker +is available under the terms of the W3C Software Copyright (compatible with +the GNU GPL), which can be found at + + http://www.w3.org/Consortium/Legal/copyright-software + +and is reproduced below: + + + W3C � SOFTWARE NOTICE AND LICENSE + + [1]http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 + + This work (and included software, documentation such as READMEs, or + other related items) is being provided by the copyright holders under + the following license. By obtaining, using and/or copying this work, + you (the licensee) agree that you have read, understood, and will + comply with the following terms and conditions. + + Permission to copy, modify, and distribute this software and its + documentation, with or without modification, for any purpose and + without fee or royalty is hereby granted, provided that you include + the following on ALL copies of the software and documentation or + portions thereof, including modifications: + 1. The full text of this NOTICE in a location viewable to users of + the redistributed or derivative work. + 2. Any pre-existing intellectual property disclaimers, notices, or + terms and conditions. If none exist, the [2]W3C Software Short + Notice should be included (hypertext is preferred, text is + permitted) within the body of any redistributed or derivative + code. + 3. Notice of any changes or modifications to the files, including the + date changes were made. (We recommend you provide URIs to the + location from which the code is derived.) + + THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT + HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, + INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS + FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR + DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, + TRADEMARKS OR OTHER RIGHTS. + + COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL + OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR + DOCUMENTATION. + + The name and trademarks of copyright holders may NOT be used in + advertising or publicity pertaining to the software without specific, + written prior permission. Title to copyright in this software and any + associated documentation will at all times remain with copyright + holders. + + ____________________________________ + + This formulation of W3C's notice and license became active on December + 31 2002. This version removes the copyright ownership notice such that + this license can be used with materials other than those owned by the + W3C, reflects that ERCIM is now a host of the W3C, includes references + to this specific dated version of the license, and removes the + ambiguous grant of "use". Otherwise, this version is the same as the + [3]previous version and is written so as to preserve the [4]Free + Software Foundation's assessment of GPL compatibility and [5]OSI's + certification under the [6]Open Source Definition. Please see our + [7]Copyright FAQ for common questions about using materials from our + site, including specific terms and conditions for packages like + libwww, Amaya, and Jigsaw. Other questions about this notice can be + directed to [8]site-policy@w3.org. + + + Joseph Reagle <[9]site-policy@w3.org> + + Last revised $Id: copyright-software-20021231.html,v 1.11 2004/07/06 + 16:02:49 slesch Exp $ + +References + + 1. http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 + 2. http://www.w3.org/Consortium/Legal/2002/copyright-software-short-notice-20021231.html + 3. http://www.w3.org/Consortium/Legal/copyright-software-19980720 + 4. http://www.gnu.org/philosophy/license-list.html#GPLCompatibleLicenses + 5. http://www.opensource.org/licenses/W3C.php + 6. http://www.opensource.org/docs/definition.php + 7. http://www.w3.org/Consortium/Legal/IPR-FAQ + 8. mailto:site-policy@w3.org + 9. mailto:site-policy@w3.org + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/rules new file mode 100755 index 00000000..50ff78fa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/rules @@ -0,0 +1,14 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_installdocs: + dh_installdocs + install -m 644 debian/copyright-no-errors.copyright debian/copyright-symlink/usr/share/doc/copyright-symlink/symlink + rm debian/copyright-symlink/usr/share/doc/copyright-symlink/copyright + ln -s symlink debian/copyright-symlink/usr/share/doc/copyright-symlink/copyright + gzip -n -9 debian/copyright-compressed/usr/share/doc/copyright-compressed/copyright + mkdir -p debian/copyright-old-style/usr/doc/copyright + # This should (now) trigger a no-copyright-file (as there is no copyright file + # in the right location). + mv debian/copyright-old-style/usr/share/doc/copyright-old-style/copyright debian/copyright-old-style/usr/doc/copyright/copyright-old-style diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/eval/hints new file mode 100644 index 00000000..12472405 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-general/eval/hints @@ -0,0 +1,16 @@ +copyright-file-general (source): wiki-copyright-format-uri http://wiki.debian.org/Proposals/CopyrightFormat?recall=184 [debian/copyright-crln.copyright] +copyright-file-general (source): unknown-copyright-format-uri [debian/copyright-no-errors.copyright] +copyright-file-general (source): no-dep5-copyright [debian/copyright-w3c.copyright] +copyright-file-general (source): no-dep5-copyright [debian/copyright-versionless.copyright] +copyright-file-general (source): no-dep5-copyright [debian/copyright-poor-common-licenses.copyright] +copyright-file-general (source): no-dep5-copyright [debian/copyright-php.copyright] +copyright-file-general (source): no-dep5-copyright [debian/copyright-old-fsf.copyright] +copyright-file-general (source): no-dep5-copyright [debian/copyright-missing-perl-license-pointer.copyright] +copyright-file-general (source): no-dep5-copyright [debian/copyright-misc-errors.copyright] +copyright-file-general (source): no-dep5-copyright [debian/copyright-full-lgpl.copyright] +copyright-file-general (source): no-dep5-copyright [debian/copyright-full-gpl.copyright] +copyright-file-general (source): no-dep5-copyright [debian/copyright-full-gpl-2.copyright] +copyright-file-general (source): no-dep5-copyright [debian/copyright-full-gpl-1.copyright] +copyright-file-general (source): no-dep5-copyright [debian/copyright-full-gfdl.copyright] +copyright-file-general (source): no-dep5-copyright [debian/copyright-full-apache-2.copyright] +copyright-file-general (source): no-dep5-copyright [debian/copyright-full-agpl-3.copyright] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-license-symlink/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-license-symlink/ORIGIN new file mode 100644 index 00000000..c80ee635 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-license-symlink/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/copyright-file-license-symlink + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-license-symlink/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-license-symlink/debian/changelog new file mode 100644 index 00000000..ffe7832c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-license-symlink/debian/changelog @@ -0,0 +1,17 @@ +copyright-file-license-symlink (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: copyright-file-license-symlink + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +copyright-file-license-symlink (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: copyright-file-license-symlink + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-license-symlink/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-license-symlink/debian/control new file mode 100644 index 00000000..857cdfc0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-license-symlink/debian/control @@ -0,0 +1,28 @@ +Source: copyright-file-license-symlink +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no +Homepage: https://lintian.debian.org/ + +Package: copyright-file-license-symlink-bad +Architecture: all +Depends: ${misc:Depends} +Description: Test the versionless license files checks + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: copyright-file-license-symlink-pedantic +Architecture: all +Depends: ${misc:Depends} +Description: Test the versionless license files checks -- pedantic edition :) + Checks the pedantic version of the versionless copyright file check. + . + This is a test package designed to exercise some check of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-license-symlink/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-license-symlink/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-license-symlink/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-license-symlink/debian/copyright-file-license-symlink-bad.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-license-symlink/debian/copyright-file-license-symlink-bad.copyright new file mode 100644 index 00000000..b59cb92a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-license-symlink/debian/copyright-file-license-symlink-bad.copyright @@ -0,0 +1,20 @@ +This is part of the testsuite of lintian. See the file debian/copyright +in the lintian source directory for more details. + +So far as it is copyrightable at all, this template is + Copyright (C) 2008 Frank Lichtenheld + +This program is free software; you may redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation in its version 3. + +This is distributed in the hope that it will be useful, but without +any warranty; without even the implied warranty of merchantability or +fitness for a particular purpose. See the GNU General Public License +for more details. + +A copy of the GNU General Public License version 3 is available as +/usr/share/common-licenses/GPL in the Debian GNU/Linux distribution +or at http://www.gnu.org/licenses/old-licenses/gpl-3.0.html. +You can also obtain it by writing to the Free Software Foundation, Inc., +51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-license-symlink/debian/copyright-file-license-symlink-pedantic.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-license-symlink/debian/copyright-file-license-symlink-pedantic.copyright new file mode 100644 index 00000000..2591c9b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-license-symlink/debian/copyright-file-license-symlink-pedantic.copyright @@ -0,0 +1,21 @@ +This is part of the testsuite of lintian. See the file debian/copyright +in the lintian source directory for more details. + +So far as it is copyrightable at all, this template is + Copyright (C) 2008 Frank Lichtenheld + +This program is free software; you may redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +This is distributed in the hope that it will be useful, but without +any warranty; without even the implied warranty of merchantability or +fitness for a particular purpose. See the GNU General Public License +for more details. + +A copy of the GNU General Public License version 2 is available as +/usr/share/common-licenses/GPL in the Debian GNU/Linux distribution +or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. +You can also obtain it by writing to the Free Software Foundation, Inc., +51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-license-symlink/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-license-symlink/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-license-symlink/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-license-symlink/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-license-symlink/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-license-symlink/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-license-symlink/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-license-symlink/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-license-symlink/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-license-symlink/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-license-symlink/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-license-symlink/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-license-symlink/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-license-symlink/eval/hints new file mode 100644 index 00000000..dff38863 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/copyright-file-license-symlink/eval/hints @@ -0,0 +1,2 @@ +copyright-file-license-symlink (source): no-dep5-copyright [debian/copyright-file-license-symlink-pedantic.copyright] +copyright-file-license-symlink (source): no-dep5-copyright [debian/copyright-file-license-symlink-bad.copyright] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/ORIGIN new file mode 100644 index 00000000..57cc7a82 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/debian/changelog new file mode 100644 index 00000000..dcd8abd6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/debian/changelog @@ -0,0 +1,17 @@ +cruft-gfdl-invariants (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-gfdl-invariants + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +cruft-gfdl-invariants (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-gfdl-invariants + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/debian/control new file mode 100644 index 00000000..3c4e4009 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/debian/control @@ -0,0 +1,17 @@ +Source: cruft-gfdl-invariants +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: cruft-gfdl-invariants +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for GFDL invariants sections + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/autoconf.texi b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/autoconf.texi new file mode 100644 index 00000000..ba8175d1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/autoconf.texi @@ -0,0 +1,12 @@ +Permission is granted to copy, distribute and/or modify this document +under the terms of the @acronym{GNU} Free Documentation License, +Version 1.3 or any later version published by the Free Software +Foundation; with no Invariant Sections, with the Front-Cover texts +being ``A @acronym{GNU} Manual,'' and with the Back-Cover Texts as in +(a) below. A copy of the license is included in the section entitled +``@acronym{GNU} Free Documentation License.'' + +(a) The FSF's Back-Cover Text is: ``You have the freedom to copy and +modify this @acronym{GNU} manual. Buying copies from the @acronym{FSF} +supports it in developing @acronym{GNU} and promoting software +freedom.'' diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/dvipdfmx.tex b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/dvipdfmx.tex new file mode 100644 index 00000000..a0a66343 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/dvipdfmx.tex @@ -0,0 +1,6 @@ +\section*{GNU Free Documentation License}\label{SEC:FDL} +\subsection*{GNU Free Documentation License}\label{SEC:FDL} + \subsubsection{GNU Free Documentation License}\label{SEC:FDL} + +This document is distributed under the term of the GNU Free Documentation +License. See, the attached file for copying conditions. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/empty.texi b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/empty.texi new file mode 100644 index 00000000..8e87b5f0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/empty.texi @@ -0,0 +1,5 @@ +Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License, +version 1.3 or any later version published by the Free Software +Foundation. A copy of the license is included in the +section entitled "GNU Free Documentation License". diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/emptybis.texi b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/emptybis.texi new file mode 100644 index 00000000..7ad06407 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/emptybis.texi @@ -0,0 +1,7 @@ +Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License, +version 1.3 or any later version published by the Free Software +Foundation. + +A copy of the license is included in the +section entitled "GNU Free Documentation License". diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/false-positive.rtf b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/false-positive.rtf new file mode 100644 index 00000000..19560b4b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/false-positive.rtf @@ -0,0 +1,125 @@ +{\rtf1\ansi\ansicpg1252\cocoartf102{\fonttbl\f2\fnil Bitstream Charter;\f0\fnil Droid Sans Mono;\f1\fnil FreeSans;} +{\colortbl;\red0\green0\blue200;\red0\green0\blue0;\red255\green0\blue0;} +{{\NeXTGraphic iconoGimp3.tif \width1816 \height1309}\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\f0\fs24 \'AC}\f1\fs48 \b\cf1 \'A1Welcome to FisicaLab!\cf0\fs24\b0\cf2 \par +\par +\fs20\i Copyright (C) 2009, 2010, 2012 German A. Arias.\par + Permission is granted to copy, distribute and/or modify this document\par + under the terms of the GNU Free Documentation License, Version 1.3\par + or any later version published by the Free Software Foundation;\par + with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.\par + A copy of the license is included in the section entitled "GNU\par + Free Documentation License".\fs24\i0 \par +\par +\par +FisicaLab is an educational application to solve physics problems. Its main objective is let the user to focus in physics concepts, leaving aside the mathematical details (FisicaLab take care of them). This allows the user to become familiar with the physical concepts without running the risk of getting lost in mathematical details. And so, when the user gain confidence in applying physical concepts, will be better prepared to solve the problems by hand (with pen and paper). FisicaLab is easy to use and very intuitive. However, in order to take advantage of all its features, we recommend you read first these help files.\par +\par +FisicaLab display to two windows, one named \b Modules and elements\b0 and other named \b Chalkboard\b0 . The first of these windows, contain all modules that can be used to solve problems. These modules are grouped by: kinematics, static, dynamics, ... (see image below). You can select one of these groups with the buttons at the top of the window, marked with (1) in the image. When you leave the mouse\rquote s cursor above one of these buttons, a label with the group name is displayed. The buttons marked with (2) let you select the system of units, SI or English. You can see the modules of the selected group inside the box marked with (3). The tabs marked with (4) let you select one of the available modules. The elements of the selected module are displayed inside the box marked with (5). This elements let you set the problems. Inside the box marked with (6) you can write the element\rquote s data (if any element is selected, this box will be empty).\f2 \par +\par + \cf0\f0{{\NeXTGraphic FisicaLabPanel.jpg \width7680 \height10760}\'AC}\f2\cf2 \par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par +\f1 The window named \b Chalkboard\b0 (see image below), have at the top two buttons, marked with (7). The button at the left let you solve the problem, and the other is to clean the chalkboard. The black box marked with (8) is the chalkboard, where you add the elements to set the problems. You need keep in mind, although you can\rquote t see, that the chalkboard is a grid formed with cells of 50x50 pixels. By default the chalkboard size is 26x18 cells. In \b Preferences\b0 panel you can change the size to a maximum of 100x100 cells (A greater size than the default could be useful for trusses problems). The text view marked with (9) is where FisicaLab show the answer and messages. The checkbox marked with (10) erase the content of the text view before show the next answer or message. If you want keep the previous content, unselect this checkbox. In this case you can add notes to identify the results of the different problems.\f2 \par +\par +\pard\ql\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql \cf0\f0{{\NeXTGraphic FisicaLabPizarra.jpg \width8540 \height6680}\'AC}\f2\cf2 \par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par +\par +\f1\fs28\b Handling the elements\f2\fs24\b0 \par + \par +\f1 To add elements at the chalkboard, do a click above the desired element. The mouse\rquote s cursor will become in an open hand, meaning this that we will add an element. Do a click above the chalkboard in the position where you want the element, the mouse\rquote s cursor will back at its original shape. Each time you add a new element, or select one different, a yellow square will be drawn around the current element. The data of the current element are displayed, for its edition, at panel \b Modules and elements\b0 . When you leave the mouse\rquote s cursor above one element in the chalkboard, a label with the element\rquote s data is displayed. In \b Preferences\b0 panel you can configure the font size of these labels.\par +\par +\pard\ql\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql \cf0\f0{{\NeXTGraphic chalkboardProperties.jpg \width9020 \height4600}\'AC}\f1\cf2 \par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par +If you want move an element, click above it with the \b Control\b0 key pressed, the mouse\rquote s cursor will become in a close hand, meaning this that we are moving an element. Do click in the new position and the mouse\rquote s cursor will back at its original shape. In other hand, if you want delete an element, do click above it with the \b Shift\b0 key pressed.\par +\par +Keep in mind that FisicaLab don\rquote t let you combine elements from different modules. The elements in each module are enough to set a wide variety of problems.\f2 \par +\par +\par +\f1\fs28\b Element data\f2\fs24\b0 \par +\par +\f1 When you select an element in the chalkboard, or add a new element, you will see a table at the bottom of the window \b Modules and elements\b0 . With a double click above any field of the second column, you can write the data. FisicaLab supports scientific notation, to use this use the letter E. For example, to write the number 3.45x10-5, write:\par +\par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\qc 3.45E-5\par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par +All numerical data must be without spaces. For example, the following numbers are wrong:\par +\par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\qc - 5.3\par +7.8E - 8\par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par +Also, FisicaLab can use many conversion factors. To use these, add the character @ before the conversion. If you have selected the SI system, FisicaLab assumes that all data are in meters, kg, seconds, etc. With the English system, FisicaLab assumes that all data are in feet, pounds, slugs, seconds, etc. (in the English system the mass must be in slugs). For example, if you want write an speed of 75 km/h, use:\par +\par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\qc 75 @ km/h\par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par +Here, we have one space before and after the character @, but these are for clarity, and are not required. Each module has its how conversion factors, as you can see in the sections that deal about these. \par +\par +You can use letters or words to represent the unknown data. If, for example, the final velocity is an unknown data, you can represent this like:\par +\par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\qc fv\par +finalv\par +fvel\par +\par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql or any other combination. But, we recommend you use letters or words that are related with the unknown data. Also, the conversion factors can be used with the unknown data. For example, if the time is unknown, and you want this in minutes, write something like:\par +\par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\qc t @ min\par +\par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql The scientific notation can be used with the unknowns, adding the characters #E at the end of the name. For example, for a coefficient of thermal expansion, that is a small value:\par +\par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\qc coefficient#E\par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par +Also, this can be used with a conversion factor. For example, for a very long distance that we want in kilometers:\par +\par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\qc distance#E @ km\par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par +All the conversion factors are available in a contextual menu. After select the row of data where want add the factor, a right mouse click open a context menu with all available factors.\par +\par +\pard\ql\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql \cf0\f0{{\NeXTGraphic menuContextual.jpg \width6120 \height5320}\'AC}\f1\cf2 \par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par +FisicaLab allows mathematical operations directly on the fields where you enter data. Can be carried out operations of addition (+), subtraction (-), multiplication (*) and division (/). Although not allowed to group operations by parentheses. It also provides some useful functions for certain calculations. These are listed below with its description:\par +\par +\b cos(ang)\tab \tab Calculates the cosine of the sexagesimal angle "ang".\par +sin(ang)\tab \tab Calculates the sine of the sexagesimal angle "ang".\par +tan(ang)\tab \tab Calculates the tangent of the sexagesimal angle "ang".\par +sqrt(x)\tab \tab Calculates the square root of the number "x".\par +hypot(a,b)\tab Calculates the hypotenuse of a right triangle whose legs are "a" and "b".\par +leg(c,a)\tab \tab Calculates the leg of the right triangle whose hypotenuse is "c" and the\par +\tab \tab \tab other leg is "a".\par +rd(m1,m2,d)\tab Calculates the distance of the mass "m1" to the center of mass of the\par +\tab \tab \tab system consisting of the masses "m1" and "m2", which are spaced a\par +\tab \tab \tab distance "d".\b0 \par +\par +The numbers that are passed as parameters to these functions must have consistent units. For example, in the \b hypot()\b0 function both legs must be in the same units, whether centimeters, meters, inches, etc. These functions can be used in operations of addition, subtraction, multiplication and division. In these operations blank spaces are not allowed. Here are some examples:\par +\par +\pard\ql\b\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\qc 8*cos(34)\par +hypot(4,3)-2\par +rd(3,6,40)*sin(30) @ cm\par +15*8/hypot(13,8)\b0 \par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par +Once entered the operation, FisicaLab will do the calculation and will write the result in the entry. Note that is possible to apply conversion factors. Although these can also be applied after carrying out the calculation.\par +\par +The fields where you enter angles do not allow the operations and functions described above. This is because these fields have their own operations and functions. For example, FisicaLab allows write the angles as slopes (a/b), and automatically convert this to sexagesimal angles. What is very useful for problems of trusses.\par +\par +\pard\ql\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql \cf0\f0{{\NeXTGraphic angulos.jpg \width5080 \height2660}\'AC}\f1\cf2 \par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par +For these fields are available two functions that calculates an angle from other relationships. These functions are:\par +\par +\b acos(a/c)\tab Calculates the sexagesimal angle whose cosine is the ratio "a/c".\par +asin(b/c)\tab \tab Calculates the sexagesimal angle whose sine is the ratio "b/c".\b0 \par +\par +If an operation is entered incorrectly, for example if it contains spaces or contains a function with an incorrect number of parameters, FisicaLab will do nothing and will take that string as an unknown.\par +\par +\par +\b Caution:\b0 \cf0\cf3 If, for example, you add a mass conversion factor in a time data, this will cause an error in the solution. And you will not get a message about this error.\cf0\f2\cf2 \par +\par +\par +\f1\fs28\b How it works\f2\fs24\b0 \par +\par +\f1 FisicaLab work over the base of \i number of equations = number of unknown data\i0 . In general you don\rquote t need worry about this. But in some cases you will see the error \b "The system is undetermined"\b0 . This occurs when you write numeric data in a field that must be an unknown data. The examples show this cases.\f2 \par +\par +\par +\f1\fs28\b Messages\f2\fs24\b0 \par +\par +\f1 FisicaLab write a wide variety of messages in the text view when a problem is wrong. However, you always will see a message about the calculation\rquote s status, as you can see in the following image:\par +\par +\pard\ql\f0\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql \cf0{{\NeXTGraphic cinema44.tif \width4760 \height800}\'AC}\f1\cf2 \par +\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par +The last line say \b "State = success"\b0 , meaning that the calculation was successful. Any other status different as \i success\i0 , mean that or the set problem don\rquote t have a solution, or an unexpected error occurred.\par +\par +} \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/frontback.html b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/frontback.html new file mode 100644 index 00000000..b8e14bc5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/frontback.html @@ -0,0 +1,56 @@ + + +Some title + + + +This is +
+
+Copyright © 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, +1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, +2010, 2011, 2012 + +

Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.3 or +any later version published by the Free Software Foundation; with the +Invariant Sections being “Funding Free Software”, the Front-Cover +Texts being (a) (see below), and with the Back-Cover Texts being (b) +(see below). A copy of the license is included in the section entitled +“GNU Free Documentation License”. + +

(a) The Front-Cover Text is: + +

A GNU Manual + +

(b) The Back-Cover Text is: + +

You have freedom to copy and modify this GNU Manual, like GNU + software. Copies published raises funds. +

+
+
+ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/frontback.texi b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/frontback.texi new file mode 100644 index 00000000..aa1d8e05 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/frontback.texi @@ -0,0 +1,7 @@ +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.3 or +any later version published by the Free Software Foundation; with no +Invariant Sections, with the Front-Cover Texts being ``A Debian Manual'', +and with the Back-Cover Texts as in (a) below. A copy of the license +is included in the section entitled ``GNU Free Documentation +License''. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/invariant.txt b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/invariant.txt new file mode 100644 index 00000000..e649d175 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/invariant.txt @@ -0,0 +1,7 @@ +Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License, +Version 1.3 or any later version published by the Free Software +Foundation; with the Invariant Sections being just "GNU +Manifesto", with no Front-Cover Texts, and with no Back-Cover +Texts. A copy of the license is included in the section +entitled "GNU Free Documentation License". diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/appendix.txt b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/appendix.txt new file mode 100644 index 00000000..8883cacb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/appendix.txt @@ -0,0 +1,25 @@ +ADDENDUM: How to use this License for your documents +==================================================== + +To use this License in a document you have written, include a copy of +the License in the document and put the following copyright and license +notices just after the title page: + + Copyright (C) YEAR YOUR NAME. + Permission is granted to copy, distribute and/or modify this document + under the terms of the GNU Free Documentation License, Version 1.3 + or any later version published by the Free Software Foundation; + with no Invariant Sections, no Front-Cover Texts, and no Back-Cover + Texts. A copy of the license is included in the section entitled ``GNU + Free Documentation License''. + + If you have Invariant Sections, Front-Cover Texts and Back-Cover +Texts, replace the "with...Texts." line with this: + + with the Invariant Sections being LIST THEIR TITLES, with + the Front-Cover Texts being LIST, and with the Back-Cover Texts + being LIST. + + If you have Invariant Sections without Cover Texts, or some other +combination of the three, merge those two alternatives to suit the +situation. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/badpunctuation.txt b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/badpunctuation.txt new file mode 100644 index 00000000..fd6ed32b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/badpunctuation.txt @@ -0,0 +1,8 @@ +No ;after version +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.1 +with no Invariant Sections, no Front-Cover Texts and +no Back-Cover Texts; +A copy of the license is included in the section entitled +license GNU Free Documentation License + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/cflow.texi b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/cflow.texi new file mode 100644 index 00000000..2be8767d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/cflow.texi @@ -0,0 +1,12 @@ +Published by the Free Software Foundation, +51 Franklin Street, Fifth Floor +Boston, MA 02110-1301, USA + +Copyright @copyright{} 2005, 2010, 2014-2016 Sergey Poznyakoff + +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.2 or +any later version published by the Free Software Foundation; with no +Invariant Sections, no Front-Cover and Back-Cover texts. A copy of +the license is included in the section entitled ``GNU Free Documentation +License''. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/citetitle.po b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/citetitle.po new file mode 100644 index 00000000..73f9c3a8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/citetitle.po @@ -0,0 +1,16 @@ +#: C/index.docbook:65(legalnotice/para) +msgid "" +"Permission is granted to copy, distribute and/or modify this document under " +"the terms of the GNU Free Documentation License, " +"Version 1.1 or any later version published by the Free Software Foundation " +"with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A " +"copy of the license is included." +msgstr "" +"Das vorliegende Dokument kann gemäß den Bedingungen der GNU Free " +"Documentation License (GFDL), Version 1.1 oder jeder späteren, von der Free " +"Software Foundation veröffentlichten Version ohne unveränderbare Abschnitte " +"sowie ohne Texte auf dem vorderen und hinteren Buchdeckel kopiert, verteilt " +"und/oder modifiziert werden. Eine Kopie der GFDL finden Sie unter diesem " +"Link oder in der mit diesem " +"Handbuch gelieferten Datei COPYING-DOCS." + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/clisp.txt b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/clisp.txt new file mode 100644 index 00000000..d3490c41 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/clisp.txt @@ -0,0 +1,9 @@ + +Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License +(FDL), either version 1.2 of the license, +or (at your option) any later version published by the free software +foundation (FSF); with no invariant sections, +with no front-cover text, and with no back-cover texts +A copy of the license is included in the +section entitled "GNU Free Documentation License". \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/clisp.xml b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/clisp.xml new file mode 100644 index 00000000..37449fb1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/clisp.xml @@ -0,0 +1,6 @@ + This document documents free software; you can redistribute it + and/or modify it under the terms of the GNU General Public License + (&gpl;), either version 2 of the License, or (at your option) any + later version published by the &fsf;. + A copy of the license is included in . + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/comments.po b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/comments.po new file mode 100644 index 00000000..d11e67b4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/comments.po @@ -0,0 +1,9 @@ +# French translation for SANE backend options +# +# Permission is granted to copy, distribute and/or modify this document +# under the terms of the GNU Free Documentation License, Version 1.1 +# or any later version published by the Free Software Foundation; +# with no Invariant Sections, with no Front-Cover Texts, and with +# no Back-Cover. +# A copy of the license is included in the section entitled "GNU +# Free Documentation License". diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/diveintopythonok.html b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/diveintopythonok.html new file mode 100644 index 00000000..6ace5df0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/diveintopythonok.html @@ -0,0 +1,12 @@ + + + +
+

Permission is granted to copy, distribute, and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant + Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in Appendix G, GNU Free Documentation License. +

+

The example programs in this book are free software; you can redistribute and/or modify them under the terms of the Python license as published by the Python Software Foundation. A copy of the license is included in Appendix H, Python license. +

+
+ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/findsutilsokinlinenewline.c b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/findsutilsokinlinenewline.c new file mode 100644 index 00000000..5291fd3e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/findsutilsokinlinenewline.c @@ -0,0 +1,15 @@ +/* false positive from some package */ + static const char *copy_para[]= + { + "Copyright (C) 1994, 1996, 1998, 2000, 2001, 2003, 2004, 2005, 2006," + ,"2007, 2009, 2010, 2011 Free Software Foundation, Inc." + ,"" + ,"Permission is granted to copy, distribute and/or modify this document" + ,"under the terms of the GNU Free Documentation License, Version 1.3 or" + ,"any later version published by the Free Software Foundation; with no" + ,"Invariant\nSections, with no\nFront-Cover Texts,\nand with no Back-Cover" + ,"Texts. A copy of the license is included in the ``GNU Free" + ,"Documentation License'' file as part of this distribution." + "" + ,NULL + }; diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/findutilsok.c b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/findutilsok.c new file mode 100644 index 00000000..23aa0aff --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/findutilsok.c @@ -0,0 +1,15 @@ +/* false positive from findutils */ + static const char *copy_para[]= + { + "Copyright (C) 1994, 1996, 1998, 2000, 2001, 2003, 2004, 2005, 2006," + ,"2007, 2009, 2010, 2011 Free Software Foundation, Inc." + ,"" + ,"Permission is granted to copy, distribute and/or modify this document" + ,"under the terms of the GNU Free Documentation License, Version 1.3 or" + ,"any later version published by the Free Software Foundation; with no" + ,"Invariant Sections, with no Front-Cover Texts, and with no Back-Cover" + ,"Texts. A copy of the license is included in the ``GNU Free" + ,"Documentation License'' file as part of this distribution." + "" + ,NULL + }; diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/fonts.html b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/fonts.html new file mode 100644 index 00000000..ee27a4f1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/fonts.html @@ -0,0 +1,9 @@ +

+Permission is granted to copy, distribute +and/or modify this document under the terms +of the GNU Free Documentation License, Version +1.1 or any later version published by the +Free Software Foundation; with the Invariant +Sections being LIST THEIR TITLES, with the +Front-Cover Texts being LIST, and with the +Back-Cover Texts being LIST.

\ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/fontsMX.html b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/fontsMX.html new file mode 100644 index 00000000..426c273f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/fontsMX.html @@ -0,0 +1 @@ +Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License. \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/gfdllicenseexample.html b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/gfdllicenseexample.html new file mode 100644 index 00000000..fffca610 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/gfdllicenseexample.html @@ -0,0 +1,13 @@ + + +false positive found in license text: +
+Copyright (C)  year  your name.
+Permission is granted to copy, distribute and/or modify this document
+under the terms of the GNU Free Documentation License, Version 1.3
+or any later version published by the Free Software Foundation;
+with the Invariant Sections being list their titles, with
+the Front-Cover Texts being list, and with the Back-Cover Texts
+being list.
+A copy of the license is included in the section entitled ``GNU Free Documentation License''.
+
diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/gfdllicenseexample.texi b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/gfdllicenseexample.texi
new file mode 100644
index 00000000..fc52ba97
--- /dev/null
+++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/gfdllicenseexample.texi
@@ -0,0 +1,13 @@
+false positive found in license text:
+@smallexample
+@group
+  Copyright (C)  @var{year}  @var{your name}.
+  Permission is granted to copy, distribute and/or modify this document
+  under the terms of the GNU Free Documentation License, Version 1.3
+  or any later version published by the Free Software Foundation;
+  with the Invariant Sections being @var{list their titles}, with the
+  Front-Cover Texts being @var{list}, and with the Back-Cover Texts being @var{list}.
+  A copy of the license is included in the section entitled ``GNU
+  Free Documentation License''.
+@end group
+@end smallexample
diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/gfdllicenseexamplesbr.html b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/gfdllicenseexamplesbr.html
new file mode 100644
index 00000000..46cbd2fd
--- /dev/null
+++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/gfdllicenseexamplesbr.html
@@ -0,0 +1,13 @@
+
+
+false positive found in license text:
+
+Copyright (C)  year  your name.
+Permission is granted to copy, distribute and/or modify this document
+under the terms of the GNU Free Documentation License, Version 1.3
+or any later version published by the Free Software Foundation;
+with the
Invariant Sections
being list their titles, with +the Front-Cover Texts being list, and with the Back-Cover Texts +being list. +A copy of the license is included in the section entitled ``GNU Free Documentation License''. + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/gfdltexcomments.tex b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/gfdltexcomments.tex new file mode 100644 index 00000000..00e496c6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/gfdltexcomments.tex @@ -0,0 +1,7 @@ +% Permission is granted to copy, distribute and/or modify this document +% under the terms of the GNU Free Documentation License, Version 1.1 or +% any later version published by the Free Software Foundation; with no +% Invariant Sections, with no Front-Cover Texts, and with no Back-Cover +% Texts. A copy of the license is included in the section entitled +% ``GNU Free Documentation License.'' +% diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/gnashfalsepositive.html b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/gnashfalsepositive.html new file mode 100644 index 00000000..f01cd4c1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/gnashfalsepositive.html @@ -0,0 +1,15 @@ + + +

+ Copyright 2008, Free Software Foundation. +

+ Permission is granted to copy, distribute and/or modify this + document under the terms of the GNU Free Documentation + License, Version 1.1 or any later version published by the + Free Software Foundation; with noInvariant Sections, with no Front-Cover Texts, + and with no Back-Cover + Texts. A copy of the license is included in + the section entitled "GNU Free Documentation License". +

+ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/gnashfalsepositive.info b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/gnashfalsepositive.info new file mode 100644 index 00000000..cc7a754a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/gnashfalsepositive.info @@ -0,0 +1,14 @@ +To use this License in a document you have written, include a copy of +the License in the document and put the following copyright and license +notices just after the title page: + +Copyright 2008, Free Software Foundation. + +Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License, +version 1.1 or any later version published by the Free Software +Foundation; with noInvariant Sections (*note fdl-invariant::), +with no Front-Cover Texts (*note fdl-cover-texts::), and with no +Back-Cover Texts (*note fdl-cover-texts::). A copy of the license +is included in the section entitled "GNU Free Documentation +License". diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/gnashfalsepositive.xml b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/gnashfalsepositive.xml new file mode 100644 index 00000000..9e77873c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/gnashfalsepositive.xml @@ -0,0 +1,15 @@ + + +

+ Copyright 2008, Free Software Foundation. +

+ Permission is granted to copy, distribute and/or modify this + document under the terms of the GNU Free Documentation + License, Version 1.1 or any later version published by the + Free Software Foundation; with noInvariant Sections, with no Front-Cover Texts, + and with no Back-Cover + Texts. A copy of the license is included in + the section entitled "GNU Free Documentation License". +

+ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/gtk-doc.po b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/gtk-doc.po new file mode 100644 index 00000000..07b3003e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/gtk-doc.po @@ -0,0 +1,42 @@ +#: C/fdl-appendix.xml:79(sect1/para) +msgid "" +"A <_:quote-1/> is a named appendix or a front-matter section of the <_:" +"link-2/> that deals exclusively with the relationship of the publishers or " +"authors of the Document to the Document's overall subject (or to related " +"matters) and contains nothing that could fall directly within that overall " +"subject. (For example, if the Document is in part a textbook of mathematics, " +"a Secondary Section may not explain any mathematics.) The relationship could " +"be a matter of historical connection with the subject or with related " +"matters, or of legal, commercial, philosophical, ethical or political " +"position regarding them." +msgstr "" +"Une <_:quote-1/> désigne une annexe au <_:link-2/>, ou toute information " +"indiquant les rapports entre l'auteur ou l'éditeur et le sujet (ou tout " +"autre sujet connexe) du Document, sans toutefois être en rapport direct avec " +"le sujet lui-même (par exemple, si le Document est un manuel de " +"mathématiques, une Section secondaire ne traitera d'aucune notion " +"mathématique). Cette section peut contenir des informations relatives à " +"l'historique du Document, des sources documentaires, des dispositions " +"légales, commerciales, philosophiques, ou des positions éthiques ou " +"politiques susceptibles de concerner le sujet traité." + + +#: C/fdl-appendix.xml:632(blockquote/para) +#, fuzzy +msgid "" +"Permission is granted to copy, distribute and/or modify this document under " +"the terms of the GNU Free Documentation License, Version 1.1 or any later " +"version published by the Free Software Foundation; with the <_:link-1/> being " +"LIST THEIR TITLES, with the <_:link-2/> being LIST, and with the <_:link-3/> " +"being LIST. A copy of the license is included in the section entitled <_:" +"quote-4/>." +msgstr "" +"Es wird die Erlaubnis gegeben, dieses Dokument zu kopieren, verteilen und/" +"oder zu verändern unter den Bedingungen der GNU Free Documentation License, " +"Version 1.1 oder einer späteren, von der Free Software Foundation " +"veröffentlichten Version; mit den Unveränderlichen Abschnitten. DEREN TITEL AUFGEZÄHLT sind, mit den " +"Vorderseitentexten, die AUFGEZÄHLT " +"sind, und mit den Rückseitentexten, " +"die AUFGEZÄHLT sind. Eine Kopie dieser Lizenz ist in dem Abschnitt enthalten, " +"der mit GNU Free Documentation License betitelt ist." diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/hyphen-used-as-minus-sign.diff b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/hyphen-used-as-minus-sign.diff new file mode 100644 index 00000000..ae8c9738 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/hyphen-used-as-minus-sign.diff @@ -0,0 +1,102 @@ +Description: hyphen-used-as-minus-sign + This manual page seems to contain a hyphen where a minus sign was + intended. +Author: Ruben Molina +Forwarded: no +Last-Update: 2011-06-25 + +Index: kst-2.0.3/src/kst/kst.1.txt +=================================================================== +--- kst-2.0.3.orig/src/kst/kst.1.txt ++++ kst-2.0.3/src/kst/kst.1.txt +@@ -47,7 +47,7 @@ kst may be run entirely from within its + command line arguments are needed. kst has a powerful wizard for + easily setting up new plots. + +-In the second invocation, kst loads pre-saved plot specifications from the ++In the second invocation, kst loads pre\-saved plot specifications from the + file + .I kstfile + and optionally may override some of the settings in that file. +@@ -64,7 +64,7 @@ plot all curves in separate plots + .TP + .B \-a\fR + average frames (simple mean) when plotting with +-.B -s\fR. ++.B \-s\fR. + .TP + .B \-\-A4\fR + use A4 sized paper for printing. Requires +@@ -90,7 +90,7 @@ and instead use + .B \-f\ STARTFRAME\fR + begin plotting at + .I STARTFRAME +-frames into the data. Set to -1 to start at ++frames into the data. Set to \-1 to start at + .I NUMFRAMES + from the end of the data. + .TP +@@ -112,7 +112,7 @@ use US Letter sized paper for printing. + .B \-n\ NUMFRAMES\fR + plot at most + .I NUMFRAMES +-frames of data. Set to -1 to indicate all of the data. ++frames of data. Set to \-1 to indicate all of the data. + .TP + .B \-P\ PLOTNAME\fR + plot all plots in the plot named +@@ -145,7 +145,7 @@ frames when plotting. + .B \-x\ FIELD\fR + use + .I FIELD +-as the X-axis vector. ++as the X\-axis vector. + .TP + .B \-y\ FIELD\fR + plot +@@ -158,30 +158,30 @@ plot + as an image. + .SH EXAMPLES + Plot all data in column 2 from data.dat. +- kst data.dat -y 2 ++ kst data.dat \-y 2 + + Same as above, except only read 20 lines, starting at line 10. +- kst data.dat -f 10 -n 20 -y 2 ++ kst data.dat \-f 10 \-n 20 \-y 2 + + also read col 1. One plot per curve. +- kst data.dat -f 10 -n 20 -y 1 -y 2 ++ kst data.dat \-f 10 \-n 20 \-y 1 \-y 2 + + Read col 1 from data2.dat and col 1 from data.dat +- kst data.dat -f 10 -n 20 -y 2 data2.dat -y 1 ++ kst data.dat \-f 10 \-n 20 \-y 2 data2.dat \-y 1 + + Same as above, except read 40 lines starting at 30 in data2.dat +- kst data.dat -f 10 -n 20 -y 2 data2.dat -f 30 -n 40 -y 1 ++ kst data.dat \-f 10 \-n 20 \-y 2 data2.dat \-f 30 \-n 40 \-y 1 + + Specify the X vector and error bars: + Plot x = col 1 and Y = col 2 and error flags = col 3 from data.dat +- kst data.dat -x 1 -e 3 -y 2 ++ kst data.dat \-x 1 \-e 3 \-y 2 + + Get the X vector from data1.dat, and the Y vector from data2.dat. +- kst data1.dat -x 1 data2.dat -y 1 ++ kst data1.dat \-x 1 data2.dat \-y 1 + + Placement: + Plot column 2 and column 3 in plot P1 and column 4 in plot P2 +- kst data.dat -P P1 -y 2 -y 3 -P P2 -y 4 ++ kst data.dat \-P P1 \-y 2 \-y 3 \-P P2 \-y 4 + .SH BUGS + Please report bugs to either the kst mailing list at + .I kst@kde.org +@@ -198,6 +198,6 @@ Matthew Truch + Permission is granted to copy, distribute and/or modify this document + under the terms of the GNU Free Documentation License, Version 1.2 or + any later version published by the Free Software Foundation; with no ++Invariant Sections, with no Front\-Cover Texts, and with no Back\-Cover + Texts. A copy of the license is included in the `COPYING.DOC' file + as part of the kst distribution. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/kdoctools/customization/ru/entities/fdl-notice.docbook b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/kdoctools/customization/ru/entities/fdl-notice.docbook new file mode 100644 index 00000000..0168da65 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/kdoctools/customization/ru/entities/fdl-notice.docbook @@ -0,0 +1,6 @@ +Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License, +Version 1.2 or any later version published by the Free Software +Foundation; with &FDLInvariantSections;, with &FDLFrontCoverText;, and +with &FDLBackCoverText;. A copy of the license is included in . + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/krusader b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/krusader new file mode 100644 index 00000000..96f3be36 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/krusader @@ -0,0 +1,20 @@ + \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/latexhref.tex b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/latexhref.tex new file mode 100644 index 00000000..d082bfc6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/latexhref.tex @@ -0,0 +1,7 @@ +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.2 +or any later version published by the +\href{http://www.fsf.org}{Free Software Foundation}; +with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. +A copy of the license is included in the section entitled +``\hyperlink{GFDL_GFDL}{GNU Free Documentation License}''. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/latexhyperlink.tex b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/latexhyperlink.tex new file mode 100644 index 00000000..e193a168 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/latexhyperlink.tex @@ -0,0 +1,7 @@ +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.2 +or any later version published by the +\hyperlink{http://www.fsf.org}{Free Software Foundation}; +with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. +A copy of the license is included in the section entitled +``\hyperlink{GFDL_GFDL}{GNU Free Documentation License}''. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/latexhyphenslash.tex b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/latexhyphenslash.tex new file mode 100644 index 00000000..370ea737 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/latexhyphenslash.tex @@ -0,0 +1,2 @@ +Copyright @sx(c) YEAR YOUR NAME. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-\/Cover Texts, and no Back-\/Cover Texts. A copy of the license is included in the section entitled \char`\"{}GNU +Free Documentation License\char`\"{}. \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/latexurl.tex b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/latexurl.tex new file mode 100644 index 00000000..107d9fbf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/latexurl.tex @@ -0,0 +1,7 @@ +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation +License\url{http://www.gnu.org/copyleft/fdl.html}, Version 1.1 or any +later version published by the Free Software Foundation; with no +Invariant Sections, with no Front-Cover Texts, and with no Back-Cover +Texts. A copy of the license is included in the chapter entitled "GNU +Free Documentation License". \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/libnss-pgsql.xml b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/libnss-pgsql.xml new file mode 100644 index 00000000..8a5eb6ee --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/libnss-pgsql.xml @@ -0,0 +1,7 @@ + + Permission is granted to copy, distribute and/or modify this document + under the terms of the GNU Free Documentation License, Version 1.1 or + any later version published by the Free Software Foundation. There + are no invariant sections. A copy of the license is included in the + section entitled "GNU Free Documentation License". + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/lilypond.texi b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/lilypond.texi new file mode 100644 index 00000000..56939ee9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/lilypond.texi @@ -0,0 +1,6 @@ +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.1 +or any later version published by the Free Software Foundation; +with no Invariant Sections. +A copy of the license is included in the section entitled ``GNU +Free Documentation License''. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/lilypond2.txt b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/lilypond2.txt new file mode 100644 index 00000000..4e66d64a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/lilypond2.txt @@ -0,0 +1,19 @@ +Permission is granted to copy, distribute and/or modify the +documentation for GNU LilyPond under the terms of the GNU Free +Documentation License as published by the Free Software Foundation, +either version 1.3, or (at your option) any later version; with no +Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. + +A copy of the license is contained in the file COPYING.FDL. + +The following exceptions apply: + + * It does not apply to input files (contained in the + directory tree Documentation/snippets/); these are in + the public domain. + + * It does not apply to any manual which explicitly states + another license. + + * It does not apply to the MusicXML unit test suite, + which is licensed under the MIT license. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/mailutils.texi b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/mailutils.texi new file mode 100644 index 00000000..dffaccc5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/mailutils.texi @@ -0,0 +1,6 @@ +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.2 or +any later version published by the Free Software Foundation; with no +Invariant Sections, no Front-Cover, and no Back-Cover texts. +A copy of the license is included in the section entitled ``GNU Free +Documentation License''. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/maintain.html b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/maintain.html new file mode 100644 index 00000000..e1fd5a28 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/maintain.html @@ -0,0 +1,28 @@ + + +

Documentation files should have license notices also. Manuals should +use the GNU Free Documentation License. Following is an example of the +license notice to use after the copyright line(s) using all the +features of the GFDL. +

+
+
Permission is granted to copy, distribute and/or modify this document
+under the terms of the GNU Free Documentation License, Version 1.3 or
+any later version published by the Free Software Foundation; with the
+Invariant Sections being ``GNU General Public License'', with the
+Front-Cover Texts being ``A GNU Manual'', and with the Back-Cover Texts
+as in (a) below.  A copy of the license is included in the section
+entitled ``GNU Free Documentation License''.
+
+(a) The FSF's Back-Cover Text is: ``You have the freedom to
+copy and modify this GNU manual.  Buying copies from the FSF
+supports it in developing GNU and promoting software freedom.''
+
+ +

If the FSF does not publish this manual on paper, then omit the last +sentence in (a) that talks about copies from GNU Press. If the FSF is +not the copyright holder, then replace ‘FSF’ with the appropriate +name. +

+ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/maintain.texi b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/maintain.texi new file mode 100644 index 00000000..633e7584 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/maintain.texi @@ -0,0 +1,13 @@ +Documentation files should have license notices also. Manuals should +use the GNU Free Documentation License. Following is an example of the +license notice to use after the copyright line(s) using all the +features of the GFDL. + +@smallexample +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.3 or +any later version published by the Free Software Foundation; with the +Invariant Sections being ``GNU General Public License'', with the +Front-Cover Texts being ``A GNU Manual'', and with the Back-Cover Texts +as in (a) below. A copy of the license is included in the section +entitled ``GNU Free Documentation License''. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/make-stds.texi b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/make-stds.texi new file mode 100644 index 00000000..b5c26856 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/make-stds.texi @@ -0,0 +1,7 @@ +@c Permission is granted to copy, distribute and/or modify this document +@c under the terms of the GNU Free Documentation License, Version 1.1 +@c or any later version published by the Free Software Foundation; +@c with no Invariant Sections, with no +@c Front-Cover Texts, and with no Back-Cover Texts. +@c A copy of the license is included in the section entitled ``GNU +@c Free Documentation License''. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/normal.c b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/normal.c new file mode 100644 index 00000000..a58e927a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/normal.c @@ -0,0 +1,13 @@ + /*****************************************************************************/ +/** \mainpage Cal3D API Reference + *
+ *

+ * Permission is granted to copy, distribute and/or modify this document + * under the terms of the GNU Free Documentation License, Version 1.1 or + * any later version published by the Free Software Foundation; + * with no Invariant Sections, no Front-Cover Texts and + * no Back-Cover Texts; + * A copy of the license is included in the section entitled + * \link license "GNU Free Documentation License" \endlink . + *

+ *****************************************************************************/ diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/normal.texi b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/normal.texi new file mode 100644 index 00000000..d9c1b545 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/normal.texi @@ -0,0 +1,6 @@ +Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License, +version 1.3 or any later version published by the Free Software +Foundation; with no Invariant Sections, no Front-Cover Texts and +no Back-Cover Texts. A copy of the license is included in the +section entitled "GNU Free Documentation License". diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/normalbkchem.texi b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/normalbkchem.texi new file mode 100644 index 00000000..dd888e2b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/normalbkchem.texi @@ -0,0 +1,6 @@ +Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License, +version 1.3 or any later version published by the Free Software +Foundation; no Invariant Sections, no Front-Cover Texts, +no Back-Cover Texts. A copy of the license is included in the +section entitled "GNU Free Documentation License". diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/normalhtmlcomment.html b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/normalhtmlcomment.html new file mode 100644 index 00000000..747d2e0d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/normalhtmlcomment.html @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/normalmancomment.txt b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/normalmancomment.txt new file mode 100644 index 00000000..f33dfcd5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/normalmancomment.txt @@ -0,0 +1,7 @@ +.\" manual page for blaze, a command wrapper for BlazeBlogger +.\" +.\" Permission is granted to copy, distribute and/or modify this document +.\" under the terms of the GNU Free Documentation License, Version 1.3 or +.\" any later version published by the Free Software Foundation; with no +.\" Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. +.\" A copy of the license is included below. \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/normalwithbreakathyphen.texi b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/normalwithbreakathyphen.texi new file mode 100644 index 00000000..22ae5751 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/normalwithbreakathyphen.texi @@ -0,0 +1,8 @@ +Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License, +version 1.3 or any later version published by the Free Software +Foundation; with no Invariant Sections, no Front- +Cover Texts and +no Back- +Cover Texts. A copy of the license is included in the +section entitled "GNU Free Documentation License". diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/oidentd.8 b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/oidentd.8 new file mode 100644 index 00000000..5a4df932 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/oidentd.8 @@ -0,0 +1,9 @@ +.\" Copyright (C) XXX +.\" +.\" Permission is granted to copy, distribute and/or modify this document +.\" under the terms of the GNU Free Documentation License, Version 1.1 +.\" or any later version published by the Free Software Foundation; +.\" with the Invariant Sections being no invariant sections, with the +.\" Front-Cover Texts being no front-cover texts, and with the Back-Cover +.\" Texts being no back-cover texts. A copy of the license is included with +.\" this package in the file "COPYING.DOC." \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/opentoken.txt b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/opentoken.txt new file mode 100644 index 00000000..32412766 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/opentoken.txt @@ -0,0 +1,5 @@ +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.3 or +any later version published by the Free Software Foundation; with no +Invariant Sections, Front-Cover or Back-Cover texts. A copy of the license +is included in the section entitled ``GNU Free Documentation License''. \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/parsewiki.txt b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/parsewiki.txt new file mode 100644 index 00000000..950d936c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/parsewiki.txt @@ -0,0 +1,4 @@ +Permission is granted to copy, distribute and/or modify this document under \ +the terms of the GNU Free Documentation License, Version 1.1 or any later \ +version published by the Free Software Foundation; without any Invariant \ +Sections. A copy of the license is included in the file GFDL. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/partedvariant.txt b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/partedvariant.txt new file mode 100644 index 00000000..96037ac8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/partedvariant.txt @@ -0,0 +1,8 @@ +Parted 2.13 version with strange grammar. + +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.3 +or any later version published by the Free Software Foundation; +with the no Invariant Sections, with the no Front-Cover Texts, and +with no Back-Cover Texts. A copy of the license is included in the +file, COPYING.DOC. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/partialtranslation.po b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/partialtranslation.po new file mode 100644 index 00000000..f1d17a5b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/partialtranslation.po @@ -0,0 +1,15 @@ +För att använda GNU Free Documentation License för ett dokument du har skrivit, inkludera en kopia av licensen [det engelska originalet] i dokumentet och placera följande copyrightklausul omedelbart efter titelsidan: + +
+ + Permission is granted to copy, distribute and/or modify this + document under the terms of the GNU Free Documentation + License, Version 1.1 or any later version published by the + Free Software Foundation; with the Invariant Sections being LIST + THEIR TITLES, with the Front-Cover Texts being LIST, + and with the Back-Cover + Texts being LIST. A copy of the license is included in + the section entitled GNU Free Documentation + License. + +
diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/patch-R.diff b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/patch-R.diff new file mode 100644 index 00000000..73e379b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/patch-R.diff @@ -0,0 +1,7 @@ +1,6d0 +< Permission is granted to copy, distribute and/or modify this +< document under the terms of the GNU Free Documentation License, +< version 1.3 or any later version published by the Free Software +< Foundation; with no Invariant Sections, no Front-Cover Texts and +< no Back-Cover Texts. A copy of the license is included in the +< section entitled "GNU Free Documentation License". diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/patch-c0.diff b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/patch-c0.diff new file mode 100644 index 00000000..600653ee --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/patch-c0.diff @@ -0,0 +1,18 @@ +*** make-stds.texi 2013-02-17 21:44:05.485250349 +0100 +--- normal.texi 2012-12-20 21:23:22.829397718 +0100 +*************** +*** 1,7 **** +! @c Permission is granted to copy, distribute and/or modify this document +! @c under the terms of the GNU Free Documentation License, Version 1.1 +! @c or any later version published by the Free Software Foundation; +! @c with no Invariant Sections, with no +! @c Front-Cover Texts, and with no Back-Cover Texts. +! @c A copy of the license is included in the section entitled ``GNU +! @c Free Documentation License''. +--- 1,6 ---- +! Permission is granted to copy, distribute and/or modify this +! document under the terms of the GNU Free Documentation License, +! version 1.3 or any later version published by the Free Software +! Foundation; with no Invariant Sections, no Front-Cover Texts and +! no Back-Cover Texts. A copy of the license is included in the +! section entitled "GNU Free Documentation License". diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/patch-u.diff b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/patch-u.diff new file mode 100644 index 00000000..db6e4f9c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/patch-u.diff @@ -0,0 +1,9 @@ +--- /dev/null 2013-05-15 23:18:30.206386135 +0200 ++++ normal.texi 2012-12-20 21:23:22.829397718 +0100 +@@ -0,0 +1,6 @@ ++Permission is granted to copy, distribute and/or modify this ++document under the terms of the GNU Free Documentation License, ++version 1.3 or any later version published by the Free Software ++Foundation; with no Invariant Sections, no Front-Cover Texts and ++no Back-Cover Texts. A copy of the license is included in the ++section entitled "GNU Free Documentation License". diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/patch-uR.diff b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/patch-uR.diff new file mode 100644 index 00000000..347adff1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/patch-uR.diff @@ -0,0 +1,9 @@ +--- normal.texi 2012-12-20 21:23:22.829397718 +0100 ++++ /dev/null 2013-05-15 23:18:30.206386135 +0200 +@@ -1,6 +0,0 @@ +-Permission is granted to copy, distribute and/or modify this +-document under the terms of the GNU Free Documentation License, +-version 1.3 or any later version published by the Free Software +-Foundation; with no Invariant Sections, no Front-Cover Texts and +-no Back-Cover Texts. A copy of the license is included in the +-section entitled "GNU Free Documentation License". diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/patch.diff b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/patch.diff new file mode 100644 index 00000000..f64bfaf2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/patch.diff @@ -0,0 +1,7 @@ +0a1,6 +> Permission is granted to copy, distribute and/or modify this +> document under the terms of the GNU Free Documentation License, +> version 1.3 or any later version published by the Free Software +> Foundation; with no Invariant Sections, no Front-Cover Texts and +> no Back-Cover Texts. A copy of the license is included in the +> section entitled "GNU Free Documentation License". diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/php-elisp.texi b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/php-elisp.texi new file mode 100644 index 00000000..2ab31039 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/php-elisp.texi @@ -0,0 +1,19 @@ +@copying +This manual documents PHP mode version @value{version} for +use with GNU Emacs. + +Copyright @copyright{} 2008 Aaron S. Hawley + +@quotation +Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation +License, Version 1.2 or any later version published by the +Free Software Foundation; with no Invariant Sections, and no +Cover Texts. A copy of the license is included in the +section entitled ``Copying This Manual.'' + +A copy of the license is also available from the Free +Software Foundation Web site at +@url{http://www.gnu.org/licenses/fdl.html}. + +@end quotation \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/pipeindent.txt b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/pipeindent.txt new file mode 100644 index 00000000..8a0594ae --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/pipeindent.txt @@ -0,0 +1,7 @@ +Some user ident with pipe (|) + | Permission is granted to copy, distribute and/or modify this + | document under the terms of the GNU Free Documentation License, + | version 1.3 or any later version published by the Free Software + | Foundation; with no Invariant Sections, no Front-Cover Texts and + | no Back-Cover Texts. A copy of the license is included in the + | section entitled "GNU Free Documentation License". diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/quotes.xml b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/quotes.xml new file mode 100644 index 00000000..58edd5b9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/quotes.xml @@ -0,0 +1,8 @@ +Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation +License, Version 1.2 or any later version published by the +Free Software Foundation; with no Invariant Sections, no +Front-Cover Texts, and no Back-Cover Texts. +A copy of the license +is included in the section entitled "GNU Free Documentation +License". \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/quoteswithasdefined.xml b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/quoteswithasdefined.xml new file mode 100644 index 00000000..112c734f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/quoteswithasdefined.xml @@ -0,0 +1,9 @@ +Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation +License, Version 1.2 or any later version published by the +Free Software Foundation; +with no invariant sections, front-cover texts or back-cover texts, +each as defined in the license. +A copy of the license +is included in the section entitled "GNU Free Documentation +License". \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/sdlbasic.html b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/sdlbasic.html new file mode 100644 index 00000000..ff317417 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/sdlbasic.html @@ -0,0 +1,11 @@ +
+Permission is granted to copy, distribute +and/or modify this document under the terms of the GNU Free +Documentation License, Version 1.2 or any later version published by +the Free Software Foundation; with no Invariant Sections Texts.
+ + +A copy of the license is included here below.
+ + +
diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/smbc.texi b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/smbc.texi new file mode 100644 index 00000000..c803dc56 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/smbc.texi @@ -0,0 +1,9 @@ +@quotation +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.1 or +any later version published by the Free Software Foundation; with the +Invariant Sections being ``GNU General Public License'' and ``GNU Free +Documentation License'', with no Front-Cover Texts, and with no +Back-Cover Texts. A copy of the license is included in the section +entitled ``GNU Free Documentation License''. +@end quotation \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/soundjuicer.po b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/soundjuicer.po new file mode 100644 index 00000000..e0a41a66 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/soundjuicer.po @@ -0,0 +1,8 @@ +#~ "Permission is granted to copy, distribute and/or modify this document " +#~ "under the terms of the GNU Free Documentation License, Version 1.1 or any " +#~ "later version published by the Free Software Foundation; with the Invariant Sections being LIST THEIR " +#~ "TITLES, with the Front-Cover Texts being LIST, and with the Back-" +#~ "Cover Texts being LIST. A copy of the license is included in the " +#~ "section entitled GNU Free Documentation License." \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/texignu.texi b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/texignu.texi new file mode 100644 index 00000000..93270243 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/texignu.texi @@ -0,0 +1,6 @@ +Permission is granted to copy, distribute and/or modify this document +under the terms of the @acronym{GNU} Free Documentation License, +Version 1.3 or any later version published by the Free Software +Foundation; with no Invariant Sections, with no Front-Cover texts +and with no Back-Cover Texts. A copy of the license is included in the section entitled +``@acronym{GNU} Free Documentation License.'' diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/texlive.tex b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/texlive.tex new file mode 100644 index 00000000..b6e1240f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/texlive.tex @@ -0,0 +1,8 @@ +% note the end is not classical... +% Copyright (c) 2002--2004 Philipp Lehman +% Permission is granted to copy, distribute and/or modify this document under +% the terms of the GNU Free Documentation License, version 1.2, with no +% invariant sections, with no front-cover texts, and no back-cover texts. This +% document is distributed in the hope that it will be useful, but without any +% warranty; without even the implied warranty of merchantability or fitness for +% a particular purpose. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/texlivefont.tex b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/texlivefont.tex new file mode 100644 index 00000000..d4b872c2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/texlivefont.tex @@ -0,0 +1,6 @@ +Copyright 2002--2004 Philipp Lehman + +Permission is granted to copy, distribute and\slash or modify this document under the terms of the GNU Free Documentation License, version 1.2, with no invariant sections, no front-cover texts, and no back-cover texts. + +A copy of the license is included in the appendix. + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/tla.txt b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/tla.txt new file mode 100644 index 00000000..2043b26e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/tla.txt @@ -0,0 +1,21 @@ +/* + * :permissions ("Permission is granted to copy, distribute and/or modify this document" + * "under the terms of the GNU Free Documentation License, Version 1.1" + * "or any later version published by the Free Software Foundation;" + * "with the Invariant Sections being:" + * "" + * " The GNU General Public License" + * " The GNU Free Documentation License" + * "" + * "with the Front-Cover Texts being" + * "" + * " (none)," + * "" + * "and with the Back-Cover Texts being" + * "" + * " (none)." + * "" + * "A copy of the license is included in the section entitled \"GNU" + * "Free Documentation License\".")) + * + */ \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/ulink.xml b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/ulink.xml new file mode 100644 index 00000000..6f634a61 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/ulink.xml @@ -0,0 +1,7 @@ +Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation +License, Version 1.2 or any later version published by the +Free Software Foundation; with no Invariant Sections, no +Front-Cover Texts, and no Back-Cover Texts. A copy of the license +is included in the section entitled "GNU Free Documentation +License". \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/variantdictfold.txt b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/variantdictfold.txt new file mode 100644 index 00000000..8463a590 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/variantdictfold.txt @@ -0,0 +1,7 @@ +This is ok + Permission is granted to copy, distribute and/or modify this + document under the terms of the GNU Free Documentation + License, Version 1.1 or any later version published by the + Free Software Foundation; with no Invariant Sections, Front- + or Back-Cover Texts. A copy of the license is included in the + section entitled "{GNU Free Documentation License}". diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/zeroisnotplural.texi b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/zeroisnotplural.texi new file mode 100644 index 00000000..8782eed2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldfalsepositive/zeroisnotplural.texi @@ -0,0 +1,6 @@ +Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License, +version 1.3 or any later version published by the Free Software +Foundation; with no Invariant Section, no Front-Cover Text and +no Back-Cover Text. A copy of the license is included in the +section entitled "GNU Free Documentation License". diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldmanpagesgfdlproblem.1 b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldmanpagesgfdlproblem.1 new file mode 100644 index 00000000..83a4acfc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/cruft-gfdl-invariants/src/oldmanpagesgfdlproblem.1 @@ -0,0 +1,12 @@ +.\" +.\" Manpage example +.\" +.PP +Permission is granted to copy, distribute and/or modify this document +under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.2 or +any later version published by the Free Software Foundation; with the +Invariant Sections being \*(L"\s-1GNU\s0 General Public License\*(R" and \*(L"Funding +Free Software\*(R", the Front-Cover texts being (a) (see below), and with +the Back-Cover Texts being (b) (see below). A copy of the license is +included in the \fIgfdl\fR\|(7) man page. +.PP diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/excluded-files-in-native/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/excluded-files-in-native/ORIGIN new file mode 100644 index 00000000..b9fd592b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/excluded-files-in-native/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/excluded-files-in-native + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/excluded-files-in-native/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/excluded-files-in-native/debian/changelog new file mode 100644 index 00000000..296b1e7a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/excluded-files-in-native/debian/changelog @@ -0,0 +1,17 @@ +excluded-files-in-native (1.7+ds) unstable; urgency=low + + * Lintian Test Suite. + * Test: excluded-files-in-native + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +excluded-files-in-native (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: excluded-files-in-native + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/excluded-files-in-native/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/excluded-files-in-native/debian/control new file mode 100644 index 00000000..9ec203a6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/excluded-files-in-native/debian/control @@ -0,0 +1,17 @@ +Source: excluded-files-in-native +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: excluded-files-in-native +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Field Excluded-Files is present in native package. + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/excluded-files-in-native/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/excluded-files-in-native/debian/copyright new file mode 100644 index 00000000..4d239818 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/excluded-files-in-native/debian/copyright @@ -0,0 +1,30 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. +Files-Excluded: some-file + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. + You can also obtain it by writing to the Free Software Foundation, Inc., + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/excluded-files-in-native/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/excluded-files-in-native/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/excluded-files-in-native/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/excluded-files-in-native/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/excluded-files-in-native/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/excluded-files-in-native/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/excluded-files-in-native/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/excluded-files-in-native/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/excluded-files-in-native/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/excluded-files-in-native/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/excluded-files-in-native/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/excluded-files-in-native/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/excluded-files-in-native/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/excluded-files-in-native/eval/hints new file mode 100644 index 00000000..7c683c1e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/excluded-files-in-native/eval/hints @@ -0,0 +1 @@ +excluded-files-in-native (source): source-ships-excluded-file some-file [debian/copyright:8] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/excluded-files-in-native/some-file b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/excluded-files-in-native/some-file new file mode 100644 index 00000000..c3f1f94a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/excluded-files-in-native/some-file @@ -0,0 +1 @@ +SOME CONTENTS. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/file-does-not-exist/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/file-does-not-exist/ORIGIN new file mode 100644 index 00000000..f318de24 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/file-does-not-exist/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/file-does-not-exist + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/file-does-not-exist/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/file-does-not-exist/debian/changelog new file mode 100644 index 00000000..2841b8c5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/file-does-not-exist/debian/changelog @@ -0,0 +1,17 @@ +file-does-not-exist (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: file-does-not-exist + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +file-does-not-exist (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: file-does-not-exist + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/file-does-not-exist/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/file-does-not-exist/debian/control new file mode 100644 index 00000000..7fb54ff6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/file-does-not-exist/debian/control @@ -0,0 +1,17 @@ +Source: file-does-not-exist +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: file-does-not-exist +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Files paragraph references a file that does not exist. + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/file-does-not-exist/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/file-does-not-exist/debian/copyright new file mode 100644 index 00000000..fa106e94 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/file-does-not-exist/debian/copyright @@ -0,0 +1,13 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Comment: Test case from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=888001#33 + +Files: * +License: GPL-3 +Copyright: © 2014 Mattia Rizzolo + +Files: file-does-not-exist +License: GPL-3 +Copyright: © 2014 Mattia Rizzolo + +License: GPL-3 + Please call the Free Software Foundation for a copy of the license. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/file-does-not-exist/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/file-does-not-exist/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/file-does-not-exist/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/file-does-not-exist/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/file-does-not-exist/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/file-does-not-exist/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/file-does-not-exist/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/file-does-not-exist/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/file-does-not-exist/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/file-does-not-exist/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/file-does-not-exist/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/file-does-not-exist/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/file-does-not-exist/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/file-does-not-exist/eval/hints new file mode 100644 index 00000000..71b2f98d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/file-does-not-exist/eval/hints @@ -0,0 +1 @@ +file-does-not-exist (source): superfluous-file-pattern file-does-not-exist [debian/copyright:8] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/files-included-covers-none/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/files-included-covers-none/ORIGIN new file mode 100644 index 00000000..4fc490da --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/files-included-covers-none/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/files-included-covers-none + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/files-included-covers-none/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/files-included-covers-none/debian/changelog new file mode 100644 index 00000000..644e8716 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/files-included-covers-none/debian/changelog @@ -0,0 +1,17 @@ +lone-files-included (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: lone-files-included + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +lone-files-included (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: lone-files-included + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/files-included-covers-none/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/files-included-covers-none/debian/control new file mode 100644 index 00000000..516acd41 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/files-included-covers-none/debian/control @@ -0,0 +1,17 @@ +Source: lone-files-included +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: lone-files-included +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Filex-Included without Files-Excluded + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/files-included-covers-none/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/files-included-covers-none/debian/copyright new file mode 100644 index 00000000..7935e5d3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/files-included-covers-none/debian/copyright @@ -0,0 +1,21 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Files-Included: + include-this + +Files: * +Copyright: 2011 J. Random Hacker +License: GPL-2 + This package is free software; you can redistribute it and/or modify it under + the terms of the GNU General Public License as published by the Free Software + Foundation; version 2 dated June, 1991. + . + This package is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License along with + this package; if not, write to the Free Software Foundation, Inc., 51 Franklin + St, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the full text of the GNU General Public License version 2 + can be found in the file `/usr/share/common-licenses/GPL-2'. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/files-included-covers-none/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/files-included-covers-none/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/files-included-covers-none/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/files-included-covers-none/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/files-included-covers-none/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/files-included-covers-none/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/files-included-covers-none/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/files-included-covers-none/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/files-included-covers-none/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/files-included-covers-none/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/files-included-covers-none/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/files-included-covers-none/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/files-included-covers-none/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/files-included-covers-none/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/files-included-covers-none/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/files-included-covers-none/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/files-included-covers-none/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/files-included-covers-none/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/files-included-covers-none/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/files-included-covers-none/eval/hints new file mode 100644 index 00000000..51d4974a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/files-included-covers-none/eval/hints @@ -0,0 +1 @@ +lone-files-included (source): superfluous-file-pattern (Files-Included) include-this [debian/copyright:2] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/INSTALL b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/INSTALL new file mode 100644 index 00000000..3b50ea95 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/INSTALL @@ -0,0 +1,176 @@ +Basic Installation +================== + + These are generic installation instructions. + + The `configure' shell script attempts to guess correct values for +various system-dependent variables used during compilation. It uses +those values to create a `Makefile' in each directory of the package. +It may also create one or more `.h' files containing system-dependent +definitions. Finally, it creates a shell script `config.status' that +you can run in the future to recreate the current configuration, a file +`config.cache' that saves the results of its tests to speed up +reconfiguring, and a file `config.log' containing compiler output +(useful mainly for debugging `configure'). + + If you need to do unusual things to compile the package, please try +to figure out how `configure' could check whether to do them, and mail +diffs or instructions to the address given in the `README' so they can +be considered for the next release. If at some point `config.cache' +contains results you don't want to keep, you may remove or edit it. + + The file `configure.in' is used to create `configure' by a program +called `autoconf'. You only need `configure.in' if you want to change +it or regenerate `configure' using a newer version of `autoconf'. + +The simplest way to compile this package is: + + 1. `cd' to the directory containing the package's source code and type + `./configure' to configure the package for your system. If you're + using `csh' on an old version of System V, you might need to type + `sh ./configure' instead to prevent `csh' from trying to execute + `configure' itself. + + Running `configure' takes a while. While running, it prints some + messages telling which features it is checking for. + + 2. Type `make' to compile the package. + + 3. Optionally, type `make check' to run any self-tests that come with + the package. + + 4. Type `make install' to install the programs and any data files and + documentation. + + 5. You can remove the program binaries and object files from the + source code directory by typing `make clean'. To also remove the + files that `configure' created (so you can compile the package for + a different kind of computer), type `make distclean'. There is + also a `make maintainer-clean' target, but that is intended mainly + for the package's developers. If you use it, you may have to get + all sorts of other programs in order to regenerate files that came + with the distribution. + +Compilers and Options +===================== + + Some systems require unusual options for compilation or linking that +the `configure' script does not know about. You can give `configure' +initial values for variables by setting them in the environment. Using +a Bourne-compatible shell, you can do that on the command line like +this: + CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure + +Or on systems that have the `env' program, you can do it like this: + env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure + +Compiling For Multiple Architectures +==================================== + + You can compile the package for more than one kind of computer at the +same time, by placing the object files for each architecture in their +own directory. To do this, you must use a version of `make' that +supports the `VPATH' variable, such as GNU `make'. `cd' to the +directory where you want the object files and executables to go and run +the `configure' script. `configure' automatically checks for the +source code in the directory that `configure' is in and in `..'. + + If you have to use a `make' that does not supports the `VPATH' +variable, you have to compile the package for one architecture at a time +in the source code directory. After you have installed the package for +one architecture, use `make distclean' before reconfiguring for another +architecture. + +Installation Names +================== + + By default, `make install' will install the package's files in +`/usr/local/bin', `/usr/local/man', etc. You can specify an +installation prefix other than `/usr/local' by giving `configure' the +option `--prefix=PATH'. + + You can specify separate installation prefixes for +architecture-specific files and architecture-independent files. If you +give `configure' the option `--exec-prefix=PATH', the package will use +PATH as the prefix for installing programs and libraries. +Documentation and other data files will still use the regular prefix. + + If the package supports it, you can cause programs to be installed +with an extra prefix or suffix on their names by giving `configure' the +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. + +Optional Features +================= + + Some packages pay attention to `--enable-FEATURE' options to +`configure', where FEATURE indicates an optional part of the package. +They may also pay attention to `--with-PACKAGE' options, where PACKAGE +is something like `gnu-as' or `x' (for the X Window System). The +`README' should mention any `--enable-' and `--with-' options that the +package recognizes. + + For packages that use the X Window System, `configure' can usually +find the X include and library files automatically, but if it doesn't, +you can use the `configure' options `--x-includes=DIR' and +`--x-libraries=DIR' to specify their locations. + +Specifying the System Type +========================== + + There may be some features `configure' can not figure out +automatically, but needs to determine by the type of host the package +will run on. Usually `configure' can figure that out, but if it prints +a message saying it can not guess the host type, give it the +`--host=TYPE' option. TYPE can either be a short name for the system +type, such as `sun4', or a canonical name with three fields: + CPU-COMPANY-SYSTEM + +See the file `config.sub' for the possible values of each field. If +`config.sub' isn't included in this package, then this package doesn't +need to know the host type. + + If you are building compiler tools for cross-compiling, you can also +use the `--target=TYPE' option to select the type of system they will +produce code for and the `--build=TYPE' option to select the type of +system on which you are compiling the package. + +Sharing Defaults +================ + + If you want to set default values for `configure' scripts to share, +you can create a site shell script called `config.site' that gives +default values for variables like `CC', `cache_file', and `prefix'. +`configure' looks for `PREFIX/share/config.site' if it exists, then +`PREFIX/etc/config.site' if it exists. Or, you can set the +`CONFIG_SITE' environment variable to the location of the site script. +A warning: not all `configure' scripts look for a site script. + +Operation Controls +================== + + `configure' recognizes the following options to control how it +operates. + +`--cache-file=FILE' + Use and save the results of the tests in FILE instead of + `./config.cache'. Set FILE to `/dev/null' to disable caching, for + debugging `configure'. + +`--help' + Print a summary of the options to `configure', and exit. + +`--quiet' +`--silent' +`-q' + Do not print messages saying which checks are being made. + +`--srcdir=DIR' + Look for the package's source code in directory DIR. Usually + `configure' can determine that directory automatically. + +`--version' + Print the version of Autoconf used to generate the `configure' + script, and exit. + +`configure' also accepts some other, not widely useful, options. + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/Makefile new file mode 100644 index 00000000..da1dc555 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/Makefile @@ -0,0 +1,12 @@ +all: hello hello-static + +hello: hello.c + gcc hello.c -o hello + +hello-static: hello.c + gcc -static hello.c -o hello-static + +clean: + rm -f hello hello-static + +distclean: clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/ORIGIN new file mode 100644 index 00000000..324e20b7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/legacy-binary + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/NEWS.Debian b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/NEWS.Debian new file mode 100644 index 00000000..29f561c4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/NEWS.Debian @@ -0,0 +1,12 @@ +binary (4-1.1) UNRELEASED; urgency=high + + This is a Debian NEWS entry that isn't encoded properly in UTF-8: . + It also has a usefull speling error. + + -- Russ Allbery Sun, 14 Oct 2007 17:11:36 -0700 + +binary (1) unstable; urgency=low + + This is another entry but this one isn't syntactically valid. + + -- Russ Allbery 2007-10-14 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/README.Debian b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/README.Debian new file mode 100644 index 00000000..94bcc0ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/README.Debian @@ -0,0 +1,5 @@ +this is a binary package to test lintian's handling of bins. +Check handling of D-Bus and dbus (neither of which should produce +warnings). + + -- Russ Allbery , Wed, 6 Feb 2008 18:35:11 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/changelog new file mode 100644 index 00000000..35b8c0bf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/changelog @@ -0,0 +1,47 @@ +binary (4-1.1) unstable; urgency=low + + * I'm doing an comaintainer-upload, acknowledging a NMU, but with a version + number which suggests I'm doing a NMU myself. + + Lintian-maintainers: Please don't update this changelog, otherwise you'll + probably break the checks/nmu checks. + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 01:49:42 +0200 + +binary (4-1) unstable; urgency=low + + * Weird version number for the new check for accidents with native + packaging. + * Date was fixed by BR and this test was put on changelog-file-strange-date + due to dpkg bug, see #794674. + + -- Marc 'HE' Brockschmidt Thu, 15 Apr 2004 23:33:51 +0200 + +binary (4) unstable; urgency=low + + * Add big file to /usr/share to trigger the big-usr-share check + + -- Jeroen van Wolffelaar Fri, 27 Feb 2004 10:15:59 +0100 + +binary (3) unstable; urgency=unlimited + + * Add some bogus menu entries using su-to-root in a bogus way + + -- Jeroen van Wolffelaar Thu, 12 Feb 2004 20:11:22 +0100 + +binary (2) unstable; urgency=low + + * Added an INSTALL document which policy 6.3 suggests not to do + + -- Sean 'Shaleh' Perry Tue, 30 Jan 2001 15:23:59 -0800 + +binary (1) unstable; urgency=low + + * hello.c added + * hello-static is same as hello, but compiled statically + * added a menu entry which lacks a Section + * added a postinst + * postinst calls suidregister which is no longer policy compliant + + -- Sean 'Shaleh' Perry Wed, 10 Jan 2001 08:55:34 -0800 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/conffiles b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/conffiles new file mode 100644 index 00000000..d1a08433 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/conffiles @@ -0,0 +1 @@ +/etc/menu-methods/lintian diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/control new file mode 100644 index 00000000..c797357b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/control @@ -0,0 +1,42 @@ +Source: binary +Section: misc +Priority: optional +Maintainer: Lintian Maintainers +Uploaders: Co-maintainer one , Jeroen van Wolffelaar , Co-maintainer three +Standards-Version: 3.2.1 +Homepage: http://lintian.debian.org/ +Vcs-Svn: http://svn.wolffelaar.nl/lintian/trunk +XS-Vcs-Browser: http://svn.wolffelaar.nl/lintian/trunk +XS-Dm-Upload-Allowed: yes + +Package: binary +Architecture: any +Pre-Depends: ${shlibs:Depends}, xorg, binary-data (= ${source:Version}), libssl0.9.8 +Homepage: +Vcs-Svn: http://svn.wolffelaar.nl/lintian/trunk +Description: test handling of binary files + Regression test for lintian's handling of binary files for debian. This + is checked for picky spelling errors. + . + This package list [ subversion | gconf ] should not be flagged as a spelling + mistake. The spelling correction for dont should be correct. + . + Homepage: http://lintian.debian.org/ + +Package: binary-data +Architecture: all +Depends: binary (= ${source:Version}), libssl-not-openssl, + libssl0.9.8 | or-something-else +Description: test handling of binary relationships + Regression test for lintian's checking of package relationships between + arch:any and arch:all packages. + . + This mention of subversion should be flagged as a spelling mistake. + +#Package: binary-comment +#Architecture: space-almonds +#Depends: * +#Depends: * +#Description: test comment support +# Yes, comments are actually allowed in debian/control, so none of the +# above should produce errors. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/copyright new file mode 100644 index 00000000..4546c628 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/copyright @@ -0,0 +1,15 @@ +hello.c is released under public domain. This is distributed in the hope that +it will be useful, but without any warranty; without even the implied warranty +of merchantability or fitness for a particular purpose. + +A reference to /usr/share/common-licenses/GPL-2 to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +Test for old FSF address: + +Free Software Foundation, Inc., 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. + +Test for deprecated nätionäl äncoding. + +Improper capitalization of linux or debian isn't caught here. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/doc-base b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/doc-base new file mode 100644 index 00000000..7e5b38f2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/doc-base @@ -0,0 +1,41 @@ +Document: binary!docs +Title: Broken debian binary doc-base control file +Author: Russ Allbery +Abstract: This control file exercises various tests of doc-base control + files, including several things that aren't tested yet. The third and + fourth one has trailing whitespace. + . + This section has a speling error and bad character. + . + The above separator was fine. +Section: Non/Existant +Unknown: Some field + + + +Format: debiandoc-sgML +Files: /usr/share/doc/binary/binary.sgml.gz +Unknown: Some field + +Format: ESP +Index: /usr/share/doc/binary/binary.txt + +Index: /usr/share/doc/binary/html/index.html + /usr/share/doc/binary/html/ch1.html + /usr/share/doc/binary/html/ch4.html + + +Format: HTML +Index: /usr/share/doc/binary/html/index.html +Files: /usr/share/doc/binary/html/ch?.h*l + /usr/share/doc/binary/hml/*.html + +Format: inFO +Files: /usr/share/info/binary.info.gz + +Format: HTML +Index: /usr/share/doc/binary/html/index.html +Files: /usr/share/doc/binary/html/ch5.html + /usr/share/doc/binary/html/ch6.html + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/goodbye.desktop b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/goodbye.desktop new file mode 100644 index 00000000..f6ce8e3f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/goodbye.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Name:Goodbye +# Name=Goodbye +Comment=Say hello! +SpecialTag=This doesn't exist! +Exec=goodbye +icon=hello +Terminal=true +Type=Application +Categories=WeirdStuff;Screensaver; +Encoding=ISO-10646-1 +[Other Entry] +Name=Goodbye diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/hello.desktop b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/hello.desktop new file mode 100644 index 00000000..f7954685 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/hello.desktop @@ -0,0 +1,14 @@ +# some random comment + +# [Foo Bar] +[KDE Desktop Entry] +Name=Hello +Name[en_US]=Hello +Comment=Say hello! +Exec=kdesu hello +Icon=hello +Terminal=true +Type=Application +Categories=GNOME;GTK;System;Applet;X-Foo;Settings; +Encoding=UTF-8 +OnlyShowIn=GNOME; diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/menu b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/menu new file mode 100644 index 00000000..e8972f4f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/menu @@ -0,0 +1,26 @@ +?package(binary):needs=text title="Hello World" command="/usr/bin/hello" +?package(binary):needs=text section="Applications/System" title="Run cfdisk (0)" command="/usr/bin/su-to-root cfdisk" +?package(binary):needs="text" section="Applications/System/Hardware" title="Run cfdisk (1)" command="sux -p cfdisk" +?package(binary):needs="x11" section="Window Managers" title="Run xfdisk" command="/usr/sbin/su-to-root -c xfdisk" +?package(binary):needs="wm" section="Applications/System/Administration" title="Run fdisk-wm" command="su-to-root -c hello" +?package(binary):section="Apps/Games" title="I'm not root!" command="su-to-root -c imnothere" +?package(binary):needs="text" section="Apps/System" title="I'm not here!" command="/imnothere" +?package(binary,other-binary):\ + needs="text"\ + section="Applications/Shells"\ + title="more than one required"\ + command="other-bin -s omething" +?package(binary):needs="wmmodule" section="WindowManagers/Modules" title="somemodule" command="ModuleCmd" +?package(binary):needs="wmmodule" section="FVWM Modules" title="somemodule" command="ModuleCmd" +?package(binary):needs="text" section="Applications/System/Administration" title="I'm not in /usr/bin!" command="iminusrbin" +?package(binary):needs="text"\ + section="Applications/System/Administration"\ + title="I'm not root!" command="su-to-root -c imnothere" +?package(binary):needs="text" section="Applications/System/Administration"\ + title="Run cfdisk (0)" command="cfdisk" +?package(binary):needs="text" section="Applications/System/Administration" title="Hello World" command="/usr/bin/hello" +?package(binary):needs="wm" section="FVWM Modules" title="Fake Module" command="hello" +?package(binary):needs="fvwmmodule" section="Window Maker" title="Fake Module"\ + command="hello" +?package(binary):needs="x11" section="Applications/System/Hardware" title="Run xfdisk" command="su-to-root -c 'xfdisk -f'" +?package(binary):needs="text" section="Applications/System/Administration" title="foo" command="sh /path/to/foo" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/menu-method b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/menu-method new file mode 100644 index 00000000..9f07bd73 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/menu-method @@ -0,0 +1,22 @@ +#!/usr/bin/install-menu + +# -*- mode: shell-script; -*- +#I need menu-1! +# + +!include notmenu.h + +compat="menu-2" + +outputencoding="UTF-8"; +outputlanguage="C"; + +x11 = AppEntry("false"); +text = AppEntry("true"); + +startmenu = ""; +endmenu = ""; +submenutitle = ""; +rootprefix = "/var/lib/lintian/menu"; +userprefix = ".local/share/lintian/menu"; + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/postinst new file mode 100644 index 00000000..29e18619 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/postinst @@ -0,0 +1,6 @@ +#! /bin/bash -e + +if [ $1 eq 'configure' ] +then + suidregister hello-static root root 4755 +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/rules new file mode 100755 index 00000000..a962ea92 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/rules @@ -0,0 +1,92 @@ +#!/usr/bin/make -f + +tmp=debian/tmp + +# This reference to $(PWD) should not cause an error but the one below +# should. +build-arch: + make + echo $(PWD) + +build: build-arch + +clean: + make -i clean + [ ! -f debian/files ] || rm -f debian/files + [ ! -f debian/substvars ] || rm -f debian/substvars + [ ! -d debian/tmp ] || rm -rf debian/tmp + [ ! -d debian/binary ] || rm -rf debian/binary + [ ! -d debian/binary-data ] || rm -rf debian/binary-data + +binary-arch: build + install -d $(tmp)/usr/bin + install -d $(tmp)/boot/hello + install -m 755 hello $(tmp)/usr/bin + touch $(tmp)/usr/bin/iminusrbin + chmod 755 $(tmp)/usr/bin/iminusrbin + install -m 755 hello-static $(tmp)/usr/bin + strip $(tmp)/usr/bin/hello-static + install -m 755 hello-static $(tmp)/usr/bin/hello.static + strip --remove-section=.comment --remove-section=.note $(tmp)/usr/bin/hello.static + ln $(tmp)/usr/bin/hello.static $(tmp)/usr/bin/static-hello + install -m 755 hello-static $(tmp)/boot/hello + strip --remove-section=.comment --remove-section=.note $(tmp)/boot/hello/hello-static + install -d $(tmp)/usr/share/doc/binary + install -m 644 INSTALL $(tmp)/usr/share/doc/binary + install -d $(tmp)/usr/share/doc/binary/html + echo '' > $(tmp)/usr/share/doc/binary/html/index.html + echo '' > $(tmp)/usr/share/doc/binary/html/ch1.html + ln -s ../html/./ch1.html $(tmp)/usr/share/doc/binary/html/ch2.html + ln -s /usr/share/doc/binary/htm/ch1.html $(tmp)/usr/share/doc/binary/html/ch3.html + echo '' > $(tmp)/usr/share/doc/binary/html/ch5.html + ln $(tmp)/usr/share/doc/binary/html/ch5.html \ + $(tmp)/usr/share/doc/binary/html/ch6.html + install -d $(tmp)/usr/share/menu + install -d $(tmp)/usr/lib/menu + install -d $(tmp)/usr/share/binary + install -m 644 debian/menu $(tmp)/usr/share/menu/binary + install -m 644 debian/menu $(tmp)/usr/lib/menu/binary + install -d $(tmp)/etc/menu-methods + install -m 755 debian/menu-method $(tmp)/etc/menu-methods/lintian + install -d $(tmp)/usr/share/doc-base + install -m 644 debian/doc-base $(tmp)/usr/share/doc-base/binary + touch '$(tmp)/usr/share/doc-base/space ' + install -m 644 debian/README.Debian $(tmp)/usr/share/doc/binary + install -m 644 debian/NEWS.Debian $(tmp)/usr/share/doc/binary + gzip -n -9 $(tmp)/usr/share/doc/binary/NEWS.Debian + install -m 644 debian/copyright $(tmp)/usr/share/doc/binary + install -m 644 debian/changelog $(tmp)/usr/share/doc/binary + #gzip -n -9 $(tmp)/usr/share/doc/binary/changelog + install -d $(tmp)/DEBIAN + install -m 755 debian/postinst $(tmp)/DEBIAN + install -m 644 debian/conffiles $(tmp)/DEBIAN + + install -d $(tmp)/usr/share/applications + install -m 644 debian/hello.desktop \ + $(tmp)/usr/share/applications/hello.desktop + install -m 755 debian/goodbye.desktop \ + $(tmp)/usr/share/applications/goodbye.desktop + + # should be ok... + echo boe > $(tmp)/usr/bar + ln $(tmp)/usr/bar $(tmp)/usr/foo + # but this isn't + echo boe > $(tmp)/usr/bar2 + ln $(tmp)/usr/bar2 $(tmp)/usr/share/baz + + dd if=/dev/zero of=$(tmp)/usr/share/binary/largefile bs=1024 count=4000 + + install -d debian/binary-data/DEBIAN + install -d debian/binary-data/usr/share/doc + ln -s binary debian/binary-data/usr/share/doc/binary-data + + dpkg-shlibdeps $(tmp)/usr/bin/hello + dpkg-gencontrol -pbinary -isp + dpkg-gencontrol -pbinary-data -Pdebian/binary-data -isp + + dpkg --build debian/tmp .. + dpkg --build debian/binary-data .. + +binary: binary-arch + +.PHONY: build-arch build binary-arch binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/templates b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/templates new file mode 100644 index 00000000..3d928614 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/templates @@ -0,0 +1,16 @@ +# The debconf templates defined here are the sort that you'd use if +# providing a wordlist and an ispell dictionary for the language +# "perl". This shouldn't trigger warnings about not using debconf-po. + +Template: shared/packages-ispell +Type: text +Description: + +Template: shared/packages-wordlist +Type: text +Description: + +Template: miscfiles/languages +Type: text +Default: perl (Pathologically Eclectic Rubbish Lister) +Description: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/eval/hints new file mode 100644 index 00000000..ecc0a09a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/eval/hints @@ -0,0 +1 @@ +binary (source): no-dep5-copyright [debian/copyright] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/hello.c b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/hello.c new file mode 100644 index 00000000..2fb04e17 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-binary/hello.c @@ -0,0 +1,8 @@ +#include +#include + +int main(int argc, char *argv[]) { + + printf("Hello, World!\n"); + exit(0); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/ORIGIN new file mode 100644 index 00000000..6711b8ec --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/legacy-debconf + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/changelog new file mode 100644 index 00000000..1aa50be8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/changelog @@ -0,0 +1,6 @@ +debconf (1~rc1) unstable; urgency=low + + * Initial Release + * Changelog line with exactly 80 characters which tests the line-too-long tag. + + -- Lintian Maintainers Wed, 3 May 2006 18:07:19 -0500 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/control new file mode 100644 index 00000000..37b76641 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/control @@ -0,0 +1,52 @@ +Source: debconf +Section: utils +Priority: optional +Build-Depends: debhelper-compat (= 14) +Maintainer: Lintian Maintainers +Standards-Version: 3.7.2 + +Package: debconf-test +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (dummy) + +Package: debconf-test-noscripts +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (noscripts) + Package missing postinst/postrm/config. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: debconf-test-preinst +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (preinst) + Package uses debconf only in preinst. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: debconf-test-postinst +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (postinst) + Package uses debconf only in postinst. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: debconf-udeb +Section: debian-installer +XC-Package-Type: udeb +XB-Installer-Menu-Item: 100 +Architecture: any +Depends: ${shlibs:Depends} +Description: Test udeb package for the debconf checks of lintian (dummy) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/copyright new file mode 100644 index 00000000..84843ee3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/copyright @@ -0,0 +1,10 @@ +Copyright (C) 2004 Frank Lichtenheld + +Test for really old FSF address: + +Free Software Foundation, Inc., 675 Mass Ave, Cambridge, +MA 02139, USA. + +Test for a dh-make boilerplate: +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test-noscripts.templates b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test-noscripts.templates new file mode 100644 index 00000000..93f80713 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test-noscripts.templates @@ -0,0 +1,3 @@ +Template: debconf/test +Type: text +_description: Foo bar (1) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test-postinst.postinst b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test-postinst.postinst new file mode 100644 index 00000000..56ab8712 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test-postinst.postinst @@ -0,0 +1,10 @@ +#!/bin/sh +set -e + +. /usr/share/debconf/confmodule + +db_input medium debconf/test + +#DEBHELPER# + +true diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test-postinst.postrm b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test-postinst.postrm new file mode 100644 index 00000000..cbf5e3b2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test-postinst.postrm @@ -0,0 +1,7 @@ +#!/bin/sh +set -e +if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_purge +fi +#DEBHELPER# diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test-postinst.templates b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test-postinst.templates new file mode 100644 index 00000000..2a2a8ab6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test-postinst.templates @@ -0,0 +1,3 @@ +Template: debconf/test +Type: text +_description: Enter something: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test-preinst.postrm b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test-preinst.postrm new file mode 100644 index 00000000..cbf5e3b2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test-preinst.postrm @@ -0,0 +1,7 @@ +#!/bin/sh +set -e +if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_purge +fi +#DEBHELPER# diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test-preinst.preinst b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test-preinst.preinst new file mode 100644 index 00000000..bf6f0749 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test-preinst.preinst @@ -0,0 +1,13 @@ +#!/bin/sh +set -e + +# Obsolete name for the confmodule +. /usr/share/debconf/confmodule.sh + +. /usr/share/debconf/confmodule + +db_input medium debconf/test + +#DEBHELPER# + +true diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test-preinst.templates b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test-preinst.templates new file mode 100644 index 00000000..2a2a8ab6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test-preinst.templates @@ -0,0 +1,3 @@ +Template: debconf/test +Type: text +_description: Enter something: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test.config b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test.config new file mode 100644 index 00000000..9e32d06f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test.config @@ -0,0 +1,24 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +db_settitle "Funky lintian test" + +# Bad priorities. +db_text LOW debconf/test +db_input normal debconf/test + +# Valid priorities. +db_text \ +high debconf/test +foo=medium +db_input $foo debconf/test +db_input "$foo" debconf/test +db_input 'medium' debconf/test + +# debconf/transtring should not be flagged as unused +# (it's aliased to debconf/alias, which is used) +db_register debconf/transtring debconf/alias +db_input medium debconf/alias diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test.postinst b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test.postinst new file mode 100644 index 00000000..b3870371 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test.postinst @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +# Not supposed to do this here. +db_input medium debconf/test + +true diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test.templates b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test.templates new file mode 100644 index 00000000..811bb6cf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test.templates @@ -0,0 +1,101 @@ +Template: debconf/test +Type: text +_description: Foo bar (1) + +Template: debconf/testmulti +Type: multiselect +__Choices: foo, bar, boo +_Description: test comma usages in choices fields + +Template: debconf/testmulti-escape +Type: multiselect +_Choices: foo\, bar, boo +_Description: test escaped comma usages in choices fields: + +Template: debconf/testboolean +Type: boolean +_Description: Enter yes or no: + Do you want to answer this question? + +Template: debconf/teststring +Type: string +_Description: This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + +Template: debconf/testnote +Type: note +Description: This should be a title and not a really long sentence that ends in a regular period. + +Template: debconf/1st-person +Type: select +__Choices: one, two +_Description: Select one of these: + I am a stupid test of first-person syntax that tells you to select yes + even though yes isn't an option in this prompt. + +Template: debconf/internal +Type: boolean +Description: For internal use only + We are testing that style checks are not applied to templates that are + marked as internal. + +Template: debconf/no-description +Type: string + +Template: debconf/translate +Type: boolean +_Default: false +_Description: Should this really be translated? + +Template: debconf/transtring +Type: string +_Default: 1 +_Description: Count of templates: + The number of useless numbers that a translator would have to translate + for this template. + +Template: debconf/language +__Choices: English, Spanish, German, French +# This is the default choice. Translators should put their own language, +# if available, here instead, but the value MUST be the English version +# of the value for the package scripts to work properly. +_Default: English[ translators, see the comment in the PO files] +_Description: The default language, an example of a default that should + be translated. + +Template: debconf/error +Type: error +_Description: An error occurred + This is a sample Debconf error template. + +Template: debconf/should-be-boolean +Type: select +__Choices: yes, no +_Description: Choose: + Pick yes or no. + +Template: debconf/should-be-no-longer-a-problem +Type: boolean +_Description: Decide, lintian + Using "no longer" should no longer be detected as + making-assumptions-about-interfaces-in-templates by lintian. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test.templates.de b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test.templates.de new file mode 100644 index 00000000..f9ea1219 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test.templates.de @@ -0,0 +1,3 @@ +Template: debconf/testmulti +Type: multiselect +Choices: foo, bar\, boo, boo diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test.templates.in b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-test.templates.in new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-udeb.postinst b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-udeb.postinst new file mode 100644 index 00000000..4ce41f08 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-udeb.postinst @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +ldconfig + +true diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-udeb.templates b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-udeb.templates new file mode 100644 index 00000000..5d7cf5a7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/debconf-udeb.templates @@ -0,0 +1,3 @@ +Template: debian-installer/debconf-udeb/title +Type: text +_description: This is just a test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/po/POTFILES.in b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/po/POTFILES.in new file mode 100644 index 00000000..d0c82f08 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/po/POTFILES.in @@ -0,0 +1,2 @@ +[type: gettext/rfc822deb] debconf-test.templates +[type: gettext/rfc822deb] debconf-udeb.templates diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/po/de.po b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/po/de.po new file mode 100644 index 00000000..86c57968 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/po/de.po @@ -0,0 +1,66 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2004-12-06 01:01+0100\n" +"Last-Translator: Frank Lichtenheld \n" +"Language-Team: debian-l10n-german@l.d.o\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "foo" +msgstr "foo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "bar" +msgstr "bar, boo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "boo" +msgstr "boo" + +#. Type: multiselect +#. Description +#: ../debconf-test.templates:8 +msgid "test comma usages in choices fields" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:11 +msgid "foo\\, bar, boo" +msgstr "foo, bar, boo" + +#. Type: text +#. description +#: ../debconf-udeb.templates:3 +msgid "This is just a test" +msgstr "Dies ist nur ein Test" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/po/fr.po b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/po/fr.po new file mode 100644 index 00000000..c74deb28 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/po/fr.po @@ -0,0 +1,60 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"Last-Translator: Frank Lichtenheld \n" +"Language-Team: debian-l10n-german@l.d.o\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "foo" +msgstr "foo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "bar" +msgstr "bar, boo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "boo" +msgstr "boo" + +#. Type: multiselect +#. Description +#: ../debconf-test.templates:8 +msgid "test comma usages in choices fields" +msgstr "" + +#. Type: text +#. description +#: ../debconf-udeb.templates:3 +msgid "This is just a test" +msgstr " diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/po/lang.po b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/po/lang.po new file mode 100644 index 00000000..7ac498af --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/po/lang.po @@ -0,0 +1,15 @@ +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/po/nds.po b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/po/nds.po new file mode 100644 index 00000000..7ac498af --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/po/nds.po @@ -0,0 +1,15 @@ +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/po/output b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/po/output new file mode 100644 index 00000000..c3df1a5b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/po/output @@ -0,0 +1 @@ +2 utf8 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/po/pt_BR.po b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/po/pt_BR.po new file mode 100644 index 00000000..7ac498af --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/po/pt_BR.po @@ -0,0 +1,15 @@ +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/po/sample-file.po b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/po/sample-file.po new file mode 100644 index 00000000..8dcc0ffa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/po/sample-file.po @@ -0,0 +1 @@ +This is some file that isn't actually a valid .po file. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/po/templates.pot b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/po/templates.pot new file mode 100644 index 00000000..914c77f0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/po/templates.pot @@ -0,0 +1,61 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "foo" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "bar" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "boo" +msgstr "" + +#. Type: multiselect +#. Description +#: ../debconf-test.templates:8 +msgid "test comma usages in choices fields" +msgstr "" + +#. Type: text +#. description +#: ../debconf-udeb.templates:3 +msgid "This is just a test" +msgstr "" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/pycompat b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/pycompat new file mode 100644 index 00000000..0cfbf088 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/pycompat @@ -0,0 +1 @@ +2 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/pyversions b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/pyversions new file mode 100644 index 00000000..6f290b06 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/pyversions @@ -0,0 +1 @@ +>= 2.7 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/rules new file mode 100755 index 00000000..933901ac --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/rules @@ -0,0 +1,64 @@ +#!/usr/bin/make -f + +deb_dir = debian/debconf +udeb_dir = debian/debconf-udeb +build_dirs = $(deb_dir) $(udeb_dir) + +build-indep: +# There are no architecture-independent files to be built +# by this package. If there were any they would be made +# here. + +build-arch: + dh_testdir + touch build + +build: build-indep build-arch + +clean: + dh_testdir + dh_testroot + -rm -f build + + dh_clean + +binary-indep: build +# There are no architecture-independent files to be uploaded +# generated by this package. If there were any they would be +# made here. + +binary-arch: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs -a + + dh_installchangelogs -a + dh_installdocs -a + dh_installdebconf -pdebconf-test + dh_installdebconf -pdebconf-test-noscripts --noscripts + dh_installdebconf -pdebconf-test-preinst --noscripts + dh_installdebconf -pdebconf-test-postinst --noscripts + dh_installdebconf -pdebconf-udeb + + + + + dh_compress -a + dh_fixperms -a + +# The shlibs stuff doesn't matter here so do it in a weird order to +# test warnings. + dh_installdeb -a + dh_shlibdeps -a + dh_makeshlibs -a + dh_gencontrol -a + dh_md5sums + dh_builddeb -a + dh_makeshlibs -a + +# Below here is fairly generic really + +binary: binary-indep binary-arch + +.PHONY: build-arch build-indep build binary binary-arch binary-indep clean checkroot diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/eval/hints new file mode 100644 index 00000000..a925398b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-debconf/eval/hints @@ -0,0 +1 @@ +debconf (source): no-dep5-copyright [debian/copyright] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-foo++/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-foo++/ORIGIN new file mode 100644 index 00000000..fe4ec7d8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-foo++/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/legacy-foo++ + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-foo++/debian/README.Debian b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-foo++/debian/README.Debian new file mode 100644 index 00000000..87bfcdf7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-foo++/debian/README.Debian @@ -0,0 +1,7 @@ +foo++ for Debian +---------------- + +This should trigger a warning, as i use a fake mail address. + + -- Marc 'HE' Brockschmidt , Wed, 14 Apr 2004 01:44:18 +0200 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-foo++/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-foo++/debian/changelog new file mode 100644 index 00000000..e1637f75 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-foo++/debian/changelog @@ -0,0 +1,31 @@ +foo++ (5) unstable; urgency=low + + * Add a fake README.Debian to trigger a warning. + * This should trigger + debian-changelog-file-contains-debmake-default-email-address. + + -- Marc 'HE' Brockschmidt Wed, 14 Apr 2003 01:35:47 +0200 + +foo++ (4) unstable; urgency=low + + * This changelog now includes a ISO-8859-1 character: '' + + -- Frank Lichtenheld Fri, 5 Mar 2004 13:41:39 +0100 + +foo++ (3) unstable; urgency=low + + * Set maintainers + uploaders incorrectly + + -- Jeroen van Wolffelaar Fri, 5 Mar 2004 04:20:24 +0100 + +foo++ (2) unstable; urgency=low + + * Added a foo++-helper package to try and catch even more ++ bugs. + + -- Sean 'Shaleh' Perry Sat, 10 Feb 2001 23:16:17 -0800 + +foo++ (1) unstable; urgency=low + + * Initial version + + -- Sean 'Shaleh' Perry Thu, 16 Nov 2000 09:11:40 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-foo++/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-foo++/debian/control new file mode 100644 index 00000000..fb2469e1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-foo++/debian/control @@ -0,0 +1,29 @@ +Source: foo++ +Section: misc +Priority: optional +Maintainer: Lintian Maintainer +Uploaders: Marc 'HE' Brockschmidt , Jeroen van Wolffelaar , + Frank , +Standards-Version: 3.1.1 +XS-Dm-Upload-Allowed: no + +Package: foo++ +Architecture: all +Build-Depends: test +Depends: test, libssl0.9.7 +Description: see how lintian reacts to plus signs in the package name + Regression test to see if lintian tests work on a package with plus signs in + its name. + . + This description also uses non-UTF8 high bytes chars: ÄÖÜß + +Package: foo++-helper +Architecture: all +Depends: test, foo++ +Description: see how lintian reacts to plus signs in the package name + Regression test to see if lintian tests work on a package with plus signs in + its name. This has /usr/share/doc links to foo++ to trigger even more checks. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-foo++/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-foo++/debian/copyright new file mode 100644 index 00000000..e2d6d93e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-foo++/debian/copyright @@ -0,0 +1,7 @@ +A reference to /usr/share/common-licenses/GPL to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +However, there is also a reference to /usr/share/common-licenses/LGPL, so +who knows what bits actually depend on libssl. + +Copr. 2007 Somebody. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-foo++/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-foo++/debian/rules new file mode 100755 index 00000000..63bb4dbe --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-foo++/debian/rules @@ -0,0 +1,36 @@ +#!/usr/bin/make -f + +foo=foo++ +helper=foo++-helper + +build-arch: + +build-indep: + +build: build-arch build-indep + +binary-arch: + +binary-indep: + install -d debian/$(foo)/DEBIAN + install -d debian/$(foo)/usr/share/doc/$(foo) + install -m 644 debian/changelog \ + debian/$(foo)/usr/share/doc/$(foo)/changelog + gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/changelog + install -m 644 debian/README.Debian \ + debian/$(foo)/usr/share/doc/$(foo)/README.Debian + gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/README.Debian + dpkg-gencontrol -isp -p$(foo) -Pdebian/$(foo) + dpkg --build debian/$(foo) .. + + install -d debian/$(helper)/DEBIAN + install -d debian/$(helper)/usr/share/doc/ + ln -sf $(foo) debian/$(helper)/usr/share/doc/$(helper) + dpkg-gencontrol -isp -p$(helper) -Pdebian/$(helper) + dpkg --build debian/$(helper) .. + +binary: binary-arch binary-indep + +clean: + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-foo++/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-foo++/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-foo++/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-foo++/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-foo++/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-foo++/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-foo++/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-foo++/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-foo++/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-foo++/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-foo++/debian/watch new file mode 100644 index 00000000..26f9a3c1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-foo++/debian/watch @@ -0,0 +1,6 @@ +# A comment \ +version=0 + +# uscan does not interpret the backslash above, it is just part of the comment + +http://domain.tld/file-(.*)\.tar\.gz diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-foo++/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-foo++/eval/hints new file mode 100644 index 00000000..07ecb250 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-foo++/eval/hints @@ -0,0 +1 @@ +foo++ (source): no-dep5-copyright [debian/copyright] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/ORIGIN new file mode 100644 index 00000000..d580e99d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/legacy-scripts + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/csh-foo b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/csh-foo new file mode 100644 index 00000000..eaf47a15 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/csh-foo @@ -0,0 +1,2 @@ +#! /bin/csh + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/changelog new file mode 100644 index 00000000..9c6bc545 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/changelog @@ -0,0 +1,41 @@ +scripts (6ds-1ubuntu0.5.10.1) unstable; urgency=low + + * I'm also not able to write my name. + * Added a script in /etc/Xsession.d + * Bizarre version number courtesy of + https://wiki.ubuntu.com/SecurityUpdateProcedures#Prepare + + -- Mark 'HE' Brokschmitt Thu, 23 Jun 2005 14:32:39 +0200 + +scripts (5-1) unstable; urgency=low + + * I'm making a typo in my own name... And I want lintian to warn me about + it. + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 02:26:34 +0200 + +scripts (4-1) unstable; urgency=low + + * Add new example to check that not executable files with a shebang line + called *in don't trigger the script-not-executable warning. + + -- Marc 'HE' Brockschmidt Wed, 14 Apr 2004 19:44:04 +0200 + +scripts (3-3) unstable; urgency=low + + * Add suidperlfoo and some code in debian/rules to + check the new suidperl checks + + -- Frank Lichtenheld Wed, 31 Mar 2004 21:06:20 +0000 + +scripts (2-1) unstable; urgency=low + + * Add tkfoo script for tk checkings + + -- Lintian Maintainers Sat, 21 Feb 2004 17:13:36 +0100 + +scripts (1-0) unstable; urgency=low + + * Initial version + + -- Lintian Maintainers Sat, 10 Feb 2001 15:37:31 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/control new file mode 100644 index 00000000..e172d446 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/control @@ -0,0 +1,15 @@ +Source: scripts +Section: interpreters +Priority: optional +Maintainer: Lintian Maintainers +Uploaders: Jeroen van Wolfelaar , Marc 'HE' Brockschmidt +Standards-Version: 3.2.1 + +Package: scripts +Architecture: all +Depends: test, ruby1.8, build-essential, libssl0.9.7, php7.0-cli +Recommends: tk8.4 | wish +Description: test lintian's script file checks + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/copyright new file mode 100644 index 00000000..ad8a119e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/copyright @@ -0,0 +1,5 @@ +This file contains the phrase "under the same terms as Perl itself" to +trigger warnings about not having common-licenses references. + +This file contains the phrase "public domain" which should suppress +warnings about no copyright date. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/postinst new file mode 100644 index 00000000..7c5baf1f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/postinst @@ -0,0 +1,14 @@ +#!/bin/sh + +if [ -x "/etc/init.d/lsb-broken" ] ; then + update-rc.d lsb-broken defaults >/dev/null +fi +if [ -x "/etc/init.d/no-lsb" ] ; then + update-rc.d no-lsb defaults >/dev/null +fi +if [ -x "/etc/init.d/skeleton" ] ; then + update-rc.d skeleton defaults >/dev/null +fi +if [ -x "/etc/init.d/lsb-other" ] ; then + update-rc.d lsb-other defaults >/dev/null +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/postrm b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/postrm new file mode 100644 index 00000000..8fa75a25 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/postrm @@ -0,0 +1,9 @@ +#!/bin/sh -e + +if [ "$1" = purge ] ; then + update-rc.d lsb-broken remove >/dev/null + update-rc.d no-lsb remove >/dev/null + update-rc.d skeleton remove >/dev/null + update-rc.d lsb-other remove >/dev/null + update-rc.d lsb-other remove >/dev/null +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/preinst b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/preinst new file mode 100644 index 00000000..07995570 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/preinst @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e +set -x + +# +# Some comments here +# + +# This serves as an example of an "empty" script, so +# please do not add any real code here, thank you :) + +#DEBHELPER# + +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/rules new file mode 100755 index 00000000..0b3bf4f5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/rules @@ -0,0 +1,102 @@ +#!/usr/bin/make -f + +tmp=debian/tmp + +build-arch: + echo "Hi, in an arch: all package, I am a bug!" + +build-indep: + +build: build-arch build-indep + +binary-arch: + echo "Hi, in an arch: all package, I am a bug!" + +binary-indep: + install -d $(tmp)/usr/bin/ + install -d $(tmp)/etc/X11/Xsession.d/ + install -d $(tmp)/etc/init.d/ + install -d $(tmp)/etc/csh/login.d/ + install -d $(tmp)/etc/fish.d/ + install -d $(tmp)/usr/share/scripts/ + install -d $(tmp)/usr/share/doc/scripts/ + install -d $(tmp)/usr/lib/cgi-bin + install -d $(tmp)/DEBIAN + + install -m 755 csh-foo $(tmp)/etc/csh/login.d/ + install -m 755 envfoo $(tmp)/usr/bin/ + install -m 755 fish-foo $(tmp)/etc/fish.d/ + install -m 755 jruby-broken $(tmp)/usr/bin/ + install -m 755 perlfoo $(tmp)/usr/bin/ + install -m 755 rubyfoo $(tmp)/usr/bin/ +# This doesn't use "env" but should also trigger script-in-usr-share-doc + install -m 755 rubyfoo $(tmp)/usr/share/doc/scripts/ + install -m 755 make-foo $(tmp)/usr/bin/ + install -m 755 lefty-foo $(tmp)/usr/bin/ + install -m 4751 perlfoo $(tmp)/usr/bin/suidperlfoo2 + install -m 755 sh-broken $(tmp)/usr/bin/ + install -m 4555 suidperlfoo $(tmp)/usr/bin/ + install -m 755 tkfoo $(tmp)/usr/bin/ + install -m 755 wishfoo $(tmp)/usr/bin/ + install -m 644 xsession-test $(tmp)/etc/X11/Xsession.d/ + +# Permissions here aren't part of what's being tested, but let us exercise +# some other errors. + install -m 755 perl-bizarre-1 $(tmp)/usr/bin/ + install -m 750 perl-bizarre-2 $(tmp)/usr/bin/ + install -m 754 perl-bizarre-3 $(tmp)/usr/bin/ + install -m 705 guile-bizarre $(tmp)/usr/bin/ + +# First one should produce a warning; second one shouldn't. + + install -m 644 init-skeleton $(tmp)/etc/init.d/skeleton + install -m 755 init-no-lsb $(tmp)/etc/init.d/no-lsb + install -m 755 init-lsb-broken $(tmp)/etc/init.d/lsb-broken + install -m 755 init-lsb-other $(tmp)/etc/init.d/lsb-other + + install -m 755 phpfoo $(tmp)/usr/share/scripts/ + sed 's/php$$/php7.0/' phpfoo > $(tmp)/usr/share/scripts/php7.0foo + chmod 755 $(tmp)/usr/share/scripts/php7.0foo + + install -m 755 phpenvfoo $(tmp)/usr/share/scripts/ + sed 's/php$$/php7.0/' phpenvfoo > $(tmp)/usr/share/scripts/php7.0envfoo + chmod 755 $(tmp)/usr/share/scripts/php7.0envfoo + + echo "#!/usr/bin/perl" >> $(tmp)/usr/share/scripts/foobar.in + chmod 644 $(tmp)/usr/share/scripts/foobar.in + + touch $(tmp)/usr/share/scripts/mono.exe + chmod 755 $(tmp)/usr/share/scripts/mono.exe + + echo "#!/bin/sh" > $(tmp)/usr/share/scripts/foo\$$bar + chmod 755 $(tmp)/usr/share/scripts/foo\$$bar + + echo "#!/bin/sh" > $(tmp)/usr/lib/cgi-bin/cgi-script + chmod 755 $(tmp)/usr/lib/cgi-bin/cgi-script + + echo "#!/bin/sh" > $(tmp)/usr/bin/test.sh + chmod 755 $(tmp)/usr/bin/test.sh + + + dh_testroot # dummy to test missing debhelper dependency + + + install -m 644 debian/changelog $(tmp)/usr/share/doc/scripts/changelog.Debian + gzip -n -9 $(tmp)/usr/share/doc/scripts/changelog.Debian + install -m 644 debian/copyright $(tmp)/usr/share/doc/scripts/copyright + + install -m 644 debian/scripts.conffiles $(tmp)/DEBIAN/conffiles + install -m 755 debian/preinst $(tmp)/DEBIAN/preinst + install -m 755 debian/postinst $(tmp)/DEBIAN/postinst + install -m 755 debian/postrm $(tmp)/DEBIAN/postrm + touch $(tmp)/DEBIAN/prerm + chmod 755 $(tmp)/DEBIAN/prerm + dpkg-gencontrol -isp + dpkg --build $(tmp) .. + +binary: binary-arch binary-indep + +clean: + rm -rf debian/files $(tmp) debian/substvars + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/scripts.conffiles b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/scripts.conffiles new file mode 100644 index 00000000..01a371a6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/scripts.conffiles @@ -0,0 +1,6 @@ +/etc/init.d/lsb-broken +/etc/init.d/lsb-other +/etc/init.d/no-lsb +/etc/X11/Xsession.d/xsession-test +/etc/csh/login.d/csh-foo +/etc/fish.d/fish-foo diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/watch new file mode 100644 index 00000000..dba58153 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/debian/watch @@ -0,0 +1,8 @@ +# watch file with upstream version mangling + +version=2 +opts="uversionmangle=s/$/ds/" \ +http://qa.debian.org/watch/sf.php?project=foo scripts\.([\d.]+)\.tar\.gz debian uupdate + +version=3 +http://ftp.sf.net/foo/foo_bar(.+)\.Z 5 uupdate \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/envfoo b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/envfoo new file mode 100755 index 00000000..e005037f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/envfoo @@ -0,0 +1,4 @@ +#! /bin/env python + +if __name__ == '__main__': + print 'Hi there' diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/eval/hints new file mode 100644 index 00000000..6140e09e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/eval/hints @@ -0,0 +1 @@ +scripts (source): no-dep5-copyright [debian/copyright] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/fish-foo b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/fish-foo new file mode 100644 index 00000000..7f59139a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/fish-foo @@ -0,0 +1,2 @@ +#! /usr/bin/fish + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/guile-bizarre b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/guile-bizarre new file mode 100644 index 00000000..70e2c745 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/guile-bizarre @@ -0,0 +1,6 @@ +#! /bin/sh +# -*- scheme -*- +exec guile -s $0 $* +# Seen in the wild as build-guile-gtk in libguilegtk-1.2-dev (0.31-5.1) +# Tests script_is_evil_and_wrong +!# diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/init-lsb-broken b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/init-lsb-broken new file mode 100644 index 00000000..e4dfa92b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/init-lsb-broken @@ -0,0 +1,34 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: bad-lsb +# Required-Start: $local_fs $remote_fs +# Required-Stop: +# Default-Start: 1 2 3 4 5 +# Default-Stop: S 0 1 6 X +# Short-Description: Example Lintian initscript +# but this can't be continued +# Description: An example of a bad LSB section in an init script. +# This continuation is allowed (with spaces). +# This one is too (with tabs). +# X-Debian-Foo: Some unknown but valid keyword. +# Foo: Some invalid keyword. + +# Whoops, no terminating line. + +# And then we have this duplicate section. +### BEGIN INIT INFO +# Required-Start: This one doesn't count. +### END INIT INFO + +# Hey, look at all of those missing actions! But stop isn't missing. +case "$1" in + start|stop) + echo "Blah" + ;; + *) + echo "Usage: foo start" >&2 + exit 3 + ;; +esac + +: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/init-lsb-other b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/init-lsb-other new file mode 100644 index 00000000..adb47959 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/init-lsb-other @@ -0,0 +1,22 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: lsb-other +# Required-Start: $local_fs $remote_fs +# Required-Stop: $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Description: This is another LSB script test, which has a missing +# Short-Description. +### END INIT INFO + +case "$1" in + start|stop|restart|reload|force-reload) + echo "Blah" + ;; + *) + echo "Usage: foo start" >&2 + exit 3 + ;; +esac + +: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/init-no-lsb b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/init-no-lsb new file mode 100644 index 00000000..6b994dd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/init-no-lsb @@ -0,0 +1,17 @@ +#! /bin/sh +# No LSB section, but otherwise okay. (Well, the messages are bad, but we +# don't check that yet.) + +case "$1" in + start) + echo "Blah starting" + ;; + stop) + echo "Blah stopping" + ;; + restart|force-reload) + echo "Blah restarting" + ;; +esac + +: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/init-skeleton b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/init-skeleton new file mode 100644 index 00000000..c868508f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/init-skeleton @@ -0,0 +1,150 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: skeleton +# Required-Start: $local_fs $remote_fs +# Required-Stop: $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: S 0 1 6 +# Short-Description: Example Lintian initscript +# Description: This file should be used to construct scripts to be +# placed in /etc/init.d. +### END INIT INFO + +# Do NOT "set -e" + +# PATH should only include /usr/* if it runs after the mountnfs.sh script +PATH=/usr/sbin:/usr/bin:/sbin:/bin +DESC="Description of the service" +NAME=daemonexecutablename +DAEMON=/usr/sbin/$NAME +DAEMON_ARGS="--options args" +PIDFILE=/var/run/$NAME.pid +SCRIPTNAME=/etc/init.d/$NAME + +# Exit if the package is not installed +[ -x "$DAEMON" ] || exit 0 + +# Read configuration variable file if it is present +[ -r /etc/default/$NAME ] && . /etc/default/$NAME + +# Load the VERBOSE setting and other rcS variables +[ -f /etc/default/rcS ] && . /etc/default/rcS + +# Define LSB log_* functions. +# Depend on lsb-base (>= 3.0-6) to ensure that this file is present. +. /lib/lsb/init-functions + +# +# Function that starts the daemon/service +# +do_start() +{ + # Return + # 0 if daemon has been started + # 1 if daemon was already running + # 2 if daemon could not be started + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ + || return 1 + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ + $DAEMON_ARGS \ + || return 2 + # Add code here, if necessary, that waits for the process to be ready + # to handle requests from services started subsequently which depend + # on this one. As a last resort, sleep for some time. +} + +# +# Function that stops the daemon/service +# +do_stop() +{ + # Return + # 0 if daemon has been stopped + # 1 if daemon was already stopped + # 2 if daemon could not be stopped + # other if a failure occurred + start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME + RETVAL="$?" + [ "$RETVAL" = 2 ] && return 2 + # Wait for children to finish too if this is a daemon that forks + # and if the daemon is only ever run from this initscript. + # If the above conditions are not satisfied then add some other code + # that waits for the process to drop all resources that could be + # needed by services started subsequently. A last resort is to + # sleep for some time. + start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON + [ "$?" = 2 ] && return 2 + # Many daemons don't delete their pidfiles when they exit. + rm -f $PIDFILE + return "$RETVAL" +} + +# +# Function that sends a SIGHUP to the daemon/service +# +do_reload() { + # + # If the daemon can reload its configuration without + # restarting (for example, when it is sent a SIGHUP), + # then implement that here. + # + start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME + return 0 +} + +case "$1" in + start) + [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" + do_start + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + stop) + [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" + do_stop + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + #reload|force-reload) + # + # If do_reload() is not implemented then leave this commented out + # and leave 'force-reload' as an alias for 'restart'. + # + #log_daemon_msg "Reloading $DESC" "$NAME" + #do_reload + #log_end_msg $? + #;; + restart|force-reload) + # + # If the "reload" option is implemented then remove the + # 'force-reload' alias + # + log_daemon_msg "Restarting $DESC" "$NAME" + do_stop + case "$?" in + 0|1) + do_start + case "$?" in + 0) log_end_msg 0 ;; + 1) log_end_msg 1 ;; # Old process is still running + *) log_end_msg 1 ;; # Failed to start + esac + ;; + *) + # Failed to stop + log_end_msg 1 + ;; + esac + ;; + *) + #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 + exit 3 + ;; +esac + +: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/jruby-broken b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/jruby-broken new file mode 100644 index 00000000..56f574df --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/jruby-broken @@ -0,0 +1,2 @@ +#!/usr/bin/jruby +# There's no non-versioned jruby, so this should be an error. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/lefty-foo b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/lefty-foo new file mode 100644 index 00000000..52c003ed --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/lefty-foo @@ -0,0 +1,2 @@ +#!/usr/local/bin/lefty + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/make-foo b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/make-foo new file mode 100644 index 00000000..6b787b50 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/make-foo @@ -0,0 +1,3 @@ +#!/usr/bin/make + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/perl-bizarre-1 b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/perl-bizarre-1 new file mode 100644 index 00000000..fc632c85 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/perl-bizarre-1 @@ -0,0 +1,11 @@ +#! /bin/sh +eval '(exit $?0)' && eval 'PERL_BADLANG=x;export PERL_BADLANG;: \ +;exec perl -x -S -- "$0" ${1+"$@"};#'if 0; +eval 'setenv PERL_BADLANG x;exec perl -x -S -- "$0" $argv:q;#'.q+ +#!perl -w +package Htex::a2ping; $0=~/(.*)/s;unshift@INC,'.';do($1);die$@if$@;__END__+if !1; +# This Perl script was generated by JustLib2 at Wed Apr 23 09:14:13 2003. +# Don't touch/remove any lines above; http://www.inf.bme.hu/~pts/justlib + +# The above was actually seen in the wild and stresses the +# script_is_evil_and_wrong test. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/perl-bizarre-2 b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/perl-bizarre-2 new file mode 100644 index 00000000..afd9cfe5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/perl-bizarre-2 @@ -0,0 +1,7 @@ +#!/bin/sh +eval 'exec /usr/bin/perl -wS $0 ${1+"$@"}' + if $running_under_some_shell; + +# I'm someone following perlrun except without using the Perl #! line. +# Now something to choke bash. +while (<>) { if (/%#/) { print } } diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/perl-bizarre-3 b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/perl-bizarre-3 new file mode 100644 index 00000000..44baf75e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/perl-bizarre-3 @@ -0,0 +1,6 @@ +eval '(exit $?0)' && eval 'exec perl -wS $0 ${1+"$@"}' +& eval 'exec /usr/bin/perl -wS $0 $argv:q' + if $running_under_some_shell; + +# More utterly bizarreness from perlrun. This one even doesn't work if +# there's a valid #! line on the first line. I don't understand why.... diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/perlfoo b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/perlfoo new file mode 100644 index 00000000..5b27ed0b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/perlfoo @@ -0,0 +1,3 @@ +#! /usr/bin/perl + +print "Hello, World!"; diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/phpenvfoo b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/phpenvfoo new file mode 100644 index 00000000..cbbfb2eb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/phpenvfoo @@ -0,0 +1,7 @@ +#!/usr/bin/env php + + +Dumb PHP script + + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/phpfoo b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/phpfoo new file mode 100644 index 00000000..e0595e65 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/phpfoo @@ -0,0 +1,7 @@ +#!/usr/bin/php + + +Dumb PHP script + + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/rubyfoo b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/rubyfoo new file mode 100644 index 00000000..80246058 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/rubyfoo @@ -0,0 +1,4 @@ +#!/bin/ruby1.8 + +# Ok, that example is really pathetic, but until we have +# some better code in checks/scripts, it will do diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/sh-broken b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/sh-broken new file mode 100644 index 00000000..7b790744 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/sh-broken @@ -0,0 +1,2 @@ +#!/bin/sh +if fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/suidperlfoo b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/suidperlfoo new file mode 100644 index 00000000..bcbc471d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/suidperlfoo @@ -0,0 +1,3 @@ +#! /usr/bin/suidperl + +print "Hello, World!"; diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/tkfoo b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/tkfoo new file mode 100755 index 00000000..533595a5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/tkfoo @@ -0,0 +1,31 @@ +#!/bin/sh +# +# Insane amount of empty lines and comments + +# +# +# +# + +# +# + +# +# +# + +# +# + +# +# This line makes the next one a comment in Tcl \ +exec wish "$0" -- ${1+"$@"} + +# lintian should not check the following for syntax +# if it detects the line above correctly +# Code snippet taken from eTkTab + +if { [array names prefs keybindings] != "" } { + # Read in the file + array set unparsed_bindings [ read_settings_file $prefs(keybindings)] +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/wishfoo b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/wishfoo new file mode 100644 index 00000000..035c9ad1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/wishfoo @@ -0,0 +1,4 @@ +#!/usr/bin/wish +# +# This is not actually a wish script, here to force a test of wish +# dependencies. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/xsession-test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/xsession-test new file mode 100644 index 00000000..ca49d729 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/legacy-scripts/xsession-test @@ -0,0 +1,3 @@ +#!/bin/sh + +echo "Foo." diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/COPYING b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/COPYING new file mode 100644 index 00000000..c1e7ac79 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/COPYING @@ -0,0 +1 @@ +TERMS OF SOFTWARE LICENSE diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/ORIGIN new file mode 100644 index 00000000..b29f4cad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/debian/changelog new file mode 100644 index 00000000..05e807be --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/debian/changelog @@ -0,0 +1,17 @@ +license-file-listed-in-debian-copyright (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: license-file-listed-in-debian-copyright + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +license-file-listed-in-debian-copyright (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: license-file-listed-in-debian-copyright + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/debian/control new file mode 100644 index 00000000..2a90dbbb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/debian/control @@ -0,0 +1,17 @@ +Source: license-file-listed-in-debian-copyright +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: license-file-listed-in-debian-copyright +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: License files do not need entries in d/copyright. + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/debian/copyright new file mode 100644 index 00000000..7c7783e6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/debian/copyright @@ -0,0 +1,38 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: wolfssl +Upstream-Contact: David Garske +Source: https://github.com/wolfssl/wolfssl/releases + +Files: + COPYING +Copyright: + 1989, 1991 Free Software Foundation, Inc. +License: No-Modify + +Files: + debian/* +Copyright: + 2014-2019 Felix Lechner +License: GPL-2+ + + +License: No-Modify + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +License: GPL-2+ + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/eval/hints new file mode 100644 index 00000000..ea91d9ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/eval/hints @@ -0,0 +1 @@ +license-file-listed-in-debian-copyright (source): license-file-listed-in-debian-copyright COPYING [debian/copyright] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/.matches b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/.matches new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/ORIGIN new file mode 100644 index 00000000..7fca92aa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/lone-files-included + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/debian/changelog new file mode 100644 index 00000000..644e8716 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/debian/changelog @@ -0,0 +1,17 @@ +lone-files-included (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: lone-files-included + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +lone-files-included (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: lone-files-included + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/debian/control new file mode 100644 index 00000000..40eba924 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/debian/control @@ -0,0 +1,17 @@ +Source: lone-files-included +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: lone-files-included +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: File-Included without Files-Excluded + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/debian/copyright new file mode 100644 index 00000000..7935e5d3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/debian/copyright @@ -0,0 +1,21 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Files-Included: + include-this + +Files: * +Copyright: 2011 J. Random Hacker +License: GPL-2 + This package is free software; you can redistribute it and/or modify it under + the terms of the GNU General Public License as published by the Free Software + Foundation; version 2 dated June, 1991. + . + This package is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License along with + this package; if not, write to the Free Software Foundation, Inc., 51 Franklin + St, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the full text of the GNU General Public License version 2 + can be found in the file `/usr/share/common-licenses/GPL-2'. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/eval/hints new file mode 100644 index 00000000..e6e07784 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/eval/hints @@ -0,0 +1 @@ +lone-files-included (source): file-included-already include-this [debian/copyright:2] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/include-this b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/lone-files-included/include-this new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/ORIGIN new file mode 100644 index 00000000..9da2d2ef --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/patch-empties-directory + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/debian/changelog new file mode 100644 index 00000000..4baa9b41 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/debian/changelog @@ -0,0 +1,17 @@ +patch-empties-directory (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: patch-empties-directory + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +patch-empties-directory (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: patch-empties-directory + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/debian/control new file mode 100644 index 00000000..5fe7b5ee --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/debian/control @@ -0,0 +1,17 @@ +Source: patch-empties-directory +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: patch-empties-directory +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: False positive for wildcard-matches-nothing-in-dep5-copyright + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/debian/copyright new file mode 100644 index 00000000..5dd52d94 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/debian/copyright @@ -0,0 +1,34 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2019 Felix Lechner +License: GPL-2+ + +Files: will-be-empty/* +Copyright: + 2019 Felix Lechner +License: GPL-2+ + +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. + You can also obtain it by writing to the Free Software Foundation, Inc., + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/debian/patches/remove-file.patch b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/debian/patches/remove-file.patch new file mode 100644 index 00000000..e572221e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/debian/patches/remove-file.patch @@ -0,0 +1,10 @@ +Description: Remove the sole file in a directory + Should not trigger wildcard-matches-nothing-in-dep5-copyright. + For more information, please see Bug#844274. +Author: Felix Lechner +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- a/will-be-empty/removed-by-patch ++++ /dev/null +@@ -1 +0,0 @@ +-SOME CONTENT diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/debian/patches/series b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/debian/patches/series new file mode 100644 index 00000000..56b4ebb7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/debian/patches/series @@ -0,0 +1 @@ +remove-file.patch diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/will-be-empty/removed-by-patch b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/will-be-empty/removed-by-patch new file mode 100644 index 00000000..25175416 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/patch-empties-directory/will-be-empty/removed-by-patch @@ -0,0 +1 @@ +SOME CONTENT diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/redundant-wildcard/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/redundant-wildcard/ORIGIN new file mode 100644 index 00000000..4aac627c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/redundant-wildcard/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/redundant-wildcard + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/redundant-wildcard/a-file b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/redundant-wildcard/a-file new file mode 100644 index 00000000..fadb1577 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/redundant-wildcard/a-file @@ -0,0 +1 @@ +A FILE diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/redundant-wildcard/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/redundant-wildcard/debian/changelog new file mode 100644 index 00000000..36c7e1ce --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/redundant-wildcard/debian/changelog @@ -0,0 +1,17 @@ +redundant-wildcard (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: redundant-wildcard + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +redundant-wildcard (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: redundant-wildcard + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/redundant-wildcard/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/redundant-wildcard/debian/control new file mode 100644 index 00000000..d758f1cd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/redundant-wildcard/debian/control @@ -0,0 +1,17 @@ +Source: redundant-wildcard +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: redundant-wildcard +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Two wildcards matching the same file in the same section + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/redundant-wildcard/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/redundant-wildcard/debian/copyright new file mode 100644 index 00000000..3ff770b7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/redundant-wildcard/debian/copyright @@ -0,0 +1,11 @@ +# taken from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=905747#5 +# but split up for each of the two conditions +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ + +Files: * + debian/patches/* +Copyright: (C) 2018 Niels Thykier +License: License1 + +License: License1 + Please call the author for this license. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/redundant-wildcard/debian/patches/a.patch b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/redundant-wildcard/debian/patches/a.patch new file mode 100644 index 00000000..294a68cc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/redundant-wildcard/debian/patches/a.patch @@ -0,0 +1 @@ +A PATCH diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/redundant-wildcard/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/redundant-wildcard/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/redundant-wildcard/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/redundant-wildcard/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/redundant-wildcard/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/redundant-wildcard/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/redundant-wildcard/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/redundant-wildcard/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/redundant-wildcard/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/redundant-wildcard/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/redundant-wildcard/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/redundant-wildcard/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/redundant-wildcard/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/redundant-wildcard/eval/hints new file mode 100644 index 00000000..94937ceb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/redundant-wildcard/eval/hints @@ -0,0 +1 @@ +redundant-wildcard (source): redundant-globbing-patterns (* debian/patches/*) for debian/patches/a.patch [debian/copyright:5] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/ORIGIN new file mode 100644 index 00000000..9e65521d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/debian/changelog new file mode 100644 index 00000000..fe0bbfe7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/debian/changelog @@ -0,0 +1,17 @@ +repackaged-upstream-sources-not-advertised (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: repackaged-upstream-sources-not-advertised + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +repackaged-upstream-sources-not-advertised (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: repackaged-upstream-sources-not-advertised + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/debian/control new file mode 100644 index 00000000..9c244524 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/debian/control @@ -0,0 +1,17 @@ +Source: repackaged-upstream-sources-not-advertised +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: repackaged-upstream-sources-not-advertised +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Sources indicate they have been repacked + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/debian/copyright new file mode 100644 index 00000000..e6d13df1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/debian/copyright @@ -0,0 +1,23 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Files-Excluded: gone + +Files: * +Copyright: 2011 J. Random Hacker +License: GPL-2 + This package is free software; you can redistribute it and/or modify it under + the terms of the GNU General Public License as published by the Free Software + Foundation; version 2 dated June, 1991. + . + This package is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License along with + this package; if not, write to the Free Software Foundation, Inc., 51 Franklin + St, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the full text of the GNU General Public License version 2 + can be found in the file `/usr/share/common-licenses/GPL-2'. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/eval/hints new file mode 100644 index 00000000..e4baeb68 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/eval/hints @@ -0,0 +1 @@ +repackaged-upstream-sources-not-advertised (source): repackaged-source-not-advertised [debian/copyright] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/ORIGIN new file mode 100644 index 00000000..c5627b7a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/debian/changelog new file mode 100644 index 00000000..97ea16b9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/debian/changelog @@ -0,0 +1,17 @@ +reuse-identifier-in-files (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: reuse-identifier-in-files + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +reuse-identifier-in-files (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: reuse-identifier-in-files + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/debian/control new file mode 100644 index 00000000..3ad81a27 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/debian/control @@ -0,0 +1,17 @@ +Source: reuse-identifier-in-files +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: reuse-identifier-in-files +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Reuse a license idenfifier in another Files paragraph (false positive) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/debian/copyright new file mode 100644 index 00000000..6cd15303 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/debian/copyright @@ -0,0 +1,47 @@ +# taken from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=779676#30 +# except for secure URL immediately below and block comment further down +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: ipe-tools +Upstream-Contact: Otfried Cheong +Source: https://github.com/otfried/ipe-tools + +Files: figtoipe/* +Copyright: 1993-2008, Otfried Cheong + 2007-2015, Alexander Bürger +License: GPL-2+ + See /usr/share/common-licenses/GPL-2 + +Files: ipe5toxml/* +Copyright: 2005, Otfried Cheong + 2015, Alexander Bürger +License: public-domain + While the source code of svgtoipe does not include any licensing + information, the homepage of the ipe tool, + http://ipe7.sourceforge.net/, includes a hyperlink to the ipe-tools + github repository and says: + ``The source to ipe5toxml is in the public domain.'' + +Files: pdftoipe/* +Copyright: 2003-2014, Otfried Cheong +License: GPL-2 + See /usr/share/common-licenses/GPL-2 +Comment: + the pdftoipe source code itself is GPL-2+, but it is linked + to GPL-2 only libpoppler so it must be GPL-2, too + +Files: svgtoipe/* +Copyright: 2009-2014, Otfried Cheong +License: GPL-3+ + See /usr/share/common-licenses/GPL-3 + +#Files: matplotlib/* +#Copyright: 2014, Otfried Cheong +# 2014, Soyeon Baek +#Comment: +# not included in debian package + +Files: debian/* +Copyright: 2005-2011 Steve Robbins + 2008-2015, Alexander Bürger +License: GPL-2+ + See /usr/share/common-licenses/GPL-2 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/figtoipe/a-file b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/figtoipe/a-file new file mode 100644 index 00000000..01d2c17a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/figtoipe/a-file @@ -0,0 +1 @@ +SOME TEXT diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/ipe5toxml/a-file b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/ipe5toxml/a-file new file mode 100644 index 00000000..01d2c17a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/ipe5toxml/a-file @@ -0,0 +1 @@ +SOME TEXT diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/pdftoipe/a-file b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/pdftoipe/a-file new file mode 100644 index 00000000..01d2c17a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/pdftoipe/a-file @@ -0,0 +1 @@ +SOME TEXT diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/svgtoipe/a-file b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/svgtoipe/a-file new file mode 100644 index 00000000..01d2c17a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reuse-identifier-in-files/svgtoipe/a-file @@ -0,0 +1 @@ +SOME TEXT diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reused-wildcard/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reused-wildcard/ORIGIN new file mode 100644 index 00000000..d7bb9cec --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reused-wildcard/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/reused-wildcard + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reused-wildcard/a-file b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reused-wildcard/a-file new file mode 100644 index 00000000..fadb1577 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reused-wildcard/a-file @@ -0,0 +1 @@ +A FILE diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reused-wildcard/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reused-wildcard/debian/changelog new file mode 100644 index 00000000..b4b87d5e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reused-wildcard/debian/changelog @@ -0,0 +1,17 @@ +reused-wildcard (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: reused-wildcard + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +reused-wildcard (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: reused-wildcard + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reused-wildcard/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reused-wildcard/debian/control new file mode 100644 index 00000000..1327a4ca --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reused-wildcard/debian/control @@ -0,0 +1,17 @@ +Source: reused-wildcard +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: reused-wildcard +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Same globbing pattern appears twice + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reused-wildcard/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reused-wildcard/debian/copyright new file mode 100644 index 00000000..1c5f6190 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reused-wildcard/debian/copyright @@ -0,0 +1,19 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ + +Files: * +Copyright: (C) 2018 Niels Thykier +License: License1 + +Files: debian/* +Copyright: (C) 2018 Niels Thykier +License: License1 + +Files: debian/* +Copyright: (C) 2019 Niels Thykier +License: License2 + +License: License1 + Please call the author for this license. + +License: License2 + Please call the author for this license. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reused-wildcard/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reused-wildcard/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reused-wildcard/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reused-wildcard/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reused-wildcard/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reused-wildcard/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reused-wildcard/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reused-wildcard/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reused-wildcard/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reused-wildcard/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reused-wildcard/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reused-wildcard/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reused-wildcard/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reused-wildcard/eval/hints new file mode 100644 index 00000000..0a0430b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/reused-wildcard/eval/hints @@ -0,0 +1 @@ +reused-wildcard (source): duplicate-globbing-patterns debian/* (lines 7 11) [debian/copyright] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-bad-short-name/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-bad-short-name/ORIGIN new file mode 100644 index 00000000..0d59db0d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-bad-short-name/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/source-copyright-bad-short-name + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-bad-short-name/README b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-bad-short-name/README new file mode 100644 index 00000000..1a9d2add --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-bad-short-name/README @@ -0,0 +1 @@ +trivial diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-bad-short-name/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-bad-short-name/debian/changelog new file mode 100644 index 00000000..f08488ca --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-bad-short-name/debian/changelog @@ -0,0 +1,17 @@ +source-copyright-bad-short-name (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-bad-short-name + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +source-copyright-bad-short-name (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-bad-short-name + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-bad-short-name/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-bad-short-name/debian/control new file mode 100644 index 00000000..7ed051f1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-bad-short-name/debian/control @@ -0,0 +1,17 @@ +Source: source-copyright-bad-short-name +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: source-copyright-bad-short-name +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for bad short name + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-bad-short-name/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-bad-short-name/debian/copyright new file mode 100644 index 00000000..0c826f07 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-bad-short-name/debian/copyright @@ -0,0 +1,20 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Doohickey +Upstream-Contact: J. Random Hacker +Source: http://examples.com/doohickey/source/ + +Files: * +Copyright: 2014, somebody1 +License: gplv1 + something + +Files: space +Copyright: 2014, somebody1 +License: some space license + something + +Files: debian/* +Copyright: 2014, somebody1 +License: bsd + this is a valid license short name + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-bad-short-name/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-bad-short-name/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-bad-short-name/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-bad-short-name/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-bad-short-name/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-bad-short-name/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-bad-short-name/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-bad-short-name/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-bad-short-name/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-bad-short-name/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-bad-short-name/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-bad-short-name/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-bad-short-name/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-bad-short-name/eval/hints new file mode 100644 index 00000000..c3ba4a57 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-bad-short-name/eval/hints @@ -0,0 +1,3 @@ +source-copyright-bad-short-name (source): space-in-std-shortname-in-dep5-copyright some space license [debian/copyright:13] +source-copyright-bad-short-name (source): invalid-short-name-in-dep5-copyright gplv1 [debian/copyright:8] +source-copyright-bad-short-name (source): invalid-short-name-in-dep5-copyright bsd [debian/copyright:18] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-bad-short-name/space b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-bad-short-name/space new file mode 100644 index 00000000..82cbe04f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-bad-short-name/space @@ -0,0 +1 @@ +space \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/ORIGIN new file mode 100644 index 00000000..efad4ee5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/source-copyright-boilerplate-uri + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/debian/changelog new file mode 100644 index 00000000..18f3bf23 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/debian/changelog @@ -0,0 +1,17 @@ +source-copyright-boilerplate-uri (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-boilerplate-uri + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +source-copyright-boilerplate-uri (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-boilerplate-uri + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/debian/control new file mode 100644 index 00000000..2af1900f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/debian/control @@ -0,0 +1,17 @@ +Source: source-copyright-boilerplate-uri +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: source-copyright-boilerplate-uri +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for boilerplate DEP 5-like URI + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/debian/copyright new file mode 100644 index 00000000..d890aa5a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/debian/copyright @@ -0,0 +1,22 @@ +Format: +Upstream-Name: Doohickey +Upstream-Contact: J. Random Hacker +Source: http://examples.com/doohickey/source/ + +Files: * +Copyright: 2011 J. Random Hacker +License: GPL-2 + This package is free software; you can redistribute it and/or modify it under + the terms of the GNU General Public License as published by the Free Software + Foundation; version 2 dated June, 1991. + . + This package is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License along with + this package; if not, write to the Free Software Foundation, Inc., 51 Franklin + St, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the full text of the GNU General Public License version 2 + can be found in the file `/usr/share/common-licenses/GPL-2'. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/eval/hints new file mode 100644 index 00000000..81f7b8c4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/eval/hints @@ -0,0 +1 @@ +source-copyright-boilerplate-uri (source): boilerplate-copyright-format-uri [debian/copyright] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-general/ORIGIN new file mode 100644 index 00000000..ace14838 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-general/debian/changelog new file mode 100644 index 00000000..5b58395d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-general/debian/changelog @@ -0,0 +1,17 @@ +source-copyright-dep5-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-dep5-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +source-copyright-dep5-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-dep5-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-general/debian/control new file mode 100644 index 00000000..b0c9ff7f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-general/debian/control @@ -0,0 +1,17 @@ +Source: source-copyright-dep5-general +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: source-copyright-dep5-general +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for various errors in DEP 5 copyright files + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-general/debian/copyright new file mode 100644 index 00000000..eadfebdc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-general/debian/copyright @@ -0,0 +1,113 @@ +Format: https://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=174 +Upstream-Name: Doohickey +Upstream-Maintainer: J. Random Hacker +Source: http://examples.com/doohickey/source/ + +Comment: I'm a bogus paragraph. + +Files: a/*, b/* +Copyright: 2011 J. Random Hacker +License: GPL-2 + +Files: c +Copyright: 2010 J. Random Hacker + +Files: d +License: GPL-3 + +Files: 5 +License: MIT +Copyright: 2010 J. Random Hacker + +Comment: Oops, missing a Files for this paragraph. +License: BSD-3 +Copyright: 2010 J. Random Hacker + +Files: debian/* +License: GPL-2 or GPL-3 with Font +Copyright: 2010 J. Random Hacker + +Files: debian/copyright +License: GPL-2 or GPL-3 with Font exception +Copyright: 2012 J. Random Hacker + +Files: debian/control +License: GPL-2 and custom +Copyright: 2010 J. Random Hacker + +License: custom + Custom test license + + +License: GPL-2 + This package is free software; you can redistribute it and/or modify it under + the terms of the GNU General Public License as published by the Free Software + Foundation; version 2 dated June, 1991. + . + This package is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License along with + this package; if not, write to the Free Software Foundation, Inc., 51 Franklin + St, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the full text of the GNU General Public License version 2 + can be found in the file `/usr/share/common-licenses/GPL-2'. + +License: GPL-3 with Font + This package is free software; you can redistribute it and/or modify it under + the terms of the GNU General Public License as published by the Free Software + Foundation; version 2 dated June, 1991. + . + This package is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License along with + this package; if not, write to the Free Software Foundation, Inc., 51 Franklin + St, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the full text of the GNU General Public License version 2 + can be found in the file `/usr/share/common-licenses/GPL-2'. + . + A fake font exception. + +License: GPL-3 with Font exception + This package is free software; you can redistribute it and/or modify it under + the terms of the GNU General Public License as published by the Free Software + Foundation; version 2 dated June, 1991. + . + This package is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License along with + this package; if not, write to the Free Software Foundation, Inc., 51 Franklin + St, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the full text of the GNU General Public License version 2 + can be found in the file `/usr/share/common-licenses/GPL-2'. + . + Fake font exception. + +License: GPL-3 + +License: Expat + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the “Software”), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-general/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-general/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-general/eval/hints new file mode 100644 index 00000000..e12a06a2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-general/eval/hints @@ -0,0 +1,13 @@ +source-copyright-dep5-general (source): unused-license-paragraph-in-dep5-copyright expat [debian/copyright:96] +source-copyright-dep5-general (source): unknown-paragraph-in-dep5-copyright [debian/copyright:6] +source-copyright-dep5-general (source): obsolete-field-in-dep5-copyright Upstream-Maintainer Upstream-Contact [debian/copyright:3] +source-copyright-dep5-general (source): missing-license-text-in-dep5-copyright GPL-3 [debian/copyright:94] +source-copyright-dep5-general (source): missing-license-text-in-dep5-copyright BSD-3 [debian/copyright:23] +source-copyright-dep5-general (source): missing-license-paragraph-in-dep5-copyright mit [debian/copyright:19] +source-copyright-dep5-general (source): missing-license-paragraph-in-dep5-copyright gpl-3 [debian/copyright:16] +source-copyright-dep5-general (source): missing-field-in-dep5-copyright License [debian/copyright:12] +source-copyright-dep5-general (source): missing-field-in-dep5-copyright Copyright [debian/copyright:15] +source-copyright-dep5-general (source): comma-separated-files-in-dep5-copyright [debian/copyright:8] +source-copyright-dep5-general (source): bad-exception-format-in-dep5-copyright gpl-3 with font [debian/copyright:58] +source-copyright-dep5-general (source): bad-exception-format-in-dep5-copyright gpl-3 with font [debian/copyright:27] +source-copyright-dep5-general (source): ambiguous-paragraph-in-dep5-copyright [debian/copyright:22] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/ORIGIN new file mode 100644 index 00000000..257439f1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/debian/changelog new file mode 100644 index 00000000..5a8a0d62 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/debian/changelog @@ -0,0 +1,17 @@ +source-copyright-dep5-syntax-error (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-dep5-syntax-error + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +source-copyright-dep5-syntax-error (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-dep5-syntax-error + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/debian/control new file mode 100644 index 00000000..98295854 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/debian/control @@ -0,0 +1,17 @@ +Source: source-copyright-dep5-syntax-error +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: source-copyright-dep5-syntax-error +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for DEP 5 syntax error + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/debian/copyright new file mode 100644 index 00000000..30c307ce --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/debian/copyright @@ -0,0 +1,22 @@ +Format: https://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=174 +Upstream-Name: Doohickey +Upstream-Contact: J. Random Hacker +Source: http://examples.com/doohickey/source/ + +Files: * +Copyright: 2011 J. Random Hacker +License: GPL-2 + This package is free software; you can redistribute it and/or modify it under + the terms of the GNU General Public License as published by the Free Software + Foundation; version 2 dated June, 1991. + + This package is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along with + this package; if not, write to the Free Software Foundation, Inc., 51 Franklin + St, Fifth Floor, Boston, MA 02110-1301, USA. + + On Debian systems, the full text of the GNU General Public License version 2 + can be found in the file `/usr/share/common-licenses/GPL-2'. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/eval/hints new file mode 100644 index 00000000..0f977854 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/eval/hints @@ -0,0 +1 @@ +source-copyright-dep5-syntax-error (source): syntax-error-in-dep5-copyright Continuation line not in paragraph (line 13). Missing a dot on the previous line? [debian/copyright] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-empty-field/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-empty-field/ORIGIN new file mode 100644 index 00000000..a468aae7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-empty-field/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/source-copyright-empty-field + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-empty-field/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-empty-field/debian/changelog new file mode 100644 index 00000000..cd5b95f9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-empty-field/debian/changelog @@ -0,0 +1,17 @@ +source-copyright-empty-field (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-empty-field + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +source-copyright-empty-field (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-empty-field + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-empty-field/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-empty-field/debian/control new file mode 100644 index 00000000..4dab1b02 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-empty-field/debian/control @@ -0,0 +1,17 @@ +Source: source-copyright-empty-field +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: source-copyright-empty-field +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for empty required field + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-empty-field/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-empty-field/debian/copyright new file mode 100644 index 00000000..f9d5a2a9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-empty-field/debian/copyright @@ -0,0 +1,97 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Doohickey +Upstream-Contact: J. Random Hacker +Source: http://examples.com/doohickey/source/ +License: + +Files: * +Copyright: +License: GPL-2 + This package is free software; you can redistribute it and/or modify it under + the terms of the GNU General Public License as published by the Free Software + Foundation; version 2 dated June, 1991. + . + This package is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License along with + this package; if not, write to the Free Software Foundation, Inc., 51 Franklin + St, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the full text of the GNU General Public License version 2 + can be found in the file `/usr/share/common-licenses/GPL-2'. + +Files: debian/* +Copyright: 2014, somebodydebian +License: + This package is free software; you can redistribute it and/or modify it under + the terms of the GNU General Public License as published by the Free Software + Foundation; version 2 dated June, 1991. + . + This package is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License along with + this package; if not, write to the Free Software Foundation, Inc., 51 Franklin + St, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the full text of the GNU General Public License version 2 + can be found in the file `/usr/share/common-licenses/GPL-2'. + +Files: +Copyright: 2014, somebody +License: GPL-2+ + This package is free software; you can redistribute it and/or modify it under + the terms of the GNU General Public License as published by the Free Software + Foundation; version 2 dated June, 1991. + . + This package is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License along with + this package; if not, write to the Free Software Foundation, Inc., 51 Franklin + St, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the full text of the GNU General Public License version 2 + can be found in the file `/usr/share/common-licenses/GPL-2'. + +License: + This package is free software; you can redistribute it and/or modify it under + the terms of the GNU General Public License as published by the Free Software + Foundation; version 2 dated June, 1991. + . + This package is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License along with + this package; if not, write to the Free Software Foundation, Inc., 51 Franklin + St, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the full text of the GNU General Public License version 2 + can be found in the file `/usr/share/common-licenses/GPL-2'. + +Files: m4/ +Copyright: 2014, somebodym4 +License: + This package is free software; you can redistribute it and/or modify it under + the terms of the GNU General Public License as published by the Free Software + Foundation; version 2 dated June, 1991. + . + This package is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License along with + this package; if not, write to the Free Software Foundation, Inc., 51 Franklin + St, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the full text of the GNU General Public License version 2 + can be found in the file `/usr/share/common-licenses/GPL-2'. + +License: + +License: GPL-2+ diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-empty-field/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-empty-field/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-empty-field/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-empty-field/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-empty-field/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-empty-field/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-empty-field/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-empty-field/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-empty-field/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-empty-field/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-empty-field/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-empty-field/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-empty-field/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-empty-field/eval/hints new file mode 100644 index 00000000..47c72f8c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-empty-field/eval/hints @@ -0,0 +1,11 @@ +source-copyright-empty-field (source): superfluous-file-pattern m4/ [debian/copyright:77] +source-copyright-empty-field (source): superfluous-file-pattern * [debian/copyright:7] +source-copyright-empty-field (source): missing-license-text-in-dep5-copyright [debian/copyright:95] +source-copyright-empty-field (source): missing-license-text-in-dep5-copyright GPL-2+ [debian/copyright:97] +source-copyright-empty-field (source): missing-field-in-dep5-copyright (empty field) Files [debian/copyright:43] +source-copyright-empty-field (source): missing-field-in-dep5-copyright (empty field) Copyright [debian/copyright:8] +source-copyright-empty-field (source): empty-short-license-in-dep5-copyright [debian/copyright:95] +source-copyright-empty-field (source): empty-short-license-in-dep5-copyright [debian/copyright:79] +source-copyright-empty-field (source): empty-short-license-in-dep5-copyright [debian/copyright:61] +source-copyright-empty-field (source): empty-short-license-in-dep5-copyright [debian/copyright:5] +source-copyright-empty-field (source): empty-short-license-in-dep5-copyright [debian/copyright:27] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/ORIGIN new file mode 100644 index 00000000..12160d1e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0 + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/debian/changelog new file mode 100644 index 00000000..aa0bea90 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/debian/changelog @@ -0,0 +1,17 @@ +source-copyright-files-excluded-without-copyright-format-1.0 (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-files-excluded-without-copyright-format-1.0 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +source-copyright-files-excluded-without-copyright-format-1.0 (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-files-excluded-without-copyright-format-1.0 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/debian/control new file mode 100644 index 00000000..2aeffc8c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/debian/control @@ -0,0 +1,17 @@ +Source: source-copyright-files-excluded-without-copyright-format-1.0 +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: source-copyright-files-excluded-without-copyright-format-1.0 +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for files listed in Files-Excluded + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/debian/copyright new file mode 100644 index 00000000..fa0be7c2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/debian/copyright @@ -0,0 +1,19 @@ +Files-Excluded: foo + +Files: * +Copyright: 2011 J. Random Hacker +License: GPL-2 + This package is free software; you can redistribute it and/or modify it under + the terms of the GNU General Public License as published by the Free Software + Foundation; version 2 dated June, 1991. + . + This package is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License along with + this package; if not, write to the Free Software Foundation, Inc., 51 Franklin + St, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the full text of the GNU General Public License version 2 + can be found in the file `/usr/share/common-licenses/GPL-2'. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/eval/hints new file mode 100644 index 00000000..2ca5e41f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/eval/hints @@ -0,0 +1,2 @@ +source-copyright-files-excluded-without-copyright-format-1.0 (source): no-dep5-copyright [debian/copyright] +source-copyright-files-excluded-without-copyright-format-1.0 (source): files-excluded-without-copyright-format-1.0 [debian/copyright] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/ORIGIN new file mode 100644 index 00000000..e5414848 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/debian/changelog new file mode 100644 index 00000000..ee5bfb35 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/debian/changelog @@ -0,0 +1,17 @@ +source-copyright-global-files-wildcard-not-first-paragraph (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-global-files-wildcard-not-first-paragraph + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +source-copyright-global-files-wildcard-not-first-paragraph (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-global-files-wildcard-not-first-paragraph + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/debian/control new file mode 100644 index 00000000..a1bc806c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/debian/control @@ -0,0 +1,17 @@ +Source: source-copyright-global-files-wildcard-not-first-paragraph +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: source-copyright-global-files-wildcard-not-first-paragraph +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for Files: * not being the first paragraph + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/debian/copyright new file mode 100644 index 00000000..b8340bc5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/debian/copyright @@ -0,0 +1,28 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: lintian +Upstream-Contact: Lintian Maintainers +Source: http://git.debian.org/?p=lintian/lintian.git + +Files: filea +Copyright: 2011 J. Random Hacker +License: GPL-2 + +Files: * +Copyright: 2011 J. Random Hacker +License: GPL-2 + +License: GPL-2 + This package is free software; you can redistribute it and/or modify it under + the terms of the GNU General Public License as published by the Free Software + Foundation; version 2 dated June, 1991. + . + This package is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License along with + this package; if not, write to the Free Software Foundation, Inc., 51 Franklin + St, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the full text of the GNU General Public License version 2 + can be found in the file `/usr/share/common-licenses/GPL-2'. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/eval/hints new file mode 100644 index 00000000..9ec205d9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/eval/hints @@ -0,0 +1,2 @@ +source-copyright-global-files-wildcard-not-first-paragraph (source): superfluous-file-pattern filea [debian/copyright:6] +source-copyright-global-files-wildcard-not-first-paragraph (source): global-files-wildcard-not-first-paragraph-in-dep5-copyright [debian/copyright:10] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/filea b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/filea new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/ORIGIN new file mode 100644 index 00000000..848011ac --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/debian/changelog new file mode 100644 index 00000000..45f06945 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/debian/changelog @@ -0,0 +1,17 @@ +source-copyright-incomplete-creative-commons-b (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-incomplete-creative-commons-b + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +source-copyright-incomplete-creative-commons-b (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-incomplete-creative-commons-b + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/debian/control new file mode 100644 index 00000000..c2509005 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/debian/control @@ -0,0 +1,17 @@ +Source: source-copyright-incomplete-creative-commons-b +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: source-copyright-incomplete-creative-commons-b +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for incomplete Creative Commons licenses (b) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/debian/copyright new file mode 100644 index 00000000..9102490f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/debian/copyright @@ -0,0 +1,81 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: opensesame +Upstream-Contact: Sebastiaan Mathot +Source: http://www.cogsci.nl/software/opensesame + +Files: * +Copyright: 2010-2012, Sebastiaan Mathot +License: GPL-3 + On Debian systems, the full text of the GNU General Public License version 3 + can be found in the file `/usr/share/common-licenses/GPL-3'. + +Files: resources/*.ttf +Copyright: 2006, 2007, 2008, 2009, 2010 Google Corp. + Droid is a trademark of Google Corp. +License: Apache-2.0 + On Debian systems, the complete text of the Apache License Version 2.0 + can be found in `/usr/share/common-licenses/Apache-2.0'. + +Files: sounds/* +Copyright: 1996-2011, The K Desktop Environment project http://www.kde.org + Marc-Andre Lureau + Bastien Nocera + Andreas Hyden + Seth Nickell + Ronald Bultje + Thomas Vander Stichele + William Jon McCann +License: GPL-2+ + The full text of the GNU General Public License version 2 is available on + Debian systems in /usr/share/common-licenses/GPL-2. + +Files: resources/theme/default/os-custom-icons/* +Copyright: 2010-2011, Matthieu James + 2012, Daniel Fore + 2012, Sebastiaan Mathot +License: GPL-3 + The full text of the GNU General Public License version 3 is available on + Debian systems in /usr/share/common-licenses/GPL-3. + +Files: debian/* +Copyright: 2010-2012, Sebastiaan Mathot + 2011, Michael Hanke +License: GPL-3 + The full text of the GNU General Public License version 3 is available on + Debian systems in /usr/share/common-licenses/GPL-3. + +Files: resources/ts/it_IT.ts +Copyright: 2012, Andrea Epifani +License: GPL-3 + The full text of the GNU General Public License version 3 is available on + Debian systems in /usr/share/common-licenses/GPL-3. + +Files: resources/ts/fr_FR.ts +Copyright: 2013, Romain Monfollet +License: GPL-3 + The full text of the GNU General Public License version 3 is available on + Debian systems in /usr/share/common-licenses/GPL-3. + +Files: resources/ts/zh_CN.ts +Copyright: 2013, Gabriel Chan + 2013, Jerry Li +License: GPL-3 + The full text of the GNU General Public License version 3 is available on + Debian systems in /usr/share/common-licenses/GPL-3. + +Files: resources/templates/eco_alt_template.opensesame.tar.gz +Copyright: 2012, Francisco Javier Moreno-Martinez + 2012, Pedro R. Montoro + 2012, Sebastiaan Mathot +License: CC-BY-3.0 + +License: CC-BY-3.0 + You are free: + to Share (to copy, distribute and transmit the work) and + to Remix (to adapt the work) under the following conditions: + . + Attribution — You must attribute the work in the manner specified by the + author or licensor (but not in any way that suggests that they endorse you + or your use of the work). + . + For more information, see http://creativecommons.org/licenses/by/3.0/ diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/eval/hints new file mode 100644 index 00000000..6414c1ef --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/eval/hints @@ -0,0 +1,10 @@ +source-copyright-incomplete-creative-commons-b (source): superfluous-file-pattern sounds/* [debian/copyright:19] +source-copyright-incomplete-creative-commons-b (source): superfluous-file-pattern resources/ts/zh_CN.ts [debian/copyright:59] +source-copyright-incomplete-creative-commons-b (source): superfluous-file-pattern resources/ts/it_IT.ts [debian/copyright:47] +source-copyright-incomplete-creative-commons-b (source): superfluous-file-pattern resources/ts/fr_FR.ts [debian/copyright:53] +source-copyright-incomplete-creative-commons-b (source): superfluous-file-pattern resources/theme/default/os-custom-icons/* [debian/copyright:32] +source-copyright-incomplete-creative-commons-b (source): superfluous-file-pattern resources/templates/eco_alt_template.opensesame.tar.gz [debian/copyright:66] +source-copyright-incomplete-creative-commons-b (source): superfluous-file-pattern resources/*.ttf [debian/copyright:12] +source-copyright-incomplete-creative-commons-b (source): superfluous-file-pattern * [debian/copyright:6] +source-copyright-incomplete-creative-commons-b (source): insecure-copyright-format-uri http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ [debian/copyright] +source-copyright-incomplete-creative-commons-b (source): incomplete-creative-commons-license cc-by-3.0 [debian/copyright:72] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/ORIGIN new file mode 100644 index 00000000..595d83c5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/debian/changelog new file mode 100644 index 00000000..19091b6c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/debian/changelog @@ -0,0 +1,17 @@ +source-copyright-incomplete-creative-commons-unrel (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-incomplete-creative-commons-unrel + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +source-copyright-incomplete-creative-commons-unrel (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-incomplete-creative-commons-unrel + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/debian/control new file mode 100644 index 00000000..5b2cb0f3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/debian/control @@ -0,0 +1,17 @@ +Source: source-copyright-incomplete-creative-commons-unrel +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: source-copyright-incomplete-creative-commons-unrel +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for incomplete Creative Commons licenses (good) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/debian/copyright new file mode 100644 index 00000000..9a5bb1d4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/debian/copyright @@ -0,0 +1,379 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: flycheck +Source: https://github.com/flycheck/flycheck + +Files: * +Copyright: (C) 2012-2015, 2016, 2017 Sebastian Wiesner and Flycheck contributors + (C) 2013, 2014 Free Software Foundation, Inc. +License: GPL-3+ + +Files: doc/* +Copyright: (C) 2012-2015, 2017 Sebastian Wiesner and Flycheck contributors +License: CC-BY-SA-4.0 + +Files: doc/*.py +Copyright: (C) 2012-2015 Sebastian Wiesner and Flycheck contributors +License: GPL-3+ + +Files: flycheck.svg +Copyright: (C) 2014-2015 Sebastian Wiesner +License: CC-BY-SA-4.0 + +Files: debian/* +Copyright: (C) 2016, 2017 Sean Whitton +License: GPL-3+ + +License: GPL-3+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see . + . + On Debian systems, the complete text of the GNU General + Public License version 3 can be found in "/usr/share/common-licenses/GPL-3 + +License: CC-BY-SA-4.0 + By exercising the Licensed Rights (defined below), You accept and agree + to be bound by the terms and conditions of this Creative Commons + Attribution-ShareAlike 4.0 International Public License ("Public + License"). To the extent this Public License may be interpreted as a + contract, You are granted the Licensed Rights in consideration of Your + acceptance of these terms and conditions, and the Licensor grants You + such rights in consideration of benefits the Licensor receives from + making the Licensed Material available under these terms and + conditions. + . + Section 1 – Definitions. + . + a. Adapted Material means material subject to Copyright and Similar + Rights that is derived from or based upon the Licensed Material and in + which the Licensed Material is translated, altered, arranged, + transformed, or otherwise modified in a manner requiring permission + under the Copyright and Similar Rights held by the Licensor. For + purposes of this Public License, where the Licensed Material is a + musical work, performance, or sound recording, Adapted Material is + always produced where the Licensed Material is synched in timed + relation with a moving image. + . + b. Adapter's License means the license You apply to Your Copyright and + Similar Rights in Your contributions to Adapted Material in accordance + with the terms and conditions of this Public License. + . + c. BY-SA Compatible License means a license listed at + creativecommons.org/compatiblelicenses, approved by Creative Commons + as essentially the equivalent of this Public License. + . + d. Copyright and Similar Rights means copyright and/or similar rights + closely related to copyright including, without limitation, + performance, broadcast, sound recording, and Sui Generis Database + Rights, without regard to how the rights are labeled or + categorized. For purposes of this Public License, the rights specified + in Section 2(b)(1)-(2) are not Copyright and Similar Rights. + . + e. Effective Technological Measures means those measures that, in the + absence of proper authority, may not be circumvented under laws + fulfilling obligations under Article 11 of the WIPO Copyright Treaty + adopted on December 20, 1996, and/or similar international agreements. + . + f. Exceptions and Limitations means fair use, fair dealing, and/or any + other exception or limitation to Copyright and Similar Rights that + applies to Your use of the Licensed Material. + . + g. License Elements means the license attributes listed in the name of + a Creative Commons Public License. The License Elements of this Public + License are Attribution and ShareAlike. + . + h. Licensed Material means the artistic or literary work, database, or + other material to which the Licensor applied this Public License. + . + i. Licensed Rights means the rights granted to You subject to the + terms and conditions of this Public License, which are limited to all + Copyright and Similar Rights that apply to Your use of the Licensed + Material and that the Licensor has authority to license. + . + j. Licensor means the individual(s) or entity(ies) granting rights + under this Public License. + . + k. Share means to provide material to the public by any means or + process that requires permission under the Licensed Rights, such as + reproduction, public display, public performance, distribution, + dissemination, communication, or importation, and to make material + available to the public including in ways that members of the public + may access the material from a place and at a time individually chosen + by them. + . + l. Sui Generis Database Rights means rights other than copyright + resulting from Directive 96/9/EC of the European Parliament and of the + Council of 11 March 1996 on the legal protection of databases, as + amended and/or succeeded, as well as other essentially equivalent + rights anywhere in the world. + . + m. You means the individual or entity exercising the Licensed Rights + under this Public License. Your has a corresponding meaning. + . + Section 2 – Scope. + . + a. License grant. + . + 1. Subject to the terms and conditions of this Public License, the + Licensor hereby grants You a worldwide, royalty-free, + non-sublicensable, non-exclusive, irrevocable license to exercise the + Licensed Rights in the Licensed Material to: + . + A. reproduce and Share the Licensed Material, in whole or in part; and + . + B. produce, reproduce, and Share Adapted Material. + . + 2. Exceptions and Limitations. For the avoidance of doubt, where + Exceptions and Limitations apply to Your use, this Public License does + not apply, and You do not need to comply with its terms and + conditions. + . + 3. Term. The term of this Public License is specified in Section 6(a). + . + 4. Media and formats; technical modifications allowed. The Licensor + authorizes You to exercise the Licensed Rights in all media and + formats whether now known or hereafter created, and to make technical + modifications necessary to do so. The Licensor waives and/or agrees + not to assert any right or authority to forbid You from making + technical modifications necessary to exercise the Licensed Rights, + including technical modifications necessary to circumvent Effective + Technological Measures. For purposes of this Public License, simply + making modifications authorized by this Section 2(a)(4) never produces + Adapted Material. + . + 5. Downstream recipients. + . + A. Offer from the Licensor – Licensed Material. Every recipient of the + Licensed Material automatically receives an offer from the Licensor to + exercise the Licensed Rights under the terms and conditions of this + Public License. + . + B. Additional offer from the Licensor – Adapted Material. Every + recipient of Adapted Material from You automatically receives an offer + from the Licensor to exercise the Licensed Rights in the Adapted + Material under the conditions of the Adapter’s License You apply. + . + C. No downstream restrictions. You may not offer or impose any + additional or different terms or conditions on, or apply any Effective + Technological Measures to, the Licensed Material if doing so restricts + exercise of the Licensed Rights by any recipient of the Licensed + Material. + . + 6. No endorsement. Nothing in this Public License constitutes or may + be construed as permission to assert or imply that You are, or that + Your use of the Licensed Material is, connected with, or sponsored, + endorsed, or granted official status by, the Licensor or others + designated to receive attribution as provided in Section + 3(a)(1)(A)(i). + . + b. Other rights. + . + 1. Moral rights, such as the right of integrity, are not licensed + under this Public License, nor are publicity, privacy, and/or other + similar personality rights; however, to the extent possible, the + Licensor waives and/or agrees not to assert any such rights held by + the Licensor to the limited extent necessary to allow You to exercise + the Licensed Rights, but not otherwise. + . + 2. Patent and trademark rights are not licensed under this Public + License. + . + 3. To the extent possible, the Licensor waives any right to collect + royalties from You for the exercise of the Licensed Rights, whether + directly or through a collecting society under any voluntary or + waivable statutory or compulsory licensing scheme. In all other cases + the Licensor expressly reserves any right to collect such royalties. + . + Section 3 – License Conditions. + . + Your exercise of the Licensed Rights is expressly made subject to the + following conditions. + . + a. Attribution. + . + 1. If You Share the Licensed Material (including in modified form), + You must: + . + A. retain the following if it is supplied by the Licensor with the + Licensed Material: + . + i. identification of the creator(s) of the Licensed Material and any + others designated to receive attribution, in any reasonable manner + requested by the Licensor (including by pseudonym if designated); + . + ii. a copyright notice; + . + iii. a notice that refers to this Public License; + . + iv. a notice that refers to the disclaimer of warranties; + . + v. a URI or hyperlink to the Licensed Material to the extent + reasonably practicable; + . + B. indicate if You modified the Licensed Material and retain an + indication of any previous modifications; and + . + C. indicate the Licensed Material is licensed under this Public + License, and include the text of, or the URI or hyperlink to, this + Public License. + . + 2. You may satisfy the conditions in Section 3(a)(1) in any reasonable + manner based on the medium, means, and context in which You Share the + Licensed Material. For example, it may be reasonable to satisfy the + conditions by providing a URI or hyperlink to a resource that includes + the required information. + . + 3. If requested by the Licensor, You must remove any of the + information required by Section 3(a)(1)(A) to the extent reasonably + practicable. + . + b. ShareAlike.In addition to the conditions in Section 3(a), if You + Share Adapted Material You produce, the following conditions also + apply. + . + 1. The Adapter’s License You apply must be a Creative Commons license + with the same License Elements, this version or later, or a BY-SA + Compatible License. + . + 2. You must include the text of, or the URI or hyperlink to, the + Adapter's License You apply. You may satisfy this condition in any + reasonable manner based on the medium, means, and context in which You + Share Adapted Material. + . + 3. You may not offer or impose any additional or different terms or + conditions on, or apply any Effective Technological Measures to, + Adapted Material that restrict exercise of the rights granted under + the Adapter's License You apply. + . + Section 4 – Sui Generis Database Rights. + . + Where the Licensed Rights include Sui Generis Database Rights that + apply to Your use of the Licensed Material: + . + a. for the avoidance of doubt, Section 2(a)(1) grants You the right to + extract, reuse, reproduce, and Share all or a substantial portion of + the contents of the database; + . + b. if You include all or a substantial portion of the database + contents in a database in which You have Sui Generis Database Rights, + then the database in which You have Sui Generis Database Rights (but + not its individual contents) is Adapted Material, including for + purposes of Section 3(b); and + . + c. You must comply with the conditions in Section 3(a) if You Share + all or a substantial portion of the contents of the database. For the + avoidance of doubt, this Section 4 supplements and does not replace + Your obligations under this Public License where the Licensed Rights + include other Copyright and Similar Rights. + . + Section 5 – Disclaimer of Warranties and Limitation of Liability. + . + a. Unless otherwise separately undertaken by the Licensor, to the + extent possible, the Licensor offers the Licensed Material as-is and + as-available, and makes no representations or warranties of any kind + concerning the Licensed Material, whether express, implied, statutory, + or other. This includes, without limitation, warranties of title, + merchantability, fitness for a particular purpose, non-infringement, + absence of latent or other defects, accuracy, or the presence or + absence of errors, whether or not known or discoverable. Where + disclaimers of warranties are not allowed in full or in part, this + disclaimer may not apply to You. + . + b. To the extent possible, in no event will the Licensor be liable to + You on any legal theory (including, without limitation, negligence) or + otherwise for any direct, special, indirect, incidental, + consequential, punitive, exemplary, or other losses, costs, expenses, + or damages arising out of this Public License or use of the Licensed + Material, even if the Licensor has been advised of the possibility of + such losses, costs, expenses, or damages. Where a limitation of + liability is not allowed in full or in part, this limitation may not + apply to You. + . + c. The disclaimer of warranties and limitation of liability provided + above shall be interpreted in a manner that, to the extent possible, + most closely approximates an absolute disclaimer and waiver of all + liability. + . + Section 6 – Term and Termination. + . + a. This Public License applies for the term of the Copyright and + Similar Rights licensed here. However, if You fail to comply with this + Public License, then Your rights under this Public License terminate + automatically. + . + b. Where Your right to use the Licensed Material has terminated under + Section 6(a), it reinstates: + . + 1. automatically as of the date the violation is cured, provided it is + cured within 30 days of Your discovery of the violation; or + . + 2. upon express reinstatement by the Licensor. + . + c. For the avoidance of doubt, this Section 6(b) does not affect any + right the Licensor may have to seek remedies for Your violations of + this Public License. + . + d. For the avoidance of doubt, the Licensor may also offer the + Licensed Material under separate terms or conditions or stop + distributing the Licensed Material at any time; however, doing so will + not terminate this Public License. + . + e. Sections 1, 5, 6, 7, and 8 survive termination of this Public + License. + . + Section 7 – Other Terms and Conditions. + . + a. The Licensor shall not be bound by any additional or different + terms or conditions communicated by You unless expressly agreed. + . + b. Any arrangements, understandings, or agreements regarding the + Licensed Material not stated herein are separate from and independent + of the terms and conditions of this Public License. + . + Section 8 – Interpretation. + . + a. For the avoidance of doubt, this Public License does not, and shall + not be interpreted to, reduce, limit, restrict, or impose conditions + on any use of the Licensed Material that could lawfully be made + without permission under this Public License. + . + b. To the extent possible, if any provision of this Public License is + deemed unenforceable, it shall be automatically reformed to the + minimum extent necessary to make it enforceable. If the provision + cannot be reformed, it shall be severed from this Public License + without affecting the enforceability of the remaining terms and + conditions. + . + c. No term or condition of this Public License will be waived and no + failure to comply consented to unless expressly agreed to by the + Licensor. + . + d. Nothing in this Public License constitutes or may be interpreted as + a limitation upon, or waiver of, any privileges and immunities that + apply to the Licensor or You, including from the legal processes of + any jurisdiction or authority. + . + Creative Commons is not a party to its public + licenses. Notwithstanding, Creative Commons may elect to apply one of + its public licenses to material it publishes and in those instances + will be considered the “Licensor.” Except for the limited purpose of + indicating that material is shared under a Creative Commons public + license or as otherwise permitted by the Creative Commons policies + published at creativecommons.org/policies, Creative Commons does not + authorize the use of the trademark “Creative Commons” or any other + trademark or logo of Creative Commons without its prior written + consent including, without limitation, in connection with any + unauthorized modifications to any of its public licenses or any other + arrangements, understandings, or agreements concerning use of licensed + material. For the avoidance of doubt, this paragraph does not form + part of the public licenses. Creative Commons may be contacted at + creativecommons.org. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/eval/hints new file mode 100644 index 00000000..7b2b9f75 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/eval/hints @@ -0,0 +1,4 @@ +source-copyright-incomplete-creative-commons-unrel (source): superfluous-file-pattern flycheck.svg [debian/copyright:18] +source-copyright-incomplete-creative-commons-unrel (source): superfluous-file-pattern doc/*.py [debian/copyright:14] +source-copyright-incomplete-creative-commons-unrel (source): superfluous-file-pattern doc/* [debian/copyright:10] +source-copyright-incomplete-creative-commons-unrel (source): superfluous-file-pattern * [debian/copyright:5] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/ORIGIN new file mode 100644 index 00000000..5c9c7440 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/debian/changelog new file mode 100644 index 00000000..31dceb07 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/debian/changelog @@ -0,0 +1,17 @@ +source-copyright-incomplete-creative-commons (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-incomplete-creative-commons + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +source-copyright-incomplete-creative-commons (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-incomplete-creative-commons + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/debian/control new file mode 100644 index 00000000..7e58b6be --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/debian/control @@ -0,0 +1,17 @@ +Source: source-copyright-incomplete-creative-commons +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: source-copyright-incomplete-creative-commons +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for incomplete Creative Commons licenses + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/debian/copyright new file mode 100644 index 00000000..641bb236 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/debian/copyright @@ -0,0 +1,79 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: opensesame +Upstream-Contact: Sebastiaan Mathot +Source: http://www.cogsci.nl/software/opensesame + +Files: * +Copyright: 2010-2012, Sebastiaan Mathot +License: GPL-3 + On Debian systems, the full text of the GNU General Public License version 3 + can be found in the file `/usr/share/common-licenses/GPL-3'. + +Files: resources/*.ttf +Copyright: 2006, 2007, 2008, 2009, 2010 Google Corp. + Droid is a trademark of Google Corp. +License: Apache-2.0 + On Debian systems, the complete text of the Apache License Version 2.0 + can be found in `/usr/share/common-licenses/Apache-2.0'. + +Files: sounds/* +Copyright: 1996-2011, The K Desktop Environment project http://www.kde.org + Marc-Andre Lureau + Bastien Nocera + Andreas Hyden + Seth Nickell + Ronald Bultje + Thomas Vander Stichele + William Jon McCann +License: GPL-2+ + The full text of the GNU General Public License version 2 is available on + Debian systems in /usr/share/common-licenses/GPL-2. + +Files: resources/theme/default/os-custom-icons/* +Copyright: 2010-2011, Matthieu James + 2012, Daniel Fore + 2012, Sebastiaan Mathot +License: GPL-3 + The full text of the GNU General Public License version 3 is available on + Debian systems in /usr/share/common-licenses/GPL-3. + +Files: debian/* +Copyright: 2010-2012, Sebastiaan Mathot + 2011, Michael Hanke +License: GPL-3 + The full text of the GNU General Public License version 3 is available on + Debian systems in /usr/share/common-licenses/GPL-3. + +Files: resources/ts/it_IT.ts +Copyright: 2012, Andrea Epifani +License: GPL-3 + The full text of the GNU General Public License version 3 is available on + Debian systems in /usr/share/common-licenses/GPL-3. + +Files: resources/ts/fr_FR.ts +Copyright: 2013, Romain Monfollet +License: GPL-3 + The full text of the GNU General Public License version 3 is available on + Debian systems in /usr/share/common-licenses/GPL-3. + +Files: resources/ts/zh_CN.ts +Copyright: 2013, Gabriel Chan + 2013, Jerry Li +License: GPL-3 + The full text of the GNU General Public License version 3 is available on + Debian systems in /usr/share/common-licenses/GPL-3. + +Files: resources/templates/eco_alt_template.opensesame.tar.gz +Copyright: 2012, Francisco Javier Moreno-Martinez + 2012, Pedro R. Montoro + 2012, Sebastiaan Mathot +License: CC-BY-3.0 + You are free: + to Share (to copy, distribute and transmit the work) and + to Remix (to adapt the work) under the following conditions: + . + Attribution — You must attribute the work in the manner specified by the + author or licensor (but not in any way that suggests that they endorse you + or your use of the work). + . + For more information, see http://creativecommons.org/licenses/by/3.0/ diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/eval/hints new file mode 100644 index 00000000..bfca5cd5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/eval/hints @@ -0,0 +1,10 @@ +source-copyright-incomplete-creative-commons (source): superfluous-file-pattern sounds/* [debian/copyright:19] +source-copyright-incomplete-creative-commons (source): superfluous-file-pattern resources/ts/zh_CN.ts [debian/copyright:59] +source-copyright-incomplete-creative-commons (source): superfluous-file-pattern resources/ts/it_IT.ts [debian/copyright:47] +source-copyright-incomplete-creative-commons (source): superfluous-file-pattern resources/ts/fr_FR.ts [debian/copyright:53] +source-copyright-incomplete-creative-commons (source): superfluous-file-pattern resources/theme/default/os-custom-icons/* [debian/copyright:32] +source-copyright-incomplete-creative-commons (source): superfluous-file-pattern resources/templates/eco_alt_template.opensesame.tar.gz [debian/copyright:66] +source-copyright-incomplete-creative-commons (source): superfluous-file-pattern resources/*.ttf [debian/copyright:12] +source-copyright-incomplete-creative-commons (source): superfluous-file-pattern * [debian/copyright:6] +source-copyright-incomplete-creative-commons (source): insecure-copyright-format-uri http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ [debian/copyright] +source-copyright-incomplete-creative-commons (source): incomplete-creative-commons-license cc-by-3.0 [debian/copyright:70] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/ORIGIN new file mode 100644 index 00000000..39ff7123 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/bad.xml b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/bad.xml new file mode 100644 index 00000000..bb4f84c2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/bad.xml @@ -0,0 +1,18 @@ + + + org.gnupg.scdaemon + does-not-match-anything + scdaemon + USB SmartCard Readers + +

+ GnuPG's scdaemon provides access to USB tokens and smartcard + readers that provide cryptographic functionality (e.g. use of + protected secret keys). +

+
+ + usb:v046Ap0005d* + usb:v0BF8p1006d* + +
diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/debian/changelog new file mode 100644 index 00000000..f2dbafc1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/debian/changelog @@ -0,0 +1,17 @@ +source-copyright-inconsistent-appstream-metadata-license (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-inconsistent-appstream-metadata-license + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +source-copyright-inconsistent-appstream-metadata-license (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-inconsistent-appstream-metadata-license + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/debian/control new file mode 100644 index 00000000..3fc09a31 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/debian/control @@ -0,0 +1,17 @@ +Source: source-copyright-inconsistent-appstream-metadata-license +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: source-copyright-inconsistent-appstream-metadata-license +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: No Description Available + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/debian/copyright new file mode 100644 index 00000000..22d390a9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/debian/copyright @@ -0,0 +1,16 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Doohickey +Upstream-Contact: J. Random Hacker +Source: http://examples.com/doohickey/source/ + +Files: * +Copyright: 2014, somebody1 +License: CC0-1.0 + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla tortor + dolor, laoreet et laoreet non, pretium in nunc. Sed dapibus quis lorem + quis gravida. Cras sed purus consequat, dictum purus nec, venenatis sem. + Nullam placerat et lacus at bibendum. Maecenas varius sapien ut aliquet + elementum. Vestibulum vel rutrum ligula, quis pellentesque velit. Duis + molestie velit eget aliquet sollicitudin. Nunc eget metus nec nibh + maximus iaculis in non urna. Cras maximus dui ac mauris maximus + porttitor. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/eval/hints new file mode 100644 index 00000000..5471a72c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/eval/hints @@ -0,0 +1 @@ +source-copyright-inconsistent-appstream-metadata-license (source): inconsistent-appstream-metadata-license bad.xml (does-not-match-anything != cc0-1.0) [debian/copyright] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/good.xml b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/good.xml new file mode 100644 index 00000000..b316fd5a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/good.xml @@ -0,0 +1,18 @@ + + + org.gnupg.scdaemon + CC0-1.0 + scdaemon + USB SmartCard Readers + +

+ GnuPG's scdaemon provides access to USB tokens and smartcard + readers that provide cryptographic functionality (e.g. use of + protected secret keys). +

+
+ + usb:v046Ap0005d* + usb:v046Ap0010d* + +
diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-insecure-uri/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-insecure-uri/ORIGIN new file mode 100644 index 00000000..a36c16dd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-insecure-uri/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/source-copyright-insecure-uri + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-insecure-uri/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-insecure-uri/debian/changelog new file mode 100644 index 00000000..7dccb77f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-insecure-uri/debian/changelog @@ -0,0 +1,17 @@ +source-copyright-insecure-uri (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-insecure-uri + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +source-copyright-insecure-uri (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-insecure-uri + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-insecure-uri/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-insecure-uri/debian/control new file mode 100644 index 00000000..6443300f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-insecure-uri/debian/control @@ -0,0 +1,17 @@ +Source: source-copyright-insecure-uri +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: source-copyright-insecure-uri +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for insecure Format: URIs + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-insecure-uri/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-insecure-uri/debian/copyright new file mode 100644 index 00000000..082beb14 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-insecure-uri/debian/copyright @@ -0,0 +1,23 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Doohickey +Upstream-Contact: J. Random Hacker +Source: http://examples.com/doohickey/source/ + +Files: * +Copyright: © 2011 J. Random Hacker +License: Apache-2.0 + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + . + http://www.apache.org/licenses/LICENSE-2.0 + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + . + On Debian systems, the complete text of the Apache version 2.0 license + can be found in "/usr/share/common-licenses/Apache-2.0". + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-insecure-uri/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-insecure-uri/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-insecure-uri/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-insecure-uri/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-insecure-uri/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-insecure-uri/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-insecure-uri/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-insecure-uri/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-insecure-uri/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-insecure-uri/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-insecure-uri/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-insecure-uri/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-insecure-uri/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-insecure-uri/eval/hints new file mode 100644 index 00000000..be71ba9e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-insecure-uri/eval/hints @@ -0,0 +1 @@ +source-copyright-insecure-uri (source): insecure-copyright-format-uri http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ [debian/copyright] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/ORIGIN new file mode 100644 index 00000000..52f0b0b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/debian/changelog new file mode 100644 index 00000000..c243d2ee --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/debian/changelog @@ -0,0 +1,17 @@ +source-copyright-missing-non-free-explanation-unrel (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-missing-non-free-explanation-unrel + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +source-copyright-missing-non-free-explanation-unrel (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-missing-non-free-explanation-unrel + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/debian/control new file mode 100644 index 00000000..b3da3ad3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/debian/control @@ -0,0 +1,17 @@ +Source: source-copyright-missing-non-free-explanation-unrel +Section: contrib/doc +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: source-copyright-missing-non-free-explanation-unrel +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for missing contrib/non-free explanations + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/ORIGIN new file mode 100644 index 00000000..776c41b0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/debian/changelog new file mode 100644 index 00000000..2d0d7410 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/debian/changelog @@ -0,0 +1,17 @@ +source-copyright-missing-non-free-explanation (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-missing-non-free-explanation + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +source-copyright-missing-non-free-explanation (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-missing-non-free-explanation + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/debian/control new file mode 100644 index 00000000..7c89a42f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/debian/control @@ -0,0 +1,17 @@ +Source: source-copyright-missing-non-free-explanation +Section: contrib/doc +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: source-copyright-missing-non-free-explanation +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for missing contrib/non-free explanations + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/debian/copyright new file mode 100644 index 00000000..5c389635 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/debian/copyright @@ -0,0 +1,23 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org + +Files: * +Copyright: 2009, Russ Allbery +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. + You can also obtain it by writing to the Free Software Foundation, Inc., + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/eval/hints new file mode 100644 index 00000000..47673458 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/eval/hints @@ -0,0 +1 @@ +source-copyright-missing-non-free-explanation (source): missing-explanation-for-contrib-or-non-free-package [debian/copyright:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/ORIGIN new file mode 100644 index 00000000..77bc6a19 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/debian/changelog new file mode 100644 index 00000000..f0775619 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/debian/changelog @@ -0,0 +1,17 @@ +source-copyright-missing-repack-explanation-unrel (1+dfsg-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-missing-repack-explanation-unrel + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +source-copyright-missing-repack-explanation-unrel (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-missing-repack-explanation-unrel + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/debian/control new file mode 100644 index 00000000..229cf2bf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/debian/control @@ -0,0 +1,17 @@ +Source: source-copyright-missing-repack-explanation-unrel +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: source-copyright-missing-repack-explanation-unrel +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for missing repack explanations (false-positive) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/debian/copyright new file mode 100644 index 00000000..6a3aeb68 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/debian/copyright @@ -0,0 +1,24 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Files-Excluded: dummy + +Files: * +Copyright: 2009, Russ Allbery +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. + You can also obtain it by writing to the Free Software Foundation, Inc., + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/ORIGIN new file mode 100644 index 00000000..49e24073 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/debian/changelog new file mode 100644 index 00000000..d32c2310 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/debian/changelog @@ -0,0 +1,17 @@ +source-copyright-missing-repack-explanation (1+dfsg-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-missing-repack-explanation + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +source-copyright-missing-repack-explanation (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-missing-repack-explanation + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/debian/control new file mode 100644 index 00000000..370fd86f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/debian/control @@ -0,0 +1,17 @@ +Source: source-copyright-missing-repack-explanation +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: source-copyright-missing-repack-explanation +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for missing repack explanations + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/debian/copyright new file mode 100644 index 00000000..5c389635 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/debian/copyright @@ -0,0 +1,23 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org + +Files: * +Copyright: 2009, Russ Allbery +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. + You can also obtain it by writing to the Free Software Foundation, Inc., + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/eval/hints new file mode 100644 index 00000000..94889c18 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/eval/hints @@ -0,0 +1 @@ +source-copyright-missing-repack-explanation (source): missing-explanation-for-repacked-upstream-tarball [debian/copyright:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-nodep5/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-nodep5/ORIGIN new file mode 100644 index 00000000..f5f0e00d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-nodep5/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/source-copyright-nodep5 + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-nodep5/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-nodep5/debian/changelog new file mode 100644 index 00000000..9317a14f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-nodep5/debian/changelog @@ -0,0 +1,17 @@ +source-copyright-nodep5 (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-nodep5 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +source-copyright-nodep5 (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-nodep5 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-nodep5/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-nodep5/debian/control new file mode 100644 index 00000000..f07e991a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-nodep5/debian/control @@ -0,0 +1,17 @@ +Source: source-copyright-nodep5 +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: source-copyright-nodep5 +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for no dep5 source copyright + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-nodep5/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-nodep5/debian/copyright new file mode 100644 index 00000000..3fcbad9c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-nodep5/debian/copyright @@ -0,0 +1,21 @@ +This is not a dep5 copyright file + +Copyright (c) 2013 + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the “Software”), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-nodep5/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-nodep5/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-nodep5/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-nodep5/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-nodep5/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-nodep5/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-nodep5/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-nodep5/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-nodep5/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-nodep5/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-nodep5/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-nodep5/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-nodep5/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-nodep5/eval/hints new file mode 100644 index 00000000..23dbe213 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-nodep5/eval/hints @@ -0,0 +1 @@ +source-copyright-nodep5 (source): no-dep5-copyright [debian/copyright] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-ood-uri/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-ood-uri/ORIGIN new file mode 100644 index 00000000..5acbf5c6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-ood-uri/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/source-copyright-ood-uri + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-ood-uri/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-ood-uri/debian/changelog new file mode 100644 index 00000000..3ed6474e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-ood-uri/debian/changelog @@ -0,0 +1,17 @@ +source-copyright-ood-uri (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-ood-uri + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +source-copyright-ood-uri (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-ood-uri + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-ood-uri/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-ood-uri/debian/control new file mode 100644 index 00000000..dc84912b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-ood-uri/debian/control @@ -0,0 +1,17 @@ +Source: source-copyright-ood-uri +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: source-copyright-ood-uri +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for out-of-date DEP 5-like URI + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-ood-uri/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-ood-uri/debian/copyright new file mode 100644 index 00000000..f73439f6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-ood-uri/debian/copyright @@ -0,0 +1,22 @@ +Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 +Name: Doohickey +Maintainer: J. Random Hacker +Source: http://examples.com/doohickey/source/ + +Files: * +Copyright: 2011 J. Random Hacker +License: GPL-2 + This package is free software; you can redistribute it and/or modify it under + the terms of the GNU General Public License as published by the Free Software + Foundation; version 2 dated June, 1991. + . + This package is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License along with + this package; if not, write to the Free Software Foundation, Inc., 51 Franklin + St, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the full text of the GNU General Public License version 2 + can be found in the file `/usr/share/common-licenses/GPL-2'. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-ood-uri/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-ood-uri/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-ood-uri/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-ood-uri/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-ood-uri/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-ood-uri/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-ood-uri/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-ood-uri/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-ood-uri/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-ood-uri/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-ood-uri/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-ood-uri/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-ood-uri/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-ood-uri/eval/hints new file mode 100644 index 00000000..3907382f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-ood-uri/eval/hints @@ -0,0 +1 @@ +source-copyright-ood-uri (source): out-of-date-copyright-format-uri http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 [debian/copyright] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-pipe-as-or/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-pipe-as-or/ORIGIN new file mode 100644 index 00000000..8a3d83a4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-pipe-as-or/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/source-copyright-pipe-as-or + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-pipe-as-or/README b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-pipe-as-or/README new file mode 100644 index 00000000..1a9d2add --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-pipe-as-or/README @@ -0,0 +1 @@ +trivial diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-pipe-as-or/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-pipe-as-or/debian/changelog new file mode 100644 index 00000000..b586d553 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-pipe-as-or/debian/changelog @@ -0,0 +1,17 @@ +source-copyright-pipe-as-or (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-pipe-as-or + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +source-copyright-pipe-as-or (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-pipe-as-or + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-pipe-as-or/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-pipe-as-or/debian/control new file mode 100644 index 00000000..7af7936f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-pipe-as-or/debian/control @@ -0,0 +1,17 @@ +Source: source-copyright-pipe-as-or +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: source-copyright-pipe-as-or +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for the pipe symbol being used as an "or" + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-pipe-as-or/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-pipe-as-or/debian/copyright new file mode 100644 index 00000000..31e35637 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-pipe-as-or/debian/copyright @@ -0,0 +1,16 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Doohickey +Upstream-Contact: J. Random Hacker +Source: http://examples.com/doohickey/source/ + +Files: * +Copyright: 2014, somebody1 +License: this | that + +Files: debian/* +Copyright: 2014, somebody1 +License: this|that + this is a valid license short name + +License: this | that + should be "this or that" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-pipe-as-or/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-pipe-as-or/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-pipe-as-or/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-pipe-as-or/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-pipe-as-or/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-pipe-as-or/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-pipe-as-or/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-pipe-as-or/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-pipe-as-or/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-pipe-as-or/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-pipe-as-or/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-pipe-as-or/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-pipe-as-or/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-pipe-as-or/eval/hints new file mode 100644 index 00000000..6b59adce --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-pipe-as-or/eval/hints @@ -0,0 +1,4 @@ +source-copyright-pipe-as-or (source): space-in-std-shortname-in-dep5-copyright this | that [debian/copyright:8] +source-copyright-pipe-as-or (source): space-in-std-shortname-in-dep5-copyright this | that [debian/copyright:15] +source-copyright-pipe-as-or (source): pipe-symbol-used-as-license-disjunction this | that [debian/copyright:8] +source-copyright-pipe-as-or (source): pipe-symbol-used-as-license-disjunction this | that [debian/copyright:15] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/.matches b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/.matches new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/ORIGIN new file mode 100644 index 00000000..2d874a19 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/debian/changelog new file mode 100644 index 00000000..82570118 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/debian/changelog @@ -0,0 +1,17 @@ +source-copyright-source-files-excluded (1.0+dfsg-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-source-files-excluded + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +source-copyright-source-files-excluded (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-source-files-excluded + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/debian/control new file mode 100644 index 00000000..f734f744 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/debian/control @@ -0,0 +1,17 @@ +Source: source-copyright-source-files-excluded +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: source-copyright-source-files-excluded +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for files listed in Files-Excluded + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/debian/copyright new file mode 100644 index 00000000..82dfe2c8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/debian/copyright @@ -0,0 +1,29 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Files-Excluded: exclude-this + exclude-dir + */exclude-dir + exclude-dir-2/* + .* + */js/jquery.js + lib/* + debian/* + debian/copyright + recreated-file + +Files: * +Copyright: 2011 J. Random Hacker +License: GPL-2 + This package is free software; you can redistribute it and/or modify it under + the terms of the GNU General Public License as published by the Free Software + Foundation; version 2 dated June, 1991. + . + This package is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License along with + this package; if not, write to the Free Software Foundation, Inc., 51 Franklin + St, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the full text of the GNU General Public License version 2 + can be found in the file `/usr/share/common-licenses/GPL-2'. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/debian/patches/0001-recreate-file.diff b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/debian/patches/0001-recreate-file.diff new file mode 100644 index 00000000..a40e2b12 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/debian/patches/0001-recreate-file.diff @@ -0,0 +1,6 @@ +Re-create a file. + +--- /dev/null ++++ debian/recreated-file +@@ -0,0 +1 @@ ++This file was created via a patch system and should be ignored. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/debian/patches/series b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/debian/patches/series new file mode 100644 index 00000000..ab898cab --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/debian/patches/series @@ -0,0 +1 @@ +0001-recreate-file.diff diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/eval/hints new file mode 100644 index 00000000..2f9d869d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/eval/hints @@ -0,0 +1,5 @@ +source-copyright-source-files-excluded (source): source-ships-excluded-file exclude-this [debian/copyright:2] +source-copyright-source-files-excluded (source): source-ships-excluded-file exclude-dir/filename-2 [debian/copyright:2] +source-copyright-source-files-excluded (source): source-ships-excluded-file exclude-dir/filename [debian/copyright:2] +source-copyright-source-files-excluded (source): source-ships-excluded-file exclude-dir-2/filename [debian/copyright:2] +source-copyright-source-files-excluded (source): source-ships-excluded-file .matches [debian/copyright:2] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/exclude-dir-2/filename b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/exclude-dir-2/filename new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/exclude-dir/filename b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/exclude-dir/filename new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/exclude-dir/filename-2 b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/exclude-dir/filename-2 new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/exclude-this b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/exclude-this new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/foolib/false-positive b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-source-files-excluded/foolib/false-positive new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-undefined/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-undefined/ORIGIN new file mode 100644 index 00000000..226c849a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-undefined/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/source-copyright-undefined + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-undefined/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-undefined/debian/changelog new file mode 100644 index 00000000..badf6b75 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-undefined/debian/changelog @@ -0,0 +1,17 @@ +source-copyright-undefined (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-undefined + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +source-copyright-undefined (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-undefined + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-undefined/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-undefined/debian/control new file mode 100644 index 00000000..f0a0a716 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-undefined/debian/control @@ -0,0 +1,17 @@ +Source: source-copyright-undefined +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: source-copyright-undefined +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for fixme/todo/unknown + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-undefined/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-undefined/debian/copyright new file mode 100644 index 00000000..8ff4ab08 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-undefined/debian/copyright @@ -0,0 +1,56 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Doohickey +Upstream-Contact: J. Random Hacker +Source: http://examples.com/doohickey/source/ + +Files: * +Copyright: 2014, somebody1 +License: Fixme + Fixme-license text + + +Files: debian/* +Copyright: 2015, somebody2 +License: unknown + Fixme + +Files: debian/a +Copyright: 2016, somebody2 +License: unknow + Fixme + +Files: debian/b +Copyright: 2014, somebody2 +License: todo + Fixme + +Files: debian/c +comment: some spacing +Copyright: 2017, somebody2 +License: - + Fixme + +Files: debian/d +comment: some spacing +Copyright: 2014, somebody2 +License: - + Fixme + +Files: debian/e +Comment: too many false positive with space +Copyright: 2014, somebody2 +License: undefined license + Fixme + +Files: debian/f +comment: some spacing +Copyright: 2014, somebody2 +License: undefined + Fixme + +Files: debian/g +comment: false positive +Copyright: 2014, somebody2 +License: common public license - v 1.0 + Fixme + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-undefined/debian/plus+file b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-undefined/debian/plus+file new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-undefined/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-undefined/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-undefined/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-undefined/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-undefined/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-undefined/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-undefined/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-undefined/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-undefined/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-undefined/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-undefined/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-undefined/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-undefined/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-undefined/eval/hints new file mode 100644 index 00000000..3f4f2e1e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-undefined/eval/hints @@ -0,0 +1,18 @@ +source-copyright-undefined (source): superfluous-file-pattern debian/g [debian/copyright:51] +source-copyright-undefined (source): superfluous-file-pattern debian/f [debian/copyright:45] +source-copyright-undefined (source): superfluous-file-pattern debian/e [debian/copyright:39] +source-copyright-undefined (source): superfluous-file-pattern debian/d [debian/copyright:33] +source-copyright-undefined (source): superfluous-file-pattern debian/c [debian/copyright:27] +source-copyright-undefined (source): superfluous-file-pattern debian/b [debian/copyright:22] +source-copyright-undefined (source): superfluous-file-pattern debian/a [debian/copyright:17] +source-copyright-undefined (source): superfluous-file-pattern * [debian/copyright:6] +source-copyright-undefined (source): space-in-std-shortname-in-dep5-copyright undefined license [debian/copyright:42] +source-copyright-undefined (source): space-in-std-shortname-in-dep5-copyright common public license - v 1.0 [debian/copyright:54] +source-copyright-undefined (source): license-problem-undefined-license unknown [debian/copyright:14] +source-copyright-undefined (source): license-problem-undefined-license unknow [debian/copyright:19] +source-copyright-undefined (source): license-problem-undefined-license undefined license [debian/copyright:42] +source-copyright-undefined (source): license-problem-undefined-license undefined [debian/copyright:48] +source-copyright-undefined (source): license-problem-undefined-license todo [debian/copyright:24] +source-copyright-undefined (source): license-problem-undefined-license fixme [debian/copyright:8] +source-copyright-undefined (source): license-problem-undefined-license - [debian/copyright:36] +source-copyright-undefined (source): license-problem-undefined-license - [debian/copyright:30] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/NEWS b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/NEWS new file mode 100644 index 00000000..8a7f3d99 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/NEWS @@ -0,0 +1 @@ +no news \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/ORIGIN new file mode 100644 index 00000000..d252e3a8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/source-copyright-unique + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/README b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/README new file mode 100644 index 00000000..1a9d2add --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/README @@ -0,0 +1 @@ +trivial diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/code b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/code new file mode 100644 index 00000000..1e2b25a4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/code @@ -0,0 +1 @@ +simple 3rd party code diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/code2 b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/code2 new file mode 100644 index 00000000..31d71146 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/code2 @@ -0,0 +1 @@ +another simple 3rd party code diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/debian/changelog new file mode 100644 index 00000000..0c4f1d94 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/debian/changelog @@ -0,0 +1,17 @@ +source-copyright-unique (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-unique + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +source-copyright-unique (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-unique + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/debian/control new file mode 100644 index 00000000..5278b73f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/debian/control @@ -0,0 +1,17 @@ +Source: source-copyright-unique +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: source-copyright-unique +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test if standalone paragraph name are unique + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/debian/copyright new file mode 100644 index 00000000..1f889464 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/debian/copyright @@ -0,0 +1,36 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Doohickey +Upstream-Contact: J. Random Hacker +Source: http://examples.com/doohickey/source/ +License: some-license + some license + +Files: * +Copyright: 2014, somebody1 +License: some-license + +Files: code +Copyright: none +License: public-domain + this work is PD because I say so + +Files: code2 +Copyright: none +License: public-domain + this work is also in the public domain + +Files: debian/* +Copyright: 2014, somebody1 +License: other-license + this is a valid license short name + +Files: NEWS +Copyright: 2014, somebody1 +License: other-license + this is a valid license short name 3 + +License: other-license + other-license + +License: other-license + other-license 2 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/eval/hints new file mode 100644 index 00000000..a8e6d235 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unique/eval/hints @@ -0,0 +1,5 @@ +source-copyright-unique (source): unused-license-paragraph-in-dep5-copyright other-license [debian/copyright:35] +source-copyright-unique (source): unused-license-paragraph-in-dep5-copyright other-license [debian/copyright:32] +source-copyright-unique (source): dep5-file-paragraph-references-header-paragraph some-license [debian/copyright:8] +source-copyright-unique (source): dep5-copyright-license-name-not-unique other-license [debian/copyright:35] +source-copyright-unique (source): dep5-copyright-license-name-not-unique other-license [debian/copyright:32] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unknown-uri/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unknown-uri/ORIGIN new file mode 100644 index 00000000..670167d6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unknown-uri/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/source-copyright-unknown-uri + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unknown-uri/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unknown-uri/debian/changelog new file mode 100644 index 00000000..eaf35607 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unknown-uri/debian/changelog @@ -0,0 +1,17 @@ +source-copyright-unknown-uri (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-unknown-uri + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +source-copyright-unknown-uri (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-unknown-uri + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unknown-uri/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unknown-uri/debian/control new file mode 100644 index 00000000..c536f152 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unknown-uri/debian/control @@ -0,0 +1,17 @@ +Source: source-copyright-unknown-uri +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: source-copyright-unknown-uri +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for unknown DEP 5-like URI + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unknown-uri/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unknown-uri/debian/copyright new file mode 100644 index 00000000..63e0f4ba --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unknown-uri/debian/copyright @@ -0,0 +1,22 @@ +Format-Specification: http://bzr.debian.org/loggerhead/dep/dep5/trunk/annotate/110/dep5.mdwn +Upstream-Name: Doohickey +Upstream-Contact: J. Random Hacker +Source: http://examples.com/doohickey/source/ + +Files: * +Copyright: 2011 J. Random Hacker +License: GPL-2 + This package is free software; you can redistribute it and/or modify it under + the terms of the GNU General Public License as published by the Free Software + Foundation; version 2 dated June, 1991. + . + This package is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License along with + this package; if not, write to the Free Software Foundation, Inc., 51 Franklin + St, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the full text of the GNU General Public License version 2 + can be found in the file `/usr/share/common-licenses/GPL-2'. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unknown-uri/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unknown-uri/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unknown-uri/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unknown-uri/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unknown-uri/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unknown-uri/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unknown-uri/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unknown-uri/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unknown-uri/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unknown-uri/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unknown-uri/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unknown-uri/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unknown-uri/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unknown-uri/eval/hints new file mode 100644 index 00000000..eb7e817c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unknown-uri/eval/hints @@ -0,0 +1 @@ +source-copyright-unknown-uri (source): unknown-copyright-format-uri http://bzr.debian.org/loggerhead/dep/dep5/trunk/annotate/110/dep5.mdwn [debian/copyright] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unversioned-uri/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unversioned-uri/ORIGIN new file mode 100644 index 00000000..e5d27ec8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unversioned-uri/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/source-copyright-unversioned-uri + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unversioned-uri/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unversioned-uri/debian/changelog new file mode 100644 index 00000000..a533d465 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unversioned-uri/debian/changelog @@ -0,0 +1,17 @@ +source-copyright-unversioned-uri (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-unversioned-uri + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +source-copyright-unversioned-uri (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-unversioned-uri + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unversioned-uri/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unversioned-uri/debian/control new file mode 100644 index 00000000..eb4cd6de --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unversioned-uri/debian/control @@ -0,0 +1,17 @@ +Source: source-copyright-unversioned-uri +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: source-copyright-unversioned-uri +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for unversioned DEP 5-like URI + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unversioned-uri/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unversioned-uri/debian/copyright new file mode 100644 index 00000000..cf665412 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unversioned-uri/debian/copyright @@ -0,0 +1,22 @@ +Format: http://dep.debian.net/deps/dep5/ +Upstream-Name: Doohickey +Upstream-Contact: J. Random Hacker +Source: http://examples.com/doohickey/source/ + +Files: * +Copyright: 2011 J. Random Hacker +License: GPL-2 + This package is free software; you can redistribute it and/or modify it under + the terms of the GNU General Public License as published by the Free Software + Foundation; version 2 dated June, 1991. + . + This package is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License along with + this package; if not, write to the Free Software Foundation, Inc., 51 Franklin + St, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the full text of the GNU General Public License version 2 + can be found in the file `/usr/share/common-licenses/GPL-2'. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unversioned-uri/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unversioned-uri/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unversioned-uri/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unversioned-uri/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unversioned-uri/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unversioned-uri/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unversioned-uri/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unversioned-uri/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unversioned-uri/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unversioned-uri/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unversioned-uri/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unversioned-uri/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unversioned-uri/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unversioned-uri/eval/hints new file mode 100644 index 00000000..24233ca1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-unversioned-uri/eval/hints @@ -0,0 +1 @@ +source-copyright-unversioned-uri (source): unversioned-copyright-format-uri http://dep.debian.net/deps/dep5/ [debian/copyright] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wiki-uri/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wiki-uri/ORIGIN new file mode 100644 index 00000000..ef1c6919 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wiki-uri/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/source-copyright-wiki-uri + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wiki-uri/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wiki-uri/debian/changelog new file mode 100644 index 00000000..a9d36903 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wiki-uri/debian/changelog @@ -0,0 +1,17 @@ +source-copyright-wiki-uri (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-wiki-uri + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +source-copyright-wiki-uri (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-wiki-uri + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wiki-uri/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wiki-uri/debian/control new file mode 100644 index 00000000..007ecb43 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wiki-uri/debian/control @@ -0,0 +1,17 @@ +Source: source-copyright-wiki-uri +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: source-copyright-wiki-uri +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for wiki.debian.org DEP 5-like URI + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wiki-uri/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wiki-uri/debian/copyright new file mode 100644 index 00000000..4b8947c6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wiki-uri/debian/copyright @@ -0,0 +1,22 @@ +Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=196 +Upstream-Name: Doohickey +Upstream-Maintainer: J. Random Hacker +Upstream-Source: http://examples.com/doohickey/source/ + +Files: * +Copyright: 2011 J. Random Hacker +License: GPL-2 + This package is free software; you can redistribute it and/or modify it under + the terms of the GNU General Public License as published by the Free Software + Foundation; version 2 dated June, 1991. + . + This package is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License along with + this package; if not, write to the Free Software Foundation, Inc., 51 Franklin + St, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the full text of the GNU General Public License version 2 + can be found in the file `/usr/share/common-licenses/GPL-2'. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wiki-uri/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wiki-uri/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wiki-uri/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wiki-uri/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wiki-uri/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wiki-uri/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wiki-uri/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wiki-uri/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wiki-uri/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wiki-uri/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wiki-uri/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wiki-uri/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wiki-uri/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wiki-uri/eval/hints new file mode 100644 index 00000000..11c23759 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wiki-uri/eval/hints @@ -0,0 +1 @@ +source-copyright-wiki-uri (source): wiki-copyright-format-uri http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=196 [debian/copyright] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/COPYING b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/COPYING new file mode 100644 index 00000000..421376db --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/COPYING @@ -0,0 +1 @@ +dummy diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/COPYING.CC-BY-SA-3.0 b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/COPYING.CC-BY-SA-3.0 new file mode 100644 index 00000000..421376db --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/COPYING.CC-BY-SA-3.0 @@ -0,0 +1 @@ +dummy diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/LICENSE b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/LICENSE new file mode 100644 index 00000000..421376db --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/LICENSE @@ -0,0 +1 @@ +dummy diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/ORIGIN new file mode 100644 index 00000000..0e053597 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/debian/changelog new file mode 100644 index 00000000..22ec7553 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/debian/changelog @@ -0,0 +1,17 @@ +source-copyright-wildcard-matching (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-wildcard-matching + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +source-copyright-wildcard-matching (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-wildcard-matching + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/debian/control new file mode 100644 index 00000000..a781bae3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/debian/control @@ -0,0 +1,17 @@ +Source: source-copyright-wildcard-matching +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: source-copyright-wildcard-matching +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test whether the Files wildcards match all files in the source + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/debian/copyright new file mode 100644 index 00000000..c69fcd66 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/debian/copyright @@ -0,0 +1,49 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Doohickey +Upstream-Contact: J. Random Hacker +Source: http://examples.com/doohickey/source/ + +Files: file?with?commas + deb* +Copyright: 2014, somebody1 +Comment: this paragraph is superfluous because all files are matched + by the following paragraphs +License: mylicense + Fixme + +Files: i-do-not-exist +Copyright: 2014, somebody1 +License: mylicense-1 + Fixme + +Files: invalid-escape\n +Copyright: 2014, somebody1 +License: mylicense-2 + Fixme + +Files: debian/* +Copyright: 2014, somebody1 +License: mylicense-3 + Fixme + +Files: + file,with,commas +Copyright: 2014, somebody1 +Comment: this paragraph starts with a newline and ends with a space +License: mylicense-4 + Fixme + +Files: rare-filenames/01-file-with-(something-in-parenthesis).png + rare-filenames/02-or-perhaps-only-one-{-which-causes-a-compile-failure.png + rare-filenames/03-even-]-is-not-safe.png + rare-filenames/04-Perhaps-even-|-will-cause-problems.png + rare-filenames/05-Lets-not-forget-^-and-$-for-added-fun.png + rare-filenames/06-how-about-a-+-sign.png +Copyright: 2014, somebody1 +License: mylicense-5 + Fixme + +Files: ./folder/another-file +Copyright: 2015, somebody1 +License: mylicense-6 + Fixme diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/eval/hints new file mode 100644 index 00000000..85e2542a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/eval/hints @@ -0,0 +1,6 @@ +source-copyright-wildcard-matching (source): superfluous-file-pattern invalid-escape\n [debian/copyright:19] +source-copyright-wildcard-matching (source): superfluous-file-pattern i-do-not-exist [debian/copyright:14] +source-copyright-wildcard-matching (source): superfluous-file-pattern file?with?commas [debian/copyright:6] +source-copyright-wildcard-matching (source): superfluous-file-pattern deb* [debian/copyright:6] +source-copyright-wildcard-matching (source): invalid-escape-sequence-in-dep5-copyright \n [debian/copyright:19] +source-copyright-wildcard-matching (source): file-without-copyright-information i-have-no-copyright-information [debian/copyright] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/file,with,commas b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/file,with,commas new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/folder/another-file b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/folder/another-file new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/i-have-no-copyright-information b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/i-have-no-copyright-information new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/rare-filenames/01-file-with-(something-in-parenthesis).png b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/rare-filenames/01-file-with-(something-in-parenthesis).png new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/rare-filenames/02-or-perhaps-only-one-{-which-causes-a-compile-failure.png b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/rare-filenames/02-or-perhaps-only-one-{-which-causes-a-compile-failure.png new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/rare-filenames/03-even-]-is-not-safe.png b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/rare-filenames/03-even-]-is-not-safe.png new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/rare-filenames/04-Perhaps-even-|-will-cause-problems.png b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/rare-filenames/04-Perhaps-even-|-will-cause-problems.png new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/rare-filenames/05-Lets-not-forget-^-and-$-for-added-fun.png b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/rare-filenames/05-Lets-not-forget-^-and-$-for-added-fun.png new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/rare-filenames/06-how-about-a-+-sign.png b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/source-copyright-wildcard-matching/rare-filenames/06-how-about-a-+-sign.png new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/ORIGIN new file mode 100644 index 00000000..1a8b69f9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/spelling-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/changelog new file mode 100644 index 00000000..8aa65df9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/changelog @@ -0,0 +1,13 @@ +spelling-general (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: spelling-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + * This line has a speling error. + - This line has the same speling error, but we should only + get one tag for it. + * Corrected spelling: abov -> above. + * Corrected typo: abov -> above. + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/control new file mode 100644 index 00000000..809e0fb8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/control @@ -0,0 +1,17 @@ +Source: spelling-general +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: spelling-general +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: General checks for spelling errors + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/copyright new file mode 100644 index 00000000..30cbe5c9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/copyright @@ -0,0 +1,21 @@ +This duplicate duplicate word should not trigger. (re. #897402) + +This is part of the testsuite of lintian. See the file debian/copyright +in the lintian source directory for more details. + +Insofar as this is copyrightable, it is: + + Copyright 2010 Russ Allbery + +This text should not generate a spelling error for "ment": + + computer software documentation," as such terms are used in + 48 C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Govern- + ment only as a commercial end item. Consistent with 48 C.F.R. + 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), + +But deafult is still a spelling error. + +This text should not generate a spelling error for the duplicate "a" (re. #844166) + + following Attribution Information: (a) a copyright notice including the name diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/doc-base b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/doc-base new file mode 100644 index 00000000..3839a9bd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/doc-base @@ -0,0 +1,9 @@ +Document: spelling-general +Title: Check for debian doc-base spelling errors +Author: Russ Allbery +Abstract: This control file exercises, picky, speling error checks for + Debian doc-base files, such as meta-package. +Section: Programming + +Format: text +Files: /usr/share/doc/spelling-general/copyright diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/patches/add-readme b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/patches/add-readme new file mode 100644 index 00000000..b1647ba1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/patches/add-readme @@ -0,0 +1,8 @@ +This is a deliberate speling error. duplicate + +duplicate + +--- upstream.orig/README ++++ upstream/README +@@ -0,0 +1 @@ ++Added by patch system. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/patches/nonrel b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/patches/nonrel new file mode 100644 index 00000000..48e77400 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/patches/nonrel @@ -0,0 +1,6 @@ +This is a deliberate speling error. (false positive; description mentions typo) + +--- upstream.orig/nonrel ++++ upstream/nonrel +@@ -0,0 +1 @@ ++Added by patch system. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/patches/series b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/patches/series new file mode 100644 index 00000000..0bfb03d6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/patches/series @@ -0,0 +1,3 @@ +add-readme +spelling +nonrel diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/patches/spelling b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/patches/spelling new file mode 100644 index 00000000..29b9cfd8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/patches/spelling @@ -0,0 +1,6 @@ +This is a deliberate speling error. (false positive; filename match) + +--- upstream.orig/spelling ++++ upstream/spelling +@@ -0,0 +1 @@ ++Added by patch system. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/eval/hints new file mode 100644 index 00000000..6ec43c59 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/spelling-general/eval/hints @@ -0,0 +1 @@ +spelling-general (source): no-dep5-copyright [debian/copyright] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/tab-in-license-text/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/tab-in-license-text/ORIGIN new file mode 100644 index 00000000..1aeab908 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/tab-in-license-text/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/tab-in-license-text + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/tab-in-license-text/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/tab-in-license-text/debian/changelog new file mode 100644 index 00000000..96ceb9e2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/tab-in-license-text/debian/changelog @@ -0,0 +1,17 @@ +tab-in-license-text (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: tab-in-license-text + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +tab-in-license-text (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: tab-in-license-text + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/tab-in-license-text/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/tab-in-license-text/debian/control new file mode 100644 index 00000000..1f8202fb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/tab-in-license-text/debian/control @@ -0,0 +1,17 @@ +Source: tab-in-license-text +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: tab-in-license-text +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for disallowed tab character in DEP-5 long license text + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/tab-in-license-text/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/tab-in-license-text/debian/copyright new file mode 100644 index 00000000..b6f6c00e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/tab-in-license-text/debian/copyright @@ -0,0 +1,35 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + TAB FOLLOWS. + . + PARAGRAPH INDENTED WITH TAB. + . + TAB PRECEDES. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. + You can also obtain it by writing to the Free Software Foundation, Inc., + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/tab-in-license-text/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/tab-in-license-text/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/tab-in-license-text/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/tab-in-license-text/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/tab-in-license-text/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/tab-in-license-text/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/tab-in-license-text/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/tab-in-license-text/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/tab-in-license-text/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/tab-in-license-text/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/tab-in-license-text/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/tab-in-license-text/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/tab-in-license-text/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/tab-in-license-text/eval/hints new file mode 100644 index 00000000..b3655d2e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/tab-in-license-text/eval/hints @@ -0,0 +1 @@ +tab-in-license-text (source): tab-in-license-text [debian/copyright:14] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/ORIGIN new file mode 100644 index 00000000..edbdf36a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/udev-rules + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/debian/changelog new file mode 100644 index 00000000..ddbf5468 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/debian/changelog @@ -0,0 +1,17 @@ +udev-rules (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: udev-rules + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +udev-rules (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: udev-rules + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/debian/control new file mode 100644 index 00000000..e8fe6229 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/debian/control @@ -0,0 +1,17 @@ +Source: udev-rules +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: udev-rules +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check udev rules for mistakes + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/debian/rules new file mode 100644 index 00000000..1ecb9756 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +DESTDIR = debian/$(shell dh_listpackages) +APPSYNC_DIR=$(DESTDIR)/usr/share/metainfo/ +UDEV_DIR=$(DESTDIR)/lib/udev/rules.d/ + +%: + dh $@ + +override_dh_install: + dh_install + install -m 0644 debian/udev-rules.metadata.xml $(APPSYNC_DIR) + ln -s dangling $(UDEV_DIR)/60-dangling-symlink.rules diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/debian/udev-rules.dirs b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/debian/udev-rules.dirs new file mode 100644 index 00000000..d0cd1469 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/debian/udev-rules.dirs @@ -0,0 +1,2 @@ +lib/udev/rules.d +usr/share/metainfo diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/debian/udev-rules.metadata.xml b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/debian/udev-rules.metadata.xml new file mode 100644 index 00000000..2564e980 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/debian/udev-rules.metadata.xml @@ -0,0 +1,22 @@ + + + udev-rules + MIT + lintian udev-rules test + Test udev related checks in lintian + +

+ This is a test package designed to exercise some feature or tag + of Lintian. It is part of the Lintian test suite and may do + very odd things. It should not be installed like a regular + package. It may be an empty package. +

+
+ + usb:v0000p0001d* + usb:v0000p0002d* + usb:v0000p0003d* + usb:v0000p0004d* + usb:v0000p000Ad* + +
diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/debian/udev-rules.udev b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/debian/udev-rules.udev new file mode 100644 index 00000000..e35482d2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/debian/udev-rules.udev @@ -0,0 +1,25 @@ +SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="0001", \ + MODE="0666" + +SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="0002", \ + MODE="0660", GROUP="plugdev" + +SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="0003", \ + TAG+="uaccess" + +SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="0004", \ + MODE="0660", GROUP="plugdev", TAG+="uaccess" + +ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="0005", \ + MODE="0660", GROUP="plugdev", TAG+="uaccess" + +SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="000a", \ + ID_TEST_DEVICE="1" + +SUBSYSTEM!="usb", GOTO="target" +ENV{DEVTYPE}!="usb_device", GOTO="target" +ATTR{idVendor}=="0000", ATTR{idProduct}=="0000", RUN+="missing-subsystem-false-positive" +LABEL="target" + +# Ensure we trigger this one after a GOTO +ATTR{idVendor}=="0000", ATTR{idProduct}=="0000", RUN+="missing-subsystem" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/eval/hints new file mode 100644 index 00000000..291b20d0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/udev-rules/eval/hints @@ -0,0 +1 @@ +udev-rules (source): inconsistent-appstream-metadata-license debian/udev-rules.metadata.xml (mit != gpl-2+) [debian/copyright] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/wildcard-out-of-order/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/wildcard-out-of-order/ORIGIN new file mode 100644 index 00000000..2e31c5aa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/wildcard-out-of-order/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/dep5/wildcard-out-of-order + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/wildcard-out-of-order/a-file b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/wildcard-out-of-order/a-file new file mode 100644 index 00000000..fadb1577 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/wildcard-out-of-order/a-file @@ -0,0 +1 @@ +A FILE diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/wildcard-out-of-order/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/wildcard-out-of-order/debian/changelog new file mode 100644 index 00000000..34e62971 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/wildcard-out-of-order/debian/changelog @@ -0,0 +1,17 @@ +wildcard-out-of-order (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: wildcard-out-of-order + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +wildcard-out-of-order (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: wildcard-out-of-order + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/wildcard-out-of-order/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/wildcard-out-of-order/debian/control new file mode 100644 index 00000000..6825387c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/wildcard-out-of-order/debian/control @@ -0,0 +1,17 @@ +Source: wildcard-out-of-order +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: wildcard-out-of-order +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Wildcards not ordered by depth in the directory tree + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/wildcard-out-of-order/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/wildcard-out-of-order/debian/copyright new file mode 100644 index 00000000..4fd99372 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/wildcard-out-of-order/debian/copyright @@ -0,0 +1,21 @@ +# taken from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=905747#5 +# but split up for each of the two conditions +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ + +Files: * +Copyright: (C) 2018 Niels Thykier +License: License1 + +Files: debian/patches/* +Copyright: (C) 2019 Niels Thykier +License: License1 + +Files: debian/* +Copyright: (C) 2018 Niels Thykier +License: License2 + +License: License1 + Please call the author for this license. + +License: License2 + Please call the author for this license. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/wildcard-out-of-order/debian/patches/a.patch b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/wildcard-out-of-order/debian/patches/a.patch new file mode 100644 index 00000000..294a68cc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/wildcard-out-of-order/debian/patches/a.patch @@ -0,0 +1 @@ +A PATCH diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/wildcard-out-of-order/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/wildcard-out-of-order/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/wildcard-out-of-order/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/wildcard-out-of-order/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/wildcard-out-of-order/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/wildcard-out-of-order/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/wildcard-out-of-order/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/wildcard-out-of-order/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/wildcard-out-of-order/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/wildcard-out-of-order/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/wildcard-out-of-order/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/wildcard-out-of-order/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/wildcard-out-of-order/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/wildcard-out-of-order/eval/hints new file mode 100644 index 00000000..59463045 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/dep5/wildcard-out-of-order/eval/hints @@ -0,0 +1,2 @@ +wildcard-out-of-order (source): superfluous-file-pattern debian/patches/* [debian/copyright:9] +wildcard-out-of-order (source): globbing-patterns-out-of-order debian/patches/* debian/* debian/patches/a.patch [debian/copyright:13] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/generic-empty/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/generic-empty/ORIGIN new file mode 100644 index 00000000..bef461b4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/generic-empty/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/generic-empty + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/generic-empty/README b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/generic-empty/README new file mode 100644 index 00000000..ed1b149f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/generic-empty/README @@ -0,0 +1,4 @@ +This is the smallest possible Debian package that I can get +dpkg-buildpackage to build (with the exception of this documentation). +It tests Lintian handling of packages that are missing everything one +would normally expect to have. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/generic-empty/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/generic-empty/debian/changelog new file mode 100644 index 00000000..21ba4143 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/generic-empty/debian/changelog @@ -0,0 +1,2 @@ +generic-empty (1.0) unstable; + -- a Tue, 30 Dec 2008 17:34:02 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/generic-empty/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/generic-empty/debian/control new file mode 100644 index 00000000..cd8d0ba5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/generic-empty/debian/control @@ -0,0 +1,5 @@ +Source: generic-empty +Maintainer: a + +Package: generic-empty +Architecture: all diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/generic-empty/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/generic-empty/debian/rules new file mode 100755 index 00000000..62da96d6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/generic-empty/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f +build: +binary: + install -d debian/generic-empty debian/generic-empty/DEBIAN + dpkg-gencontrol -pgeneric-empty -Pdebian/generic-empty + dpkg --build debian/generic-empty .. + +clean: + rm -rf debian/generic-empty diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/generic-empty/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/generic-empty/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/generic-empty/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/generic-empty/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/generic-empty/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/generic-empty/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/generic-empty/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/generic-empty/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/generic-empty/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/generic-empty/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/generic-empty/eval/hints new file mode 100644 index 00000000..4c97d8fc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/generic-empty/eval/hints @@ -0,0 +1,2 @@ +generic-empty (source): no-debian-copyright-in-source +generic-empty (binary): no-copyright-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/INSTALL b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/INSTALL new file mode 100644 index 00000000..3b50ea95 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/INSTALL @@ -0,0 +1,176 @@ +Basic Installation +================== + + These are generic installation instructions. + + The `configure' shell script attempts to guess correct values for +various system-dependent variables used during compilation. It uses +those values to create a `Makefile' in each directory of the package. +It may also create one or more `.h' files containing system-dependent +definitions. Finally, it creates a shell script `config.status' that +you can run in the future to recreate the current configuration, a file +`config.cache' that saves the results of its tests to speed up +reconfiguring, and a file `config.log' containing compiler output +(useful mainly for debugging `configure'). + + If you need to do unusual things to compile the package, please try +to figure out how `configure' could check whether to do them, and mail +diffs or instructions to the address given in the `README' so they can +be considered for the next release. If at some point `config.cache' +contains results you don't want to keep, you may remove or edit it. + + The file `configure.in' is used to create `configure' by a program +called `autoconf'. You only need `configure.in' if you want to change +it or regenerate `configure' using a newer version of `autoconf'. + +The simplest way to compile this package is: + + 1. `cd' to the directory containing the package's source code and type + `./configure' to configure the package for your system. If you're + using `csh' on an old version of System V, you might need to type + `sh ./configure' instead to prevent `csh' from trying to execute + `configure' itself. + + Running `configure' takes a while. While running, it prints some + messages telling which features it is checking for. + + 2. Type `make' to compile the package. + + 3. Optionally, type `make check' to run any self-tests that come with + the package. + + 4. Type `make install' to install the programs and any data files and + documentation. + + 5. You can remove the program binaries and object files from the + source code directory by typing `make clean'. To also remove the + files that `configure' created (so you can compile the package for + a different kind of computer), type `make distclean'. There is + also a `make maintainer-clean' target, but that is intended mainly + for the package's developers. If you use it, you may have to get + all sorts of other programs in order to regenerate files that came + with the distribution. + +Compilers and Options +===================== + + Some systems require unusual options for compilation or linking that +the `configure' script does not know about. You can give `configure' +initial values for variables by setting them in the environment. Using +a Bourne-compatible shell, you can do that on the command line like +this: + CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure + +Or on systems that have the `env' program, you can do it like this: + env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure + +Compiling For Multiple Architectures +==================================== + + You can compile the package for more than one kind of computer at the +same time, by placing the object files for each architecture in their +own directory. To do this, you must use a version of `make' that +supports the `VPATH' variable, such as GNU `make'. `cd' to the +directory where you want the object files and executables to go and run +the `configure' script. `configure' automatically checks for the +source code in the directory that `configure' is in and in `..'. + + If you have to use a `make' that does not supports the `VPATH' +variable, you have to compile the package for one architecture at a time +in the source code directory. After you have installed the package for +one architecture, use `make distclean' before reconfiguring for another +architecture. + +Installation Names +================== + + By default, `make install' will install the package's files in +`/usr/local/bin', `/usr/local/man', etc. You can specify an +installation prefix other than `/usr/local' by giving `configure' the +option `--prefix=PATH'. + + You can specify separate installation prefixes for +architecture-specific files and architecture-independent files. If you +give `configure' the option `--exec-prefix=PATH', the package will use +PATH as the prefix for installing programs and libraries. +Documentation and other data files will still use the regular prefix. + + If the package supports it, you can cause programs to be installed +with an extra prefix or suffix on their names by giving `configure' the +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. + +Optional Features +================= + + Some packages pay attention to `--enable-FEATURE' options to +`configure', where FEATURE indicates an optional part of the package. +They may also pay attention to `--with-PACKAGE' options, where PACKAGE +is something like `gnu-as' or `x' (for the X Window System). The +`README' should mention any `--enable-' and `--with-' options that the +package recognizes. + + For packages that use the X Window System, `configure' can usually +find the X include and library files automatically, but if it doesn't, +you can use the `configure' options `--x-includes=DIR' and +`--x-libraries=DIR' to specify their locations. + +Specifying the System Type +========================== + + There may be some features `configure' can not figure out +automatically, but needs to determine by the type of host the package +will run on. Usually `configure' can figure that out, but if it prints +a message saying it can not guess the host type, give it the +`--host=TYPE' option. TYPE can either be a short name for the system +type, such as `sun4', or a canonical name with three fields: + CPU-COMPANY-SYSTEM + +See the file `config.sub' for the possible values of each field. If +`config.sub' isn't included in this package, then this package doesn't +need to know the host type. + + If you are building compiler tools for cross-compiling, you can also +use the `--target=TYPE' option to select the type of system they will +produce code for and the `--build=TYPE' option to select the type of +system on which you are compiling the package. + +Sharing Defaults +================ + + If you want to set default values for `configure' scripts to share, +you can create a site shell script called `config.site' that gives +default values for variables like `CC', `cache_file', and `prefix'. +`configure' looks for `PREFIX/share/config.site' if it exists, then +`PREFIX/etc/config.site' if it exists. Or, you can set the +`CONFIG_SITE' environment variable to the location of the site script. +A warning: not all `configure' scripts look for a site script. + +Operation Controls +================== + + `configure' recognizes the following options to control how it +operates. + +`--cache-file=FILE' + Use and save the results of the tests in FILE instead of + `./config.cache'. Set FILE to `/dev/null' to disable caching, for + debugging `configure'. + +`--help' + Print a summary of the options to `configure', and exit. + +`--quiet' +`--silent' +`-q' + Do not print messages saying which checks are being made. + +`--srcdir=DIR' + Look for the package's source code in directory DIR. Usually + `configure' can determine that directory automatically. + +`--version' + Print the version of Autoconf used to generate the `configure' + script, and exit. + +`configure' also accepts some other, not widely useful, options. + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/Makefile new file mode 100644 index 00000000..da1dc555 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/Makefile @@ -0,0 +1,12 @@ +all: hello hello-static + +hello: hello.c + gcc hello.c -o hello + +hello-static: hello.c + gcc -static hello.c -o hello-static + +clean: + rm -f hello hello-static + +distclean: clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/ORIGIN new file mode 100644 index 00000000..26b2931c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/legacy-binary + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/NEWS.Debian b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/NEWS.Debian new file mode 100644 index 00000000..29f561c4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/NEWS.Debian @@ -0,0 +1,12 @@ +binary (4-1.1) UNRELEASED; urgency=high + + This is a Debian NEWS entry that isn't encoded properly in UTF-8: . + It also has a usefull speling error. + + -- Russ Allbery Sun, 14 Oct 2007 17:11:36 -0700 + +binary (1) unstable; urgency=low + + This is another entry but this one isn't syntactically valid. + + -- Russ Allbery 2007-10-14 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/README.Debian b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/README.Debian new file mode 100644 index 00000000..94bcc0ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/README.Debian @@ -0,0 +1,5 @@ +this is a binary package to test lintian's handling of bins. +Check handling of D-Bus and dbus (neither of which should produce +warnings). + + -- Russ Allbery , Wed, 6 Feb 2008 18:35:11 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/changelog new file mode 100644 index 00000000..35b8c0bf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/changelog @@ -0,0 +1,47 @@ +binary (4-1.1) unstable; urgency=low + + * I'm doing an comaintainer-upload, acknowledging a NMU, but with a version + number which suggests I'm doing a NMU myself. + + Lintian-maintainers: Please don't update this changelog, otherwise you'll + probably break the checks/nmu checks. + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 01:49:42 +0200 + +binary (4-1) unstable; urgency=low + + * Weird version number for the new check for accidents with native + packaging. + * Date was fixed by BR and this test was put on changelog-file-strange-date + due to dpkg bug, see #794674. + + -- Marc 'HE' Brockschmidt Thu, 15 Apr 2004 23:33:51 +0200 + +binary (4) unstable; urgency=low + + * Add big file to /usr/share to trigger the big-usr-share check + + -- Jeroen van Wolffelaar Fri, 27 Feb 2004 10:15:59 +0100 + +binary (3) unstable; urgency=unlimited + + * Add some bogus menu entries using su-to-root in a bogus way + + -- Jeroen van Wolffelaar Thu, 12 Feb 2004 20:11:22 +0100 + +binary (2) unstable; urgency=low + + * Added an INSTALL document which policy 6.3 suggests not to do + + -- Sean 'Shaleh' Perry Tue, 30 Jan 2001 15:23:59 -0800 + +binary (1) unstable; urgency=low + + * hello.c added + * hello-static is same as hello, but compiled statically + * added a menu entry which lacks a Section + * added a postinst + * postinst calls suidregister which is no longer policy compliant + + -- Sean 'Shaleh' Perry Wed, 10 Jan 2001 08:55:34 -0800 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/conffiles b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/conffiles new file mode 100644 index 00000000..d1a08433 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/conffiles @@ -0,0 +1 @@ +/etc/menu-methods/lintian diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/control new file mode 100644 index 00000000..c797357b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/control @@ -0,0 +1,42 @@ +Source: binary +Section: misc +Priority: optional +Maintainer: Lintian Maintainers +Uploaders: Co-maintainer one , Jeroen van Wolffelaar , Co-maintainer three +Standards-Version: 3.2.1 +Homepage: http://lintian.debian.org/ +Vcs-Svn: http://svn.wolffelaar.nl/lintian/trunk +XS-Vcs-Browser: http://svn.wolffelaar.nl/lintian/trunk +XS-Dm-Upload-Allowed: yes + +Package: binary +Architecture: any +Pre-Depends: ${shlibs:Depends}, xorg, binary-data (= ${source:Version}), libssl0.9.8 +Homepage: +Vcs-Svn: http://svn.wolffelaar.nl/lintian/trunk +Description: test handling of binary files + Regression test for lintian's handling of binary files for debian. This + is checked for picky spelling errors. + . + This package list [ subversion | gconf ] should not be flagged as a spelling + mistake. The spelling correction for dont should be correct. + . + Homepage: http://lintian.debian.org/ + +Package: binary-data +Architecture: all +Depends: binary (= ${source:Version}), libssl-not-openssl, + libssl0.9.8 | or-something-else +Description: test handling of binary relationships + Regression test for lintian's checking of package relationships between + arch:any and arch:all packages. + . + This mention of subversion should be flagged as a spelling mistake. + +#Package: binary-comment +#Architecture: space-almonds +#Depends: * +#Depends: * +#Description: test comment support +# Yes, comments are actually allowed in debian/control, so none of the +# above should produce errors. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/copyright new file mode 100644 index 00000000..4546c628 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/copyright @@ -0,0 +1,15 @@ +hello.c is released under public domain. This is distributed in the hope that +it will be useful, but without any warranty; without even the implied warranty +of merchantability or fitness for a particular purpose. + +A reference to /usr/share/common-licenses/GPL-2 to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +Test for old FSF address: + +Free Software Foundation, Inc., 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. + +Test for deprecated nätionäl äncoding. + +Improper capitalization of linux or debian isn't caught here. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/doc-base b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/doc-base new file mode 100644 index 00000000..7e5b38f2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/doc-base @@ -0,0 +1,41 @@ +Document: binary!docs +Title: Broken debian binary doc-base control file +Author: Russ Allbery +Abstract: This control file exercises various tests of doc-base control + files, including several things that aren't tested yet. The third and + fourth one has trailing whitespace. + . + This section has a speling error and bad character. + . + The above separator was fine. +Section: Non/Existant +Unknown: Some field + + + +Format: debiandoc-sgML +Files: /usr/share/doc/binary/binary.sgml.gz +Unknown: Some field + +Format: ESP +Index: /usr/share/doc/binary/binary.txt + +Index: /usr/share/doc/binary/html/index.html + /usr/share/doc/binary/html/ch1.html + /usr/share/doc/binary/html/ch4.html + + +Format: HTML +Index: /usr/share/doc/binary/html/index.html +Files: /usr/share/doc/binary/html/ch?.h*l + /usr/share/doc/binary/hml/*.html + +Format: inFO +Files: /usr/share/info/binary.info.gz + +Format: HTML +Index: /usr/share/doc/binary/html/index.html +Files: /usr/share/doc/binary/html/ch5.html + /usr/share/doc/binary/html/ch6.html + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/goodbye.desktop b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/goodbye.desktop new file mode 100644 index 00000000..f6ce8e3f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/goodbye.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Name:Goodbye +# Name=Goodbye +Comment=Say hello! +SpecialTag=This doesn't exist! +Exec=goodbye +icon=hello +Terminal=true +Type=Application +Categories=WeirdStuff;Screensaver; +Encoding=ISO-10646-1 +[Other Entry] +Name=Goodbye diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/hello.desktop b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/hello.desktop new file mode 100644 index 00000000..f7954685 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/hello.desktop @@ -0,0 +1,14 @@ +# some random comment + +# [Foo Bar] +[KDE Desktop Entry] +Name=Hello +Name[en_US]=Hello +Comment=Say hello! +Exec=kdesu hello +Icon=hello +Terminal=true +Type=Application +Categories=GNOME;GTK;System;Applet;X-Foo;Settings; +Encoding=UTF-8 +OnlyShowIn=GNOME; diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/menu b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/menu new file mode 100644 index 00000000..e8972f4f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/menu @@ -0,0 +1,26 @@ +?package(binary):needs=text title="Hello World" command="/usr/bin/hello" +?package(binary):needs=text section="Applications/System" title="Run cfdisk (0)" command="/usr/bin/su-to-root cfdisk" +?package(binary):needs="text" section="Applications/System/Hardware" title="Run cfdisk (1)" command="sux -p cfdisk" +?package(binary):needs="x11" section="Window Managers" title="Run xfdisk" command="/usr/sbin/su-to-root -c xfdisk" +?package(binary):needs="wm" section="Applications/System/Administration" title="Run fdisk-wm" command="su-to-root -c hello" +?package(binary):section="Apps/Games" title="I'm not root!" command="su-to-root -c imnothere" +?package(binary):needs="text" section="Apps/System" title="I'm not here!" command="/imnothere" +?package(binary,other-binary):\ + needs="text"\ + section="Applications/Shells"\ + title="more than one required"\ + command="other-bin -s omething" +?package(binary):needs="wmmodule" section="WindowManagers/Modules" title="somemodule" command="ModuleCmd" +?package(binary):needs="wmmodule" section="FVWM Modules" title="somemodule" command="ModuleCmd" +?package(binary):needs="text" section="Applications/System/Administration" title="I'm not in /usr/bin!" command="iminusrbin" +?package(binary):needs="text"\ + section="Applications/System/Administration"\ + title="I'm not root!" command="su-to-root -c imnothere" +?package(binary):needs="text" section="Applications/System/Administration"\ + title="Run cfdisk (0)" command="cfdisk" +?package(binary):needs="text" section="Applications/System/Administration" title="Hello World" command="/usr/bin/hello" +?package(binary):needs="wm" section="FVWM Modules" title="Fake Module" command="hello" +?package(binary):needs="fvwmmodule" section="Window Maker" title="Fake Module"\ + command="hello" +?package(binary):needs="x11" section="Applications/System/Hardware" title="Run xfdisk" command="su-to-root -c 'xfdisk -f'" +?package(binary):needs="text" section="Applications/System/Administration" title="foo" command="sh /path/to/foo" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/menu-method b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/menu-method new file mode 100644 index 00000000..9f07bd73 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/menu-method @@ -0,0 +1,22 @@ +#!/usr/bin/install-menu + +# -*- mode: shell-script; -*- +#I need menu-1! +# + +!include notmenu.h + +compat="menu-2" + +outputencoding="UTF-8"; +outputlanguage="C"; + +x11 = AppEntry("false"); +text = AppEntry("true"); + +startmenu = ""; +endmenu = ""; +submenutitle = ""; +rootprefix = "/var/lib/lintian/menu"; +userprefix = ".local/share/lintian/menu"; + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/postinst new file mode 100644 index 00000000..29e18619 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/postinst @@ -0,0 +1,6 @@ +#! /bin/bash -e + +if [ $1 eq 'configure' ] +then + suidregister hello-static root root 4755 +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/rules new file mode 100755 index 00000000..a962ea92 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/rules @@ -0,0 +1,92 @@ +#!/usr/bin/make -f + +tmp=debian/tmp + +# This reference to $(PWD) should not cause an error but the one below +# should. +build-arch: + make + echo $(PWD) + +build: build-arch + +clean: + make -i clean + [ ! -f debian/files ] || rm -f debian/files + [ ! -f debian/substvars ] || rm -f debian/substvars + [ ! -d debian/tmp ] || rm -rf debian/tmp + [ ! -d debian/binary ] || rm -rf debian/binary + [ ! -d debian/binary-data ] || rm -rf debian/binary-data + +binary-arch: build + install -d $(tmp)/usr/bin + install -d $(tmp)/boot/hello + install -m 755 hello $(tmp)/usr/bin + touch $(tmp)/usr/bin/iminusrbin + chmod 755 $(tmp)/usr/bin/iminusrbin + install -m 755 hello-static $(tmp)/usr/bin + strip $(tmp)/usr/bin/hello-static + install -m 755 hello-static $(tmp)/usr/bin/hello.static + strip --remove-section=.comment --remove-section=.note $(tmp)/usr/bin/hello.static + ln $(tmp)/usr/bin/hello.static $(tmp)/usr/bin/static-hello + install -m 755 hello-static $(tmp)/boot/hello + strip --remove-section=.comment --remove-section=.note $(tmp)/boot/hello/hello-static + install -d $(tmp)/usr/share/doc/binary + install -m 644 INSTALL $(tmp)/usr/share/doc/binary + install -d $(tmp)/usr/share/doc/binary/html + echo '' > $(tmp)/usr/share/doc/binary/html/index.html + echo '' > $(tmp)/usr/share/doc/binary/html/ch1.html + ln -s ../html/./ch1.html $(tmp)/usr/share/doc/binary/html/ch2.html + ln -s /usr/share/doc/binary/htm/ch1.html $(tmp)/usr/share/doc/binary/html/ch3.html + echo '' > $(tmp)/usr/share/doc/binary/html/ch5.html + ln $(tmp)/usr/share/doc/binary/html/ch5.html \ + $(tmp)/usr/share/doc/binary/html/ch6.html + install -d $(tmp)/usr/share/menu + install -d $(tmp)/usr/lib/menu + install -d $(tmp)/usr/share/binary + install -m 644 debian/menu $(tmp)/usr/share/menu/binary + install -m 644 debian/menu $(tmp)/usr/lib/menu/binary + install -d $(tmp)/etc/menu-methods + install -m 755 debian/menu-method $(tmp)/etc/menu-methods/lintian + install -d $(tmp)/usr/share/doc-base + install -m 644 debian/doc-base $(tmp)/usr/share/doc-base/binary + touch '$(tmp)/usr/share/doc-base/space ' + install -m 644 debian/README.Debian $(tmp)/usr/share/doc/binary + install -m 644 debian/NEWS.Debian $(tmp)/usr/share/doc/binary + gzip -n -9 $(tmp)/usr/share/doc/binary/NEWS.Debian + install -m 644 debian/copyright $(tmp)/usr/share/doc/binary + install -m 644 debian/changelog $(tmp)/usr/share/doc/binary + #gzip -n -9 $(tmp)/usr/share/doc/binary/changelog + install -d $(tmp)/DEBIAN + install -m 755 debian/postinst $(tmp)/DEBIAN + install -m 644 debian/conffiles $(tmp)/DEBIAN + + install -d $(tmp)/usr/share/applications + install -m 644 debian/hello.desktop \ + $(tmp)/usr/share/applications/hello.desktop + install -m 755 debian/goodbye.desktop \ + $(tmp)/usr/share/applications/goodbye.desktop + + # should be ok... + echo boe > $(tmp)/usr/bar + ln $(tmp)/usr/bar $(tmp)/usr/foo + # but this isn't + echo boe > $(tmp)/usr/bar2 + ln $(tmp)/usr/bar2 $(tmp)/usr/share/baz + + dd if=/dev/zero of=$(tmp)/usr/share/binary/largefile bs=1024 count=4000 + + install -d debian/binary-data/DEBIAN + install -d debian/binary-data/usr/share/doc + ln -s binary debian/binary-data/usr/share/doc/binary-data + + dpkg-shlibdeps $(tmp)/usr/bin/hello + dpkg-gencontrol -pbinary -isp + dpkg-gencontrol -pbinary-data -Pdebian/binary-data -isp + + dpkg --build debian/tmp .. + dpkg --build debian/binary-data .. + +binary: binary-arch + +.PHONY: build-arch build binary-arch binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/templates b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/templates new file mode 100644 index 00000000..3d928614 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/templates @@ -0,0 +1,16 @@ +# The debconf templates defined here are the sort that you'd use if +# providing a wordlist and an ispell dictionary for the language +# "perl". This shouldn't trigger warnings about not using debconf-po. + +Template: shared/packages-ispell +Type: text +Description: + +Template: shared/packages-wordlist +Type: text +Description: + +Template: miscfiles/languages +Type: text +Default: perl (Pathologically Eclectic Rubbish Lister) +Description: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/eval/hints new file mode 100644 index 00000000..aaada185 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/eval/hints @@ -0,0 +1,2 @@ +binary (binary): possible-gpl-code-linked-with-openssl +binary (binary): old-fsf-address-in-copyright-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/hello.c b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/hello.c new file mode 100644 index 00000000..2fb04e17 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-binary/hello.c @@ -0,0 +1,8 @@ +#include +#include + +int main(int argc, char *argv[]) { + + printf("Hello, World!\n"); + exit(0); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/ORIGIN new file mode 100644 index 00000000..7e11e9c8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/legacy-debconf + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/changelog new file mode 100644 index 00000000..1aa50be8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/changelog @@ -0,0 +1,6 @@ +debconf (1~rc1) unstable; urgency=low + + * Initial Release + * Changelog line with exactly 80 characters which tests the line-too-long tag. + + -- Lintian Maintainers Wed, 3 May 2006 18:07:19 -0500 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/control new file mode 100644 index 00000000..37b76641 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/control @@ -0,0 +1,52 @@ +Source: debconf +Section: utils +Priority: optional +Build-Depends: debhelper-compat (= 14) +Maintainer: Lintian Maintainers +Standards-Version: 3.7.2 + +Package: debconf-test +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (dummy) + +Package: debconf-test-noscripts +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (noscripts) + Package missing postinst/postrm/config. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: debconf-test-preinst +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (preinst) + Package uses debconf only in preinst. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: debconf-test-postinst +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (postinst) + Package uses debconf only in postinst. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: debconf-udeb +Section: debian-installer +XC-Package-Type: udeb +XB-Installer-Menu-Item: 100 +Architecture: any +Depends: ${shlibs:Depends} +Description: Test udeb package for the debconf checks of lintian (dummy) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/copyright new file mode 100644 index 00000000..84843ee3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/copyright @@ -0,0 +1,10 @@ +Copyright (C) 2004 Frank Lichtenheld + +Test for really old FSF address: + +Free Software Foundation, Inc., 675 Mass Ave, Cambridge, +MA 02139, USA. + +Test for a dh-make boilerplate: +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test-noscripts.templates b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test-noscripts.templates new file mode 100644 index 00000000..93f80713 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test-noscripts.templates @@ -0,0 +1,3 @@ +Template: debconf/test +Type: text +_description: Foo bar (1) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test-postinst.postinst b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test-postinst.postinst new file mode 100644 index 00000000..56ab8712 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test-postinst.postinst @@ -0,0 +1,10 @@ +#!/bin/sh +set -e + +. /usr/share/debconf/confmodule + +db_input medium debconf/test + +#DEBHELPER# + +true diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test-postinst.postrm b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test-postinst.postrm new file mode 100644 index 00000000..cbf5e3b2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test-postinst.postrm @@ -0,0 +1,7 @@ +#!/bin/sh +set -e +if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_purge +fi +#DEBHELPER# diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test-postinst.templates b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test-postinst.templates new file mode 100644 index 00000000..2a2a8ab6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test-postinst.templates @@ -0,0 +1,3 @@ +Template: debconf/test +Type: text +_description: Enter something: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test-preinst.postrm b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test-preinst.postrm new file mode 100644 index 00000000..cbf5e3b2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test-preinst.postrm @@ -0,0 +1,7 @@ +#!/bin/sh +set -e +if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_purge +fi +#DEBHELPER# diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test-preinst.preinst b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test-preinst.preinst new file mode 100644 index 00000000..bf6f0749 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test-preinst.preinst @@ -0,0 +1,13 @@ +#!/bin/sh +set -e + +# Obsolete name for the confmodule +. /usr/share/debconf/confmodule.sh + +. /usr/share/debconf/confmodule + +db_input medium debconf/test + +#DEBHELPER# + +true diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test-preinst.templates b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test-preinst.templates new file mode 100644 index 00000000..2a2a8ab6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test-preinst.templates @@ -0,0 +1,3 @@ +Template: debconf/test +Type: text +_description: Enter something: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test.config b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test.config new file mode 100644 index 00000000..9e32d06f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test.config @@ -0,0 +1,24 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +db_settitle "Funky lintian test" + +# Bad priorities. +db_text LOW debconf/test +db_input normal debconf/test + +# Valid priorities. +db_text \ +high debconf/test +foo=medium +db_input $foo debconf/test +db_input "$foo" debconf/test +db_input 'medium' debconf/test + +# debconf/transtring should not be flagged as unused +# (it's aliased to debconf/alias, which is used) +db_register debconf/transtring debconf/alias +db_input medium debconf/alias diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test.postinst b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test.postinst new file mode 100644 index 00000000..b3870371 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test.postinst @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +# Not supposed to do this here. +db_input medium debconf/test + +true diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test.templates b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test.templates new file mode 100644 index 00000000..811bb6cf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test.templates @@ -0,0 +1,101 @@ +Template: debconf/test +Type: text +_description: Foo bar (1) + +Template: debconf/testmulti +Type: multiselect +__Choices: foo, bar, boo +_Description: test comma usages in choices fields + +Template: debconf/testmulti-escape +Type: multiselect +_Choices: foo\, bar, boo +_Description: test escaped comma usages in choices fields: + +Template: debconf/testboolean +Type: boolean +_Description: Enter yes or no: + Do you want to answer this question? + +Template: debconf/teststring +Type: string +_Description: This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + +Template: debconf/testnote +Type: note +Description: This should be a title and not a really long sentence that ends in a regular period. + +Template: debconf/1st-person +Type: select +__Choices: one, two +_Description: Select one of these: + I am a stupid test of first-person syntax that tells you to select yes + even though yes isn't an option in this prompt. + +Template: debconf/internal +Type: boolean +Description: For internal use only + We are testing that style checks are not applied to templates that are + marked as internal. + +Template: debconf/no-description +Type: string + +Template: debconf/translate +Type: boolean +_Default: false +_Description: Should this really be translated? + +Template: debconf/transtring +Type: string +_Default: 1 +_Description: Count of templates: + The number of useless numbers that a translator would have to translate + for this template. + +Template: debconf/language +__Choices: English, Spanish, German, French +# This is the default choice. Translators should put their own language, +# if available, here instead, but the value MUST be the English version +# of the value for the package scripts to work properly. +_Default: English[ translators, see the comment in the PO files] +_Description: The default language, an example of a default that should + be translated. + +Template: debconf/error +Type: error +_Description: An error occurred + This is a sample Debconf error template. + +Template: debconf/should-be-boolean +Type: select +__Choices: yes, no +_Description: Choose: + Pick yes or no. + +Template: debconf/should-be-no-longer-a-problem +Type: boolean +_Description: Decide, lintian + Using "no longer" should no longer be detected as + making-assumptions-about-interfaces-in-templates by lintian. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test.templates.de b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test.templates.de new file mode 100644 index 00000000..f9ea1219 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test.templates.de @@ -0,0 +1,3 @@ +Template: debconf/testmulti +Type: multiselect +Choices: foo, bar\, boo, boo diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test.templates.in b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-test.templates.in new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-udeb.postinst b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-udeb.postinst new file mode 100644 index 00000000..4ce41f08 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-udeb.postinst @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +ldconfig + +true diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-udeb.templates b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-udeb.templates new file mode 100644 index 00000000..5d7cf5a7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/debconf-udeb.templates @@ -0,0 +1,3 @@ +Template: debian-installer/debconf-udeb/title +Type: text +_description: This is just a test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/po/POTFILES.in b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/po/POTFILES.in new file mode 100644 index 00000000..d0c82f08 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/po/POTFILES.in @@ -0,0 +1,2 @@ +[type: gettext/rfc822deb] debconf-test.templates +[type: gettext/rfc822deb] debconf-udeb.templates diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/po/de.po b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/po/de.po new file mode 100644 index 00000000..86c57968 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/po/de.po @@ -0,0 +1,66 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2004-12-06 01:01+0100\n" +"Last-Translator: Frank Lichtenheld \n" +"Language-Team: debian-l10n-german@l.d.o\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "foo" +msgstr "foo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "bar" +msgstr "bar, boo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "boo" +msgstr "boo" + +#. Type: multiselect +#. Description +#: ../debconf-test.templates:8 +msgid "test comma usages in choices fields" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:11 +msgid "foo\\, bar, boo" +msgstr "foo, bar, boo" + +#. Type: text +#. description +#: ../debconf-udeb.templates:3 +msgid "This is just a test" +msgstr "Dies ist nur ein Test" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/po/fr.po b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/po/fr.po new file mode 100644 index 00000000..c74deb28 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/po/fr.po @@ -0,0 +1,60 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"Last-Translator: Frank Lichtenheld \n" +"Language-Team: debian-l10n-german@l.d.o\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "foo" +msgstr "foo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "bar" +msgstr "bar, boo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "boo" +msgstr "boo" + +#. Type: multiselect +#. Description +#: ../debconf-test.templates:8 +msgid "test comma usages in choices fields" +msgstr "" + +#. Type: text +#. description +#: ../debconf-udeb.templates:3 +msgid "This is just a test" +msgstr " diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/po/lang.po b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/po/lang.po new file mode 100644 index 00000000..7ac498af --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/po/lang.po @@ -0,0 +1,15 @@ +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/po/nds.po b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/po/nds.po new file mode 100644 index 00000000..7ac498af --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/po/nds.po @@ -0,0 +1,15 @@ +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/po/output b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/po/output new file mode 100644 index 00000000..c3df1a5b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/po/output @@ -0,0 +1 @@ +2 utf8 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/po/pt_BR.po b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/po/pt_BR.po new file mode 100644 index 00000000..7ac498af --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/po/pt_BR.po @@ -0,0 +1,15 @@ +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/po/sample-file.po b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/po/sample-file.po new file mode 100644 index 00000000..8dcc0ffa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/po/sample-file.po @@ -0,0 +1 @@ +This is some file that isn't actually a valid .po file. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/po/templates.pot b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/po/templates.pot new file mode 100644 index 00000000..914c77f0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/po/templates.pot @@ -0,0 +1,61 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "foo" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "bar" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "boo" +msgstr "" + +#. Type: multiselect +#. Description +#: ../debconf-test.templates:8 +msgid "test comma usages in choices fields" +msgstr "" + +#. Type: text +#. description +#: ../debconf-udeb.templates:3 +msgid "This is just a test" +msgstr "" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/pycompat b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/pycompat new file mode 100644 index 00000000..0cfbf088 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/pycompat @@ -0,0 +1 @@ +2 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/pyversions b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/pyversions new file mode 100644 index 00000000..6f290b06 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/pyversions @@ -0,0 +1 @@ +>= 2.7 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/rules new file mode 100755 index 00000000..933901ac --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/rules @@ -0,0 +1,64 @@ +#!/usr/bin/make -f + +deb_dir = debian/debconf +udeb_dir = debian/debconf-udeb +build_dirs = $(deb_dir) $(udeb_dir) + +build-indep: +# There are no architecture-independent files to be built +# by this package. If there were any they would be made +# here. + +build-arch: + dh_testdir + touch build + +build: build-indep build-arch + +clean: + dh_testdir + dh_testroot + -rm -f build + + dh_clean + +binary-indep: build +# There are no architecture-independent files to be uploaded +# generated by this package. If there were any they would be +# made here. + +binary-arch: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs -a + + dh_installchangelogs -a + dh_installdocs -a + dh_installdebconf -pdebconf-test + dh_installdebconf -pdebconf-test-noscripts --noscripts + dh_installdebconf -pdebconf-test-preinst --noscripts + dh_installdebconf -pdebconf-test-postinst --noscripts + dh_installdebconf -pdebconf-udeb + + + + + dh_compress -a + dh_fixperms -a + +# The shlibs stuff doesn't matter here so do it in a weird order to +# test warnings. + dh_installdeb -a + dh_shlibdeps -a + dh_makeshlibs -a + dh_gencontrol -a + dh_md5sums + dh_builddeb -a + dh_makeshlibs -a + +# Below here is fairly generic really + +binary: binary-indep binary-arch + +.PHONY: build-arch build-indep build binary binary-arch binary-indep clean checkroot diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/eval/hints new file mode 100644 index 00000000..bed3522f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-debconf/eval/hints @@ -0,0 +1,8 @@ +debconf-test-preinst (binary): old-fsf-address-in-copyright-file +debconf-test-preinst (binary): copyright-contains-dh_make-todo-boilerplate +debconf-test-postinst (binary): old-fsf-address-in-copyright-file +debconf-test-postinst (binary): copyright-contains-dh_make-todo-boilerplate +debconf-test-noscripts (binary): old-fsf-address-in-copyright-file +debconf-test-noscripts (binary): copyright-contains-dh_make-todo-boilerplate +debconf-test (binary): old-fsf-address-in-copyright-file +debconf-test (binary): copyright-contains-dh_make-todo-boilerplate diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/ORIGIN new file mode 100644 index 00000000..cd8afd4e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/legacy-etcfiles + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/debian/README.Debian b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/debian/README.Debian new file mode 100644 index 00000000..e289bfb2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/debian/README.Debian @@ -0,0 +1,5 @@ +this is a package to test lintian's handling of files in /etc. +Also, there's a random mention of /usr/doc here to prompt a warning. +But /usr/documentation doesn't. + + -- Russ Allbery , Mon, 18 Feb 2008 16:40:55 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/debian/changelog new file mode 100644 index 00000000..4f047b64 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/debian/changelog @@ -0,0 +1,7 @@ +etcfiles (1) unstable; urgency=low + + * Acknowledge NMU (Closes: #123456). + * initial setup + + -- Lintian Maintainers Fri, 21 Sep 2001 11:56:02 -0700 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/debian/conffiles b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/debian/conffiles new file mode 100644 index 00000000..76032b78 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/debian/conffiles @@ -0,0 +1,5 @@ +/etc/proper +/var/lib/foo +/etc/cron.daily/cronfile-normal +/etc/cron.daily/.cronfile-begins-with-fullstop +/etc/cron.daily/cronfile-contains.fullstop diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/debian/conffiles.only b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/debian/conffiles.only new file mode 100644 index 00000000..a4b38954 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/debian/conffiles.only @@ -0,0 +1,2 @@ +/etc/etcfiles/foo +/etc/etcfiles/bar diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/debian/control new file mode 100644 index 00000000..f3dbda7f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/debian/control @@ -0,0 +1,20 @@ +Source: etcfiles +Section: misc +Priority: optional +Maintainer: Lintian Maintainers +Standards-Version: 3.5.0 + +Package: etcfiles +Architecture: any +Depends: ${shlibs:Depends} +Description: test handling of files in /etc + Regression test for lintian's handling of files in /etc. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: only-etcfiles +Architecture: all +Depends: etcfiles (= ${source:Version}) +Description: test handling of conffile-only package diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/debian/rules new file mode 100755 index 00000000..97ff09fc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/debian/rules @@ -0,0 +1,64 @@ +#!/usr/bin/make -f + +tmp=debian/tmp +tmponly=debian/only-etcfiles + +clean: + rm -f debian/files debian/substvars + rm -rf debian/tmp + rm -rf debian/only-etcfiles + +build: +build-arch: +build-indep: +binary-indep: + install -d $(tmp)/etc + install -m 644 proper $(tmp)/etc + install -m 644 improper $(tmp)/etc + mkdir $(tmp)/etc/cron.daily + touch $(tmp)/etc/cron.daily/cronfile-normal + touch $(tmp)/etc/cron.daily/.cronfile-begins-with-fullstop + touch $(tmp)/etc/cron.daily/cronfile-contains.fullstop + ln $(tmp)/etc/improper $(tmp)/etc/improper-link + install -d $(tmp)/usr/share/doc/etcfiles + install -d $(tmp)/var/lib + install -m 644 proper $(tmp)/var/lib/foo + install -m 644 debian/README.Debian $(tmp)/usr/share/doc/etcfiles + install -m 644 debian/changelog $(tmp)/usr/share/doc/etcfiles + #gzip -9 $(tmp)/usr/share/doc/etcfiles/changelog + install -d $(tmp)/DEBIAN + install -m 644 debian/conffiles $(tmp)/DEBIAN + + echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/cronfile-normal' \ + > debian/tmp/DEBIAN/md5sums + echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/.cronfile-begins-with-fullstop' \ + >> debian/tmp/DEBIAN/md5sums + echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/cronfile-contains.fullstop' \ + >> debian/tmp/DEBIAN/md5sums + echo '05c72cacce994208128b7d081116b04a ./etc/proper' \ + >> debian/tmp/DEBIAN/md5sums + echo 'ab371382468880299e5ebd05921764ce etc/improper' \ + >> debian/tmp/DEBIAN/md5sums + echo 'ab371382468880299e5ebd05921764ce usr/bin/foo' \ + >> debian/tmp/DEBIAN/md5sums + echo 'this is a malformed line' \ + >> debian/tmp/DEBIAN/md5sums + echo '56fb27e455dd86d8801f1ecd3a4cee49 usr/share/doc/etcfiles/README.Debian' \ + >> debian/tmp/DEBIAN/md5sums + + install -d $(tmponly)/etc/etcfiles + touch $(tmponly)/etc/etcfiles/foo + touch $(tmponly)/etc/etcfiles/bar + install -d $(tmponly)/usr/share/doc + cd $(tmponly)/usr/share/doc && ln -s etcfiles only-etcfiles + install -d $(tmponly)/DEBIAN + install -m 644 debian/conffiles.only $(tmponly)/DEBIAN/conffiles + + dpkg-gencontrol -isp -petcfiles + dpkg-gencontrol -isp -ponly-etcfiles -P$(tmponly) + dpkg --build $(tmp) .. + dpkg --build $(tmponly) .. + +binary: binary-indep + +.PHONY: binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/eval/hints new file mode 100644 index 00000000..2ebfa16d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/eval/hints @@ -0,0 +1 @@ +etcfiles (binary): no-copyright-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/improper b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/improper new file mode 100644 index 00000000..23656f41 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/improper @@ -0,0 +1,2 @@ +[config] + var = value \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/proper b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/proper new file mode 100644 index 00000000..f3dc68bf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-etcfiles/proper @@ -0,0 +1,2 @@ +# i am a config file +foo = var \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-fields/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-fields/ORIGIN new file mode 100644 index 00000000..6fe44ce2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-fields/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/legacy-fields + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-fields/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-fields/debian/changelog new file mode 100644 index 00000000..1840a57f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-fields/debian/changelog @@ -0,0 +1,10 @@ +fields (1.5-.3) unstable; urgency=low + + * This package adds tests for the following tags: + - debian-revision-not-well-formed + - depends-on-python-minimal + - essential-no-not-needed + - debian-revision-should-not-be-zero + - new-essential-package + + -- Tobias Quathamer Sun, 10 Apr 2011 14:30:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-fields/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-fields/debian/control new file mode 100644 index 00000000..d980a6e2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-fields/debian/control @@ -0,0 +1,28 @@ +Source: fields +Section: does-not-exist +Priority: standard +Maintainer: Lintian Maintainers +Standards-Version: 3.9.2 + +Package: fields +Essential: no +Architecture: all +Depends: python-minimal +Description: Generate some errors + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: another-version +Essential: yes +Section: admin +Architecture: all +Description: Also generate some errors + This package gets another version number and tries to sneak in a new + essential package. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-fields/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-fields/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-fields/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-fields/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-fields/debian/rules new file mode 100755 index 00000000..11ad4a75 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-fields/debian/rules @@ -0,0 +1,33 @@ +#!/usr/bin/make -f + +tmp=debian/tmp + +build-arch: + +build-indep: + +build: build-arch build-indep + +binary-arch: + +binary-indep: + install -d $(tmp)/usr/share/doc/fields + install -m 644 debian/changelog \ + $(tmp)/usr/share/doc/fields/changelog + gzip -n -9 $(tmp)/usr/share/doc/fields/changelog + dh_md5sums -pfields -P$(tmp) + dpkg-gencontrol -pfields -P$(tmp) + dpkg --build $(tmp) .. + rm -rf $(tmp) + + # Create another package with a different version + dh_md5sums -panother-version -P$(tmp) + dpkg-gencontrol -panother-version -v123.4-0 -P$(tmp) + dpkg --build $(tmp) .. + +binary: binary-arch binary-indep + +clean: + rm -rf debian/files $(tmp) debian/substvars + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-fields/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-fields/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-fields/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-fields/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-fields/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-fields/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-fields/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-fields/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-fields/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-fields/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-fields/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-fields/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-fields/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-fields/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-fields/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-fields/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-fields/eval/hints new file mode 100644 index 00000000..6ce7d6e2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-fields/eval/hints @@ -0,0 +1,2 @@ +fields (binary): no-copyright-file +another-version (binary): no-copyright-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/ORIGIN new file mode 100644 index 00000000..efcbdeb6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/legacy-filenames + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/data/ .tif b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/data/ .tif new file mode 100644 index 00000000..07fd9140 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/data/ .tif @@ -0,0 +1,2 @@ +This filename was inspired by the ".tif used by fnlib. The real package +uses space.tif. diff --git "a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/data/\".tif" "b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/data/\".tif" new file mode 100644 index 00000000..e0057757 --- /dev/null +++ "b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/data/\".tif" @@ -0,0 +1 @@ +This filename is really used, by fnlib. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/data/Maelstrom Sound b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/data/Maelstrom Sound new file mode 100644 index 00000000..41104109 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/data/Maelstrom Sound @@ -0,0 +1 @@ +This filename occurs in the maelstrom package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/debian/changelog new file mode 100644 index 00000000..f501faaa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/debian/changelog @@ -0,0 +1,78 @@ +filenames (1:12-0.1) unstable; urgency=low + + * /me is doing a correct NMU of this package, bumping the epoch too. + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 02:04:39 +0200 + +filenames (11) unstable; urgency=low + + * Add a README.macos. + + -- Marc 'HE' Brockschmidt Mon, 12 Apr 2004 23:35:24 +0200 + +filenames (10) unstable; urgency=low + + * Some new files to check the checks for the use of /usr/*/X11 and + /usr/X11R6/*. + + -- Marc 'HE' Brockschmidt Sun, 11 Apr 2004 17:35:20 +0200 + +filenames (9) unstable; urgency=low + + * Add a two *.ali files, one with the right permission, one with + the more common, but false one. + + -- Marc 'HE' Brockschmidt Sun, 11 Apr 2004 00:18:16 +0200 + +filenames (8) unstable; urgency=low + + * Add a real ancient file + + -- Frank Lichtenheld Thu, 8 Apr 2004 22:22:40 +0200 + +filenames (7) unstable; urgency=low + + * Add a dozen symlinks, some correct, some not + + -- Jeroen van Wolffelaar Fri, 27 Feb 2004 01:28:42 +0100 + +filenames (6) unstable; urgency=low + + * Add perl files to check if + package-installs-nonbinary-perl-in-usr-lib-perl5 is correctly + issued even after attempting to suppress it in some cases + + -- Frank Lichtenheld Fri, 27 Feb 2004 00:49:44 +0100 + +filenames (5) unstable; urgency=low + + * Added check for too long symlink + + -- Sean 'Shaleh' Perry Wed, 3 Jan 2001 13:20:31 -0800 + +filenames (4) unstable; urgency=low + + * Add /usr/lib/menu/menu file to test the bad-menu-file-name tag. + * Add /usr/lib/menu/README to test the new execption for it. + + -- Richard Braakman Thu, 22 Oct 1998 15:42:52 +0200 + +filenames (3) unstable; urgency=low + + * Don't rely on the installer's umask. + + -- Richard Braakman Thu, 20 Aug 1998 12:45:47 +0200 + +filenames (2) unstable; urgency=low + + * Noted more limitations on what filenames lintian handles. + * Added Changes.gz in /usr/doc/filenames and made a symlink from changelog.gz + to Changes.gz. + + -- Richard Braakman Sat, 4 Jul 1998 15:46:11 +0200 + +filenames (1) unstable; urgency=low + + * Initial version + + -- Richard Braakman Sat, 4 Jul 1998 15:25:01 +0200 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/debian/control new file mode 100644 index 00000000..1ff9c503 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/debian/control @@ -0,0 +1,42 @@ +Source: filenames +Maintainer: Lintian Maintainer +Standards-Version: 3.1.1 +Rules-Requires-Root: binary-targets + +Package: filenames +Architecture: any +Description: see how lintian reacts to weird filenames + This package contains files with the most evil names I could find, + except for ones that lintian is explicitly not designed to handle. + . + Lintian does not handle filenames containing newlines, or filenames + that contain the strings " link to ", " -> ", or ": ". The last one + is used as a separator by the file command, the others are used as + separators by tar. + . + Lintian also does not handle filenames that contain backslashes, or + other characters that are mangled by tar's -tv output. + +Package: filename-games +Architecture: all +Depends: filenames +Section: games +Description: Test game filename/location checks + This package contains files with slightly less evil names than + filenames. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: more-filename-games +Architecture: all +Depends: filenames, filename-games +Section: games +Priority: optional +Description: More test for game filename/location checks + This package contains no evil names, only evil locations. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/debian/doc-base b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/debian/doc-base new file mode 100644 index 00000000..e5a611ba --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/debian/doc-base @@ -0,0 +1,11 @@ +Document: testing +Title: Working doc-base control file +Author: Russ Allbery +Abstract: This control file ensures that we don't get false positives for + correct doc-base files. + . + There isn't anything wrong with this one. +Section: Education + +Format: Text +Files: /usr/share/doc/filenames/README.macosx diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/debian/rules new file mode 100755 index 00000000..fd86970b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/debian/rules @@ -0,0 +1,213 @@ +#!/usr/bin/make -f + +# Copyright (C) 1998 Richard Braakman +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, you can find it on the World Wide +# Web at https://www.gnu.org/copyleft/gpl.html, or write to the Free +# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +# MA 02110-1301, USA. + +VENDORARCH := $(shell perl -MConfig -wE'say substr($$Config{vendorarch},1)') + +clean: + mkdir -p .svn CVS "{arch}" .arch-ids .bzr + touch data/.cvsignore data/svn-commit.tmp data/svk-commitsEr9P.tmp + touch data/.arch-inventory + touch 'data/.#Maelstrom Sound.1.1.1' 'data/Maelstrom Sounce.r121' + touch 'data/Maelstrom Sound.mine' + touch "data/'\\ " + touch filenames.c~ + +build-arch: + +build-indep: + +build: build-arch build-indep + + +binary-arch: + +binary-indep: + install -d debian/tmp/DEBIAN + cp -a data debian/tmp/files + chmod -R go=rX debian/tmp/files + + install -d debian/tmp/usr/lib/filenames + install -m 555 -d debian/tmp/usr/lib/filenames/readonly + touch debian/tmp/usr/lib/filenames/readonly/test + + install -d debian/tmp/usr/lib/menu + install -d debian/tmp/usr/share/menu + touch debian/tmp/usr/lib/menu/README + touch debian/tmp/usr/share/menu/README + touch debian/tmp/usr/lib/menu/menu + touch debian/tmp/usr/share/menu/menu + chmod 644 debian/tmp/usr/lib/menu/* + + install -d debian/tmp/$(VENDORARCH)/foo + mkdir debian/tmp/$(VENDORARCH)/.svn + mkdir debian/tmp/$(VENDORARCH)/CVS + mkdir "debian/tmp/$(VENDORARCH)/{arch}" + mkdir debian/tmp/$(VENDORARCH)/.arch-ids + mkdir debian/tmp/$(VENDORARCH)/.bzr + mkdir debian/tmp/$(VENDORARCH)/.be + mkdir debian/tmp/$(VENDORARCH)/.ditrack + install -d debian/tmp/usr/share/perl5 + echo foo > debian/tmp/$(VENDORARCH)/foo/.gitignore + echo foo > debian/tmp/$(VENDORARCH)/foo/.hgignore + echo foo > debian/tmp/$(VENDORARCH)/foo/.hgtags + echo foo > debian/tmp/$(VENDORARCH)/foo/.hg_archival.txt + + touch debian/tmp/$(VENDORARCH)/foo/.packlist + chmod 644 debian/tmp/$(VENDORARCH)/foo/.packlist + touch debian/tmp/$(VENDORARCH)/foo/bar.pm + TZ=UTC touch -t 197501010101 debian/tmp/$(VENDORARCH)/foo/ancient.pm + chmod 644 debian/tmp/$(VENDORARCH)/foo/bar.pm + + install -d debian/tmp/usr/share/pixmaps + install -d debian/tmp/usr/share/pixmaps/foo + touch debian/tmp/usr/share/pixmaps/license.jpeg + touch debian/tmp/usr/share/pixmaps/licence.jpg + touch debian/tmp/usr/share/pixmaps/copying.xpm + touch debian/tmp/usr/share/pixmaps/foo/COPYING.svg + touch debian/tmp/usr/share/pixmaps/foo/copying.png + touch debian/tmp/usr/share/pixmaps/license.txt + touch debian/tmp/usr/share/pixmaps/license.foo + touch debian/tmp/usr/share/pixmaps/COPYING + + install -d debian/tmp/usr/share/linda/overrides + echo 'foo' > debian/tmp/usr/share/linda/overrides/filenames + + install -d debian/tmp/usr/share/doc/filenames + touch debian/tmp/usr/share/doc/filenames/README.macosx + + echo foo > debian/tmp/usr/share/doc/filenames/bokmål + echo foo > debian/tmp/usr/share/doc/filenames/bokm\\ål + echo foo > debian/tmp/usr/share/doc/filenames/bokml + echo foo > debian/tmp/usr/share/doc/filenames/bokm\\l + + echo foo > debian/tmp/usr/share/doc/filenames/Thumbs.db + echo foo > debian/tmp/usr/share/doc/filenames/.DS_Store + echo foo > debian/tmp/usr/share/doc/filenames/._NEWS.Debian + + touch debian/tmp/usr/share/doc/filenames/news.debian + gzip -n debian/tmp/usr/share/doc/filenames/news.debian + touch debian/tmp/usr/share/doc/filenames/NEWS.Debian + + echo foo > debian/tmp/usr/share/doc/filenames/link-one + ln debian/tmp/usr/share/doc/filenames/link-one \ + debian/tmp/usr/share/doc/filenames/link-two + + install -d debian/tmp/usr/share/doc/filenames/examples + touch debian/tmp/usr/share/doc/filenames/examples/__init__.py + touch debian/tmp/usr/share/doc/filenames/examples/very_interesting_example + touch debian/tmp/usr/share/doc/filenames/examples/very_interesting_example2 + gzip -n debian/tmp/usr/share/doc/filenames/examples/very_interesting_example2 + + install -d debian/tmp/usr/lib/ada/adalib/ + touch debian/tmp/usr/lib/ada/adalib/test.ali debian/tmp/usr/lib/ada/adalib/test2.ali + chmod 0644 debian/tmp/usr/lib/ada/adalib/test.ali + chmod 0444 debian/tmp/usr/lib/ada/adalib/test2.ali + + install -d debian/tmp/usr/bin/X11/ + touch debian/tmp/usr/bin/X11/testxbin + install -d debian/tmp/usr/X11R6/bin + touch debian/tmp/usr/X11R6/bin/testxbin2 + install -d debian/tmp/usr/include/X11 + touch debian/tmp/usr/include/X11/foo.h + + install -d debian/tmp/usr/bin/mh + touch debian/tmp/usr/bin/mh/read + chmod 755 debian/tmp/usr/bin/mh/read + install -d debian/tmp/usr/bin/bin + touch debian/tmp/usr/bin/bin/bad + chmod 755 debian/tmp/usr/bin/bin/bad + + install -m 644 debian/changelog debian/tmp/usr/share/doc/filenames/Changes + gzip -n -9 debian/tmp/usr/share/doc/filenames/Changes + ln -s Changes.gz debian/tmp/usr/share/doc/filenames/changelog.gz + + install -d debian/tmp/var/www + echo foo > debian/tmp/var/www/foo + + install -d debian/tmp/srv/foo + touch debian/tmp/srv/foo/bar + install -d debian/tmp/opt/foo + touch debian/tmp/opt/foo/bar + + install -d debian/tmp/etc/gconf/schemas + touch debian/tmp/etc/gconf/schemas/test.schema + + install -d debian/tmp/usr/lib/sgml + touch debian/tmp/usr/lib/sgml/package + + install -d debian/tmp/usr/share/gnome/apps/System + touch debian/tmp/usr/share/gnome/apps/System/foo.desktop + + install -d debian/tmp/usr/share/filenames + touch debian/tmp/usr/share/filenames/jquery.js + touch debian/tmp/usr/share/filenames/jquery.lite.js + touch debian/tmp/usr/share/filenames/jquery.min.js + touch debian/tmp/usr/share/filenames/jquery.pack.js + touch debian/tmp/usr/share/filenames/mochikit.js + touch debian/tmp/usr/share/filenames/prototype-1.2.3.4.js + touch debian/tmp/usr/share/filenames/prototype.js + touch debian/tmp/usr/share/filenames/prototype.js.gz + touch debian/tmp/usr/share/filenames/scriptaculous.js + touch debian/tmp/usr/share/filenames/yahoo-dom-event.js + touch debian/tmp/usr/share/filenames/yahoo-min.js + + ln -s '../filenames/doc/version6.txt.gz' debian/tmp/usr/share/doc/filenames/version.txt.gz + ln -s ../../share/symlink debian/tmp/usr/lib/filenames/symlink1ok + ln -s ../../../etc/symlink debian/tmp/usr/lib/filenames/symlink1wrong + ln -s ../../../../etc/symlink debian/tmp/usr/lib/filenames/symlink2wrong + ln -s /etc/symlink debian/tmp/usr/lib/filenames/symlink2ok + ln -s /usr/lib/filenames/symlink2 debian/tmp/usr/lib/filenames/symlink3wrong + ln -s test debian/tmp/usr/lib/filenames/symlink3ok + ln -s ../filenames/symlink2 debian/tmp/usr/lib/filenames/symlink4wrong + ln -s ../menu/../somethingelse debian/tmp/usr/lib/filenames/symlink5wrong + ln -s ../menu/somethingelse debian/tmp/usr/lib/filenames/symlink4ok + ln -s ./file4 debian/tmp/usr/lib/filenames/symlink6wrong + ln -s ../menu/./something debian/tmp/usr/lib/filenames/symlink7wrong + ln -s ../menu//something debian/tmp/usr/lib/filenames/symlink8wrong + ln -s ../menu/something/ debian/tmp/usr/lib/filenames/symlink9wrong + ln -s .. debian/tmp/usr/lib/filenames/symlink5ok+warn + ln -s . debian/tmp/usr/lib/filenames/symlink6ok+warn + ln -s / debian/tmp/usr/lib/filenames/symlink7ok+warn + ln -s ../../.. debian/tmp/usr/lib/filenames/symlink10wrong + + install -d debian/tmp/usr/share/doc-base + install -m 644 debian/doc-base debian/tmp/usr/share/doc-base/filenames + + dpkg-gencontrol -pfilenames -Pdebian/tmp + dpkg --build debian/tmp .. + + install -d debian/filename-games debian/filename-games/DEBIAN + install -d debian/filename-games/usr debian/filename-games/usr/games debian/filename-games/usr/bin + echo '#! /bin/sh' > debian/filename-games/usr/bin/test-game + chmod 755 debian/filename-games/usr/bin/test-game + dpkg-gencontrol -pfilename-games -Pdebian/filename-games + dpkg --build debian/filename-games .. + + install -d debian/more-filename-games debian/more-filename-games/DEBIAN + install -d debian/more-filename-games/usr debian/more-filename-games/usr/games debian/more-filename-games/usr/bin + echo '#! /bin/sh' > debian/more-filename-games/usr/bin/another-test-game + echo '#! /bin/sh' > debian/more-filename-games/usr/games/yet-another-test-game + chmod 755 debian/more-filename-games/usr/bin/another-test-game debian/more-filename-games/usr/games/yet-another-test-game + dpkg-gencontrol -pmore-filename-games -Pdebian/more-filename-games + dpkg --build debian/more-filename-games .. + +binary: binary-arch binary-indep + +.PHONY: build-indep build-arch build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/eval/hints new file mode 100644 index 00000000..577cfcfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-filenames/eval/hints @@ -0,0 +1,3 @@ +more-filename-games (binary): no-copyright-file +filenames (binary): no-copyright-file +filename-games (binary): no-copyright-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-foo++/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-foo++/ORIGIN new file mode 100644 index 00000000..6ed7320b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-foo++/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/legacy-foo++ + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-foo++/debian/README.Debian b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-foo++/debian/README.Debian new file mode 100644 index 00000000..87bfcdf7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-foo++/debian/README.Debian @@ -0,0 +1,7 @@ +foo++ for Debian +---------------- + +This should trigger a warning, as i use a fake mail address. + + -- Marc 'HE' Brockschmidt , Wed, 14 Apr 2004 01:44:18 +0200 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-foo++/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-foo++/debian/changelog new file mode 100644 index 00000000..e1637f75 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-foo++/debian/changelog @@ -0,0 +1,31 @@ +foo++ (5) unstable; urgency=low + + * Add a fake README.Debian to trigger a warning. + * This should trigger + debian-changelog-file-contains-debmake-default-email-address. + + -- Marc 'HE' Brockschmidt Wed, 14 Apr 2003 01:35:47 +0200 + +foo++ (4) unstable; urgency=low + + * This changelog now includes a ISO-8859-1 character: '' + + -- Frank Lichtenheld Fri, 5 Mar 2004 13:41:39 +0100 + +foo++ (3) unstable; urgency=low + + * Set maintainers + uploaders incorrectly + + -- Jeroen van Wolffelaar Fri, 5 Mar 2004 04:20:24 +0100 + +foo++ (2) unstable; urgency=low + + * Added a foo++-helper package to try and catch even more ++ bugs. + + -- Sean 'Shaleh' Perry Sat, 10 Feb 2001 23:16:17 -0800 + +foo++ (1) unstable; urgency=low + + * Initial version + + -- Sean 'Shaleh' Perry Thu, 16 Nov 2000 09:11:40 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-foo++/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-foo++/debian/control new file mode 100644 index 00000000..fb2469e1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-foo++/debian/control @@ -0,0 +1,29 @@ +Source: foo++ +Section: misc +Priority: optional +Maintainer: Lintian Maintainer +Uploaders: Marc 'HE' Brockschmidt , Jeroen van Wolffelaar , + Frank , +Standards-Version: 3.1.1 +XS-Dm-Upload-Allowed: no + +Package: foo++ +Architecture: all +Build-Depends: test +Depends: test, libssl0.9.7 +Description: see how lintian reacts to plus signs in the package name + Regression test to see if lintian tests work on a package with plus signs in + its name. + . + This description also uses non-UTF8 high bytes chars: ÄÖÜß + +Package: foo++-helper +Architecture: all +Depends: test, foo++ +Description: see how lintian reacts to plus signs in the package name + Regression test to see if lintian tests work on a package with plus signs in + its name. This has /usr/share/doc links to foo++ to trigger even more checks. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-foo++/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-foo++/debian/copyright new file mode 100644 index 00000000..e2d6d93e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-foo++/debian/copyright @@ -0,0 +1,7 @@ +A reference to /usr/share/common-licenses/GPL to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +However, there is also a reference to /usr/share/common-licenses/LGPL, so +who knows what bits actually depend on libssl. + +Copr. 2007 Somebody. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-foo++/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-foo++/debian/rules new file mode 100755 index 00000000..63bb4dbe --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-foo++/debian/rules @@ -0,0 +1,36 @@ +#!/usr/bin/make -f + +foo=foo++ +helper=foo++-helper + +build-arch: + +build-indep: + +build: build-arch build-indep + +binary-arch: + +binary-indep: + install -d debian/$(foo)/DEBIAN + install -d debian/$(foo)/usr/share/doc/$(foo) + install -m 644 debian/changelog \ + debian/$(foo)/usr/share/doc/$(foo)/changelog + gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/changelog + install -m 644 debian/README.Debian \ + debian/$(foo)/usr/share/doc/$(foo)/README.Debian + gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/README.Debian + dpkg-gencontrol -isp -p$(foo) -Pdebian/$(foo) + dpkg --build debian/$(foo) .. + + install -d debian/$(helper)/DEBIAN + install -d debian/$(helper)/usr/share/doc/ + ln -sf $(foo) debian/$(helper)/usr/share/doc/$(helper) + dpkg-gencontrol -isp -p$(helper) -Pdebian/$(helper) + dpkg --build debian/$(helper) .. + +binary: binary-arch binary-indep + +clean: + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-foo++/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-foo++/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-foo++/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-foo++/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-foo++/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-foo++/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-foo++/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-foo++/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-foo++/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-foo++/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-foo++/debian/watch new file mode 100644 index 00000000..26f9a3c1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-foo++/debian/watch @@ -0,0 +1,6 @@ +# A comment \ +version=0 + +# uscan does not interpret the backslash above, it is just part of the comment + +http://domain.tld/file-(.*)\.tar\.gz diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-foo++/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-foo++/eval/hints new file mode 100644 index 00000000..22a97cb4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-foo++/eval/hints @@ -0,0 +1 @@ +foo++ (binary): no-copyright-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/ORIGIN new file mode 100644 index 00000000..d3c111ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/legacy-maintainer-scripts + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/changelog new file mode 100644 index 00000000..a0c6dc5a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/changelog @@ -0,0 +1,57 @@ +maintainer-scripts (7+dfsg-0.1) unstable; urgency=low + + * Doing an upload for QA but I fail to give it a correct version number, + have some uploaders, and also fail to mention it... Bad me ;) + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 02:05:29 +0200 + +maintainer-scripts (6.1) unstable; urgency=low + + * I made this entry on my local PC, oops ;) + + -- Jeroen van Wolffelaar Sat, 21 Feb 2004 18:29:37 +0100 + +maintainer-scripts (6) unstable; urgency=low + + * added ldconfig calls to postrm to check test the postrm tests + from shared-libs + + -- Frank Lichtenheld Sat, 21 Feb 2004 18:29:36 +0100 + +maintainer-scripts (5) unstable; urgency=low + + * added bash style arrays to postinst, this one is for you Torsten (-: + + -- Sean 'Shaleh' Perry Fri, 30 Mar 2001 23:27:06 -0800 + +maintainer-scripts (4) unstable; urgency=low + + * added a here document to the prerm, along with two more bashisms + * made postrm a bash script to check that bash scripts are not searched + + -- Sean 'Shaleh' Perry Mon, 26 Feb 2001 13:02:57 -0800 + +maintainer-scripts (3) unstable; urgency=low + + * Added check for '.' called as '. foo || bar', lintian 1.11.15 failed this + thinking the '||' was a argument. + * also added an invalid call to '. foo bar' + * postinst now has a space between the #! and /bin/sh to test the interpreter + checking code. + + -- Sean 'Shaleh' Perry Tue, 9 Jan 2001 23:06:25 -0800 + +maintainer-scripts (2) unstable; urgency=low + + * Fix location of changelog. + * prerm and postrm do 'update-alternatives --remove'; should only complain + about postrm. + + -- Colin Watson Fri, 29 Dec 2000 06:01:24 +0000 + +maintainer-scripts (1) unstable; urgency=low + + * Initial version + * postinst and prerm set the usr/doc symlink + + -- Sean 'Shaleh' Perry Thu, 16 Nov 2000 09:11:40 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/control new file mode 100644 index 00000000..4661ce0e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/control @@ -0,0 +1,18 @@ +Source: maintainer-scripts +Section: misc +Priority: optional +Maintainer: QA group +Uploaders: Anyone but Jeroen +Build-Depends: debhelper-compat (= 14), dash (>= 0.5.10.2) +Standards-Version: 3.1.1 +Rules-Requires-Root: binary-targets +XS-Dm-Upload-Allowed: Yes + +Package: maintainer-scripts +Architecture: all +Depends: test +Description: test lintian's maintainer script checks + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/postinst new file mode 100644 index 00000000..e56ed3bf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/postinst @@ -0,0 +1,181 @@ +#! /bin/sh -e + +if [ "$1" = "configure" ]; then + if [ -d /usr/doc -a ! -e /usr/doc/maintainer-scripts -a -d /usr/share/doc/maintainer-scripts ]; then + ln -sf ../share/doc/maintainer-scripts /usr/doc/maintainer-scripts + fi +fi + +# valid +. /usr/share/lintian/shell || exit 0 +. /usr/share/lintian/shell >/dev/null +. /usr/share/lintian/shell 2>/dev/null +. /usr/share/lintian/shell /dev/null +update-rc.d $FOO defaults +update-rc.d foo remove + +# valid +FOO=/tmp +FOO=/var/tmp +: ${FOO:=/tmp} +FOO=`mktemp /tmp/scripts.XXXXXX` +rm "$FOO" +FOO=`tempfile -n/tmp/scripts.tmp` +mkdir /var/tmp/scripts +FOO="/tmp/false.positive.XXXXXX" +# invalid +echo foo >>/tmp/scripts.tmp +rm /tmp/scripts.tmp +rmdir /var/tmp/scripts + +# invalid, maintainer-script-hides-init-failure +invoke-rc.d foo start || exit 0 + +# The right way to invoke an rc script +if which invoke-rc.d >/dev/null 2>&1; then + invoke-rc.d package start +else + /etc/init.d/package start +fi + +# Example ucf invocation. +ucf /usr/share/foo/configuration /etc/foo.conf + +# Calling gconftool directly. +gconftool-2 --makefile-install-rule foo.schema + +# Calling gconf-schemas with no dependency. +gconf-schemas --register foo.schema + +# Calling update-xmlcatalog with no dependency. +update-xmlcatalog --add --type system --id "/usr/share/sgml/dtd/foo" \ + --package maintainer-scripts --root + +# Maintainer scripts shouldn't touch /var/lib/dpkg/status. This is the old +# recipe from the dpkg wiki that should be replaced with dpkg-query. +sed -n -e \"/^Conffiles:/,/^[^ ]/{\\\\' /etc/conffile'{s/.* //;p}}\" \ + /var/lib/dpkg/status + +# Don't modify these files. +echo 'broken 6714/tcp' >> /etc/services +cp /nonexistent /etc/protocols +mv /usr/share/doc/rpc /etc/rpc + +# But this is okay. +cp /etc/protocols /etc/protocols.new + +# This is also wrong. +echo 'broken' > /etc/inetd.conf +cp /etc/inetd.conf.new /etc/inetd.conf + +# But this is fine. +cp /etc/inetd.conf /srv/chroot/etc/inetd.conf + +# Deprecated +install-sgmlcatalog --install package +install-sgmlcatalog --remove package + +# This too is a heredoc. +some-program > /etc/config-file <<'EOF' +echo "All of the array is: ${H[@]}" +EOF + +# But this isn't. +cat '</dev/null; then + ucf --purge /etc/foo.conf +fi + +# This isn't allowed. +rm /tmp/foo /dev/device +rm /dev/device1 + +# But this is okay. +rm /tmp/foo > /dev/null + +# Not allowed here even with remove. +install-sgmlcatalog --remove package diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/preinst b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/preinst new file mode 100644 index 00000000..60589785 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/preinst @@ -0,0 +1,18 @@ +#!/bin/sh + +update-rc.d foo remove +update-rc.d bar defaults + +# Obsolete dpkg assertions. +dpkg --assert-support-predepends || exit 1 +dpkg --assert-working-epoch || exit 1 +dpkg --assert-long-filenames || exit 1 +dpkg --assert-multi-conrep || exit 1 + +/bin/grep -E --mmap "^Package: foo$" /var/lib/dpkg/status + +# continuation lines +update-alternatives --install /usr/bin/fakeroot fakeroot \ + /usr/bin/fakeroot-ng 5 \ + --slave /usr/share/man/man1/fakeroot.1.gz \ + fakeroot.1.gz /usr/share/man/man1/fakeroot-ng.1.gz diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/prerm b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/prerm new file mode 100644 index 00000000..076ecafb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/prerm @@ -0,0 +1,188 @@ +#!/bin/sh + +if [ "$1" != "upgrade" ]; then + update-alternatives --remove dummy /usr/bin/dummy-alternative +fi + +if ([ "$1" = "upgrade" ] || [ "$1" = "remove" ]) && [ -L /usr/doc/maintainer-scripts ]; the +n + rm -f /usr/doc/maintainer-scripts +fi + +cat </dev/null +} + +source $FOO + +trap "echo hi" EXIT HUP 3 + +if [[ "$2" = "purge" ]]; then + kill -HUP $$ +fi + +#this is ok though +if test -n $(echo foo | perl -pe 's/[[:space:]]//go'); then + echo 1 +fi + +update-rc.d foo remove + +# More false positives for bashism checks. None of these are errors. +echo "$line" | grep -q '{fonts/map,}/{\$progname,pdftex,dvips,}//' +echo "$line" | grep -q "${fonts},${foo}" +echo '$[1+2]' +printf "foo |& bar" +perl -e "print q( kill -HUP $? )" + +# Still catch disallowed expansions in double-quotes, though. +echo "${line:3:1}" + +# The wrong way to run an init script (no invoke-rc.d). +/etc/init.d/package stop + +# This is the only install-sgmlcatalog call that's allowed. +install-sgmlcatalog --quiet --remove package + +# More bashisms checks + +read -x foo +read -x +read -r foo +read foo +read + +echo "a\\b" +echo 'a\nb' + +echo "${UID}" +echo "$EUID" +echo "$SHLVL" +echo "$DIRSTACK" +echo "$SECONDS" +echo "$BASH" +echo "$BASH_FOO" +echo "$SHELLOPTS" +echo "$PIPESTATUS" + +bar="$(cut '-d|' -f2 <<< "$foo")" + +VAR=1 +VAR+=a + +echos() { + echo -n -e "bar" + echo -e -n "bar" + echo -en "bar" + echo -ne "bar" + echo "bar" + echo "echo -e foo" +} + +ech.os() { + echo foo >& 2 + echo foo >&bar + echo foo >& bar +} + +echoes() { + echo "abc\nxyz" + echo 'xyz\rabc' + echo foo\cbar + + echo -e "abc\nxyz" + echo -net 'xyz\rabc' + echo -e foo\cbar +} + +foobar.() { + suspend x + suspended x + caller x + complete x + compgen x + declare -a foo +} + +.foobar() { + typeset -x bar + disown 1 + builtin foo + set -B + alias -p + unalias -a +} + +IFS="()" + +ulimit +shopt +type -v bar +time ls +dirs +diff <(tac a) <(tac b) + +pushd + +local foo=bar +local -x foo + +popd + +readonly -f + +echo bar > /dev/tcp +export x +export -x x +export -p x + +sh -x +sh -D +sh --foo +sh +O + +# Brace expansion checks +echo {a,b} +echo {abc},{bcd} + +foobar() +{ + # This is a function +} + + foo.bar() +( + # This is a function with a bad name +) + +foobar@() +{ + # As is this +} + +# This is ok +read -r foo +# but these aren't +read -r +read -p "Would you like to restart the service?" foo bar +read --fish + +set -e + +source "$BAR" +source '$BAR' +source ~/bar +source a diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/rules new file mode 100755 index 00000000..5fcef009 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/rules @@ -0,0 +1,35 @@ +#!/usr/bin/make -f + +build-arch: + +build-indep: + +build: build-arch build-indep + +binary-arch: + +binary-indep: + install -d debian/tmp/DEBIAN + install -m 0755 debian/preinst debian/tmp/DEBIAN + install -m 0755 debian/postinst debian/tmp/DEBIAN + install -m 0755 debian/prerm debian/tmp/DEBIAN + install -m 0755 debian/postrm debian/tmp/DEBIAN + install -m 0644 debian/triggers debian/tmp/DEBIAN + install -d debian/tmp/usr/share/doc/maintainer-scripts + install -m 0644 debian/changelog \ + debian/tmp/usr/share/doc/maintainer-scripts/changelog + gzip -n -9 debian/tmp/usr/share/doc/maintainer-scripts/changelog + dpkg-gencontrol -isp + dpkg --build debian/tmp .. + +binary: binary-arch binary-indep + +# Make sure we see dh_clean even in a rule clean depends on. Not the point of +# this test suite, but a convenient place to put it. +clean: clean1 clean2 clean3 +clean1: +clean2: + dh_clean +clean3: + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/triggers b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/triggers new file mode 100644 index 00000000..f6270949 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/triggers @@ -0,0 +1,4 @@ +# Example triggers file +activate foo + +interest bar diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/watch new file mode 100644 index 00000000..430eea3b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/debian/watch @@ -0,0 +1,11 @@ +# A whitespace is fine for uscan: + version=5 + +# Following line should not be matched: +#opts=uversionmangle=s/$/+debian/,dversionmangle=s/foo/bar/ \ +# Following one is incorrect, there's a missing backslash at the end +opts=uversionmangle=s/$/+dfsg/,dversionmangle=s/foo/bar/ + +# 'active' is useless here, but it works anyway +options=active \ +http://domain.tld/foo-(.+)\.tar\.gz \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/eval/hints new file mode 100644 index 00000000..b0944ad9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-maintainer-scripts/eval/hints @@ -0,0 +1 @@ +maintainer-scripts (binary): no-copyright-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-relations/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-relations/ORIGIN new file mode 100644 index 00000000..5a61da9e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-relations/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/legacy-relations + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-relations/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-relations/debian/changelog new file mode 100644 index 00000000..d23f2272 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-relations/debian/changelog @@ -0,0 +1,33 @@ +relations (5) unstable; urgency=low + + * I'm orphaning this package -- I'm sick of it: it's completely broken, + lintian complains all over the place. + + -- Jeroen van Wolffelaar Sun, 02 Dec 2007 15:59:59 -0800 + +relations (4) unstable; urgency=low + + * Added a package that tests dependencies for multiple versions of + libraries, and test some description stuff in there as well. + + -- Josip Rodin Fri, 29 Nov 2002 20:13:33 +0100 + +relations (3) unstable; urgency=low + + * Added a virtual provides to test against my virtual depends without + a real package first test + + -- Sean 'Shaleh' Perry Thu, 8 Feb 2001 11:29:53 -0800 + +relations (2) unstable; urgency=low + + * Added a depends on dpkg (violates policy) and a versioned depends + on bash (follows policy) + + -- Sean 'Shaleh' Perry Fri, 2 Feb 2001 12:37:17 -0800 + +relations (1) unstable; urgency=low + + * Initial version + + -- Richard Braakman Tue, 7 Jul 1998 16:27:56 +0200 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-relations/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-relations/debian/control new file mode 100644 index 00000000..6cd1c044 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-relations/debian/control @@ -0,0 +1,51 @@ +Source: relations +Section: misc +Priority: optional +Build-Depends: mail-transport-agent, libc6-dev, findutils, foo (= 3) [!amd64 !i386], bar, arch-test1 [i386], arch-test2 [!i386], quilt (>= 0.40), perl +Build-Depends-Indep: make, bash, debmake, build-essential, baz (= 2.0), ghostscript | gs, + car (>= 1.0), car (<= 2.0), caz (= 1.0) [amd64], caz (>= 2.0) [i386], + caz (= 2.0) [powerpc], perl (>= 5.0), foo (<< 4) [!amd64 !i386], libfoo (>= 1.2-1), bozzle [kfreebsd-i386] +Build-Conflicts: foo [amd64 i386], bar [alpha test], xlibs-dev, arch-test1 [powerpc], arch-test2 [!sparc] +Build-Conflicts-Indep: debmake [!powerpc] +Maintainer: Debian QA Group +Standards-Version: 3.7.3 +Homepage: lintian.debian.org +Origin: Debian +Bugs: debbugs://bugs.debian.org/ + +Package: relations +Architecture: all +Section: contrib/misc +Pre-Depends: awk|gawk +Depends: relations(<< 3), dpkg, bash (>> 2.0 ), mail-transport-agent, gawk | awk, foo (>> 2.0), foo (<< 2.2), coreutils, ,null (>= 0), ${misc:Depends}, makedev +Provides: mail-reader +Replaces: relations +Conflicts: foobar (<< 5+5), foo, relations, + gnuwdf, +Suggests: alpha, gnu (>= 44-3-4-8-11.4) | ung (<< 89beta) | nug | ngu, beta, some-other-package +Recommends: emacs21 | emacsen, dpkg, null, some-other-package, ${f-oo:b-ar}, gs | ghostscript | gs-aladdin +Description: Strange dependency relationships (dummy) + This package declares relationships designed to tickle lintian's "fields" + check. It should generate a number of tags for these. + . + The package is built with "dpkg --build --no-check", because some of the + relationships used here are normally rejected by dpkg. + +Package: relations-multiple-libs +Architecture: all +Section: non-free/misc +Depends: libstdc++2.10, libstdc++2.10-glibc2.2, libstdc++3.0, tk8.2, tk8.3, tcl8.0, tcl8.2, tkx8.2, tkx8.3, tclx8.2, libpng2, libpng3, xorg, ${shlibs:Depends}, makedev | udev +Provides: awk +Enhances: foo +Recommends: ${shlibs:Depends}, relations-multiple-libs, gs | gs-gpl, makedev +Breaks: libpng3 (<< 1.0), libpng2 +Suggests: x-dev, ghostscript | gs +Description: Duplicate library dependency relationships. + Duplicate library dependency relationships. + This tests the depending on different versions of the same library + at the same time. + . + At the same time, it conveniently tests some description file checks. :) + . + It is a metapackage from the lintian perspective, so the xorg dependency + should be allowed. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-relations/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-relations/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-relations/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-relations/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-relations/debian/rules new file mode 100755 index 00000000..5027f335 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-relations/debian/rules @@ -0,0 +1,49 @@ +#!/usr/bin/make -f + +# Copyright (C) 1998 Richard Braakman +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, you can find it on the World Wide +# Web at https://www.gnu.org/copyleft/gpl.html, or write to the Free +# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +# MA 02110-1301, USA. + +build-arch: + +build-indep: + +build: build-arch build-indep + +binary-arch: + +binary-indep: + install -d debian/tmp/DEBIAN + dpkg-gencontrol -prelations -isp + dpkg --build debian/tmp ../relations_5_all.deb + install -d debian/tmp/usr/share/doc/ + ln -s relations debian/tmp/usr/share/doc/relations-multiple-libs + dpkg-gencontrol -prelations-multiple-libs -isp + dpkg --build debian/tmp ../relations-multiple-libs_5_all.deb + +binary: binary-arch binary-indep + +clean:: + rm -rf debian/tmp debian/files + +# Test allowing quilt Build-Depends for manual quilt invocations. + TESTING=foo ANOTHER=bar quilt || true + +# Test requiring perl Build-Depends for manual perl invocations. + [ ! -f Build ] || $(PERL) Build distclean + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-relations/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-relations/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-relations/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-relations/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-relations/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-relations/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-relations/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-relations/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-relations/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-relations/debian/tmp/DEBIAN/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-relations/debian/tmp/DEBIAN/control new file mode 100644 index 00000000..87e7fe68 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-relations/debian/tmp/DEBIAN/control @@ -0,0 +1,14 @@ +Package: relations-multiple-libs +Version: 4 +Section: misc +Priority: optional +Architecture: all +Depends: libstdc++2.10, libstdc++2.10-glibc2.2, libstdc++3.0, tk8.2, tk8.3, tcl8.0, tcl8.2, tkx8.2, tkx8.3, tclx8.2, libpng2, libpng3 +Installed-Size: 12 +Maintainer: Lintian Maintainer +Source: relations +Description: Duplicate library dependency relationships. + Duplicate library dependency relationships. This tests the depending on + different versions of the same library at the same time. + . + At the same time, it conveniently tests some description file checks. :) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-relations/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-relations/eval/hints new file mode 100644 index 00000000..ee302532 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-relations/eval/hints @@ -0,0 +1,2 @@ +relations-multiple-libs (binary): usr-share-doc-symlink-without-dependency relations +relations (binary): no-copyright-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/ORIGIN new file mode 100644 index 00000000..b3d640ed --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/legacy-scripts + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/csh-foo b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/csh-foo new file mode 100644 index 00000000..eaf47a15 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/csh-foo @@ -0,0 +1,2 @@ +#! /bin/csh + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/changelog new file mode 100644 index 00000000..9c6bc545 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/changelog @@ -0,0 +1,41 @@ +scripts (6ds-1ubuntu0.5.10.1) unstable; urgency=low + + * I'm also not able to write my name. + * Added a script in /etc/Xsession.d + * Bizarre version number courtesy of + https://wiki.ubuntu.com/SecurityUpdateProcedures#Prepare + + -- Mark 'HE' Brokschmitt Thu, 23 Jun 2005 14:32:39 +0200 + +scripts (5-1) unstable; urgency=low + + * I'm making a typo in my own name... And I want lintian to warn me about + it. + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 02:26:34 +0200 + +scripts (4-1) unstable; urgency=low + + * Add new example to check that not executable files with a shebang line + called *in don't trigger the script-not-executable warning. + + -- Marc 'HE' Brockschmidt Wed, 14 Apr 2004 19:44:04 +0200 + +scripts (3-3) unstable; urgency=low + + * Add suidperlfoo and some code in debian/rules to + check the new suidperl checks + + -- Frank Lichtenheld Wed, 31 Mar 2004 21:06:20 +0000 + +scripts (2-1) unstable; urgency=low + + * Add tkfoo script for tk checkings + + -- Lintian Maintainers Sat, 21 Feb 2004 17:13:36 +0100 + +scripts (1-0) unstable; urgency=low + + * Initial version + + -- Lintian Maintainers Sat, 10 Feb 2001 15:37:31 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/control new file mode 100644 index 00000000..e172d446 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/control @@ -0,0 +1,15 @@ +Source: scripts +Section: interpreters +Priority: optional +Maintainer: Lintian Maintainers +Uploaders: Jeroen van Wolfelaar , Marc 'HE' Brockschmidt +Standards-Version: 3.2.1 + +Package: scripts +Architecture: all +Depends: test, ruby1.8, build-essential, libssl0.9.7, php7.0-cli +Recommends: tk8.4 | wish +Description: test lintian's script file checks + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/copyright new file mode 100644 index 00000000..ad8a119e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/copyright @@ -0,0 +1,5 @@ +This file contains the phrase "under the same terms as Perl itself" to +trigger warnings about not having common-licenses references. + +This file contains the phrase "public domain" which should suppress +warnings about no copyright date. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/postinst new file mode 100644 index 00000000..7c5baf1f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/postinst @@ -0,0 +1,14 @@ +#!/bin/sh + +if [ -x "/etc/init.d/lsb-broken" ] ; then + update-rc.d lsb-broken defaults >/dev/null +fi +if [ -x "/etc/init.d/no-lsb" ] ; then + update-rc.d no-lsb defaults >/dev/null +fi +if [ -x "/etc/init.d/skeleton" ] ; then + update-rc.d skeleton defaults >/dev/null +fi +if [ -x "/etc/init.d/lsb-other" ] ; then + update-rc.d lsb-other defaults >/dev/null +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/postrm b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/postrm new file mode 100644 index 00000000..8fa75a25 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/postrm @@ -0,0 +1,9 @@ +#!/bin/sh -e + +if [ "$1" = purge ] ; then + update-rc.d lsb-broken remove >/dev/null + update-rc.d no-lsb remove >/dev/null + update-rc.d skeleton remove >/dev/null + update-rc.d lsb-other remove >/dev/null + update-rc.d lsb-other remove >/dev/null +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/preinst b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/preinst new file mode 100644 index 00000000..07995570 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/preinst @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e +set -x + +# +# Some comments here +# + +# This serves as an example of an "empty" script, so +# please do not add any real code here, thank you :) + +#DEBHELPER# + +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/rules new file mode 100755 index 00000000..0b3bf4f5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/rules @@ -0,0 +1,102 @@ +#!/usr/bin/make -f + +tmp=debian/tmp + +build-arch: + echo "Hi, in an arch: all package, I am a bug!" + +build-indep: + +build: build-arch build-indep + +binary-arch: + echo "Hi, in an arch: all package, I am a bug!" + +binary-indep: + install -d $(tmp)/usr/bin/ + install -d $(tmp)/etc/X11/Xsession.d/ + install -d $(tmp)/etc/init.d/ + install -d $(tmp)/etc/csh/login.d/ + install -d $(tmp)/etc/fish.d/ + install -d $(tmp)/usr/share/scripts/ + install -d $(tmp)/usr/share/doc/scripts/ + install -d $(tmp)/usr/lib/cgi-bin + install -d $(tmp)/DEBIAN + + install -m 755 csh-foo $(tmp)/etc/csh/login.d/ + install -m 755 envfoo $(tmp)/usr/bin/ + install -m 755 fish-foo $(tmp)/etc/fish.d/ + install -m 755 jruby-broken $(tmp)/usr/bin/ + install -m 755 perlfoo $(tmp)/usr/bin/ + install -m 755 rubyfoo $(tmp)/usr/bin/ +# This doesn't use "env" but should also trigger script-in-usr-share-doc + install -m 755 rubyfoo $(tmp)/usr/share/doc/scripts/ + install -m 755 make-foo $(tmp)/usr/bin/ + install -m 755 lefty-foo $(tmp)/usr/bin/ + install -m 4751 perlfoo $(tmp)/usr/bin/suidperlfoo2 + install -m 755 sh-broken $(tmp)/usr/bin/ + install -m 4555 suidperlfoo $(tmp)/usr/bin/ + install -m 755 tkfoo $(tmp)/usr/bin/ + install -m 755 wishfoo $(tmp)/usr/bin/ + install -m 644 xsession-test $(tmp)/etc/X11/Xsession.d/ + +# Permissions here aren't part of what's being tested, but let us exercise +# some other errors. + install -m 755 perl-bizarre-1 $(tmp)/usr/bin/ + install -m 750 perl-bizarre-2 $(tmp)/usr/bin/ + install -m 754 perl-bizarre-3 $(tmp)/usr/bin/ + install -m 705 guile-bizarre $(tmp)/usr/bin/ + +# First one should produce a warning; second one shouldn't. + + install -m 644 init-skeleton $(tmp)/etc/init.d/skeleton + install -m 755 init-no-lsb $(tmp)/etc/init.d/no-lsb + install -m 755 init-lsb-broken $(tmp)/etc/init.d/lsb-broken + install -m 755 init-lsb-other $(tmp)/etc/init.d/lsb-other + + install -m 755 phpfoo $(tmp)/usr/share/scripts/ + sed 's/php$$/php7.0/' phpfoo > $(tmp)/usr/share/scripts/php7.0foo + chmod 755 $(tmp)/usr/share/scripts/php7.0foo + + install -m 755 phpenvfoo $(tmp)/usr/share/scripts/ + sed 's/php$$/php7.0/' phpenvfoo > $(tmp)/usr/share/scripts/php7.0envfoo + chmod 755 $(tmp)/usr/share/scripts/php7.0envfoo + + echo "#!/usr/bin/perl" >> $(tmp)/usr/share/scripts/foobar.in + chmod 644 $(tmp)/usr/share/scripts/foobar.in + + touch $(tmp)/usr/share/scripts/mono.exe + chmod 755 $(tmp)/usr/share/scripts/mono.exe + + echo "#!/bin/sh" > $(tmp)/usr/share/scripts/foo\$$bar + chmod 755 $(tmp)/usr/share/scripts/foo\$$bar + + echo "#!/bin/sh" > $(tmp)/usr/lib/cgi-bin/cgi-script + chmod 755 $(tmp)/usr/lib/cgi-bin/cgi-script + + echo "#!/bin/sh" > $(tmp)/usr/bin/test.sh + chmod 755 $(tmp)/usr/bin/test.sh + + + dh_testroot # dummy to test missing debhelper dependency + + + install -m 644 debian/changelog $(tmp)/usr/share/doc/scripts/changelog.Debian + gzip -n -9 $(tmp)/usr/share/doc/scripts/changelog.Debian + install -m 644 debian/copyright $(tmp)/usr/share/doc/scripts/copyright + + install -m 644 debian/scripts.conffiles $(tmp)/DEBIAN/conffiles + install -m 755 debian/preinst $(tmp)/DEBIAN/preinst + install -m 755 debian/postinst $(tmp)/DEBIAN/postinst + install -m 755 debian/postrm $(tmp)/DEBIAN/postrm + touch $(tmp)/DEBIAN/prerm + chmod 755 $(tmp)/DEBIAN/prerm + dpkg-gencontrol -isp + dpkg --build $(tmp) .. + +binary: binary-arch binary-indep + +clean: + rm -rf debian/files $(tmp) debian/substvars + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/scripts.conffiles b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/scripts.conffiles new file mode 100644 index 00000000..01a371a6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/scripts.conffiles @@ -0,0 +1,6 @@ +/etc/init.d/lsb-broken +/etc/init.d/lsb-other +/etc/init.d/no-lsb +/etc/X11/Xsession.d/xsession-test +/etc/csh/login.d/csh-foo +/etc/fish.d/fish-foo diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/watch new file mode 100644 index 00000000..dba58153 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/debian/watch @@ -0,0 +1,8 @@ +# watch file with upstream version mangling + +version=2 +opts="uversionmangle=s/$/ds/" \ +http://qa.debian.org/watch/sf.php?project=foo scripts\.([\d.]+)\.tar\.gz debian uupdate + +version=3 +http://ftp.sf.net/foo/foo_bar(.+)\.Z 5 uupdate \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/envfoo b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/envfoo new file mode 100755 index 00000000..e005037f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/envfoo @@ -0,0 +1,4 @@ +#! /bin/env python + +if __name__ == '__main__': + print 'Hi there' diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/eval/hints new file mode 100644 index 00000000..5ab06227 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/eval/hints @@ -0,0 +1 @@ +scripts (binary): copyright-file-lacks-pointer-to-perl-license diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/fish-foo b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/fish-foo new file mode 100644 index 00000000..7f59139a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/fish-foo @@ -0,0 +1,2 @@ +#! /usr/bin/fish + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/guile-bizarre b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/guile-bizarre new file mode 100644 index 00000000..70e2c745 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/guile-bizarre @@ -0,0 +1,6 @@ +#! /bin/sh +# -*- scheme -*- +exec guile -s $0 $* +# Seen in the wild as build-guile-gtk in libguilegtk-1.2-dev (0.31-5.1) +# Tests script_is_evil_and_wrong +!# diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/init-lsb-broken b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/init-lsb-broken new file mode 100644 index 00000000..e4dfa92b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/init-lsb-broken @@ -0,0 +1,34 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: bad-lsb +# Required-Start: $local_fs $remote_fs +# Required-Stop: +# Default-Start: 1 2 3 4 5 +# Default-Stop: S 0 1 6 X +# Short-Description: Example Lintian initscript +# but this can't be continued +# Description: An example of a bad LSB section in an init script. +# This continuation is allowed (with spaces). +# This one is too (with tabs). +# X-Debian-Foo: Some unknown but valid keyword. +# Foo: Some invalid keyword. + +# Whoops, no terminating line. + +# And then we have this duplicate section. +### BEGIN INIT INFO +# Required-Start: This one doesn't count. +### END INIT INFO + +# Hey, look at all of those missing actions! But stop isn't missing. +case "$1" in + start|stop) + echo "Blah" + ;; + *) + echo "Usage: foo start" >&2 + exit 3 + ;; +esac + +: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/init-lsb-other b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/init-lsb-other new file mode 100644 index 00000000..adb47959 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/init-lsb-other @@ -0,0 +1,22 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: lsb-other +# Required-Start: $local_fs $remote_fs +# Required-Stop: $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Description: This is another LSB script test, which has a missing +# Short-Description. +### END INIT INFO + +case "$1" in + start|stop|restart|reload|force-reload) + echo "Blah" + ;; + *) + echo "Usage: foo start" >&2 + exit 3 + ;; +esac + +: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/init-no-lsb b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/init-no-lsb new file mode 100644 index 00000000..6b994dd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/init-no-lsb @@ -0,0 +1,17 @@ +#! /bin/sh +# No LSB section, but otherwise okay. (Well, the messages are bad, but we +# don't check that yet.) + +case "$1" in + start) + echo "Blah starting" + ;; + stop) + echo "Blah stopping" + ;; + restart|force-reload) + echo "Blah restarting" + ;; +esac + +: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/init-skeleton b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/init-skeleton new file mode 100644 index 00000000..c868508f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/init-skeleton @@ -0,0 +1,150 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: skeleton +# Required-Start: $local_fs $remote_fs +# Required-Stop: $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: S 0 1 6 +# Short-Description: Example Lintian initscript +# Description: This file should be used to construct scripts to be +# placed in /etc/init.d. +### END INIT INFO + +# Do NOT "set -e" + +# PATH should only include /usr/* if it runs after the mountnfs.sh script +PATH=/usr/sbin:/usr/bin:/sbin:/bin +DESC="Description of the service" +NAME=daemonexecutablename +DAEMON=/usr/sbin/$NAME +DAEMON_ARGS="--options args" +PIDFILE=/var/run/$NAME.pid +SCRIPTNAME=/etc/init.d/$NAME + +# Exit if the package is not installed +[ -x "$DAEMON" ] || exit 0 + +# Read configuration variable file if it is present +[ -r /etc/default/$NAME ] && . /etc/default/$NAME + +# Load the VERBOSE setting and other rcS variables +[ -f /etc/default/rcS ] && . /etc/default/rcS + +# Define LSB log_* functions. +# Depend on lsb-base (>= 3.0-6) to ensure that this file is present. +. /lib/lsb/init-functions + +# +# Function that starts the daemon/service +# +do_start() +{ + # Return + # 0 if daemon has been started + # 1 if daemon was already running + # 2 if daemon could not be started + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ + || return 1 + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ + $DAEMON_ARGS \ + || return 2 + # Add code here, if necessary, that waits for the process to be ready + # to handle requests from services started subsequently which depend + # on this one. As a last resort, sleep for some time. +} + +# +# Function that stops the daemon/service +# +do_stop() +{ + # Return + # 0 if daemon has been stopped + # 1 if daemon was already stopped + # 2 if daemon could not be stopped + # other if a failure occurred + start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME + RETVAL="$?" + [ "$RETVAL" = 2 ] && return 2 + # Wait for children to finish too if this is a daemon that forks + # and if the daemon is only ever run from this initscript. + # If the above conditions are not satisfied then add some other code + # that waits for the process to drop all resources that could be + # needed by services started subsequently. A last resort is to + # sleep for some time. + start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON + [ "$?" = 2 ] && return 2 + # Many daemons don't delete their pidfiles when they exit. + rm -f $PIDFILE + return "$RETVAL" +} + +# +# Function that sends a SIGHUP to the daemon/service +# +do_reload() { + # + # If the daemon can reload its configuration without + # restarting (for example, when it is sent a SIGHUP), + # then implement that here. + # + start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME + return 0 +} + +case "$1" in + start) + [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" + do_start + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + stop) + [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" + do_stop + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + #reload|force-reload) + # + # If do_reload() is not implemented then leave this commented out + # and leave 'force-reload' as an alias for 'restart'. + # + #log_daemon_msg "Reloading $DESC" "$NAME" + #do_reload + #log_end_msg $? + #;; + restart|force-reload) + # + # If the "reload" option is implemented then remove the + # 'force-reload' alias + # + log_daemon_msg "Restarting $DESC" "$NAME" + do_stop + case "$?" in + 0|1) + do_start + case "$?" in + 0) log_end_msg 0 ;; + 1) log_end_msg 1 ;; # Old process is still running + *) log_end_msg 1 ;; # Failed to start + esac + ;; + *) + # Failed to stop + log_end_msg 1 + ;; + esac + ;; + *) + #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 + exit 3 + ;; +esac + +: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/jruby-broken b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/jruby-broken new file mode 100644 index 00000000..56f574df --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/jruby-broken @@ -0,0 +1,2 @@ +#!/usr/bin/jruby +# There's no non-versioned jruby, so this should be an error. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/lefty-foo b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/lefty-foo new file mode 100644 index 00000000..52c003ed --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/lefty-foo @@ -0,0 +1,2 @@ +#!/usr/local/bin/lefty + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/make-foo b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/make-foo new file mode 100644 index 00000000..6b787b50 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/make-foo @@ -0,0 +1,3 @@ +#!/usr/bin/make + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/perl-bizarre-1 b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/perl-bizarre-1 new file mode 100644 index 00000000..fc632c85 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/perl-bizarre-1 @@ -0,0 +1,11 @@ +#! /bin/sh +eval '(exit $?0)' && eval 'PERL_BADLANG=x;export PERL_BADLANG;: \ +;exec perl -x -S -- "$0" ${1+"$@"};#'if 0; +eval 'setenv PERL_BADLANG x;exec perl -x -S -- "$0" $argv:q;#'.q+ +#!perl -w +package Htex::a2ping; $0=~/(.*)/s;unshift@INC,'.';do($1);die$@if$@;__END__+if !1; +# This Perl script was generated by JustLib2 at Wed Apr 23 09:14:13 2003. +# Don't touch/remove any lines above; http://www.inf.bme.hu/~pts/justlib + +# The above was actually seen in the wild and stresses the +# script_is_evil_and_wrong test. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/perl-bizarre-2 b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/perl-bizarre-2 new file mode 100644 index 00000000..afd9cfe5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/perl-bizarre-2 @@ -0,0 +1,7 @@ +#!/bin/sh +eval 'exec /usr/bin/perl -wS $0 ${1+"$@"}' + if $running_under_some_shell; + +# I'm someone following perlrun except without using the Perl #! line. +# Now something to choke bash. +while (<>) { if (/%#/) { print } } diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/perl-bizarre-3 b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/perl-bizarre-3 new file mode 100644 index 00000000..44baf75e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/perl-bizarre-3 @@ -0,0 +1,6 @@ +eval '(exit $?0)' && eval 'exec perl -wS $0 ${1+"$@"}' +& eval 'exec /usr/bin/perl -wS $0 $argv:q' + if $running_under_some_shell; + +# More utterly bizarreness from perlrun. This one even doesn't work if +# there's a valid #! line on the first line. I don't understand why.... diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/perlfoo b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/perlfoo new file mode 100644 index 00000000..5b27ed0b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/perlfoo @@ -0,0 +1,3 @@ +#! /usr/bin/perl + +print "Hello, World!"; diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/phpenvfoo b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/phpenvfoo new file mode 100644 index 00000000..cbbfb2eb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/phpenvfoo @@ -0,0 +1,7 @@ +#!/usr/bin/env php + + +Dumb PHP script + + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/phpfoo b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/phpfoo new file mode 100644 index 00000000..e0595e65 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/phpfoo @@ -0,0 +1,7 @@ +#!/usr/bin/php + + +Dumb PHP script + + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/rubyfoo b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/rubyfoo new file mode 100644 index 00000000..80246058 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/rubyfoo @@ -0,0 +1,4 @@ +#!/bin/ruby1.8 + +# Ok, that example is really pathetic, but until we have +# some better code in checks/scripts, it will do diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/sh-broken b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/sh-broken new file mode 100644 index 00000000..7b790744 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/sh-broken @@ -0,0 +1,2 @@ +#!/bin/sh +if fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/suidperlfoo b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/suidperlfoo new file mode 100644 index 00000000..bcbc471d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/suidperlfoo @@ -0,0 +1,3 @@ +#! /usr/bin/suidperl + +print "Hello, World!"; diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/tkfoo b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/tkfoo new file mode 100755 index 00000000..533595a5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/tkfoo @@ -0,0 +1,31 @@ +#!/bin/sh +# +# Insane amount of empty lines and comments + +# +# +# +# + +# +# + +# +# +# + +# +# + +# +# This line makes the next one a comment in Tcl \ +exec wish "$0" -- ${1+"$@"} + +# lintian should not check the following for syntax +# if it detects the line above correctly +# Code snippet taken from eTkTab + +if { [array names prefs keybindings] != "" } { + # Read in the file + array set unparsed_bindings [ read_settings_file $prefs(keybindings)] +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/wishfoo b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/wishfoo new file mode 100644 index 00000000..035c9ad1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/wishfoo @@ -0,0 +1,4 @@ +#!/usr/bin/wish +# +# This is not actually a wish script, here to force a test of wish +# dependencies. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/xsession-test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/xsession-test new file mode 100644 index 00000000..ca49d729 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/legacy-scripts/xsession-test @@ -0,0 +1,3 @@ +#!/bin/sh + +echo "Foo." diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/named-copyright-in-source/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/named-copyright-in-source/ORIGIN new file mode 100644 index 00000000..5a302c16 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/named-copyright-in-source/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/named-copyright-in-source + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/named-copyright-in-source/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/named-copyright-in-source/debian/changelog new file mode 100644 index 00000000..061b53ef --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/named-copyright-in-source/debian/changelog @@ -0,0 +1,17 @@ +named-copyright-in-source (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: named-copyright-in-source + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +named-copyright-in-source (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: named-copyright-in-source + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/named-copyright-in-source/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/named-copyright-in-source/debian/control new file mode 100644 index 00000000..dc4f14e1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/named-copyright-in-source/debian/control @@ -0,0 +1,17 @@ +Source: named-copyright-in-source +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: named-copyright-in-source +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Builds single package and uses d/$package.copyright as name + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/named-copyright-in-source/debian/named-copyright-in-source.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/named-copyright-in-source/debian/named-copyright-in-source.copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/named-copyright-in-source/debian/named-copyright-in-source.copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/named-copyright-in-source/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/named-copyright-in-source/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/named-copyright-in-source/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/named-copyright-in-source/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/named-copyright-in-source/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/named-copyright-in-source/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/named-copyright-in-source/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/named-copyright-in-source/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/named-copyright-in-source/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/named-copyright-in-source/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/named-copyright-in-source/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/named-copyright-in-source/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/named-copyright-in-source/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/named-copyright-in-source/eval/hints new file mode 100644 index 00000000..4000c74f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/named-copyright-in-source/eval/hints @@ -0,0 +1 @@ +named-copyright-in-source (source): named-copyright-for-single-installable [debian/named-copyright-in-source.copyright] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-missing/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-missing/ORIGIN new file mode 100644 index 00000000..63f1d512 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-missing/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/source-copyright-missing + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-missing/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-missing/debian/changelog new file mode 100644 index 00000000..4e4372c0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-missing/debian/changelog @@ -0,0 +1,17 @@ +source-copyright-missing (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-missing + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +source-copyright-missing (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-missing + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-missing/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-missing/debian/control new file mode 100644 index 00000000..978c8576 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-missing/debian/control @@ -0,0 +1,17 @@ +Source: source-copyright-missing +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: source-copyright-missing +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for missing copyright + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-missing/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-missing/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-missing/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-missing/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-missing/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-missing/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-missing/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-missing/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-missing/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-missing/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-missing/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-missing/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-missing/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-missing/eval/hints new file mode 100644 index 00000000..73ace179 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-missing/eval/hints @@ -0,0 +1,2 @@ +source-copyright-missing (source): no-debian-copyright-in-source +source-copyright-missing (binary): no-copyright-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-symlink/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-symlink/ORIGIN new file mode 100644 index 00000000..337ef1b1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-symlink/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/source-copyright-symlink + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-symlink/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-symlink/debian/changelog new file mode 100644 index 00000000..3fce671b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-symlink/debian/changelog @@ -0,0 +1,17 @@ +source-copyright-symlink (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-symlink + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +source-copyright-symlink (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-symlink + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-symlink/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-symlink/debian/control new file mode 100644 index 00000000..48671178 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-symlink/debian/control @@ -0,0 +1,17 @@ +Source: source-copyright-symlink +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: source-copyright-symlink +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for symlinked debian/copyright + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-symlink/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-symlink/debian/copyright new file mode 120000 index 00000000..a426f926 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-symlink/debian/copyright @@ -0,0 +1 @@ +source-copyright-symlink.copyright \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-symlink/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-symlink/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-symlink/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-symlink/debian/source-copyright-symlink.copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-symlink/debian/source-copyright-symlink.copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-symlink/debian/source-copyright-symlink.copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-symlink/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-symlink/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-symlink/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-symlink/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-symlink/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-symlink/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-symlink/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-symlink/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-symlink/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-symlink/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-symlink/eval/hints new file mode 100644 index 00000000..27b032ae --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-symlink/eval/hints @@ -0,0 +1 @@ +source-copyright-symlink (source): debian-copyright-is-symlink [debian/copyright] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-undefined/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-undefined/ORIGIN new file mode 100644 index 00000000..a27b6fe5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-undefined/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/source-copyright-undefined + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-undefined/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-undefined/debian/changelog new file mode 100644 index 00000000..badf6b75 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-undefined/debian/changelog @@ -0,0 +1,17 @@ +source-copyright-undefined (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-undefined + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +source-copyright-undefined (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-copyright-undefined + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-undefined/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-undefined/debian/control new file mode 100644 index 00000000..f0a0a716 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-undefined/debian/control @@ -0,0 +1,17 @@ +Source: source-copyright-undefined +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: source-copyright-undefined +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for fixme/todo/unknown + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-undefined/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-undefined/debian/copyright new file mode 100644 index 00000000..049fb78d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-undefined/debian/copyright @@ -0,0 +1,56 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Doohickey +Upstream-Contact: J. Random Hacker +Source: http://examples.com/doohickey/source/ + +Files: * +Copyright: 2014, somebody1 +License: Fixme + Fixme-license text + + +Files: debian/* +Copyright: 2014, somebody2 +License: unknown + Fixme + +Files: debian/a +Copyright: 2014, somebody2 +License: unknow + Fixme + +Files: debian/b +Copyright: 2014, somebody2 +License: todo + Fixme + +Files: debian/c +comment: some spacing +Copyright: 2014, somebody2 +License: - + Fixme + +Files: debian/d +comment: some spacing +Copyright: 2014, somebody2 +License: - + Fixme + +Files: debian/e +Comment: too many false positive with space +Copyright: 2014, somebody2 +License: undefined license + Fixme + +Files: debian/f +comment: some spacing +Copyright: 2014, somebody2 +License: undefined + Fixme + +Files: debian/g +comment: false positive +Copyright: 2014, somebody2 +License: common public license - v 1.0 + Fixme + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-undefined/debian/plus+file b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-undefined/debian/plus+file new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-undefined/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-undefined/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-undefined/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-undefined/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-undefined/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-undefined/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-undefined/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-undefined/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-undefined/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-undefined/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-undefined/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-undefined/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-undefined/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-undefined/eval/hints new file mode 100644 index 00000000..cff9e454 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/source-copyright-undefined/eval/hints @@ -0,0 +1 @@ +source-copyright-undefined (binary): spelling-error-in-copyright unknow unknown diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/ORIGIN new file mode 100644 index 00000000..e340b80e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/copyright/spelling-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/changelog new file mode 100644 index 00000000..8aa65df9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/changelog @@ -0,0 +1,13 @@ +spelling-general (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: spelling-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + * This line has a speling error. + - This line has the same speling error, but we should only + get one tag for it. + * Corrected spelling: abov -> above. + * Corrected typo: abov -> above. + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/control new file mode 100644 index 00000000..809e0fb8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/control @@ -0,0 +1,17 @@ +Source: spelling-general +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: spelling-general +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: General checks for spelling errors + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/copyright new file mode 100644 index 00000000..30cbe5c9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/copyright @@ -0,0 +1,21 @@ +This duplicate duplicate word should not trigger. (re. #897402) + +This is part of the testsuite of lintian. See the file debian/copyright +in the lintian source directory for more details. + +Insofar as this is copyrightable, it is: + + Copyright 2010 Russ Allbery + +This text should not generate a spelling error for "ment": + + computer software documentation," as such terms are used in + 48 C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Govern- + ment only as a commercial end item. Consistent with 48 C.F.R. + 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), + +But deafult is still a spelling error. + +This text should not generate a spelling error for the duplicate "a" (re. #844166) + + following Attribution Information: (a) a copyright notice including the name diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/doc-base b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/doc-base new file mode 100644 index 00000000..3839a9bd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/doc-base @@ -0,0 +1,9 @@ +Document: spelling-general +Title: Check for debian doc-base spelling errors +Author: Russ Allbery +Abstract: This control file exercises, picky, speling error checks for + Debian doc-base files, such as meta-package. +Section: Programming + +Format: text +Files: /usr/share/doc/spelling-general/copyright diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/patches/add-readme b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/patches/add-readme new file mode 100644 index 00000000..b1647ba1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/patches/add-readme @@ -0,0 +1,8 @@ +This is a deliberate speling error. duplicate + +duplicate + +--- upstream.orig/README ++++ upstream/README +@@ -0,0 +1 @@ ++Added by patch system. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/patches/nonrel b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/patches/nonrel new file mode 100644 index 00000000..48e77400 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/patches/nonrel @@ -0,0 +1,6 @@ +This is a deliberate speling error. (false positive; description mentions typo) + +--- upstream.orig/nonrel ++++ upstream/nonrel +@@ -0,0 +1 @@ ++Added by patch system. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/patches/series b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/patches/series new file mode 100644 index 00000000..0bfb03d6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/patches/series @@ -0,0 +1,3 @@ +add-readme +spelling +nonrel diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/patches/spelling b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/patches/spelling new file mode 100644 index 00000000..29b9cfd8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/patches/spelling @@ -0,0 +1,6 @@ +This is a deliberate speling error. (false positive; filename match) + +--- upstream.orig/spelling ++++ upstream/spelling +@@ -0,0 +1 @@ ++Added by patch system. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/eval/hints new file mode 100644 index 00000000..66eb2504 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/copyright/spelling-general/eval/hints @@ -0,0 +1 @@ +spelling-general (binary): spelling-error-in-copyright deafult default diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/ORIGIN new file mode 100644 index 00000000..a2637cf4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/debconf/debconf-config-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/changelog new file mode 100644 index 00000000..f8279b38 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/changelog @@ -0,0 +1,17 @@ +debconf-config-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debconf-config-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debconf-config-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debconf-config-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/config b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/config new file mode 100644 index 00000000..fdec12b8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/config @@ -0,0 +1,22 @@ +#!/bin/sh + +set -e + +# Forget to load the confmodule +# . /usr/share/debconf/confmodule + + +db_input low debconf/note-abuse +db_go + + +db_input unknown debconf/unknown-priority +db_go + +db_fset debconf/deprecated-default isdefault true + +db_input low debconf/deprecated-default +db_go + +db_input low debconf/translated +db_go diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/control new file mode 100644 index 00000000..1d883878 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/control @@ -0,0 +1,17 @@ +Source: debconf-config-general +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: debconf-config-general +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for various debconf config issues + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/po/POTFILES.in b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/po/POTFILES.in new file mode 100644 index 00000000..cef83a34 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] templates diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/po/da.po b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/po/da.po new file mode 100644 index 00000000..d659394f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/po/da.po @@ -0,0 +1,42 @@ +# Danish translations for PACKAGE package. +# Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# Niels Thykier , 2012. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-10-01 22:49+0200\n" +"PO-Revision-Date: 2012-07-23 23:08+0200\n" +"Last-Translator: Niels Thykier \n" +"Language-Team: Danish\n" +"Language: da\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. Type: error +#. Description +#: ../templates:1001 +msgid "Useless note" +msgstr "Ubrugelig note" + +#. Type: note +#. Description +#: ../templates:2001 +msgid "This is a note abuse" +msgstr "Dette er et note misbrug" + +#. Type: error +#. Description +#: ../templates:3001 +msgid "Invoked with unknown debconf priority" +msgstr "Kaldt med ukendt debconf prioritet" + +#. Type: boolean +#. Description +#: ../templates:4001 +msgid "Is this use deprecated?" +msgstr "Er denne brug forældet?" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/po/templates.pot b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/po/templates.pot new file mode 100644 index 00000000..21074215 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/po/templates.pot @@ -0,0 +1,42 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-10-01 22:49+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: error +#. Description +#: ../templates:1001 +msgid "Useless note" +msgstr "" + +#. Type: note +#. Description +#: ../templates:2001 +msgid "This is a note abuse" +msgstr "" + +#. Type: error +#. Description +#: ../templates:3001 +msgid "Invoked with unknown debconf priority" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:4001 +msgid "Is this use deprecated?" +msgstr "" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/postinst new file mode 100644 index 00000000..4d6cb4dc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/postinst @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e + +#DEBHELPER# + +. /usr/share/debconf/confmodule + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/templates b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/templates new file mode 100644 index 00000000..5097b3ac --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/templates @@ -0,0 +1,15 @@ +Template: debconf/translated +Type: error +_Description: Useless note + +Template: debconf/note-abuse +Type: note +_Description: This is a note abuse + +Template: debconf/unknown-priority +Type: error +_Description: Invoked with unknown debconf priority + +Template: debconf/deprecated-default +Type: boolean +_Description: Is this use deprecated? diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/eval/hints new file mode 100644 index 00000000..73b52904 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-general/eval/hints @@ -0,0 +1,4 @@ +debconf-config-general (binary): unknown-debconf-priority unknown [config:12] +debconf-config-general (binary): possible-debconf-note-abuse debconf/note-abuse [config:8] +debconf-config-general (binary): isdefault-flag-is-deprecated [config:15] +debconf-config-general (binary): config-does-not-load-confmodule [config] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-not-executable/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-not-executable/ORIGIN new file mode 100644 index 00000000..e410a2ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-not-executable/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/debconf/debconf-config-not-executable + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-not-executable/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-not-executable/debian/changelog new file mode 100644 index 00000000..e77b680d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-not-executable/debian/changelog @@ -0,0 +1,17 @@ +debconf-config-not-executable (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debconf-config-not-executable + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debconf-config-not-executable (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debconf-config-not-executable + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-not-executable/debian/config b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-not-executable/debian/config new file mode 100644 index 00000000..d429f9b4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-not-executable/debian/config @@ -0,0 +1,5 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-not-executable/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-not-executable/debian/control new file mode 100644 index 00000000..c2085b7f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-not-executable/debian/control @@ -0,0 +1,15 @@ +Source: debconf-config-not-executable +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), dpkg (<< 1.19.0) + +Package: debconf-config-not-executable +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for debian/config not being executable + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-not-executable/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-not-executable/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-not-executable/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-not-executable/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-not-executable/debian/rules new file mode 100755 index 00000000..558750be --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-not-executable/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f + +TMP=debian/$(shell dh_listpackages) + +%: + dh $@ + +override_dh_builddeb: + chmod 0644 "$(TMP)/DEBIAN/config" + dh_builddeb diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-not-executable/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-not-executable/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-not-executable/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-not-executable/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-not-executable/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-not-executable/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-not-executable/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-not-executable/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-not-executable/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-not-executable/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-not-executable/eval/hints new file mode 100644 index 00000000..e5b6aaa3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-config-not-executable/eval/hints @@ -0,0 +1,4 @@ +debconf-config-not-executable (binary): postinst-does-not-load-confmodule +debconf-config-not-executable (binary): no-debconf-templates +debconf-config-not-executable (binary): debconf-config-not-executable +debconf-config-not-executable (binary): control-file-has-bad-permissions config 0644 != 0755 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/ORIGIN new file mode 100644 index 00000000..4ee9ef60 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/debconf/debconf-is-not-registry + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/config-gen.pl b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/config-gen.pl new file mode 100644 index 00000000..e6588b71 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/config-gen.pl @@ -0,0 +1,31 @@ +#!/usr/bin/perl + +# Helper script to generate d/config from d/templates. +# It is just here to make sure all templates are "used". + +use strict; +use warnings; + +print < ) { + + if ($line =~ /^Template:\s*(\S+)\s*$/) { + + my $template = $1; + next + unless defined $template; + + print "db_input high $template || true\n"; + print "db_go\n\n"; + } +} + +exit 0; diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/changelog new file mode 100644 index 00000000..6a2c9ed8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/changelog @@ -0,0 +1,17 @@ +debconf-is-not-registry (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debconf-is-not-registry + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debconf-is-not-registry (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debconf-is-not-registry + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/config b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/config new file mode 100644 index 00000000..d55638c1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/config @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +db_input high debconf/translated || true +db_go + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/control new file mode 100644 index 00000000..f956c9f4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/control @@ -0,0 +1,17 @@ +Source: debconf-is-not-registry +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: debconf-is-not-registry +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for using debconf as a registry + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/install b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/install new file mode 100644 index 00000000..28c84172 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/install @@ -0,0 +1 @@ +script usr/share/lintian diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/po/POTFILES.in b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/po/POTFILES.in new file mode 100644 index 00000000..cef83a34 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] templates diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/po/da.po b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/po/da.po new file mode 100644 index 00000000..343c3e89 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/po/da.po @@ -0,0 +1,25 @@ +# Danish translations for PACKAGE package. +# Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# Niels Thykier , 2012. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-07-25 11:04+0200\n" +"PO-Revision-Date: 2012-07-23 23:08+0200\n" +"Last-Translator: Niels Thykier \n" +"Language-Team: Danish\n" +"Language: da\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. Type: error +#. Description +#: ../templates:1001 +msgid "Useless note" +msgstr "Ubrugelig note" + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/po/templates.pot b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/po/templates.pot new file mode 100644 index 00000000..fd4f94f5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/po/templates.pot @@ -0,0 +1,25 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-07-25 11:04+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: error +#. Description +#: ../templates:1001 +msgid "Useless note" +msgstr "" + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/postinst new file mode 100644 index 00000000..4d6cb4dc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/postinst @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e + +#DEBHELPER# + +. /usr/share/debconf/confmodule + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/templates b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/templates new file mode 100644 index 00000000..a45cfa37 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/templates @@ -0,0 +1,4 @@ +Template: debconf/translated +Type: error +_Description: Useless note + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/eval/hints new file mode 100644 index 00000000..117dfbac --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/eval/hints @@ -0,0 +1 @@ +debconf-is-not-registry (binary): debconf-is-not-a-registry [usr/share/lintian/script:3] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/gen-source.mk b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/gen-source.mk new file mode 100755 index 00000000..f6f5975f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/gen-source.mk @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +all: debian/config + +debian/config: debian/templates + perl config-gen.pl < $< > $@ + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/script b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/script new file mode 100755 index 00000000..3a05d3a8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-is-not-registry/script @@ -0,0 +1,6 @@ +#!/bin/sh + +. /usr/share/debconf/confmodule + +db_get debconf/translated +db_go diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/ORIGIN new file mode 100644 index 00000000..3e18712a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/debconf/debconf-maintscripts-deps + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/changelog new file mode 100644 index 00000000..acf68a29 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/changelog @@ -0,0 +1,17 @@ +debconf-maintscripts-deps (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debconf-maintscripts-deps + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debconf-maintscripts-deps (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debconf-maintscripts-deps + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/config b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/config new file mode 100644 index 00000000..9659eb3c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/config @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +db_get debconf/translated +db_go + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/control new file mode 100644 index 00000000..f99105f0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/control @@ -0,0 +1,17 @@ +Source: debconf-maintscripts-deps +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: debconf-maintscripts-deps +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for various debconf maintscripts and dep issues + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/po/POTFILES.in b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/po/POTFILES.in new file mode 100644 index 00000000..cef83a34 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] templates diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/po/da.po b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/po/da.po new file mode 100644 index 00000000..e7cceb38 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/po/da.po @@ -0,0 +1,24 @@ +# Danish translations for PACKAGE package. +# Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# Niels Thykier , 2012. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-07-23 23:07+0200\n" +"PO-Revision-Date: 2012-07-23 23:08+0200\n" +"Last-Translator: Niels Thykier \n" +"Language-Team: Danish\n" +"Language: da\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. Type: error +#. Description +#: ../templates:1001 +msgid "Useless note" +msgstr "Ubrugelig note" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/po/templates.pot b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/po/templates.pot new file mode 100644 index 00000000..3edd4a9b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/po/templates.pot @@ -0,0 +1,24 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-07-23 23:07+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: error +#. Description +#: ../templates:1001 +msgid "Useless note" +msgstr "" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/postinst new file mode 100644 index 00000000..df9df641 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/postinst @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +#DEBHELPER# + +db_input low debconf/translated +db_go + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/postrm b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/postrm new file mode 100644 index 00000000..5169df8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/postrm @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +#DEBHELPER# + +if [ -f /usr/share/debconf/confmodule.sh ] ; then + . /usr/share/debconf/confmodule.sh + # no debconf purging +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/preinst b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/preinst new file mode 100644 index 00000000..8d416969 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/preinst @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +db_get debconf/translated || true +db_go + +#DEBHELPER# + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/rules new file mode 100644 index 00000000..e1f0e1b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/rules @@ -0,0 +1,16 @@ +#!/usr/bin/make -f + +PKG=debian/$(shell dh_listpackages) + +%: + dh $@ + +override_dh_builddeb: + # Manually copy the scripts - otherwise debhelper with insert + # the "correct magic" in each of them. + cp -a debian/preinst debian/postinst debian/postrm "$(PKG)/DEBIAN" + chmod 0755 "$(PKG)/DEBIAN/preinst" "$(PKG)/DEBIAN/postinst" \ + "$(PKG)/DEBIAN/postrm" + sed -i '/#DEBHELPER#/ d' "$(PKG)/DEBIAN/preinst" \ + "$(PKG)/DEBIAN/postinst" "$(PKG)/DEBIAN/postrm" + dh_builddeb diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/templates b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/templates new file mode 100644 index 00000000..a45cfa37 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/templates @@ -0,0 +1,4 @@ +Template: debconf/translated +Type: error +_Description: Useless note + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/eval/hints new file mode 100644 index 00000000..3c1fb671 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-maintscripts-deps/eval/hints @@ -0,0 +1,5 @@ +debconf-maintscripts-deps (binary): postrm-does-not-purge-debconf [postrm] +debconf-maintscripts-deps (binary): postinst-uses-db-input [postinst:5] +debconf-maintscripts-deps (binary): postinst-does-not-load-confmodule [postinst] +debconf-maintscripts-deps (binary): missing-debconf-dependency-for-preinst +debconf-maintscripts-deps (binary): loads-obsolete-confmodule /usr/share/debconf/confmodule.sh [postrm:5] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/ORIGIN new file mode 100644 index 00000000..4b932f68 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/debconf/debconf-missing-dep + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/config-gen.pl b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/config-gen.pl new file mode 100644 index 00000000..e6588b71 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/config-gen.pl @@ -0,0 +1,31 @@ +#!/usr/bin/perl + +# Helper script to generate d/config from d/templates. +# It is just here to make sure all templates are "used". + +use strict; +use warnings; + +print < ) { + + if ($line =~ /^Template:\s*(\S+)\s*$/) { + + my $template = $1; + next + unless defined $template; + + print "db_input high $template || true\n"; + print "db_go\n\n"; + } +} + +exit 0; diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/changelog new file mode 100644 index 00000000..5c4397a0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/changelog @@ -0,0 +1,17 @@ +debconf-missing-dep (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debconf-missing-dep + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debconf-missing-dep (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debconf-missing-dep + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/config b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/config new file mode 100644 index 00000000..d55638c1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/config @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +db_input high debconf/translated || true +db_go + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/control new file mode 100644 index 00000000..4f7143b4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/control @@ -0,0 +1,17 @@ +Source: debconf-missing-dep +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: debconf-missing-dep +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for missing debconf dependency + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/po/POTFILES.in b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/po/POTFILES.in new file mode 100644 index 00000000..cef83a34 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] templates diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/po/da.po b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/po/da.po new file mode 100644 index 00000000..343c3e89 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/po/da.po @@ -0,0 +1,25 @@ +# Danish translations for PACKAGE package. +# Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# Niels Thykier , 2012. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-07-25 11:04+0200\n" +"PO-Revision-Date: 2012-07-23 23:08+0200\n" +"Last-Translator: Niels Thykier \n" +"Language-Team: Danish\n" +"Language: da\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. Type: error +#. Description +#: ../templates:1001 +msgid "Useless note" +msgstr "Ubrugelig note" + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/po/templates.pot b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/po/templates.pot new file mode 100644 index 00000000..fd4f94f5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/po/templates.pot @@ -0,0 +1,25 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-07-25 11:04+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: error +#. Description +#: ../templates:1001 +msgid "Useless note" +msgstr "" + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/postinst new file mode 100644 index 00000000..4d6cb4dc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/postinst @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e + +#DEBHELPER# + +. /usr/share/debconf/confmodule + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/rules new file mode 100644 index 00000000..f8e47a0b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_gencontrol: + sed -i '/^misc:Depends=/ d' debian/*substvars + dh_gencontrol diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/templates b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/templates new file mode 100644 index 00000000..a45cfa37 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/templates @@ -0,0 +1,4 @@ +Template: debconf/translated +Type: error +_Description: Useless note + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/eval/hints new file mode 100644 index 00000000..4f4dcf5d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/eval/hints @@ -0,0 +1 @@ +debconf-missing-dep (binary): missing-debconf-dependency diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/gen-source.mk b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/gen-source.mk new file mode 100755 index 00000000..f6f5975f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-missing-dep/gen-source.mk @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +all: debian/config + +debian/config: debian/templates + perl config-gen.pl < $< > $@ + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-no-templates/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-no-templates/ORIGIN new file mode 100644 index 00000000..7d5a01e2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-no-templates/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/debconf/debconf-no-templates + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-no-templates/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-no-templates/debian/changelog new file mode 100644 index 00000000..ace658aa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-no-templates/debian/changelog @@ -0,0 +1,17 @@ +debconf-no-templates (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debconf-no-templates + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debconf-no-templates (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debconf-no-templates + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-no-templates/debian/config b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-no-templates/debian/config new file mode 100644 index 00000000..6f264ea6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-no-templates/debian/config @@ -0,0 +1,6 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-no-templates/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-no-templates/debian/control new file mode 100644 index 00000000..50ba2ae8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-no-templates/debian/control @@ -0,0 +1,17 @@ +Source: debconf-no-templates +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: debconf-no-templates +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for missing debconf templates + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-no-templates/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-no-templates/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-no-templates/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-no-templates/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-no-templates/debian/postinst new file mode 100644 index 00000000..0ae7a184 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-no-templates/debian/postinst @@ -0,0 +1,7 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +#DEBHELPER# diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-no-templates/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-no-templates/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-no-templates/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-no-templates/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-no-templates/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-no-templates/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-no-templates/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-no-templates/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-no-templates/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-no-templates/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-no-templates/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-no-templates/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-no-templates/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-no-templates/eval/hints new file mode 100644 index 00000000..dac69aa4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-no-templates/eval/hints @@ -0,0 +1 @@ +debconf-no-templates (binary): no-debconf-templates diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/ORIGIN new file mode 100644 index 00000000..64e78036 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/debconf/debconf-syntax-error + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/debian/changelog new file mode 100644 index 00000000..dadbbb5c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/debian/changelog @@ -0,0 +1,17 @@ +debconf-syntax-error (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debconf-syntax-error + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debconf-syntax-error (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debconf-syntax-error + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/debian/config b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/debian/config new file mode 100644 index 00000000..6f264ea6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/debian/config @@ -0,0 +1,6 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/debian/control new file mode 100644 index 00000000..6c8587c5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/debian/control @@ -0,0 +1,17 @@ +Source: debconf-syntax-error +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: debconf-syntax-error +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for syntax error in debconf files + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/debian/postinst new file mode 100644 index 00000000..4d6cb4dc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/debian/postinst @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e + +#DEBHELPER# + +. /usr/share/debconf/confmodule + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/debian/templates b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/debian/templates new file mode 100644 index 00000000..adf2ecec --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/debian/templates @@ -0,0 +1,3 @@ +Template: debconf/syntax-error +Type: note +Description whoops, I forgot a colon diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/eval/hints new file mode 100644 index 00000000..d48999c7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-syntax-error/eval/hints @@ -0,0 +1,2 @@ +debconf-syntax-error (source): syntax-error-in-debconf-template Cannot parse line 3: Description whoops, I forgot a colon [debian/templates] +debconf-syntax-error (binary): syntax-error-in-debconf-template Cannot parse line 3: Description whoops, I forgot a colon [templates] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/ORIGIN new file mode 100644 index 00000000..153bfc5b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/debconf/debconf-templates-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/config-gen.pl b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/config-gen.pl new file mode 100644 index 00000000..e6588b71 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/config-gen.pl @@ -0,0 +1,31 @@ +#!/usr/bin/perl + +# Helper script to generate d/config from d/templates. +# It is just here to make sure all templates are "used". + +use strict; +use warnings; + +print < ) { + + if ($line =~ /^Template:\s*(\S+)\s*$/) { + + my $template = $1; + next + unless defined $template; + + print "db_input high $template || true\n"; + print "db_go\n\n"; + } +} + +exit 0; diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/changelog new file mode 100644 index 00000000..86003062 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/changelog @@ -0,0 +1,17 @@ +debconf-templates-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debconf-templates-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debconf-templates-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debconf-templates-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/config b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/config new file mode 100644 index 00000000..cfb96e3e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/config @@ -0,0 +1,72 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +db_input high debconf/translated || true +db_go + +db_input high debconf/unsplit-choices || true +db_go + +db_input high debconf-malformed-template || true +db_go + +db_input high debconf/no-type || true +db_go + +db_input high debconf/unknown-type || true +db_go + +db_input high debconf/boolean-bogus-default || true +db_go + +db_input high debconf/select-boolean-choice || true +db_go + +db_input high debconf/select-empty-trans-choices || true +db_go + +db_input high debconf/select-without-choices || true +db_go + +db_input high debconf/no-description || true +db_go + +db_input high debconf/duplicate-long-desc || true +db_go + +db_input high debconf/unknown-field || true +db_go + +db_input high debconf/malformed-prompt || true +db_go + +db_input high debconf/imperative-select || true +db_go + +db_input high debconf/malformed-question || true +db_go + +db_input high debconf/question-in-extended || true +db_go + +db_input high debconf/malformed-note-title || true +db_go + +db_input high debconf/too-long-short-desc || true +db_go + +db_input high debconf/first-person || true +db_go + +db_input high debconf/assumption || true +db_go + +db_input high debconf/5-green-bottles-on-the-wall || true +db_go + +db_input high debconf/entropy-type || true +db_go + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/control new file mode 100644 index 00000000..8788d39d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/control @@ -0,0 +1,16 @@ +Source: debconf-templates-general +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no + +Package: debconf-templates-general +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, cdebconf +Description: Test for various debconf template issues + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/po/POTFILES.in b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/po/POTFILES.in new file mode 100644 index 00000000..cef83a34 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] templates diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/po/en.po b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/po/en.po new file mode 100644 index 00000000..07349228 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/po/en.po @@ -0,0 +1,241 @@ +# English translations for PACKAGE package. +# Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# Niels Thykier , 2012. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-01 22:34+0000\n" +"PO-Revision-Date: 2012-10-01 22:54+0200\n" +"Last-Translator: Niels Thykier \n" +"Language-Team: English\n" +"Language: en_US\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. Type: error +#. Description +#: ../templates:1001 +msgid "Useless note" +msgstr "Useless note" + +#. Type: select +#. Choices +#: ../templates:2001 +msgid "left, right, up, down" +msgstr "left, right, up, down" + +#. Type: select +#. Description +#: ../templates:2002 +msgid "Pick the odd one out" +msgstr "Pick the odd one out" + +#. Type: text +#. Description +#: ../templates:3001 +msgid "Missing template field." +msgstr "Missing template field." + +#. Type: boolean +#. Description +#: ../templates:4001 +msgid "Is this a bad template?" +msgstr "Is this a bad template?" + +#. Type: boolean +#. Description +#: ../templates:5001 +msgid "Missing type" +msgstr "Missing type" + +#. Type: lintian +#. Description +#: ../templates:6001 +msgid "Template with unknown type" +msgstr "Template with unknown type" + +#. Type: boolean +#. Description +#: ../templates:7001 +msgid "How do you like the default?" +msgstr "How do you like the default?" + +#. Type: boolean +#. Description +#: ../templates:7001 +msgid "On a scale of \"false\" to \"true\"." +msgstr "On a scale of \"false\" to \"true\"." + +#. Type: select +#. Description +#: ../templates:8001 +msgid "A boolean type would have been better" +msgstr "A boolean type would have been better" + +#. Type: select +#. Description +#: ../templates:9001 +msgid "Preference" +msgstr "Preference" + +#. Type: select +#. Description +#: ../templates:10001 +msgid "Missing a Choices field" +msgstr "Missing a Choices field" + +#. Type: error +#. Description +#. Type: error +#. Description +#: ../templates:12001 +msgid "Duplicate long description" +msgstr "Duplicate long description" + +#. Type: boolean +#. Description +#: ../templates:13001 +msgid "Is the field below unknown?" +msgstr "Is the field below unknown?" + +#. Type: string +#. Description +#: ../templates:14001 +msgid "What is the name of this package checker:" +msgstr "What is the name of this package checker:" + +#. Type: select +#. Description +#: ../templates:15001 +msgid "Select either x or y" +msgstr "Select either x or y" + +#. Type: boolean +#. Description +#: ../templates:16001 +msgid "Lintian is the best!" +msgstr "Lintian is the best!" + +#. Type: boolean +#. Description +#: ../templates:17001 +msgid "Do you like sakana?" +msgstr "Do you like sakana?" + +#. Type: boolean +#. Description +#: ../templates:17001 +msgid "Or do you prefer sake?" +msgstr "Or do you prefer sake?" + +#. Type: note +#. Description +#: ../templates:18001 +msgid "Aren't you tired of all these debconf prompts?" +msgstr "Aren't you tired of all these debconf prompts?" + +#. Type: boolean +#. Description +#: ../templates:19001 +msgid "" +"This template has a very long short description, is that what you call an " +"oxymoron?" +msgstr "" +"This template has a very long short description, is that what you call an " +"oxymoron?" + +#. Type: select +#. Description +#: ../templates:20001 +msgid "I think Lintian is the best" +msgstr "I think Lintian is the best" + +#. Type: boolean +#. Description +#: ../templates:21001 +msgid "Do you like Lintian?" +msgstr "Do you like Lintian?" + +#. Type: boolean +#. Description +#: ../templates:21001 +msgid "Pick \"yes\" if you do." +msgstr "Pick \"yes\" if you do." + +#. Type: string +#. Description +#: ../templates:22001 +msgid "Name the title of this song:" +msgstr "Name the title of this song:" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Five green bottles sitting on the wall, Five green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be four " +"green bottles sitting on the wall." +msgstr "" +"Five green bottles sitting on the wall, Five green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be four " +"green bottles sitting on the wall." + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Four green bottles sitting on the wall, Four green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be three " +"green bottles sitting on the wall." +msgstr "" +"Four green bottles sitting on the wall, Four green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be three " +"green bottles sitting on the wall." + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Three green bottles sitting on the wall, Three green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be two " +"green bottles sitting on the wall." +msgstr "" +"Three green bottles sitting on the wall, Three green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be two " +"green bottles sitting on the wall." + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Two green bottles sitting on the wall, Two green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be one " +"green bottle sitting on the wall." +msgstr "" +"Two green bottles sitting on the wall, Two green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be one " +"green bottle sitting on the wall." + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"One green bottle sitting on the wall, One green bottle sitting on the wall, " +"And if one green bottle should accidentally fall, There'll be no green " +"bottles sitting on the wall." +msgstr "" +"One green bottle sitting on the wall, One green bottle sitting on the wall, " +"And if one green bottle should accidentally fall, There'll be no green " +"bottles sitting on the wall." + +#. Type: entropy +#. Description +#: ../templates:23001 +#| msgid "Template with unknown type" +msgid "Template with entropy type" +msgstr "Template with unknown type" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/po/en_US.po b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/po/en_US.po new file mode 100644 index 00000000..450a03ca --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/po/en_US.po @@ -0,0 +1,223 @@ +# English translations for PACKAGE package. +# Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# Niels Thykier , 2012. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-01 22:34+0000\n" +"PO-Revision-Date: 2012-10-01 22:54+0200\n" +"Last-Translator: Russ Allbery \n" +"Language-Team: English \n" +"Language: en_US\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. Type: error +#. Description +#: ../templates:1001 +msgid "Useless note" +msgstr "" + +#. Type: select +#. Choices +#: ../templates:2001 +msgid "left, right, up, down" +msgstr "" + +#. Type: select +#. Description +#: ../templates:2002 +msgid "Pick the odd one out" +msgstr "" + +#. Type: text +#. Description +#: ../templates:3001 +msgid "Missing template field." +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:4001 +msgid "Is this a bad template?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:5001 +msgid "Missing type" +msgstr "" + +#. Type: lintian +#. Description +#: ../templates:6001 +msgid "Template with unknown type" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:7001 +msgid "How do you like the default?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:7001 +msgid "On a scale of \"false\" to \"true\"." +msgstr "" + +#. Type: select +#. Description +#: ../templates:8001 +msgid "A boolean type would have been better" +msgstr "" + +#. Type: select +#. Description +#: ../templates:9001 +msgid "Preference" +msgstr "" + +#. Type: select +#. Description +#: ../templates:10001 +msgid "Missing a Choices field" +msgstr "" + +#. Type: error +#. Description +#. Type: error +#. Description +#: ../templates:12001 +msgid "Duplicate long description" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:13001 +msgid "Is the field below unknown?" +msgstr "" + +#. Type: string +#. Description +#: ../templates:14001 +msgid "What is the name of this package checker:" +msgstr "" + +#. Type: select +#. Description +#: ../templates:15001 +msgid "Select either x or y" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:16001 +msgid "Lintian is the best!" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:17001 +msgid "Do you like sakana?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:17001 +msgid "Or do you prefer sake?" +msgstr "" + +#. Type: note +#. Description +#: ../templates:18001 +msgid "Aren't you tired of all these debconf prompts?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:19001 +msgid "" +"This template has a very long short description, is that what you call an " +"oxymoron?" +msgstr "" + +#. Type: select +#. Description +#: ../templates:20001 +msgid "I think Lintian is the best" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:21001 +msgid "Do you like Lintian?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:21001 +msgid "Pick \"yes\" if you do." +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "Name the title of this song:" +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Five green bottles sitting on the wall, Five green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be four " +"green bottles sitting on the wall." +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Four green bottles sitting on the wall, Four green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be three " +"green bottles sitting on the wall." +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Three green bottles sitting on the wall, Three green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be two " +"green bottles sitting on the wall." +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Two green bottles sitting on the wall, Two green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be one " +"green bottle sitting on the wall." +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"One green bottle sitting on the wall, One green bottle sitting on the wall, " +"And if one green bottle should accidentally fall, There'll be no green " +"bottles sitting on the wall." +msgstr "" + +#. Type: entropy +#. Description +#: ../templates:23001 +msgid "Template with entropy type" +msgstr "" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/po/templates.pot b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/po/templates.pot new file mode 100644 index 00000000..b7f5a7b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/po/templates.pot @@ -0,0 +1,223 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-01 22:34+0000\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: error +#. Description +#: ../templates:1001 +msgid "Useless note" +msgstr "" + +#. Type: select +#. Choices +#: ../templates:2001 +msgid "left, right, up, down" +msgstr "" + +#. Type: select +#. Description +#: ../templates:2002 +msgid "Pick the odd one out" +msgstr "" + +#. Type: text +#. Description +#: ../templates:3001 +msgid "Missing template field." +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:4001 +msgid "Is this a bad template?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:5001 +msgid "Missing type" +msgstr "" + +#. Type: lintian +#. Description +#: ../templates:6001 +msgid "Template with unknown type" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:7001 +msgid "How do you like the default?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:7001 +msgid "On a scale of \"false\" to \"true\"." +msgstr "" + +#. Type: select +#. Description +#: ../templates:8001 +msgid "A boolean type would have been better" +msgstr "" + +#. Type: select +#. Description +#: ../templates:9001 +msgid "Preference" +msgstr "" + +#. Type: select +#. Description +#: ../templates:10001 +msgid "Missing a Choices field" +msgstr "" + +#. Type: error +#. Description +#. Type: error +#. Description +#: ../templates:12001 +msgid "Duplicate long description" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:13001 +msgid "Is the field below unknown?" +msgstr "" + +#. Type: string +#. Description +#: ../templates:14001 +msgid "What is the name of this package checker:" +msgstr "" + +#. Type: select +#. Description +#: ../templates:15001 +msgid "Select either x or y" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:16001 +msgid "Lintian is the best!" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:17001 +msgid "Do you like sakana?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:17001 +msgid "Or do you prefer sake?" +msgstr "" + +#. Type: note +#. Description +#: ../templates:18001 +msgid "Aren't you tired of all these debconf prompts?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:19001 +msgid "" +"This template has a very long short description, is that what you call an " +"oxymoron?" +msgstr "" + +#. Type: select +#. Description +#: ../templates:20001 +msgid "I think Lintian is the best" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:21001 +msgid "Do you like Lintian?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:21001 +msgid "Pick \"yes\" if you do." +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "Name the title of this song:" +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Five green bottles sitting on the wall, Five green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be four " +"green bottles sitting on the wall." +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Four green bottles sitting on the wall, Four green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be three " +"green bottles sitting on the wall." +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Three green bottles sitting on the wall, Three green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be two " +"green bottles sitting on the wall." +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Two green bottles sitting on the wall, Two green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be one " +"green bottle sitting on the wall." +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"One green bottle sitting on the wall, One green bottle sitting on the wall, " +"And if one green bottle should accidentally fall, There'll be no green " +"bottles sitting on the wall." +msgstr "" + +#. Type: entropy +#. Description +#: ../templates:23001 +msgid "Template with entropy type" +msgstr "" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/postinst new file mode 100644 index 00000000..4d6cb4dc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/postinst @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e + +#DEBHELPER# + +. /usr/share/debconf/confmodule + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/templates b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/templates new file mode 100644 index 00000000..46ca1843 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/templates @@ -0,0 +1,124 @@ +Template: debconf/translated +Type: error +_Description: Useless note + +Template: debconf/unsplit-choices +Type: select +_Choices: left, right, up, down +_Description: Pick the odd one out + +Type: text +_Description: Missing template field. + +Template: debconf-malformed-template +Type: boolean +_Description: Is this a bad template? + +Template: debconf/no-type +_Description: Missing type + +Template: debconf/unknown-type +Type: lintian +_Description: Template with unknown type + +Template: debconf/boolean-bogus-default +Type: boolean +Default: lintian +_Description: How do you like the default? + On a scale of "false" to "true". + +Template: debconf/select-boolean-choice +Type: select +Choices: yes, no +_Description: A boolean type would have been better + +Template: debconf/select-empty-trans-choices +Type: select +Choices: sakana, sake +Choices-Da: +_Description: Preference + +Template: debconf/select-without-choices +Type: select +_Description: Missing a Choices field + +Template: debconf/no-description +Type: error + +Template: debconf/duplicate-long-desc +Type: error +_Description: Duplicate long description + Duplicate long description + +Template: debconf/unknown-field +Type: boolean +_Description: Is the field below unknown? +Unknown-field: yes, it is. + +Template: debconf/malformed-prompt +Type: string +_Description: What is the name of this package checker: + +Template: debconf/imperative-select +Type: select +Choices: x,y +_Description: Select either x or y + +Template: debconf/malformed-question +Type: boolean +_Description: Lintian is the best! + +Template: debconf/question-in-extended +Type: boolean +_Description: Do you like sakana? + Or do you prefer sake? + +Template: debconf/malformed-note-title +Type: note +_Description: Aren't you tired of all these debconf prompts? + +Template: debconf/too-long-short-desc +Type: boolean +_Description: This template has a very long short description, is that what you call an oxymoron? + +Template: debconf/first-person +Type: select +Choices: lintian, no-lintian +_Description: I think Lintian is the best + +Template: debconf/assumption +Type: boolean +_Description: Do you like Lintian? + Pick "yes" if you do. + +Template: debconf/5-green-bottles-on-the-wall +Type: string +_Description: Name the title of this song: + Five green bottles sitting on the wall, + Five green bottles sitting on the wall, + And if one green bottle should accidentally fall, + There'll be four green bottles sitting on the wall. + . + Four green bottles sitting on the wall, + Four green bottles sitting on the wall, + And if one green bottle should accidentally fall, + There'll be three green bottles sitting on the wall. + . + Three green bottles sitting on the wall, + Three green bottles sitting on the wall, + And if one green bottle should accidentally fall, + There'll be two green bottles sitting on the wall. + . + Two green bottles sitting on the wall, + Two green bottles sitting on the wall, + And if one green bottle should accidentally fall, + There'll be one green bottle sitting on the wall. + . + One green bottle sitting on the wall, + One green bottle sitting on the wall, + And if one green bottle should accidentally fall, + There'll be no green bottles sitting on the wall. + +Template: debconf/entropy-type +Type: entropy +_Description: Template with entropy type diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/eval/hints new file mode 100644 index 00000000..908230a9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/eval/hints @@ -0,0 +1,22 @@ +debconf-templates-general (source): template-uses-unsplit-choices debconf/unsplit-choices [debian/templates:7] +debconf-templates-general (binary): using-question-in-extended-description-in-templates debconf/question-in-extended [templates:91] +debconf-templates-general (binary): using-imperative-form-in-templates debconf/imperative-select [templates:81] +debconf-templates-general (binary): using-first-person-in-templates debconf/first-person [templates:109] +debconf-templates-general (binary): unknown-template-type lintian [templates:27] +debconf-templates-general (binary): unknown-field-in-templates debconf/unknown-field Unknown-field [templates:71] +debconf-templates-general (binary): too-long-short-description-in-templates debconf/too-long-short-desc [templates:103] +debconf-templates-general (binary): too-long-extended-description-in-templates debconf/5-green-bottles-on-the-wall [templates:121] +debconf-templates-general (binary): select-without-choices debconf/select-without-choices [templates:52] +debconf-templates-general (binary): select-with-boolean-choices debconf/select-boolean-choice [templates:41] +debconf-templates-general (binary): no-template-type debconf/no-type [templates:22] +debconf-templates-general (binary): no-template-name [templates:13] +debconf-templates-general (binary): no-template-description debconf/no-description [templates:57] +debconf-templates-general (binary): mismatch-translated-choices debconf/select-empty-trans-choices Choices-Da [templates:47] +debconf-templates-general (binary): malformed-title-in-templates debconf/malformed-note-title [templates:98] +debconf-templates-general (binary): malformed-template-name debconf-malformed-template [templates:17] +debconf-templates-general (binary): malformed-question-in-templates debconf/malformed-question [templates:86] +debconf-templates-general (binary): malformed-prompt-in-templates debconf/malformed-prompt [templates:75] +debconf-templates-general (binary): making-assumptions-about-interfaces-in-templates debconf/assumption [templates:114] +debconf-templates-general (binary): empty-translated-choices debconf/select-empty-trans-choices Choices-Da [templates:47] +debconf-templates-general (binary): duplicate-long-description-in-template debconf/duplicate-long-desc [templates:62] +debconf-templates-general (binary): boolean-template-has-bogus-default debconf/boolean-bogus-default lintian [templates:33] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/gen-source.mk b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/gen-source.mk new file mode 100755 index 00000000..f6f5975f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-templates-general/gen-source.mk @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +all: debian/config + +debian/config: debian/templates + perl config-gen.pl < $< > $@ + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-traversal/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-traversal/ORIGIN new file mode 100644 index 00000000..ec4435ff --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-traversal/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/debconf/debconf-traversal + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-traversal/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-traversal/debian/changelog new file mode 100644 index 00000000..63d7b2bc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-traversal/debian/changelog @@ -0,0 +1,17 @@ +debconf-traversal (1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debconf-traversal + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debconf-traversal (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debconf-traversal + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-traversal/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-traversal/debian/control new file mode 100644 index 00000000..84a51d76 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-traversal/debian/control @@ -0,0 +1,17 @@ +Source: debconf-traversal +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: debconf-traversal +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for traversal issues via debconf templates + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-traversal/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-traversal/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-traversal/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-traversal/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-traversal/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-traversal/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-traversal/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-traversal/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-traversal/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-traversal/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-traversal/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-traversal/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-traversal/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-traversal/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-traversal/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-traversal/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/debconf-traversal/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/ORIGIN new file mode 100644 index 00000000..dafc6c55 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/debconf/legacy-debconf + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/changelog new file mode 100644 index 00000000..1aa50be8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/changelog @@ -0,0 +1,6 @@ +debconf (1~rc1) unstable; urgency=low + + * Initial Release + * Changelog line with exactly 80 characters which tests the line-too-long tag. + + -- Lintian Maintainers Wed, 3 May 2006 18:07:19 -0500 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/control new file mode 100644 index 00000000..37b76641 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/control @@ -0,0 +1,52 @@ +Source: debconf +Section: utils +Priority: optional +Build-Depends: debhelper-compat (= 14) +Maintainer: Lintian Maintainers +Standards-Version: 3.7.2 + +Package: debconf-test +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (dummy) + +Package: debconf-test-noscripts +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (noscripts) + Package missing postinst/postrm/config. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: debconf-test-preinst +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (preinst) + Package uses debconf only in preinst. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: debconf-test-postinst +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (postinst) + Package uses debconf only in postinst. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: debconf-udeb +Section: debian-installer +XC-Package-Type: udeb +XB-Installer-Menu-Item: 100 +Architecture: any +Depends: ${shlibs:Depends} +Description: Test udeb package for the debconf checks of lintian (dummy) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/copyright new file mode 100644 index 00000000..84843ee3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/copyright @@ -0,0 +1,10 @@ +Copyright (C) 2004 Frank Lichtenheld + +Test for really old FSF address: + +Free Software Foundation, Inc., 675 Mass Ave, Cambridge, +MA 02139, USA. + +Test for a dh-make boilerplate: +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test-noscripts.templates b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test-noscripts.templates new file mode 100644 index 00000000..93f80713 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test-noscripts.templates @@ -0,0 +1,3 @@ +Template: debconf/test +Type: text +_description: Foo bar (1) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test-postinst.postinst b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test-postinst.postinst new file mode 100644 index 00000000..56ab8712 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test-postinst.postinst @@ -0,0 +1,10 @@ +#!/bin/sh +set -e + +. /usr/share/debconf/confmodule + +db_input medium debconf/test + +#DEBHELPER# + +true diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test-postinst.postrm b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test-postinst.postrm new file mode 100644 index 00000000..cbf5e3b2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test-postinst.postrm @@ -0,0 +1,7 @@ +#!/bin/sh +set -e +if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_purge +fi +#DEBHELPER# diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test-postinst.templates b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test-postinst.templates new file mode 100644 index 00000000..2a2a8ab6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test-postinst.templates @@ -0,0 +1,3 @@ +Template: debconf/test +Type: text +_description: Enter something: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test-preinst.postrm b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test-preinst.postrm new file mode 100644 index 00000000..cbf5e3b2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test-preinst.postrm @@ -0,0 +1,7 @@ +#!/bin/sh +set -e +if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_purge +fi +#DEBHELPER# diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test-preinst.preinst b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test-preinst.preinst new file mode 100644 index 00000000..bf6f0749 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test-preinst.preinst @@ -0,0 +1,13 @@ +#!/bin/sh +set -e + +# Obsolete name for the confmodule +. /usr/share/debconf/confmodule.sh + +. /usr/share/debconf/confmodule + +db_input medium debconf/test + +#DEBHELPER# + +true diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test-preinst.templates b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test-preinst.templates new file mode 100644 index 00000000..2a2a8ab6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test-preinst.templates @@ -0,0 +1,3 @@ +Template: debconf/test +Type: text +_description: Enter something: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test.config b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test.config new file mode 100644 index 00000000..9e32d06f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test.config @@ -0,0 +1,24 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +db_settitle "Funky lintian test" + +# Bad priorities. +db_text LOW debconf/test +db_input normal debconf/test + +# Valid priorities. +db_text \ +high debconf/test +foo=medium +db_input $foo debconf/test +db_input "$foo" debconf/test +db_input 'medium' debconf/test + +# debconf/transtring should not be flagged as unused +# (it's aliased to debconf/alias, which is used) +db_register debconf/transtring debconf/alias +db_input medium debconf/alias diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test.postinst b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test.postinst new file mode 100644 index 00000000..b3870371 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test.postinst @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +# Not supposed to do this here. +db_input medium debconf/test + +true diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test.templates b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test.templates new file mode 100644 index 00000000..811bb6cf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test.templates @@ -0,0 +1,101 @@ +Template: debconf/test +Type: text +_description: Foo bar (1) + +Template: debconf/testmulti +Type: multiselect +__Choices: foo, bar, boo +_Description: test comma usages in choices fields + +Template: debconf/testmulti-escape +Type: multiselect +_Choices: foo\, bar, boo +_Description: test escaped comma usages in choices fields: + +Template: debconf/testboolean +Type: boolean +_Description: Enter yes or no: + Do you want to answer this question? + +Template: debconf/teststring +Type: string +_Description: This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + +Template: debconf/testnote +Type: note +Description: This should be a title and not a really long sentence that ends in a regular period. + +Template: debconf/1st-person +Type: select +__Choices: one, two +_Description: Select one of these: + I am a stupid test of first-person syntax that tells you to select yes + even though yes isn't an option in this prompt. + +Template: debconf/internal +Type: boolean +Description: For internal use only + We are testing that style checks are not applied to templates that are + marked as internal. + +Template: debconf/no-description +Type: string + +Template: debconf/translate +Type: boolean +_Default: false +_Description: Should this really be translated? + +Template: debconf/transtring +Type: string +_Default: 1 +_Description: Count of templates: + The number of useless numbers that a translator would have to translate + for this template. + +Template: debconf/language +__Choices: English, Spanish, German, French +# This is the default choice. Translators should put their own language, +# if available, here instead, but the value MUST be the English version +# of the value for the package scripts to work properly. +_Default: English[ translators, see the comment in the PO files] +_Description: The default language, an example of a default that should + be translated. + +Template: debconf/error +Type: error +_Description: An error occurred + This is a sample Debconf error template. + +Template: debconf/should-be-boolean +Type: select +__Choices: yes, no +_Description: Choose: + Pick yes or no. + +Template: debconf/should-be-no-longer-a-problem +Type: boolean +_Description: Decide, lintian + Using "no longer" should no longer be detected as + making-assumptions-about-interfaces-in-templates by lintian. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test.templates.de b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test.templates.de new file mode 100644 index 00000000..f9ea1219 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test.templates.de @@ -0,0 +1,3 @@ +Template: debconf/testmulti +Type: multiselect +Choices: foo, bar\, boo, boo diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test.templates.in b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-test.templates.in new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-udeb.postinst b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-udeb.postinst new file mode 100644 index 00000000..4ce41f08 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-udeb.postinst @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +ldconfig + +true diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-udeb.templates b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-udeb.templates new file mode 100644 index 00000000..5d7cf5a7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/debconf-udeb.templates @@ -0,0 +1,3 @@ +Template: debian-installer/debconf-udeb/title +Type: text +_description: This is just a test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/po/POTFILES.in b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/po/POTFILES.in new file mode 100644 index 00000000..d0c82f08 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/po/POTFILES.in @@ -0,0 +1,2 @@ +[type: gettext/rfc822deb] debconf-test.templates +[type: gettext/rfc822deb] debconf-udeb.templates diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/po/de.po b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/po/de.po new file mode 100644 index 00000000..86c57968 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/po/de.po @@ -0,0 +1,66 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2004-12-06 01:01+0100\n" +"Last-Translator: Frank Lichtenheld \n" +"Language-Team: debian-l10n-german@l.d.o\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "foo" +msgstr "foo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "bar" +msgstr "bar, boo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "boo" +msgstr "boo" + +#. Type: multiselect +#. Description +#: ../debconf-test.templates:8 +msgid "test comma usages in choices fields" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:11 +msgid "foo\\, bar, boo" +msgstr "foo, bar, boo" + +#. Type: text +#. description +#: ../debconf-udeb.templates:3 +msgid "This is just a test" +msgstr "Dies ist nur ein Test" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/po/fr.po b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/po/fr.po new file mode 100644 index 00000000..c74deb28 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/po/fr.po @@ -0,0 +1,60 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"Last-Translator: Frank Lichtenheld \n" +"Language-Team: debian-l10n-german@l.d.o\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "foo" +msgstr "foo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "bar" +msgstr "bar, boo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "boo" +msgstr "boo" + +#. Type: multiselect +#. Description +#: ../debconf-test.templates:8 +msgid "test comma usages in choices fields" +msgstr "" + +#. Type: text +#. description +#: ../debconf-udeb.templates:3 +msgid "This is just a test" +msgstr " diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/po/lang.po b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/po/lang.po new file mode 100644 index 00000000..7ac498af --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/po/lang.po @@ -0,0 +1,15 @@ +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/po/nds.po b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/po/nds.po new file mode 100644 index 00000000..7ac498af --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/po/nds.po @@ -0,0 +1,15 @@ +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/po/output b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/po/output new file mode 100644 index 00000000..c3df1a5b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/po/output @@ -0,0 +1 @@ +2 utf8 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/po/pt_BR.po b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/po/pt_BR.po new file mode 100644 index 00000000..7ac498af --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/po/pt_BR.po @@ -0,0 +1,15 @@ +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/po/sample-file.po b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/po/sample-file.po new file mode 100644 index 00000000..8dcc0ffa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/po/sample-file.po @@ -0,0 +1 @@ +This is some file that isn't actually a valid .po file. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/po/templates.pot b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/po/templates.pot new file mode 100644 index 00000000..914c77f0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/po/templates.pot @@ -0,0 +1,61 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "foo" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "bar" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "boo" +msgstr "" + +#. Type: multiselect +#. Description +#: ../debconf-test.templates:8 +msgid "test comma usages in choices fields" +msgstr "" + +#. Type: text +#. description +#: ../debconf-udeb.templates:3 +msgid "This is just a test" +msgstr "" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/pycompat b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/pycompat new file mode 100644 index 00000000..0cfbf088 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/pycompat @@ -0,0 +1 @@ +2 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/pyversions b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/pyversions new file mode 100644 index 00000000..6f290b06 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/pyversions @@ -0,0 +1 @@ +>= 2.7 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/rules new file mode 100755 index 00000000..933901ac --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/rules @@ -0,0 +1,64 @@ +#!/usr/bin/make -f + +deb_dir = debian/debconf +udeb_dir = debian/debconf-udeb +build_dirs = $(deb_dir) $(udeb_dir) + +build-indep: +# There are no architecture-independent files to be built +# by this package. If there were any they would be made +# here. + +build-arch: + dh_testdir + touch build + +build: build-indep build-arch + +clean: + dh_testdir + dh_testroot + -rm -f build + + dh_clean + +binary-indep: build +# There are no architecture-independent files to be uploaded +# generated by this package. If there were any they would be +# made here. + +binary-arch: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs -a + + dh_installchangelogs -a + dh_installdocs -a + dh_installdebconf -pdebconf-test + dh_installdebconf -pdebconf-test-noscripts --noscripts + dh_installdebconf -pdebconf-test-preinst --noscripts + dh_installdebconf -pdebconf-test-postinst --noscripts + dh_installdebconf -pdebconf-udeb + + + + + dh_compress -a + dh_fixperms -a + +# The shlibs stuff doesn't matter here so do it in a weird order to +# test warnings. + dh_installdeb -a + dh_shlibdeps -a + dh_makeshlibs -a + dh_gencontrol -a + dh_md5sums + dh_builddeb -a + dh_makeshlibs -a + +# Below here is fairly generic really + +binary: binary-indep binary-arch + +.PHONY: build-arch build-indep build binary binary-arch binary-indep clean checkroot diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/eval/hints new file mode 100644 index 00000000..72fd3139 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/legacy-debconf/eval/hints @@ -0,0 +1,48 @@ +debconf-udeb (udeb): unknown-field-in-templates debian-installer/debconf-udeb/title description-de.UTF-8 [templates:4] +debconf-udeb (udeb): unknown-field-in-templates debian-installer/debconf-udeb/title description [templates:3] +debconf (source): template-uses-unsplit-choices debconf/testmulti-escape [debian/debconf-test.templates:12] +debconf-test-preinst (binary): unknown-field-in-templates debconf/test description [templates:3] +debconf-test-preinst (binary): possible-debconf-note-abuse debconf/test [preinst:8] +debconf-test-preinst (binary): missing-debconf-dependency-for-preinst +debconf-test-preinst (binary): loads-obsolete-confmodule /usr/share/debconf/confmodule.sh [preinst:4] +debconf-test-postinst (binary): unknown-field-in-templates debconf/test description [templates:3] +debconf-test-postinst (binary): postinst-uses-db-input [postinst:5] +debconf-test-postinst (binary): possible-debconf-note-abuse debconf/test [postinst:5] +debconf-test-postinst (binary): no-debconf-config +debconf-test-noscripts (binary): unused-debconf-template debconf/test [templates:1] +debconf-test-noscripts (binary): unknown-field-in-templates debconf/test description [templates:3] +debconf-test-noscripts (binary): postrm-does-not-purge-debconf postrm +debconf-test-noscripts (binary): no-debconf-config +debconf-test (binary): using-question-in-extended-description-in-templates debconf/testboolean [templates:19] +debconf-test (binary): using-imperative-form-in-templates debconf/should-be-boolean [templates:93] +debconf-test (binary): using-imperative-form-in-templates debconf/1st-person [templates:54] +debconf-test (binary): using-first-person-in-templates debconf/1st-person [templates:54] +debconf-test (binary): unused-debconf-template debconf/translate [templates:67] +debconf-test (binary): unused-debconf-template debconf/teststring [templates:22] +debconf-test (binary): unused-debconf-template debconf/testnote [templates:47] +debconf-test (binary): unused-debconf-template debconf/testmulti-escape [templates:11] +debconf-test (binary): unused-debconf-template debconf/testmulti [templates:5] +debconf-test (binary): unused-debconf-template debconf/testboolean [templates:17] +debconf-test (binary): unused-debconf-template debconf/should-be-no-longer-a-problem [templates:96] +debconf-test (binary): unused-debconf-template debconf/should-be-boolean [templates:90] +debconf-test (binary): unused-debconf-template debconf/no-description [templates:64] +debconf-test (binary): unused-debconf-template debconf/language [templates:79] +debconf-test (binary): unused-debconf-template debconf/internal [templates:58] +debconf-test (binary): unused-debconf-template debconf/error [templates:85] +debconf-test (binary): unused-debconf-template debconf/1st-person [templates:51] +debconf-test (binary): unknown-field-in-templates debconf/test description [templates:3] +debconf-test (binary): unknown-debconf-priority normal [config:10] +debconf-test (binary): unknown-debconf-priority LOW [config:9] +debconf-test (binary): too-long-short-description-in-templates debconf/testnote [templates:49] +debconf-test (binary): too-long-extended-description-in-templates debconf/teststring [templates:24] +debconf-test (binary): select-with-boolean-choices debconf/should-be-boolean [templates:92] +debconf-test (binary): possible-debconf-note-abuse debconf/test [postinst:7] +debconf-test (binary): possible-debconf-note-abuse debconf/test [config:18] +debconf-test (binary): no-template-type debconf/language [templates:79] +debconf-test (binary): no-template-description debconf/no-description [templates:64] +debconf-test (binary): mismatch-translated-choices debconf/testmulti-escape Choices-de.UTF-8 [templates:13] +debconf-test (binary): malformed-title-in-templates debconf/testnote [templates:49] +debconf-test (binary): malformed-question-in-templates debconf/testboolean [templates:19] +debconf-test (binary): malformed-question-in-templates debconf/should-be-no-longer-a-problem [templates:98] +debconf-test (binary): malformed-prompt-in-templates debconf/teststring [templates:24] +debconf-test (binary): making-assumptions-about-interfaces-in-templates debconf/testboolean [templates:19] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/national-encoding/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/national-encoding/ORIGIN new file mode 100644 index 00000000..1b03997f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/national-encoding/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/debconf/national-encoding + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/national-encoding/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/national-encoding/debian/changelog new file mode 100644 index 00000000..6e10650f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/national-encoding/debian/changelog @@ -0,0 +1,17 @@ +national-encoding (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: national-encoding + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +national-encoding (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: national-encoding + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/national-encoding/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/national-encoding/debian/control new file mode 100644 index 00000000..6ad9f01a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/national-encoding/debian/control @@ -0,0 +1,17 @@ +Source: national-encoding +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: national-encoding +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: National encoding in debconf template + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/national-encoding/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/national-encoding/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/national-encoding/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/national-encoding/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/national-encoding/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/national-encoding/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/national-encoding/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/national-encoding/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/national-encoding/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/national-encoding/debian/templates b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/national-encoding/debian/templates new file mode 100644 index 00000000..9a2dfc12 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/national-encoding/debian/templates @@ -0,0 +1,3 @@ +Template: debconf/translated +Type: error +_Description: Nicht ntzlich diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/national-encoding/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/national-encoding/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/national-encoding/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/national-encoding/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/national-encoding/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/national-encoding/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/national-encoding/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/national-encoding/eval/hints new file mode 100644 index 00000000..68696703 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/national-encoding/eval/hints @@ -0,0 +1 @@ +national-encoding (binary): no-debconf-config diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/ORIGIN new file mode 100644 index 00000000..b09b5f94 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/debconf/po-debconf-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/changelog new file mode 100644 index 00000000..9a466a2e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/changelog @@ -0,0 +1,17 @@ +po-debconf-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: po-debconf-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +po-debconf-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: po-debconf-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/control new file mode 100644 index 00000000..bd1bde36 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/control @@ -0,0 +1,17 @@ +Source: po-debconf-general +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: po-debconf-general +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: General tests for debconf translations + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/po/English.po b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/po/English.po new file mode 100644 index 00000000..e99b8223 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/po/English.po @@ -0,0 +1 @@ +Not a PO file or an English translation. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/po/POTFILES.in b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/po/POTFILES.in new file mode 100644 index 00000000..da5857ef --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/po/POTFILES.in @@ -0,0 +1,3 @@ +# This is a comment, which should be ignored. +[type: gettext/rfc822deb] templates +some-other-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/po/de.po b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/po/de.po new file mode 100644 index 00000000..545fd251 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/po/de.po @@ -0,0 +1,2 @@ +This is just some random other file that isn't a German translation at +all. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/po/templates.pot b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/po/templates.pot new file mode 100644 index 00000000..420734f8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/po/templates.pot @@ -0,0 +1,30 @@ +msgid "" +msgstr "" +"Project-Id-Version: Lintian 2.4.3\n" +"PO-Revision-Date: +2010-07-25 17:07 -0700\n" +"Last-Translator: Russ Allbery \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Default +#: ../templates:1001 +msgid "foo" +msgstr "" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "This is a string question used for testing:" +msgstr "" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "This is a second string question:" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "This one ensures no 100% translation of the template." diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/templates b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/templates new file mode 100644 index 00000000..b626825a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/templates @@ -0,0 +1,10 @@ +Template: po-debconf-general/test +Type: string +_Default: foo +Description: This is a string question used for testing: + +Template: po-debconf-general/test-2 +Type: string +Default: bar +_Description: This is a second string question: + This one ensures no 100% translation of the template. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/templates.en_US b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/templates.en_US new file mode 100644 index 00000000..617a4745 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/templates.en_US @@ -0,0 +1,5 @@ +Template: po-debconf-general/test +Type: string +Default: foo +_Description: This is an English translation that shouldn't be in this + directory. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/eval/hints new file mode 100644 index 00000000..0d9bd21d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/debconf/po-debconf-general/eval/hints @@ -0,0 +1,3 @@ +po-debconf-general (binary): unused-debconf-template po-debconf-general/test-2 [templates:6] +po-debconf-general (binary): unused-debconf-template po-debconf-general/test [templates:1] +po-debconf-general (binary): no-debconf-config diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/ORIGIN new file mode 100644 index 00000000..f1e21e73 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/desktop-entries/desktop-file + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/debian/changelog new file mode 100644 index 00000000..2d46205a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/debian/changelog @@ -0,0 +1,17 @@ +desktop-file (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: desktop-file + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +desktop-file (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: desktop-file + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/debian/control new file mode 100644 index 00000000..e92bbb80 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/debian/control @@ -0,0 +1,17 @@ +Source: desktop-file +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: desktop-file +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Maintainer keeps a *.desktop menu item in ./debian + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/debian/not-forwarded.desktop b/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/debian/not-forwarded.desktop new file mode 100644 index 00000000..7d47ab9a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/debian/not-forwarded.desktop @@ -0,0 +1 @@ +A MENU ENTRY ACCORDING FREEDESKTOP.ORG diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/eval/hints new file mode 100644 index 00000000..2da647f0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/desktop-entries/desktop-file/eval/hints @@ -0,0 +1 @@ +desktop-file (source): maintainer-desktop-entry [debian/not-forwarded.desktop] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/build-depends/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/build-depends/ORIGIN new file mode 100644 index 00000000..624e624f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/build-depends/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/dpkg-build-api/build-depends + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/build-depends/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/build-depends/debian/changelog new file mode 100644 index 00000000..1f35456f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/build-depends/debian/changelog @@ -0,0 +1,17 @@ +build-depends (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: build-depends + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +build-depends (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: build-depends + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/build-depends/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/build-depends/debian/control new file mode 100644 index 00000000..d1fe9b7c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/build-depends/debian/control @@ -0,0 +1,17 @@ +Source: build-depends +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: build-depends +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for source package dpkg build API level declared though build dependencies + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/build-depends/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/build-depends/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/build-depends/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/build-depends/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/build-depends/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/build-depends/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/build-depends/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/build-depends/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/build-depends/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/build-depends/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/build-depends/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/build-depends/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/build-depends/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/build-depends/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/build-depends/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/build-depends/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/build-depends/eval/hints new file mode 100644 index 00000000..0641da46 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/build-depends/eval/hints @@ -0,0 +1 @@ +build-depends (source): dpkg-build-api-level 1 [debian/control] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/rules-variable/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/rules-variable/ORIGIN new file mode 100644 index 00000000..25562877 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/rules-variable/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/dpkg-build-api/rules-variable + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/rules-variable/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/rules-variable/debian/changelog new file mode 100644 index 00000000..8045bffc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/rules-variable/debian/changelog @@ -0,0 +1,17 @@ +rules-variable (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-variable + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +rules-variable (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-variable + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/rules-variable/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/rules-variable/debian/control new file mode 100644 index 00000000..44b93167 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/rules-variable/debian/control @@ -0,0 +1,17 @@ +Source: rules-variable +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: rules-variable +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for debian/rules export the DPKG_BUILD_API variable + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/rules-variable/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/rules-variable/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/rules-variable/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/rules-variable/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/rules-variable/debian/rules new file mode 100755 index 00000000..ff482ee2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/rules-variable/debian/rules @@ -0,0 +1,11 @@ +#!/usr/bin/make -f + +ifeq (abcdef,qwerty) +# This line is unreachable and must not trigger the warning. +export DPKG_BUILD_API = -1 +endif + +DPKG_BUILD_API = 100500 + +%: + dh $@ diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/rules-variable/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/rules-variable/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/rules-variable/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/rules-variable/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/rules-variable/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/rules-variable/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/rules-variable/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/rules-variable/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/rules-variable/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/rules-variable/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/rules-variable/eval/hints new file mode 100644 index 00000000..32a3e137 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/dpkg-build-api/rules-variable/eval/hints @@ -0,0 +1,2 @@ +rules-variable (source): debian-rules-defines-dpkg-build-api [debian/rules:8] +rules-variable (source): dpkg-build-api-level 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/filenames/duplicate-news-files/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/duplicate-news-files/ORIGIN new file mode 100644 index 00000000..226ae52b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/duplicate-news-files/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/filenames/duplicate-news-files + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/filenames/duplicate-news-files/debian/NEWS b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/duplicate-news-files/debian/NEWS new file mode 100644 index 00000000..da28de5d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/duplicate-news-files/debian/NEWS @@ -0,0 +1,62 @@ +unison (2.48.4-3) unstable; urgency=medium + + This version is compiled with a new version of OCaml (4.08.1) and + is incompatible with previous versions of unison shipped in Debian, + in particular the one in Debian 10 (buster). + + -- Stéphane Glondu Tue, 03 Dec 2019 11:38:54 +0100 + +unison (2.40.63-1) experimental; urgency=low + + This new version uses a protocol incompatible with the precedent one + (2.32.52) which was the version available in Debian 6.0 (a.k.a. + "Squeeze"). If you want to synchronize with the previous version of + Unison, use the unison2.32.52 package. + + -- Stéphane Glondu Sat, 14 Jan 2012 11:31:14 +0100 + +unison (2.13.16-1) unstable; urgency=low + + As of version 2.10.2, the package use an alternative to let the user + choose between unison and unison2.9.1 binaries for unison and + unison-gtk. The binaries used in unison and unison-gtk package were + versionned binaries (ie unison2.10.2 and unison2.10.2-gtk). This was a + mistake. When trying to upgrade to new upstream version, former + alternatives were not removed and you keep symlinks to non existent + binaries (ie you stay with unison pointing to unison2.10.2). This + behavior is corrected by using a stable name for unison binaries (ie + unison-latest-stable). + + If you have configured alternatives, you may encounter some problem, + because during upgrade the symlink won't be updated, since it has been + user configured. In this case, you should run "update-alternatives + --auto unison && update-alternatives --auto unison-gtk" to restore the + good behavior. + + -- Sylvain Le Gall Sat, 13 Aug 2005 20:17:11 +0200 + +unison (2.10.2-2) unstable; urgency=low + + Upgrading from version 2.9.1 to 2.10.2 involves a lot of changes. In + particular, most of the configuration of the former stable release + (2.9.1) is no longer valid. Archive format has changed: if you have any + unsynchronized changes when you upgrade to this new archive format, you + have to merge them all by hand. You can also use the new package + unison2.9.1 (which is the former stable release) to synchronise your + old archive before migrating. + + Version 2.10.2 and 2.9.1 are not compatible. You will need to have the + same version of unison on both end of the synchronisation link (ie if + you need to synchronise two computers, you will need to have unison + 2.10.2 on both). + + -- Sylvain Le Gall Mon, 25 Apr 2005 23:06:44 +0200 + +unison (2.10.2-1) unstable; urgency=medium + + With this new stable release, a package split has been made. Now the + package unison will always hold the latest stable release of unison. + If you need to use the former stable release, you will need to install + unison2.9.1, which is a new debian package. + + -- Sylvain Le Gall Tue, 19 Apr 2005 00:08:05 +0200 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/filenames/duplicate-news-files/debian/NEWS.Debian b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/duplicate-news-files/debian/NEWS.Debian new file mode 100644 index 00000000..da28de5d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/duplicate-news-files/debian/NEWS.Debian @@ -0,0 +1,62 @@ +unison (2.48.4-3) unstable; urgency=medium + + This version is compiled with a new version of OCaml (4.08.1) and + is incompatible with previous versions of unison shipped in Debian, + in particular the one in Debian 10 (buster). + + -- Stéphane Glondu Tue, 03 Dec 2019 11:38:54 +0100 + +unison (2.40.63-1) experimental; urgency=low + + This new version uses a protocol incompatible with the precedent one + (2.32.52) which was the version available in Debian 6.0 (a.k.a. + "Squeeze"). If you want to synchronize with the previous version of + Unison, use the unison2.32.52 package. + + -- Stéphane Glondu Sat, 14 Jan 2012 11:31:14 +0100 + +unison (2.13.16-1) unstable; urgency=low + + As of version 2.10.2, the package use an alternative to let the user + choose between unison and unison2.9.1 binaries for unison and + unison-gtk. The binaries used in unison and unison-gtk package were + versionned binaries (ie unison2.10.2 and unison2.10.2-gtk). This was a + mistake. When trying to upgrade to new upstream version, former + alternatives were not removed and you keep symlinks to non existent + binaries (ie you stay with unison pointing to unison2.10.2). This + behavior is corrected by using a stable name for unison binaries (ie + unison-latest-stable). + + If you have configured alternatives, you may encounter some problem, + because during upgrade the symlink won't be updated, since it has been + user configured. In this case, you should run "update-alternatives + --auto unison && update-alternatives --auto unison-gtk" to restore the + good behavior. + + -- Sylvain Le Gall Sat, 13 Aug 2005 20:17:11 +0200 + +unison (2.10.2-2) unstable; urgency=low + + Upgrading from version 2.9.1 to 2.10.2 involves a lot of changes. In + particular, most of the configuration of the former stable release + (2.9.1) is no longer valid. Archive format has changed: if you have any + unsynchronized changes when you upgrade to this new archive format, you + have to merge them all by hand. You can also use the new package + unison2.9.1 (which is the former stable release) to synchronise your + old archive before migrating. + + Version 2.10.2 and 2.9.1 are not compatible. You will need to have the + same version of unison on both end of the synchronisation link (ie if + you need to synchronise two computers, you will need to have unison + 2.10.2 on both). + + -- Sylvain Le Gall Mon, 25 Apr 2005 23:06:44 +0200 + +unison (2.10.2-1) unstable; urgency=medium + + With this new stable release, a package split has been made. Now the + package unison will always hold the latest stable release of unison. + If you need to use the former stable release, you will need to install + unison2.9.1, which is a new debian package. + + -- Sylvain Le Gall Tue, 19 Apr 2005 00:08:05 +0200 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/filenames/duplicate-news-files/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/duplicate-news-files/debian/changelog new file mode 100644 index 00000000..3d959110 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/duplicate-news-files/debian/changelog @@ -0,0 +1,17 @@ +duplicate-news-files (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: duplicate-news-files + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +duplicate-news-files (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: duplicate-news-files + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/filenames/duplicate-news-files/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/duplicate-news-files/debian/control new file mode 100644 index 00000000..b893dd13 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/duplicate-news-files/debian/control @@ -0,0 +1,17 @@ +Source: duplicate-news-files +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: duplicate-news-files +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Contains both NEWS and NEWS.Debian files. + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/filenames/duplicate-news-files/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/duplicate-news-files/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/duplicate-news-files/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/filenames/duplicate-news-files/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/duplicate-news-files/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/duplicate-news-files/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/filenames/duplicate-news-files/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/duplicate-news-files/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/duplicate-news-files/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/filenames/duplicate-news-files/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/duplicate-news-files/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/duplicate-news-files/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/filenames/duplicate-news-files/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/duplicate-news-files/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/duplicate-news-files/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/filenames/duplicate-news-files/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/duplicate-news-files/eval/hints new file mode 100644 index 00000000..a3071014 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/duplicate-news-files/eval/hints @@ -0,0 +1 @@ +duplicate-news-files (source): duplicate-packaging-file better: debian/NEWS [debian/NEWS.Debian] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/filenames/news-has-debian-extension/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/news-has-debian-extension/ORIGIN new file mode 100644 index 00000000..ee8980a7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/news-has-debian-extension/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/filenames/news-has-debian-extension + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/filenames/news-has-debian-extension/debian/NEWS.Debian b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/news-has-debian-extension/debian/NEWS.Debian new file mode 100644 index 00000000..da28de5d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/news-has-debian-extension/debian/NEWS.Debian @@ -0,0 +1,62 @@ +unison (2.48.4-3) unstable; urgency=medium + + This version is compiled with a new version of OCaml (4.08.1) and + is incompatible with previous versions of unison shipped in Debian, + in particular the one in Debian 10 (buster). + + -- Stéphane Glondu Tue, 03 Dec 2019 11:38:54 +0100 + +unison (2.40.63-1) experimental; urgency=low + + This new version uses a protocol incompatible with the precedent one + (2.32.52) which was the version available in Debian 6.0 (a.k.a. + "Squeeze"). If you want to synchronize with the previous version of + Unison, use the unison2.32.52 package. + + -- Stéphane Glondu Sat, 14 Jan 2012 11:31:14 +0100 + +unison (2.13.16-1) unstable; urgency=low + + As of version 2.10.2, the package use an alternative to let the user + choose between unison and unison2.9.1 binaries for unison and + unison-gtk. The binaries used in unison and unison-gtk package were + versionned binaries (ie unison2.10.2 and unison2.10.2-gtk). This was a + mistake. When trying to upgrade to new upstream version, former + alternatives were not removed and you keep symlinks to non existent + binaries (ie you stay with unison pointing to unison2.10.2). This + behavior is corrected by using a stable name for unison binaries (ie + unison-latest-stable). + + If you have configured alternatives, you may encounter some problem, + because during upgrade the symlink won't be updated, since it has been + user configured. In this case, you should run "update-alternatives + --auto unison && update-alternatives --auto unison-gtk" to restore the + good behavior. + + -- Sylvain Le Gall Sat, 13 Aug 2005 20:17:11 +0200 + +unison (2.10.2-2) unstable; urgency=low + + Upgrading from version 2.9.1 to 2.10.2 involves a lot of changes. In + particular, most of the configuration of the former stable release + (2.9.1) is no longer valid. Archive format has changed: if you have any + unsynchronized changes when you upgrade to this new archive format, you + have to merge them all by hand. You can also use the new package + unison2.9.1 (which is the former stable release) to synchronise your + old archive before migrating. + + Version 2.10.2 and 2.9.1 are not compatible. You will need to have the + same version of unison on both end of the synchronisation link (ie if + you need to synchronise two computers, you will need to have unison + 2.10.2 on both). + + -- Sylvain Le Gall Mon, 25 Apr 2005 23:06:44 +0200 + +unison (2.10.2-1) unstable; urgency=medium + + With this new stable release, a package split has been made. Now the + package unison will always hold the latest stable release of unison. + If you need to use the former stable release, you will need to install + unison2.9.1, which is a new debian package. + + -- Sylvain Le Gall Tue, 19 Apr 2005 00:08:05 +0200 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/filenames/news-has-debian-extension/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/news-has-debian-extension/debian/changelog new file mode 100644 index 00000000..d406f532 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/news-has-debian-extension/debian/changelog @@ -0,0 +1,17 @@ +news-has-debian-extension (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: news-has-debian-extension + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +news-has-debian-extension (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: news-has-debian-extension + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/filenames/news-has-debian-extension/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/news-has-debian-extension/debian/control new file mode 100644 index 00000000..4365f29b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/news-has-debian-extension/debian/control @@ -0,0 +1,17 @@ +Source: news-has-debian-extension +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: news-has-debian-extension +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Contains a NEWS.Debian file. + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/filenames/news-has-debian-extension/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/news-has-debian-extension/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/news-has-debian-extension/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/filenames/news-has-debian-extension/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/news-has-debian-extension/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/news-has-debian-extension/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/filenames/news-has-debian-extension/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/news-has-debian-extension/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/news-has-debian-extension/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/filenames/news-has-debian-extension/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/news-has-debian-extension/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/news-has-debian-extension/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/filenames/news-has-debian-extension/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/news-has-debian-extension/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/news-has-debian-extension/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/filenames/news-has-debian-extension/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/news-has-debian-extension/eval/hints new file mode 100644 index 00000000..7227dd60 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/filenames/news-has-debian-extension/eval/hints @@ -0,0 +1 @@ +news-has-debian-extension (source): incorrect-packaging-filename better: debian/NEWS [debian/NEWS.Debian] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/line-separators/cruft-crlf-eols/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/line-separators/cruft-crlf-eols/ORIGIN new file mode 100644 index 00000000..502d457a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/line-separators/cruft-crlf-eols/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/line-separators/cruft-crlf-eols + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/line-separators/cruft-crlf-eols/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/line-separators/cruft-crlf-eols/debian/changelog new file mode 100644 index 00000000..49a956da --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/line-separators/cruft-crlf-eols/debian/changelog @@ -0,0 +1,8 @@ +cruft-crlf-eols (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-crlf-eols + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/line-separators/cruft-crlf-eols/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/line-separators/cruft-crlf-eols/debian/control new file mode 100644 index 00000000..103e08db --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/line-separators/cruft-crlf-eols/debian/control @@ -0,0 +1,15 @@ +Source: cruft-crlf-eols +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no + +Package: cruft-crlf-eols +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check that control files with CRLF EOLs are reported + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/line-separators/cruft-crlf-eols/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/line-separators/cruft-crlf-eols/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/line-separators/cruft-crlf-eols/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/line-separators/cruft-crlf-eols/debian/install b/packages/debmagic/tests/lintian-parity/checks/debian/line-separators/cruft-crlf-eols/debian/install new file mode 100644 index 00000000..47fc6a32 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/line-separators/cruft-crlf-eols/debian/install @@ -0,0 +1 @@ +dummy usr/share/doc/foo/ diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/line-separators/cruft-crlf-eols/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/line-separators/cruft-crlf-eols/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/line-separators/cruft-crlf-eols/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/line-separators/cruft-crlf-eols/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/line-separators/cruft-crlf-eols/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/line-separators/cruft-crlf-eols/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/line-separators/cruft-crlf-eols/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/line-separators/cruft-crlf-eols/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/line-separators/cruft-crlf-eols/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/line-separators/cruft-crlf-eols/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/line-separators/cruft-crlf-eols/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/line-separators/cruft-crlf-eols/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/line-separators/cruft-crlf-eols/dummy b/packages/debmagic/tests/lintian-parity/checks/debian/line-separators/cruft-crlf-eols/dummy new file mode 100644 index 00000000..5c3118dc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/line-separators/cruft-crlf-eols/dummy @@ -0,0 +1 @@ +dummy file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/line-separators/cruft-crlf-eols/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/line-separators/cruft-crlf-eols/eval/hints new file mode 100644 index 00000000..b1c59a6a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/line-separators/cruft-crlf-eols/eval/hints @@ -0,0 +1,2 @@ +cruft-crlf-eols (source): carriage-return-line-feed [debian/control] +cruft-crlf-eols (source): carriage-return-line-feed [debian/changelog] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/absolutely-misspelled/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/absolutely-misspelled/ORIGIN new file mode 100644 index 00000000..e15481e9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/absolutely-misspelled/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/lintian-overrides/comments/absolutely-misspelled + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/absolutely-misspelled/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/absolutely-misspelled/debian/changelog new file mode 100644 index 00000000..16b9b06f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/absolutely-misspelled/debian/changelog @@ -0,0 +1,17 @@ +absolutely-misspelled (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: absolutely-misspelled + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +absolutely-misspelled (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: absolutely-misspelled + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/absolutely-misspelled/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/absolutely-misspelled/debian/control new file mode 100644 index 00000000..d21524ef --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/absolutely-misspelled/debian/control @@ -0,0 +1,17 @@ +Source: absolutely-misspelled +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: absolutely-misspelled +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Absolutely misspelled in override comment + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/absolutely-misspelled/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/absolutely-misspelled/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/absolutely-misspelled/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/absolutely-misspelled/debian/lintian-overrides b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/absolutely-misspelled/debian/lintian-overrides new file mode 100644 index 00000000..2bcfb951 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/absolutely-misspelled/debian/lintian-overrides @@ -0,0 +1,6 @@ +# This comment will not appear in the output, also the last +# tag should not have a comment due to the empty line between +# it and the one before it. + +# absolutly no context +cute-field diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/absolutely-misspelled/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/absolutely-misspelled/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/absolutely-misspelled/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/absolutely-misspelled/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/absolutely-misspelled/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/absolutely-misspelled/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/absolutely-misspelled/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/absolutely-misspelled/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/absolutely-misspelled/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/absolutely-misspelled/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/absolutely-misspelled/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/absolutely-misspelled/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/absolutely-misspelled/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/absolutely-misspelled/eval/hints new file mode 100644 index 00000000..4aa816ed --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/absolutely-misspelled/eval/hints @@ -0,0 +1 @@ +absolutely-misspelled (binary): spelling-in-override-comment cute-field absolutly absolutely [usr/share/lintian/overrides/absolutely-misspelled:5] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/lowercase-sql/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/lowercase-sql/ORIGIN new file mode 100644 index 00000000..cc82731a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/lowercase-sql/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/lintian-overrides/comments/lowercase-sql + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/lowercase-sql/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/lowercase-sql/debian/changelog new file mode 100644 index 00000000..e9d62314 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/lowercase-sql/debian/changelog @@ -0,0 +1,17 @@ +lowercase-sql (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: lowercase-sql + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +lowercase-sql (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: lowercase-sql + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/lowercase-sql/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/lowercase-sql/debian/control new file mode 100644 index 00000000..5a32aee3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/lowercase-sql/debian/control @@ -0,0 +1,17 @@ +Source: lowercase-sql +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: lowercase-sql +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: PostgreSQL not properly capitalized in override comment + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/lowercase-sql/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/lowercase-sql/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/lowercase-sql/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/lowercase-sql/debian/lintian-overrides b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/lowercase-sql/debian/lintian-overrides new file mode 100644 index 00000000..050ab923 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/lowercase-sql/debian/lintian-overrides @@ -0,0 +1,6 @@ +# This comment will not appear in the output, also the last +# tag should not have a comment due to the empty line between +# it and the one before it. + +# for postgresql +cute-field diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/lowercase-sql/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/lowercase-sql/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/lowercase-sql/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/lowercase-sql/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/lowercase-sql/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/lowercase-sql/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/lowercase-sql/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/lowercase-sql/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/lowercase-sql/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/lowercase-sql/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/lowercase-sql/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/lowercase-sql/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/lowercase-sql/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/lowercase-sql/eval/hints new file mode 100644 index 00000000..3ed46b30 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/comments/lowercase-sql/eval/hints @@ -0,0 +1 @@ +lowercase-sql (binary): capitalization-in-override-comment cute-field postgresql PostgreSQL [usr/share/lintian/overrides/lowercase-sql:5] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/ORIGIN new file mode 100644 index 00000000..e1c18f19 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/debian/changelog new file mode 100644 index 00000000..4ecff87d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/debian/changelog @@ -0,0 +1,17 @@ +duplicate-context-cute-field (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: duplicate-context-cute-field + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +duplicate-context-cute-field (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: duplicate-context-cute-field + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/debian/control new file mode 100644 index 00000000..26a2c1bd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/debian/control @@ -0,0 +1,17 @@ +Source: duplicate-context-cute-field +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: duplicate-context-cute-field +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Same context used in two overrides + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/debian/source/lintian-overrides b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/debian/source/lintian-overrides new file mode 100644 index 00000000..c2811ffd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/debian/source/lintian-overrides @@ -0,0 +1,2 @@ +cute-field duplicate-context-cute-field_1.0.dsc arch* +cute-field duplicate-context-cute-field_1.0.dsc arch* diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/eval/hints new file mode 100644 index 00000000..ceb0be12 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/eval/hints @@ -0,0 +1 @@ +duplicate-context-cute-field (source): duplicate-override-context cute-field (lines 1 2) [debian/source/lintian-overrides] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/files-override-misplaced/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/files-override-misplaced/Makefile new file mode 100644 index 00000000..a4c0682a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/files-override-misplaced/Makefile @@ -0,0 +1,18 @@ +ROOT = $(DESTDIR)/usr/share/doc/files-override-misplaced + +default: + : + +install: + mkdir -p $(DESTDIR)/usr/share/doc/files-override-misplaced + echo 'files-override-misplaced: some-override' \ + > $(DESTDIR)/usr/share/doc/files-override-misplaced/override.lintian + echo 'files-override-misplaced: some-override' \ + > $(DESTDIR)/usr/share/doc/files-override-misplaced/override.Lintian + gzip -n -9 $(DESTDIR)/usr/share/doc/files-override-misplaced/override.Lintian + mkdir -p $(DESTDIR)/usr/share/lintian/overrides/files-override-misplaced + touch $(DESTDIR)/usr/share/lintian/overrides/files-override-misplaced/some-override + mkdir -p $(DESTDIR)/usr/share/lintian/overrides/wrong-package + touch $(DESTDIR)/usr/share/lintian/overrides/wrong-package/some-override + +.PHONY: clean distclean realclean install check test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/files-override-misplaced/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/files-override-misplaced/ORIGIN new file mode 100644 index 00000000..b8338eb1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/files-override-misplaced/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/lintian-overrides/files-override-misplaced + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/files-override-misplaced/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/files-override-misplaced/debian/changelog new file mode 100644 index 00000000..502d4291 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/files-override-misplaced/debian/changelog @@ -0,0 +1,17 @@ +files-override-misplaced (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: files-override-misplaced + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +files-override-misplaced (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: files-override-misplaced + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/files-override-misplaced/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/files-override-misplaced/debian/control new file mode 100644 index 00000000..037b8fda --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/files-override-misplaced/debian/control @@ -0,0 +1,17 @@ +Source: files-override-misplaced +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: files-override-misplaced +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for misplaced override file detection + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/files-override-misplaced/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/files-override-misplaced/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/files-override-misplaced/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/files-override-misplaced/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/files-override-misplaced/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/files-override-misplaced/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/files-override-misplaced/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/files-override-misplaced/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/files-override-misplaced/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/files-override-misplaced/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/files-override-misplaced/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/files-override-misplaced/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/files-override-misplaced/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/files-override-misplaced/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/files-override-misplaced/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/files-override-misplaced/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/files-override-misplaced/eval/hints new file mode 100644 index 00000000..788993ef --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/files-override-misplaced/eval/hints @@ -0,0 +1,4 @@ +files-override-misplaced (binary): override-file-in-wrong-package wrong-package [usr/share/lintian/overrides/wrong-package/some-override] +files-override-misplaced (binary): override-file-in-wrong-location [usr/share/lintian/overrides/files-override-misplaced/some-override] +files-override-misplaced (binary): override-file-in-wrong-location [usr/share/doc/files-override-misplaced/override.lintian] +files-override-misplaced (binary): override-file-in-wrong-location [usr/share/doc/files-override-misplaced/override.Lintian.gz] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/malformed/missing-colon/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/malformed/missing-colon/ORIGIN new file mode 100644 index 00000000..b60c597e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/malformed/missing-colon/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/lintian-overrides/malformed/missing-colon + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/malformed/missing-colon/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/malformed/missing-colon/debian/changelog new file mode 100644 index 00000000..3af76231 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/malformed/missing-colon/debian/changelog @@ -0,0 +1,17 @@ +missing-colon (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: missing-colon + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +missing-colon (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: missing-colon + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/malformed/missing-colon/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/malformed/missing-colon/debian/control new file mode 100644 index 00000000..0747b3d9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/malformed/missing-colon/debian/control @@ -0,0 +1,17 @@ +Source: missing-colon +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: missing-colon +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Missing colon in a source override + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/malformed/missing-colon/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/malformed/missing-colon/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/malformed/missing-colon/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/malformed/missing-colon/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/malformed/missing-colon/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/malformed/missing-colon/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/malformed/missing-colon/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/malformed/missing-colon/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/malformed/missing-colon/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/malformed/missing-colon/debian/source/lintian-overrides b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/malformed/missing-colon/debian/source/lintian-overrides new file mode 100644 index 00000000..19eebe6a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/malformed/missing-colon/debian/source/lintian-overrides @@ -0,0 +1 @@ +missing-colon (source) cute-field duplicate-context-cute-field_1.0.dsc arch* diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/malformed/missing-colon/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/malformed/missing-colon/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/malformed/missing-colon/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/malformed/missing-colon/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/malformed/missing-colon/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/malformed/missing-colon/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/malformed/missing-colon/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/malformed/missing-colon/eval/hints new file mode 100644 index 00000000..81bace95 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/malformed/missing-colon/eval/hints @@ -0,0 +1 @@ +missing-colon (source): malformed-override Expected a colon [debian/source/lintian-overrides:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/ORIGIN new file mode 100644 index 00000000..b34bcaf6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/debian/changelog new file mode 100644 index 00000000..3c957f15 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/debian/changelog @@ -0,0 +1,17 @@ +fields-multi-arch-same-package-has-arch-specific-overrides (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: fields-multi-arch-same-package-has-arch-specific-overrides + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +fields-multi-arch-same-package-has-arch-specific-overrides (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: fields-multi-arch-same-package-has-arch-specific-overrides + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/debian/control new file mode 100644 index 00000000..31b8c6aa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/debian/control @@ -0,0 +1,28 @@ +Source: fields-multi-arch-same-package-has-arch-specific-overrides +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 13) +Rules-Requires-Root: no + +Package: fields-multi-arch-same-package-has-arch-specific-overrides +Architecture: any +Multi-Arch: same +Depends: ${misc:Depends} +Description: Test for Multi-Arch: same package with arch-specific overrides + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: fields-multi-arch-same-package-has-arch-specific-overrides-nonrel +Architecture: any +Depends: ${misc:Depends} +Description: Test for Multi-Arch: same package with arch-specific overrides (false positive) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + This is a false-positive. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/debian/fields-multi-arch-same-package-has-arch-specific-overrides-nonrel.lintian-overrides.amd64 b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/debian/fields-multi-arch-same-package-has-arch-specific-overrides-nonrel.lintian-overrides.amd64 new file mode 100644 index 00000000..257cc564 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/debian/fields-multi-arch-same-package-has-arch-specific-overrides-nonrel.lintian-overrides.amd64 @@ -0,0 +1 @@ +foo diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/debian/fields-multi-arch-same-package-has-arch-specific-overrides.lintian-overrides.amd64 b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/debian/fields-multi-arch-same-package-has-arch-specific-overrides.lintian-overrides.amd64 new file mode 100644 index 00000000..257cc564 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/debian/fields-multi-arch-same-package-has-arch-specific-overrides.lintian-overrides.amd64 @@ -0,0 +1 @@ +foo diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/eval/hints new file mode 100644 index 00000000..a731e061 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/eval/hints @@ -0,0 +1,2 @@ +fields-multi-arch-same-package-has-arch-specific-overrides-nonrel (binary): alien-tag foo [usr/share/lintian/overrides/fields-multi-arch-same-package-has-arch-specific-overrides-nonrel:1] +fields-multi-arch-same-package-has-arch-specific-overrides (binary): alien-tag foo [usr/share/lintian/overrides/fields-multi-arch-same-package-has-arch-specific-overrides:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/lintian-overrides/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/lintian-overrides/ORIGIN new file mode 100644 index 00000000..128d94f5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/lintian-overrides/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/lintian-overrides/mystery/lintian-overrides + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/lintian-overrides/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/lintian-overrides/debian/changelog new file mode 100644 index 00000000..2ee84b46 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/lintian-overrides/debian/changelog @@ -0,0 +1,17 @@ +lintian-overrides (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: lintian-overrides + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +lintian-overrides (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: lintian-overrides + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/lintian-overrides/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/lintian-overrides/debian/control new file mode 100644 index 00000000..a0ab9c5f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/lintian-overrides/debian/control @@ -0,0 +1,17 @@ +Source: lintian-overrides +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: lintian-overrides +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test the couple of overrides-related tags + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/lintian-overrides/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/lintian-overrides/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/lintian-overrides/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/lintian-overrides/debian/overrides b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/lintian-overrides/debian/overrides new file mode 100644 index 00000000..fcf6f7b5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/lintian-overrides/debian/overrides @@ -0,0 +1,2 @@ +lintian-override: +lintian-overrides: copyright-contains-dh_make-todo-boilerplate foo-bar-extra diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/lintian-overrides/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/lintian-overrides/debian/rules new file mode 100755 index 00000000..8685ec88 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/lintian-overrides/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f + +pkg=lintian-overrides + +%: + dh $@ + +override_dh_fixperms: + install -D -m 0644 $(CURDIR)/debian/overrides \ + $(CURDIR)/debian/$(pkg)/usr/share/lintian/overrides/$(pkg) + dh_fixperms + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/lintian-overrides/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/lintian-overrides/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/lintian-overrides/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/lintian-overrides/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/lintian-overrides/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/lintian-overrides/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/lintian-overrides/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/lintian-overrides/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/lintian-overrides/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/lintian-overrides/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/lintian-overrides/eval/hints new file mode 100644 index 00000000..0b32d544 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/lintian-overrides/eval/hints @@ -0,0 +1 @@ +lintian-overrides (binary): alien-tag lintian-override: [usr/share/lintian/overrides/lintian-overrides:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/ORIGIN new file mode 100644 index 00000000..e7713be4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/lintian-overrides/mystery/mixed-overrides + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/debian/changelog new file mode 100644 index 00000000..fa259301 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/debian/changelog @@ -0,0 +1,17 @@ +mixed-overrides (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: mixed-overrides + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +mixed-overrides (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: mixed-overrides + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/debian/control new file mode 100644 index 00000000..d02bf49a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/debian/control @@ -0,0 +1,17 @@ +Source: mixed-overrides +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: mixed-overrides +Architecture: any +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test override handling + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/debian/install b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/debian/install new file mode 100644 index 00000000..747a3138 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/debian/install @@ -0,0 +1 @@ +foo.1 /etc/apt/sources.list.d \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/debian/lintian-overrides b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/debian/lintian-overrides new file mode 100644 index 00000000..04ae11ba --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/debian/lintian-overrides @@ -0,0 +1,20 @@ +# This comment will not appear in the output, also the last +# tag should not have a comment due to the empty line between +# it and the one before it. + +# override without extra information +manpage-has-bad-whatis-entry +# Architecture specific override +[i386]: FSSTND-dir-in-manual-page usr/share/man/man1/foo.1.gz:6 /usr/etc/ +[!i386]: FSSTND-dir-in-manual-page usr/share/man/man1/foo.1.gz:6 /usr/etc/ +# exact extra information +FSSTND-dir-in-manual-page usr/share/man/man1/foo.1.gz:4 /usr/dict/ +# These are wildcard overrides +FSSTND-dir-in-manual-page usr/share/man/man1/foo.1.gz:2* +FSSTND-dir-in-manual-page */foo.1.gz:5 /usr/doc/ +FSSTND-dir-in-manual-page */foo.1.gz:3* + +# renamed tag +package-install-apt-sources * + +#FSSTND-dir-in-manual-page usr/share/man/man1/foo.1.gz * more occurrences not shown diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/debian/manpages b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/debian/manpages new file mode 100644 index 00000000..efb5c573 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/debian/manpages @@ -0,0 +1 @@ +foo.1 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/eval/hints new file mode 100644 index 00000000..1a226029 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/eval/hints @@ -0,0 +1,2 @@ +mixed-overrides (binary): renamed-tag package-install-apt-sources => package-installs-apt-sources [usr/share/lintian/overrides/mixed-overrides:18] +mixed-overrides (binary): renamed-tag manpage-has-bad-whatis-entry => bad-whatis-entry [usr/share/lintian/overrides/mixed-overrides:6] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/foo.1 b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/foo.1 new file mode 100644 index 00000000..233a578b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/mixed-overrides/foo.1 @@ -0,0 +1,32 @@ +.TH FOO 1 "Sep 13, 2008" "Debian GNU/Linux" + +.SH DESCRIPTION +/usr/dict/ +/usr/doc/ +/usr/etc/ + + + + + +/usr/info/ +/usr/man/ +/usr/adm/ + + + + + + +/var/adm/ +/var/catman/ +/var/named/ + + + + + + +/var/nis/ +/var/preserve/ +/usr/preserve/ diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/ORIGIN new file mode 100644 index 00000000..b0ba1c22 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/lintian-overrides/mystery/overrides-shown + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/debian/changelog new file mode 100644 index 00000000..a6b19326 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/debian/changelog @@ -0,0 +1,17 @@ +overrides-shown (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: overrides-shown + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +overrides-shown (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: overrides-shown + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/debian/control new file mode 100644 index 00000000..6ce5834f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/debian/control @@ -0,0 +1,17 @@ +Source: overrides-shown +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: overrides-shown +Architecture: any +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test override handling + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/debian/install b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/debian/install new file mode 100644 index 00000000..747a3138 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/debian/install @@ -0,0 +1 @@ +foo.1 /etc/apt/sources.list.d \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/debian/manpages b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/debian/manpages new file mode 100644 index 00000000..efb5c573 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/debian/manpages @@ -0,0 +1 @@ +foo.1 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/debian/overrides-shown.lintian-overrides b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/debian/overrides-shown.lintian-overrides new file mode 100644 index 00000000..bda39f86 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/debian/overrides-shown.lintian-overrides @@ -0,0 +1,21 @@ +# This comment will not appear in the output, also the last +# tag should not have a comment due to the empty line between +# it and the one before it. + +# override without extra information +manpage-has-bad-whatis-entry +# Architecture specific override +[i386]: FSSTND-dir-in-manual-page usr/share/man/man1/foo.1.gz:6 /usr/etc/ +[!i386]: FSSTND-dir-in-manual-page usr/share/man/man1/foo.1.gz:6 /usr/etc/ +# exact extra information +FSSTND-dir-in-manual-page usr/share/man/man1/foo.1.gz:4 /usr/dict/ +# These are wildcard overrides +FSSTND-dir-in-manual-page usr/share/man/man1/foo.1.gz:2* +FSSTND-dir-in-manual-page */foo.1.gz:5 /usr/doc/ +# Comments in UTF-8: ✓ (☃) +FSSTND-dir-in-manual-page */foo.1.gz:3* + +# renamed tag +package-install-apt-sources * + +#FSSTND-dir-in-manual-page usr/share/man/man1/foo.1.gz * more occurrences not shown diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/eval/hints new file mode 100644 index 00000000..d81abaf6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/eval/hints @@ -0,0 +1,2 @@ +overrides-shown (binary): renamed-tag package-install-apt-sources => package-installs-apt-sources [usr/share/lintian/overrides/overrides-shown:19] +overrides-shown (binary): renamed-tag manpage-has-bad-whatis-entry => bad-whatis-entry [usr/share/lintian/overrides/overrides-shown:6] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/foo.1 b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/foo.1 new file mode 100644 index 00000000..233a578b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/mystery/overrides-shown/foo.1 @@ -0,0 +1,32 @@ +.TH FOO 1 "Sep 13, 2008" "Debian GNU/Linux" + +.SH DESCRIPTION +/usr/dict/ +/usr/doc/ +/usr/etc/ + + + + + +/usr/info/ +/usr/man/ +/usr/adm/ + + + + + + +/var/adm/ +/var/catman/ +/var/named/ + + + + + + +/var/nis/ +/var/preserve/ +/usr/preserve/ diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/ORIGIN new file mode 100644 index 00000000..d83192e8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/lintian-overrides/restricted/amd64-on-arch-all + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/debian/changelog new file mode 100644 index 00000000..f302ce7a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/debian/changelog @@ -0,0 +1,17 @@ +amd64-on-arch-all (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: amd64-on-arch-all + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +amd64-on-arch-all (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: amd64-on-arch-all + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/debian/control new file mode 100644 index 00000000..b59d2d73 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/debian/control @@ -0,0 +1,17 @@ +Source: amd64-on-arch-all +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: amd64-on-arch-all +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Override with amd64 architecture restriction on an Arch: all installable. + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/debian/lintian-overrides b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/debian/lintian-overrides new file mode 100644 index 00000000..deea5777 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/debian/lintian-overrides @@ -0,0 +1 @@ +[amd64]: cute-field diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/eval/hints new file mode 100644 index 00000000..d74e8783 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/eval/hints @@ -0,0 +1 @@ +amd64-on-arch-all (binary): invalid-override-restriction Architecture list in Arch:all installable [usr/share/lintian/overrides/amd64-on-arch-all:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/arch-bingo/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/arch-bingo/ORIGIN new file mode 100644 index 00000000..e97b09bf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/arch-bingo/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/lintian-overrides/restricted/arch-bingo + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/arch-bingo/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/arch-bingo/debian/changelog new file mode 100644 index 00000000..59665705 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/arch-bingo/debian/changelog @@ -0,0 +1,17 @@ +arch-bingo (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: arch-bingo + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +arch-bingo (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: arch-bingo + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/arch-bingo/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/arch-bingo/debian/control new file mode 100644 index 00000000..d4196825 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/arch-bingo/debian/control @@ -0,0 +1,17 @@ +Source: arch-bingo +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: arch-bingo +Architecture: any +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Override with 'bingo' architecture restriction on an Arch: any installable + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/arch-bingo/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/arch-bingo/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/arch-bingo/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/arch-bingo/debian/lintian-overrides b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/arch-bingo/debian/lintian-overrides new file mode 100644 index 00000000..bb1c6697 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/arch-bingo/debian/lintian-overrides @@ -0,0 +1 @@ +[bingo]: cute-field diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/arch-bingo/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/arch-bingo/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/arch-bingo/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/arch-bingo/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/arch-bingo/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/arch-bingo/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/arch-bingo/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/arch-bingo/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/arch-bingo/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/arch-bingo/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/arch-bingo/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/arch-bingo/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/arch-bingo/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/arch-bingo/eval/hints new file mode 100644 index 00000000..667ea2f4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/arch-bingo/eval/hints @@ -0,0 +1 @@ +arch-bingo (binary): invalid-override-restriction Unknown architecture wildcard bingo [usr/share/lintian/overrides/arch-bingo:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/ORIGIN new file mode 100644 index 00000000..873c42e8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/debian/changelog new file mode 100644 index 00000000..3c957f15 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/debian/changelog @@ -0,0 +1,17 @@ +fields-multi-arch-same-package-has-arch-specific-overrides (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: fields-multi-arch-same-package-has-arch-specific-overrides + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +fields-multi-arch-same-package-has-arch-specific-overrides (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: fields-multi-arch-same-package-has-arch-specific-overrides + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/debian/control new file mode 100644 index 00000000..31b8c6aa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/debian/control @@ -0,0 +1,28 @@ +Source: fields-multi-arch-same-package-has-arch-specific-overrides +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 13) +Rules-Requires-Root: no + +Package: fields-multi-arch-same-package-has-arch-specific-overrides +Architecture: any +Multi-Arch: same +Depends: ${misc:Depends} +Description: Test for Multi-Arch: same package with arch-specific overrides + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: fields-multi-arch-same-package-has-arch-specific-overrides-nonrel +Architecture: any +Depends: ${misc:Depends} +Description: Test for Multi-Arch: same package with arch-specific overrides (false positive) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + This is a false-positive. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/debian/fields-multi-arch-same-package-has-arch-specific-overrides-nonrel.lintian-overrides.amd64 b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/debian/fields-multi-arch-same-package-has-arch-specific-overrides-nonrel.lintian-overrides.amd64 new file mode 100644 index 00000000..257cc564 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/debian/fields-multi-arch-same-package-has-arch-specific-overrides-nonrel.lintian-overrides.amd64 @@ -0,0 +1 @@ +foo diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/debian/fields-multi-arch-same-package-has-arch-specific-overrides.lintian-overrides.amd64 b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/debian/fields-multi-arch-same-package-has-arch-specific-overrides.lintian-overrides.amd64 new file mode 100644 index 00000000..257cc564 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/debian/fields-multi-arch-same-package-has-arch-specific-overrides.lintian-overrides.amd64 @@ -0,0 +1 @@ +foo diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/maintscript/maintscript-includes-maint-script-parameters/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/maintscript/maintscript-includes-maint-script-parameters/ORIGIN new file mode 100644 index 00000000..14c06b4e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/maintscript/maintscript-includes-maint-script-parameters/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/maintscript/maintscript-includes-maint-script-parameters + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/maintscript/maintscript-includes-maint-script-parameters/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/maintscript/maintscript-includes-maint-script-parameters/debian/changelog new file mode 100644 index 00000000..27f2d580 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/maintscript/maintscript-includes-maint-script-parameters/debian/changelog @@ -0,0 +1,17 @@ +maintscript-includes-maint-script-parameters (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: maintscript-includes-maint-script-parameters + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +maintscript-includes-maint-script-parameters (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: maintscript-includes-maint-script-parameters + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/maintscript/maintscript-includes-maint-script-parameters/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/maintscript/maintscript-includes-maint-script-parameters/debian/control new file mode 100644 index 00000000..9affc628 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/maintscript/maintscript-includes-maint-script-parameters/debian/control @@ -0,0 +1,17 @@ +Source: maintscript-includes-maint-script-parameters +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 11) +Homepage: https://lintian.debian.org/ + +Package: maintscript-includes-maint-script-parameters +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check dh_installdeb .maintscript files + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/maintscript/maintscript-includes-maint-script-parameters/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/maintscript/maintscript-includes-maint-script-parameters/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/maintscript/maintscript-includes-maint-script-parameters/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/maintscript/maintscript-includes-maint-script-parameters/debian/maintscript b/packages/debmagic/tests/lintian-parity/checks/debian/maintscript/maintscript-includes-maint-script-parameters/debian/maintscript new file mode 100644 index 00000000..6a583d70 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/maintscript/maintscript-includes-maint-script-parameters/debian/maintscript @@ -0,0 +1,4 @@ +rm_conffile /etc/correct.conf 0.2~ foo +rm_conffile /etc/incorrect.conf 0.2~ foo -- "$@" +rm_conffile /etc/incorrect.conf 0.2~ foo -- "${@}" +rm_conffile /etc/incorrect.conf 0.2~ foo -- "$@" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/maintscript/maintscript-includes-maint-script-parameters/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/maintscript/maintscript-includes-maint-script-parameters/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/maintscript/maintscript-includes-maint-script-parameters/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/maintscript/maintscript-includes-maint-script-parameters/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/maintscript/maintscript-includes-maint-script-parameters/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/maintscript/maintscript-includes-maint-script-parameters/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/maintscript/maintscript-includes-maint-script-parameters/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/maintscript/maintscript-includes-maint-script-parameters/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/maintscript/maintscript-includes-maint-script-parameters/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/maintscript/maintscript-includes-maint-script-parameters/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/maintscript/maintscript-includes-maint-script-parameters/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/maintscript/maintscript-includes-maint-script-parameters/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/maintscript/maintscript-includes-maint-script-parameters/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/maintscript/maintscript-includes-maint-script-parameters/eval/hints new file mode 100644 index 00000000..6fcf5bff --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/maintscript/maintscript-includes-maint-script-parameters/eval/hints @@ -0,0 +1,3 @@ +maintscript-includes-maint-script-parameters (source): maintscript-includes-maint-script-parameters [debian/maintscript:4] +maintscript-includes-maint-script-parameters (source): maintscript-includes-maint-script-parameters [debian/maintscript:3] +maintscript-includes-maint-script-parameters (source): maintscript-includes-maint-script-parameters [debian/maintscript:2] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/ORIGIN new file mode 100644 index 00000000..4a1355a7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/manual-pages/maintainer-provided-executable + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/debian/bin/not-suitable-for-upstream b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/debian/bin/not-suitable-for-upstream new file mode 100755 index 00000000..e47f7312 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/debian/bin/not-suitable-for-upstream @@ -0,0 +1,3 @@ +#!/bin/sh + +# USER-FACING EXECUTABLE NOT SUITABLE FOR INCLUSION UPSTREAM diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/debian/changelog new file mode 100644 index 00000000..ed474f75 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/debian/changelog @@ -0,0 +1,17 @@ +maintainer-provided-executable (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: maintainer-provided-executable + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +maintainer-provided-executable (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: maintainer-provided-executable + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/debian/control new file mode 100644 index 00000000..96b91903 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/debian/control @@ -0,0 +1,17 @@ +Source: maintainer-provided-executable +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: maintainer-provided-executable +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Maintainer manual page with executable also so provided (false positive) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/debian/not-suitable-for-upstream.1 b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/debian/not-suitable-for-upstream.1 new file mode 100644 index 00000000..1c0946b5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/debian/not-suitable-for-upstream.1 @@ -0,0 +1 @@ +A MANPAGE diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/maintainer-provided-executable/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/ORIGIN new file mode 100644 index 00000000..21caa7d4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/manual-pages/manpage-in-1 + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/debian/changelog new file mode 100644 index 00000000..e74fec9d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/debian/changelog @@ -0,0 +1,17 @@ +manpage-in-1 (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: manpage-in-1 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +manpage-in-1 (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: manpage-in-1 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/debian/control new file mode 100644 index 00000000..b69d1784 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/debian/control @@ -0,0 +1,17 @@ +Source: manpage-in-1 +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: manpage-in-1 +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Maintainer keeps a manpage from section 1 in ./debian + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/debian/not-forwarded.1 b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/debian/not-forwarded.1 new file mode 100644 index 00000000..1c0946b5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/debian/not-forwarded.1 @@ -0,0 +1 @@ +A MANPAGE diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/eval/hints new file mode 100644 index 00000000..818b90cb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/manual-pages/manpage-in-1/eval/hints @@ -0,0 +1 @@ +manpage-in-1 (source): maintainer-manual-page [debian/not-forwarded.1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/not-installed/triplet-in-library-path/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/not-installed/triplet-in-library-path/ORIGIN new file mode 100644 index 00000000..a114a4bc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/not-installed/triplet-in-library-path/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/not-installed/triplet-in-library-path + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/not-installed/triplet-in-library-path/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/not-installed/triplet-in-library-path/debian/changelog new file mode 100644 index 00000000..310a4d66 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/not-installed/triplet-in-library-path/debian/changelog @@ -0,0 +1,17 @@ +triplet-in-library-path (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: triplet-in-library-path + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +triplet-in-library-path (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: triplet-in-library-path + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/not-installed/triplet-in-library-path/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/not-installed/triplet-in-library-path/debian/control new file mode 100644 index 00000000..ed8edba3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/not-installed/triplet-in-library-path/debian/control @@ -0,0 +1,17 @@ +Source: triplet-in-library-path +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: triplet-in-library-path +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Excludes a library from installation only on one architecture + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/not-installed/triplet-in-library-path/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/not-installed/triplet-in-library-path/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/not-installed/triplet-in-library-path/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/not-installed/triplet-in-library-path/debian/not-installed b/packages/debmagic/tests/lintian-parity/checks/debian/not-installed/triplet-in-library-path/debian/not-installed new file mode 100644 index 00000000..3bb04563 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/not-installed/triplet-in-library-path/debian/not-installed @@ -0,0 +1 @@ +usr/lib/x86_64-linux-gnu/does-not-exist.a diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/not-installed/triplet-in-library-path/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/not-installed/triplet-in-library-path/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/not-installed/triplet-in-library-path/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/not-installed/triplet-in-library-path/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/not-installed/triplet-in-library-path/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/not-installed/triplet-in-library-path/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/not-installed/triplet-in-library-path/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/not-installed/triplet-in-library-path/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/not-installed/triplet-in-library-path/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/not-installed/triplet-in-library-path/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/not-installed/triplet-in-library-path/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/not-installed/triplet-in-library-path/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/not-installed/triplet-in-library-path/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/not-installed/triplet-in-library-path/eval/hints new file mode 100644 index 00000000..32b37b56 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/not-installed/triplet-in-library-path/eval/hints @@ -0,0 +1 @@ +triplet-in-library-path (source): unwanted-path-too-specific usr/lib/x86_64-linux-gnu/does-not-exist.a [debian/not-installed:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/ORIGIN new file mode 100644 index 00000000..21ff81e0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/count/two-patches + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/debian/changelog new file mode 100644 index 00000000..80b03111 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/debian/changelog @@ -0,0 +1,17 @@ +two-patches (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: two-patches + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +two-patches (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: two-patches + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/debian/control new file mode 100644 index 00000000..cca4f1e3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/debian/control @@ -0,0 +1,17 @@ +Source: two-patches +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: two-patches +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Package with two Debian patches + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/debian/patches/patch1 b/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/debian/patches/patch1 new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/debian/patches/patch2 b/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/debian/patches/patch2 new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/debian/patches/series b/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/debian/patches/series new file mode 100644 index 00000000..8c90984c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/debian/patches/series @@ -0,0 +1,5 @@ +patch1 +# a comment +patch2 # another comment + # yet another comment +# patch3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/eval/hints new file mode 100644 index 00000000..e7e3e7dc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/count/two-patches/eval/hints @@ -0,0 +1 @@ +two-patches (source): number-of-patches 2 [debian/patches/series] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/ORIGIN new file mode 100644 index 00000000..9e91a2ea --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/dep3/applied-upstream + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/debian/changelog new file mode 100644 index 00000000..3683f79d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/debian/changelog @@ -0,0 +1,17 @@ +applied-upstream (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: applied-upstream + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +applied-upstream (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: applied-upstream + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/debian/control new file mode 100644 index 00000000..de874036 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/debian/control @@ -0,0 +1,17 @@ +Source: applied-upstream +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: applied-upstream +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Debian patch with Applied-Upstream (false positive) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/debian/patches/applied-upstream.patch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/debian/patches/applied-upstream.patch new file mode 100644 index 00000000..a1193df6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/debian/patches/applied-upstream.patch @@ -0,0 +1,15 @@ +Description: Convert a source file to UTF-8 encoding. +Author: Felix Lechner +Applied-Upstream: https://gitlab.gnome.org/World/lollypop/-/commit/4c1435ee22220c4a7f2ccaa05bce60a3e64cb912 + +--- a/cyassl/ctaocrypt/tfm.h ++++ b/cyassl/ctaocrypt/tfm.h +@@ -28,7 +28,7 @@ + + + /** +- * Edited by Moiss Guimares (moises.guimaraes@phoebus.com.br) ++ * Edited by Moisés Guimarães (moises.guimaraes@phoebus.com.br) + * to fit CyaSSL's needs. + */ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/applied-upstream/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/ORIGIN new file mode 100644 index 00000000..312ecf82 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/dep3/author-or-from-is-better + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/debian/changelog new file mode 100644 index 00000000..41634c35 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/debian/changelog @@ -0,0 +1,17 @@ +author-or-from-is-better (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: author-or-from-is-better + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +author-or-from-is-better (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: author-or-from-is-better + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/debian/control new file mode 100644 index 00000000..c7512383 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/debian/control @@ -0,0 +1,17 @@ +Source: author-or-from-is-better +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: author-or-from-is-better +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: "Origin:" field seems to contain email address, use "Author:" or "From:" instead. + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/debian/patches/author-or-from-is-better.patch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/debian/patches/author-or-from-is-better.patch new file mode 100644 index 00000000..de090b5d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/debian/patches/author-or-from-is-better.patch @@ -0,0 +1,14 @@ +Description: "Origin:" field contains email address, use "Author:" or "From:" then. +Origin: Hideki Yamane +Forwarded: Yes + +--- a/foobar.h ++++ b/foobar.h +@@ -20,6 +20,6 @@ + + + /** +- * You may know. ++ * You may know... + */ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/eval/hints new file mode 100644 index 00000000..085f6436 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/author-or-from-is-better/eval/hints @@ -0,0 +1 @@ +author-or-from-is-better (source): dep3-format-patch-author-or-from-is-better [debian/patches/author-or-from-is-better.patch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/ORIGIN new file mode 100644 index 00000000..983bf370 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/dep3/bug-field-default-value + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/debian/changelog new file mode 100644 index 00000000..1393f73c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/debian/changelog @@ -0,0 +1,17 @@ +bug-field-default-value (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: bug-field-default-value + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +bug-field-default-value (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: bug-field-default-value + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/debian/control new file mode 100644 index 00000000..b9f2e27c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/debian/control @@ -0,0 +1,17 @@ +Source: bug-field-default-value +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: bug-field-default-value +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: The "Bug:" field contains a default value, it should be changed to an appropriate value + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/debian/patches/bug-field-default-value.patch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/debian/patches/bug-field-default-value.patch new file mode 100644 index 00000000..b92a3529 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/debian/patches/bug-field-default-value.patch @@ -0,0 +1,15 @@ +Description: Bug field now contains default value, it should be changed as actual upstream url +Author: Hideki Yamane +Forwarded: Yes +Bug: + +--- a/foobar.h ++++ b/foobar.h +@@ -20,6 +20,6 @@ + + + /** +- * You may know. ++ * You may know... + */ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/eval/hints new file mode 100644 index 00000000..ef2dc132 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-field-default-value/eval/hints @@ -0,0 +1 @@ +bug-field-default-value (source): invalid-dep3-format-patch-bug-field-default-value [debian/patches/bug-field-default-value.patch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/ORIGIN new file mode 100644 index 00000000..54fd61e1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/dep3/bug-not-contain-url + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/debian/changelog new file mode 100644 index 00000000..7b952f54 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/debian/changelog @@ -0,0 +1,17 @@ +bug-not-contain-url (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: bug-not-contain-url + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +bug-not-contain-url (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: bug-not-contain-url + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/debian/control new file mode 100644 index 00000000..63924b7c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/debian/control @@ -0,0 +1,17 @@ +Source: bug-not-contain-url +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: bug-not-contain-url +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: According to DEP3, "Bug:" field should contain URL. + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/debian/patches/bug-not-contain-url.patch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/debian/patches/bug-not-contain-url.patch new file mode 100644 index 00000000..52ff4a3f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/debian/patches/bug-not-contain-url.patch @@ -0,0 +1,15 @@ +Description: "Bug:" field should be URL. +Origin: vendor +Forwarded: Yes +Bug: forgot_it + +--- a/foobar.h ++++ b/foobar.h +@@ -20,6 +20,6 @@ + + + /** +- * You may know. ++ * You may know... + */ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/eval/hints new file mode 100644 index 00000000..a593f314 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/bug-not-contain-url/eval/hints @@ -0,0 +1 @@ +bug-not-contain-url (source): invalid-dep3-format-patch-bug-not-contain-url [debian/patches/bug-not-contain-url.patch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/ORIGIN new file mode 100644 index 00000000..6cbddf3b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/dep3/empty-forwarded-no-bug + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/debian/changelog new file mode 100644 index 00000000..ca0fe9d1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/debian/changelog @@ -0,0 +1,17 @@ +empty-forwarded-no-bug (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: empty-forwarded-no-bug + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +empty-forwarded-no-bug (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: empty-forwarded-no-bug + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/debian/control new file mode 100644 index 00000000..aaec875b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/debian/control @@ -0,0 +1,17 @@ +Source: empty-forwarded-no-bug +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: empty-forwarded-no-bug +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Debian patch with empty Forwarded and no Bug + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/debian/patches/silent.patch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/debian/patches/silent.patch new file mode 100644 index 00000000..f35f2991 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/debian/patches/silent.patch @@ -0,0 +1,14 @@ +Description: Convert a source file to UTF-8 encoding. +Author: Felix Lechner + +--- a/cyassl/ctaocrypt/tfm.h ++++ b/cyassl/ctaocrypt/tfm.h +@@ -28,7 +28,7 @@ + + + /** +- * Edited by Moiss Guimares (moises.guimaraes@phoebus.com.br) ++ * Edited by Moisés Guimarães (moises.guimaraes@phoebus.com.br) + * to fit CyaSSL's needs. + */ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/eval/hints new file mode 100644 index 00000000..8a913bed --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/empty-forwarded-no-bug/eval/hints @@ -0,0 +1 @@ +empty-forwarded-no-bug (source): patch-not-forwarded-upstream [debian/patches/silent.patch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/ORIGIN new file mode 100644 index 00000000..5a751502 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/dep3/forwarded-no + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/debian/changelog new file mode 100644 index 00000000..553877c2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/debian/changelog @@ -0,0 +1,17 @@ +forwarded-no (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: forwarded-no + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +forwarded-no (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: forwarded-no + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/debian/control new file mode 100644 index 00000000..4ee0ce50 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/debian/control @@ -0,0 +1,17 @@ +Source: forwarded-no +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: forwarded-no +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Debian patch with Forwarded: no + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/debian/patches/not-forwarded.patch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/debian/patches/not-forwarded.patch new file mode 100644 index 00000000..4b48b327 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/debian/patches/not-forwarded.patch @@ -0,0 +1,15 @@ +Description: Convert a source file to UTF-8 encoding. +Author: Felix Lechner +Forwarded: no + +--- a/cyassl/ctaocrypt/tfm.h ++++ b/cyassl/ctaocrypt/tfm.h +@@ -28,7 +28,7 @@ + + + /** +- * Edited by Moiss Guimares (moises.guimaraes@phoebus.com.br) ++ * Edited by Moisés Guimarães (moises.guimaraes@phoebus.com.br) + * to fit CyaSSL's needs. + */ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/eval/hints new file mode 100644 index 00000000..428ce9fd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-no/eval/hints @@ -0,0 +1 @@ +forwarded-no (source): patch-not-forwarded-upstream [debian/patches/not-forwarded.patch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/ORIGIN new file mode 100644 index 00000000..f998eba7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/dep3/forwarded-not-needed + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/debian/changelog new file mode 100644 index 00000000..6d8598fe --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/debian/changelog @@ -0,0 +1,17 @@ +forwarded-not-needed (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: forwarded-not-needed + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +forwarded-not-needed (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: forwarded-not-needed + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/debian/control new file mode 100644 index 00000000..b7e7ed7e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/debian/control @@ -0,0 +1,17 @@ +Source: forwarded-not-needed +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: forwarded-not-needed +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Debian patch with Forwarded: not-needed (false positive) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/debian/patches/no-forwarding-needed.patch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/debian/patches/no-forwarding-needed.patch new file mode 100644 index 00000000..65e7f54f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/debian/patches/no-forwarding-needed.patch @@ -0,0 +1,15 @@ +Description: Convert a source file to UTF-8 encoding. +Author: Felix Lechner +Forwarded: not-needed + +--- a/cyassl/ctaocrypt/tfm.h ++++ b/cyassl/ctaocrypt/tfm.h +@@ -28,7 +28,7 @@ + + + /** +- * Edited by Moiss Guimares (moises.guimaraes@phoebus.com.br) ++ * Edited by Moisés Guimarães (moises.guimaraes@phoebus.com.br) + * to fit CyaSSL's needs. + */ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/forwarded-not-needed/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/ORIGIN new file mode 100644 index 00000000..738e0a3c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/dep3/last-update + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/debian/changelog new file mode 100644 index 00000000..634a4fda --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/debian/changelog @@ -0,0 +1,17 @@ +last-update (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: last-update + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +last-update (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: last-update + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/debian/control new file mode 100644 index 00000000..be53bdbe --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/debian/control @@ -0,0 +1,17 @@ +Source: last-update +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: last-update +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Debian patch with Last-Update field is correct ISO YYYY-MM-DD format + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/debian/patches/last-update.patch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/debian/patches/last-update.patch new file mode 100644 index 00000000..cd3843d2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/debian/patches/last-update.patch @@ -0,0 +1,15 @@ +Description: Check Last-Update field as ISO8601 YYYY-MM-DD format +Author: Hideki Yamane +Last-Update: 2023-31-03 +Forwarded: Yes + +--- a/foobar.h ++++ b/foobar.h +@@ -20,6 +20,6 @@ + + + /** +- * You may know. ++ * You may know... + */ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/eval/hints new file mode 100644 index 00000000..e9a01151 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/last-update/eval/hints @@ -0,0 +1 @@ +last-update (source): invalid-dep3-format-patch-wrong-last-update [debian/patches/last-update.patch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/ORIGIN new file mode 100644 index 00000000..e44d52e9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/dep3/maybe-bug-debian + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/debian/changelog new file mode 100644 index 00000000..ac863a20 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/debian/changelog @@ -0,0 +1,17 @@ +maybe-bug-debian (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: maybe-bug-debian + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +maybe-bug-debian (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: maybe-bug-debian + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/debian/control new file mode 100644 index 00000000..1d1f60ed --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/debian/control @@ -0,0 +1,17 @@ +Source: maybe-bug-debian +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: maybe-bug-debian +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: "Bug:" field seems to be have Debian BTS number + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/debian/patches/maybe-bug-debian.patch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/debian/patches/maybe-bug-debian.patch new file mode 100644 index 00000000..dbc41b1f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/debian/patches/maybe-bug-debian.patch @@ -0,0 +1,15 @@ +Description: Bug field should not contain Debian BTS number +Author: Hideki Yamane +Forwarded: Yes +Bug: #927914 + +--- a/foobar.h ++++ b/foobar.h +@@ -20,6 +20,6 @@ + + + /** +- * You may know. ++ * You may know... + */ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/eval/hints new file mode 100644 index 00000000..6c7d095a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/maybe-bug-debian/eval/hints @@ -0,0 +1 @@ +maybe-bug-debian (source): invalid-dep3-format-patch-maybe-bug-debian [debian/patches/maybe-bug-debian.patch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/ORIGIN new file mode 100644 index 00000000..f0e42559 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/dep3/no-description-and-subject + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/debian/changelog new file mode 100644 index 00000000..8751c831 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/debian/changelog @@ -0,0 +1,17 @@ +no-description-and-subject (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: no-description-and-subject + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +no-description-and-subject (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: no-description-and-subject + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/debian/control new file mode 100644 index 00000000..db3afdee --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/debian/control @@ -0,0 +1,17 @@ +Source: no-description-and-subject +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: no-description-and-subject +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Debian patch without "Description" and "Subject" + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/debian/patches/no-description-and-subject.patch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/debian/patches/no-description-and-subject.patch new file mode 100644 index 00000000..93111bf0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/debian/patches/no-description-and-subject.patch @@ -0,0 +1,14 @@ +Origin: vendor +Author: Hideki Yamane +Forwarded: Yes + +--- a/foobar.h ++++ b/foobar.h +@@ -20,6 +20,6 @@ + + + /** +- * You may know. ++ * You may know... + */ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/eval/hints new file mode 100644 index 00000000..6b58b2b1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-description-and-subject/eval/hints @@ -0,0 +1 @@ +no-description-and-subject (source): invalid-dep3-format-patch-no-description-and-subject [debian/patches/no-description-and-subject.patch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/ORIGIN new file mode 100644 index 00000000..c7fffc84 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/dep3/no-origin + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/debian/changelog new file mode 100644 index 00000000..e0cd222b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/debian/changelog @@ -0,0 +1,17 @@ +no-origin (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: no-origin + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +no-origin (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: no-origin + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/debian/control new file mode 100644 index 00000000..7beffa79 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/debian/control @@ -0,0 +1,17 @@ +Source: no-origin +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: no-origin +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Debian patch without "Origin:" field + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/debian/patches/no-origin.patch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/debian/patches/no-origin.patch new file mode 100644 index 00000000..17ddf934 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/debian/patches/no-origin.patch @@ -0,0 +1,13 @@ +Description: patch should have "Origin:", "Author:" or "From:" field +Forwarded: Yes + +--- a/foobar.h ++++ b/foobar.h +@@ -20,6 +20,6 @@ + + + /** +- * You may know. ++ * You may know... + */ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/eval/hints new file mode 100644 index 00000000..25eadda5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/no-origin/eval/hints @@ -0,0 +1 @@ +no-origin (source): invalid-dep3-format-patch-no-origin [debian/patches/no-origin.patch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/ORIGIN new file mode 100644 index 00000000..84fa3d4f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/dep3/origin-field-default-value + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/debian/changelog new file mode 100644 index 00000000..dfb89262 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/debian/changelog @@ -0,0 +1,17 @@ +origin-field-default-value (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: origin-field-default-value + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +origin-field-default-value (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: origin-field-default-value + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/debian/control new file mode 100644 index 00000000..7f6a2496 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/debian/control @@ -0,0 +1,17 @@ +Source: origin-field-default-value +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: origin-field-default-value +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: "Origin:" field contains template value, it should be changes as appropriate value + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/debian/patches/origin-field-default-value.patch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/debian/patches/origin-field-default-value.patch new file mode 100644 index 00000000..0c537515 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/debian/patches/origin-field-default-value.patch @@ -0,0 +1,15 @@ +Description: Origin field now contains default value, it should be changed to an actual upstream url +Author: Hideki Yamane +Forwarded: Yes +Origin: (upstream|backport|vendor|other), (|commit:) +#Origin: , +--- a/foobar.h ++++ b/foobar.h +@@ -20,6 +20,6 @@ + + + /** +- * You may know. ++ * You may know... + */ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/eval/hints new file mode 100644 index 00000000..e37c865e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-field-default-value/eval/hints @@ -0,0 +1 @@ +origin-field-default-value (source): invalid-dep3-format-patch-origin-field-default-value [debian/patches/origin-field-default-value.patch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/ORIGIN new file mode 100644 index 00000000..7d344488 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/dep3/origin-upstream + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/debian/changelog new file mode 100644 index 00000000..2a89938c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/debian/changelog @@ -0,0 +1,17 @@ +origin-upstream (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: origin-upstream + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +origin-upstream (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: origin-upstream + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/debian/control new file mode 100644 index 00000000..da20282a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/debian/control @@ -0,0 +1,17 @@ +Source: origin-upstream +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: origin-upstream +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Debian patch with Origin: upstream, URL (taken from Bug#966140) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/debian/patches/13_document_modifiers.diff b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/debian/patches/13_document_modifiers.diff new file mode 100644 index 00000000..76548ba7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/debian/patches/13_document_modifiers.diff @@ -0,0 +1,41 @@ +Description: Better document modifiers +Author: Emanuele Giaquinta +Origin: upstream, https://github.com/exg/rxvt-unicode/commit/b881e3714ba253d08dc1b900d9333b73759db126 +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=839769 +Last-Update: 2017-10-16 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: rxvt-unicode/doc/rxvt.1.pod +=================================================================== +--- rxvt-unicode.orig/doc/rxvt.1.pod 2017-10-16 11:03:33.669407628 -0400 ++++ rxvt-unicode/doc/rxvt.1.pod 2017-10-16 11:03:33.629407435 -0400 +@@ -1081,10 +1081,25 @@ + + (modifiers-)key + +-Where I can be any combination of B, B, +-B, B, B, B, B, B, B, +-B, B, B, and the abbreviated B, B, B, B, +-B, B, B, B, B<1>, B<2>, B<3>, B<4>, B<5>. ++Where I can be any combination of the following full or ++abbreviated modifier names: ++ ++=begin table ++ ++ B B ++ B B ++ B B ++ B B ++ B B ++ B B B ++ B B ++ B B<1> ++ B B<2> ++ B B<3> ++ B B<4> ++ B B<5> ++ ++=end table + + The B, B and B modifiers are usually aliased to + whatever modifier the NumLock key, Meta/Alt keys or ISO Level3 Shift/AltGr diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/origin-upstream/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/ORIGIN new file mode 100644 index 00000000..62547501 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/dep3/pseudo-header + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/debian/changelog new file mode 100644 index 00000000..f7fdfaa0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/debian/changelog @@ -0,0 +1,17 @@ +pseudo-header (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: pseudo-header + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +pseudo-header (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: pseudo-header + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/debian/control new file mode 100644 index 00000000..bb7d85b5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/debian/control @@ -0,0 +1,17 @@ +Source: pseudo-header +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: pseudo-header +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Debian patch with Forwarded: not-needed in a pseudo-header (false positive) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/debian/patches/no-forwarding-needed.patch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/debian/patches/no-forwarding-needed.patch new file mode 100644 index 00000000..1d7428a0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/debian/patches/no-forwarding-needed.patch @@ -0,0 +1,17 @@ +Description: Convert a source file to UTF-8 encoding. +Author: Felix Lechner + +# second pseudo-header allowed by DEP-3, see Bug#966024 +Forwarded: not-needed + +--- a/cyassl/ctaocrypt/tfm.h ++++ b/cyassl/ctaocrypt/tfm.h +@@ -28,7 +28,7 @@ + + + /** +- * Edited by Mois�s Guimar�es (moises.guimaraes@phoebus.com.br) ++ * Edited by Moisés Guimarães (moises.guimaraes@phoebus.com.br) + * to fit CyaSSL's needs. + */ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/pseudo-header/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/ORIGIN new file mode 100644 index 00000000..ef8680b7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/dep3/wrong-bug-debian-url + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/debian/changelog new file mode 100644 index 00000000..7de936aa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/debian/changelog @@ -0,0 +1,17 @@ +wrong-bug-debian-url (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: wrong-bug-debian-url + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +wrong-bug-debian-url (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: wrong-bug-debian-url + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/debian/control new file mode 100644 index 00000000..173f6bad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/debian/control @@ -0,0 +1,17 @@ +Source: wrong-bug-debian-url +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: wrong-bug-debian-url +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: "Bug-Debian:" field should be Debian BTS or salsa.debian.org URL + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/debian/patches/wrong-bug-debian.patch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/debian/patches/wrong-bug-debian.patch new file mode 100644 index 00000000..61220f71 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/debian/patches/wrong-bug-debian.patch @@ -0,0 +1,15 @@ +Description: "Bug-Debian:" field should be Debian BTS or salsa.debian.org URL +Author: Hideki Yamane +Forwarded: Yes +Bug-Debian: #927914 + +--- a/foobar.h ++++ b/foobar.h +@@ -20,6 +20,6 @@ + + + /** +- * You may know. ++ * You may know... + */ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/eval/hints new file mode 100644 index 00000000..f0b910cd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/dep3/wrong-bug-debian-url/eval/hints @@ -0,0 +1 @@ +wrong-bug-debian-url (source): invalid-dep3-format-patch-wrong-bug-debian-url [debian/patches/wrong-bug-debian.patch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/legacy-relations/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/legacy-relations/ORIGIN new file mode 100644 index 00000000..6bc52e62 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/legacy-relations/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/legacy-relations + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/legacy-relations/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/legacy-relations/debian/changelog new file mode 100644 index 00000000..d23f2272 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/legacy-relations/debian/changelog @@ -0,0 +1,33 @@ +relations (5) unstable; urgency=low + + * I'm orphaning this package -- I'm sick of it: it's completely broken, + lintian complains all over the place. + + -- Jeroen van Wolffelaar Sun, 02 Dec 2007 15:59:59 -0800 + +relations (4) unstable; urgency=low + + * Added a package that tests dependencies for multiple versions of + libraries, and test some description stuff in there as well. + + -- Josip Rodin Fri, 29 Nov 2002 20:13:33 +0100 + +relations (3) unstable; urgency=low + + * Added a virtual provides to test against my virtual depends without + a real package first test + + -- Sean 'Shaleh' Perry Thu, 8 Feb 2001 11:29:53 -0800 + +relations (2) unstable; urgency=low + + * Added a depends on dpkg (violates policy) and a versioned depends + on bash (follows policy) + + -- Sean 'Shaleh' Perry Fri, 2 Feb 2001 12:37:17 -0800 + +relations (1) unstable; urgency=low + + * Initial version + + -- Richard Braakman Tue, 7 Jul 1998 16:27:56 +0200 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/legacy-relations/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/legacy-relations/debian/control new file mode 100644 index 00000000..6cd1c044 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/legacy-relations/debian/control @@ -0,0 +1,51 @@ +Source: relations +Section: misc +Priority: optional +Build-Depends: mail-transport-agent, libc6-dev, findutils, foo (= 3) [!amd64 !i386], bar, arch-test1 [i386], arch-test2 [!i386], quilt (>= 0.40), perl +Build-Depends-Indep: make, bash, debmake, build-essential, baz (= 2.0), ghostscript | gs, + car (>= 1.0), car (<= 2.0), caz (= 1.0) [amd64], caz (>= 2.0) [i386], + caz (= 2.0) [powerpc], perl (>= 5.0), foo (<< 4) [!amd64 !i386], libfoo (>= 1.2-1), bozzle [kfreebsd-i386] +Build-Conflicts: foo [amd64 i386], bar [alpha test], xlibs-dev, arch-test1 [powerpc], arch-test2 [!sparc] +Build-Conflicts-Indep: debmake [!powerpc] +Maintainer: Debian QA Group +Standards-Version: 3.7.3 +Homepage: lintian.debian.org +Origin: Debian +Bugs: debbugs://bugs.debian.org/ + +Package: relations +Architecture: all +Section: contrib/misc +Pre-Depends: awk|gawk +Depends: relations(<< 3), dpkg, bash (>> 2.0 ), mail-transport-agent, gawk | awk, foo (>> 2.0), foo (<< 2.2), coreutils, ,null (>= 0), ${misc:Depends}, makedev +Provides: mail-reader +Replaces: relations +Conflicts: foobar (<< 5+5), foo, relations, + gnuwdf, +Suggests: alpha, gnu (>= 44-3-4-8-11.4) | ung (<< 89beta) | nug | ngu, beta, some-other-package +Recommends: emacs21 | emacsen, dpkg, null, some-other-package, ${f-oo:b-ar}, gs | ghostscript | gs-aladdin +Description: Strange dependency relationships (dummy) + This package declares relationships designed to tickle lintian's "fields" + check. It should generate a number of tags for these. + . + The package is built with "dpkg --build --no-check", because some of the + relationships used here are normally rejected by dpkg. + +Package: relations-multiple-libs +Architecture: all +Section: non-free/misc +Depends: libstdc++2.10, libstdc++2.10-glibc2.2, libstdc++3.0, tk8.2, tk8.3, tcl8.0, tcl8.2, tkx8.2, tkx8.3, tclx8.2, libpng2, libpng3, xorg, ${shlibs:Depends}, makedev | udev +Provides: awk +Enhances: foo +Recommends: ${shlibs:Depends}, relations-multiple-libs, gs | gs-gpl, makedev +Breaks: libpng3 (<< 1.0), libpng2 +Suggests: x-dev, ghostscript | gs +Description: Duplicate library dependency relationships. + Duplicate library dependency relationships. + This tests the depending on different versions of the same library + at the same time. + . + At the same time, it conveniently tests some description file checks. :) + . + It is a metapackage from the lintian perspective, so the xorg dependency + should be allowed. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/legacy-relations/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/legacy-relations/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/legacy-relations/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/legacy-relations/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/legacy-relations/debian/rules new file mode 100755 index 00000000..5027f335 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/legacy-relations/debian/rules @@ -0,0 +1,49 @@ +#!/usr/bin/make -f + +# Copyright (C) 1998 Richard Braakman +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, you can find it on the World Wide +# Web at https://www.gnu.org/copyleft/gpl.html, or write to the Free +# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +# MA 02110-1301, USA. + +build-arch: + +build-indep: + +build: build-arch build-indep + +binary-arch: + +binary-indep: + install -d debian/tmp/DEBIAN + dpkg-gencontrol -prelations -isp + dpkg --build debian/tmp ../relations_5_all.deb + install -d debian/tmp/usr/share/doc/ + ln -s relations debian/tmp/usr/share/doc/relations-multiple-libs + dpkg-gencontrol -prelations-multiple-libs -isp + dpkg --build debian/tmp ../relations-multiple-libs_5_all.deb + +binary: binary-arch binary-indep + +clean:: + rm -rf debian/tmp debian/files + +# Test allowing quilt Build-Depends for manual quilt invocations. + TESTING=foo ANOTHER=bar quilt || true + +# Test requiring perl Build-Depends for manual perl invocations. + [ ! -f Build ] || $(PERL) Build distclean + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/legacy-relations/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/legacy-relations/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/legacy-relations/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/legacy-relations/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/legacy-relations/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/legacy-relations/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/legacy-relations/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/legacy-relations/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/legacy-relations/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/legacy-relations/debian/tmp/DEBIAN/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/legacy-relations/debian/tmp/DEBIAN/control new file mode 100644 index 00000000..87e7fe68 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/legacy-relations/debian/tmp/DEBIAN/control @@ -0,0 +1,14 @@ +Package: relations-multiple-libs +Version: 4 +Section: misc +Priority: optional +Architecture: all +Depends: libstdc++2.10, libstdc++2.10-glibc2.2, libstdc++3.0, tk8.2, tk8.3, tcl8.0, tcl8.2, tkx8.2, tkx8.3, tclx8.2, libpng2, libpng3 +Installed-Size: 12 +Maintainer: Lintian Maintainer +Source: relations +Description: Duplicate library dependency relationships. + Duplicate library dependency relationships. This tests the depending on + different versions of the same library at the same time. + . + At the same time, it conveniently tests some description file checks. :) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/legacy-relations/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/legacy-relations/eval/hints new file mode 100644 index 00000000..e3cb73dd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/legacy-relations/eval/hints @@ -0,0 +1,2 @@ +relations (source): patch-system-but-no-source-readme +relations (source): patch-system quilt diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-empty-series/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-empty-series/ORIGIN new file mode 100644 index 00000000..ef6cccfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-empty-series/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/patch-systems-empty-series + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-empty-series/debian/README.source b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-empty-series/debian/README.source new file mode 100644 index 00000000..17250a4d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-empty-series/debian/README.source @@ -0,0 +1 @@ +This package uses quilt. See /usr/share/doc/quilt/README.source. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-empty-series/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-empty-series/debian/changelog new file mode 100644 index 00000000..0765714a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-empty-series/debian/changelog @@ -0,0 +1,17 @@ +patch-systems-empty-series (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: patch-systems-empty-series + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +patch-systems-empty-series (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: patch-systems-empty-series + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-empty-series/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-empty-series/debian/control new file mode 100644 index 00000000..40f6592b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-empty-series/debian/control @@ -0,0 +1,17 @@ +Source: patch-systems-empty-series +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), quilt +Homepage: https://lintian.debian.org/ + +Package: patch-systems-empty-series +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for quilt patches with empty series + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-empty-series/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-empty-series/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-empty-series/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-empty-series/debian/patches/series b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-empty-series/debian/patches/series new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-empty-series/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-empty-series/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-empty-series/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-empty-series/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-empty-series/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-empty-series/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-empty-series/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-empty-series/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-empty-series/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-empty-series/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-empty-series/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-empty-series/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-empty-series/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-empty-series/eval/hints new file mode 100644 index 00000000..c7f9fecb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-empty-series/eval/hints @@ -0,0 +1 @@ +patch-systems-empty-series (source): patch-system quilt diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-patch-system/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-patch-system/ORIGIN new file mode 100644 index 00000000..e4818df7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-patch-system/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/patch-systems-no-patch-system + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-patch-system/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-patch-system/debian/changelog new file mode 100644 index 00000000..df65759d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-patch-system/debian/changelog @@ -0,0 +1,17 @@ +patch-systems-no-patch-system (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: patch-systems-no-patch-system + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +patch-systems-no-patch-system (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: patch-systems-no-patch-system + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-patch-system/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-patch-system/debian/control new file mode 100644 index 00000000..2d26ce5f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-patch-system/debian/control @@ -0,0 +1,17 @@ +Source: patch-systems-no-patch-system +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: patch-systems-no-patch-system +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Diagnose lack of a patch system + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-patch-system/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-patch-system/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-patch-system/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-patch-system/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-patch-system/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-patch-system/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-patch-system/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-patch-system/debian/source/format new file mode 100644 index 00000000..d3827e75 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-patch-system/debian/source/format @@ -0,0 +1 @@ +1.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-patch-system/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-patch-system/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-patch-system/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-patch-system/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-patch-system/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-patch-system/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-patch-system/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-patch-system/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-patch-system/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-patch-system/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-patch-system/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-patch-system/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-patch-system/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-patch-system/eval/hints new file mode 100644 index 00000000..7e66d4db --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-patch-system/eval/hints @@ -0,0 +1 @@ +patch-systems-no-patch-system (source): direct-changes-in-diff-but-no-patch-system README diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-readme-source/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-readme-source/ORIGIN new file mode 100644 index 00000000..46517795 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-readme-source/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/patch-systems-no-readme-source + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-readme-source/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-readme-source/debian/changelog new file mode 100644 index 00000000..74d94398 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-readme-source/debian/changelog @@ -0,0 +1,17 @@ +patch-systems-no-readme-source (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: patch-systems-no-readme-source + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +patch-systems-no-readme-source (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: patch-systems-no-readme-source + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-readme-source/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-readme-source/debian/control new file mode 100644 index 00000000..48f5fbfe --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-readme-source/debian/control @@ -0,0 +1,17 @@ +Source: patch-systems-no-readme-source +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), quilt +Homepage: https://lintian.debian.org/ + +Package: patch-systems-no-readme-source +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Patch system with no README.source + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-readme-source/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-readme-source/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-readme-source/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-readme-source/debian/patches/01_this_patch_is_ok b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-readme-source/debian/patches/01_this_patch_is_ok new file mode 100644 index 00000000..7eee7078 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-readme-source/debian/patches/01_this_patch_is_ok @@ -0,0 +1,7 @@ +This is a description of the patch + +--- a.orig 2008-11-11 19:38:12.000000000 +0000 ++++ a 2008-11-11 19:38:26.000000000 +0000 +@@ -1 +1,2 @@ + sample text ++and some more sample text diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-readme-source/debian/patches/series b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-readme-source/debian/patches/series new file mode 100644 index 00000000..a342eb32 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-readme-source/debian/patches/series @@ -0,0 +1 @@ +01_this_patch_is_ok diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-readme-source/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-readme-source/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-readme-source/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-readme-source/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-readme-source/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-readme-source/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-readme-source/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-readme-source/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-readme-source/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-readme-source/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-readme-source/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-readme-source/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-readme-source/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-readme-source/eval/hints new file mode 100644 index 00000000..a53bbab8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-no-readme-source/eval/hints @@ -0,0 +1,2 @@ +patch-systems-no-readme-source (source): patch-system-but-no-source-readme +patch-systems-no-readme-source (source): patch-system quilt diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/ORIGIN new file mode 100644 index 00000000..81895f76 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/a b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/a new file mode 100644 index 00000000..c0acc645 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/a @@ -0,0 +1 @@ +sample text diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/debian/changelog new file mode 100644 index 00000000..8cb0458b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/debian/changelog @@ -0,0 +1,17 @@ +patch-systems-quilt-debian-changes (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: patch-systems-quilt-debian-changes + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +patch-systems-quilt-debian-changes (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: patch-systems-quilt-debian-changes + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/debian/control new file mode 100644 index 00000000..80799d80 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/debian/control @@ -0,0 +1,17 @@ +Source: patch-systems-quilt-debian-changes +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: patch-systems-quilt-debian-changes +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test a 3.0 (quilt) package which has a debian-changes-XXX patch + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/debian/patches/debian-changes-1.0-1 b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/debian/patches/debian-changes-1.0-1 new file mode 100644 index 00000000..7d0132f8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/debian/patches/debian-changes-1.0-1 @@ -0,0 +1,7 @@ +This is a description of the patch + +--- a/a 2008-11-11 19:38:12.000000000 +0000 ++++ a/a 2008-11-11 19:38:26.000000000 +0000 +@@ -1 +1,2 @@ + sample text ++and some more sample text diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/debian/patches/series b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/debian/patches/series new file mode 100644 index 00000000..9ca2b603 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/debian/patches/series @@ -0,0 +1 @@ +debian-changes-1.0-1 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/eval/hints new file mode 100644 index 00000000..94bd4e2d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-debian-changes/eval/hints @@ -0,0 +1 @@ +patch-systems-quilt-debian-changes (source): patch-system quilt diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/ORIGIN new file mode 100644 index 00000000..cdefa2a9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/patch-systems-quilt-description + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/README.source b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/README.source new file mode 100644 index 00000000..17250a4d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/README.source @@ -0,0 +1 @@ +This package uses quilt. See /usr/share/doc/quilt/README.source. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/changelog new file mode 100644 index 00000000..9c93269c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/changelog @@ -0,0 +1,17 @@ +patch-systems-quilt-description (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: patch-systems-quilt-description + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +patch-systems-quilt-description (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: patch-systems-quilt-description + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/control new file mode 100644 index 00000000..48610737 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/control @@ -0,0 +1,17 @@ +Source: patch-systems-quilt-description +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), quilt +Homepage: https://lintian.debian.org/ + +Package: patch-systems-quilt-description +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for quilt patches which do not have accompanying descriptions + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/patches/01_this_patch_is_ok b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/patches/01_this_patch_is_ok new file mode 100644 index 00000000..7eee7078 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/patches/01_this_patch_is_ok @@ -0,0 +1,7 @@ +This is a description of the patch + +--- a.orig 2008-11-11 19:38:12.000000000 +0000 ++++ a 2008-11-11 19:38:26.000000000 +0000 +@@ -1 +1,2 @@ + sample text ++and some more sample text diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/patches/02_this_one_has_no_description b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/patches/02_this_one_has_no_description new file mode 100644 index 00000000..12128b84 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/patches/02_this_one_has_no_description @@ -0,0 +1,5 @@ +--- a.orig 2008-11-11 19:38:12.000000000 +0000 ++++ a 2008-11-11 19:38:26.000000000 +0000 +@@ -1 +1,2 @@ + sample text ++and some more sample text diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/patches/03_a_git_patch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/patches/03_a_git_patch new file mode 100644 index 00000000..025656a9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/patches/03_a_git_patch @@ -0,0 +1,8 @@ +diff --git a/a b/a +index eb39593..7258d2f 100644 +--- a 2008-11-11 19:38:12.000000000 +0000 ++++ a 2008-11-11 19:38:26.000000000 +0000 +@@ -1 +1,3 @@ + sample text + and some more sample text ++and yet another line diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/patches/04_template_description b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/patches/04_template_description new file mode 100644 index 00000000..09bfd885 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/patches/04_template_description @@ -0,0 +1,17 @@ +Description: + This patch include a templated text for description + TODO: Put a short summary on the line above and replace this paragraph + with a longer explanation of this change. Complete the meta-information + with other relevant fields (see below for details). To make it easier, the + information below has been extracted from the changelog. Adjust it or drop + it. + . +diff --git a/a b/a +index eb39593..7258d2f 100644 +--- a 2008-11-11 19:38:12.000000000 +0000 ++++ a 2008-11-11 19:38:26.000000000 +0000 +@@ -1 +1,4 @@ + sample text + and some more sample text + and yet another line ++and so on diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/patches/series b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/patches/series new file mode 100644 index 00000000..a7ab4725 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/patches/series @@ -0,0 +1,4 @@ +01_this_patch_is_ok +02_this_one_has_no_description +03_a_git_patch +04_template_description diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/eval/hints new file mode 100644 index 00000000..c79c3e13 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-description/eval/hints @@ -0,0 +1 @@ +patch-systems-quilt-description (source): patch-system quilt diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/ORIGIN new file mode 100644 index 00000000..354b19ec --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/patch-systems-quilt-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/README.source b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/README.source new file mode 100644 index 00000000..052084ec --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/README.source @@ -0,0 +1 @@ +Some stuff about quilt here. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/changelog new file mode 100644 index 00000000..0a01aaeb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/changelog @@ -0,0 +1,17 @@ +patch-systems-quilt-general (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: patch-systems-quilt-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +patch-systems-quilt-general (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: patch-systems-quilt-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/control new file mode 100644 index 00000000..a26e7521 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/control @@ -0,0 +1,17 @@ +Source: patch-systems-quilt-general +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), quilt +Homepage: https://lintian.debian.org/ + +Package: patch-systems-quilt-general +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: General tests of a quilt patch system + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/patches/README b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/patches/README new file mode 100644 index 00000000..843d2491 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/patches/README @@ -0,0 +1 @@ +false positive for patch-file-present-but-not-mentioned-in-series tag diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/patches/README.patches b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/patches/README.patches new file mode 100644 index 00000000..843d2491 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/patches/README.patches @@ -0,0 +1 @@ +false positive for patch-file-present-but-not-mentioned-in-series tag diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/patches/file-commented-out b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/patches/file-commented-out new file mode 100644 index 00000000..257cc564 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/patches/file-commented-out @@ -0,0 +1 @@ +foo diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/patches/file-mentioned-in-vendor-series b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/patches/file-mentioned-in-vendor-series new file mode 100644 index 00000000..257cc564 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/patches/file-mentioned-in-vendor-series @@ -0,0 +1 @@ +foo diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/patches/file-not-referenced-in-series b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/patches/file-not-referenced-in-series new file mode 100644 index 00000000..257cc564 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/patches/file-not-referenced-in-series @@ -0,0 +1 @@ +foo diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/patches/series b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/patches/series new file mode 100644 index 00000000..040d7e81 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/patches/series @@ -0,0 +1,6 @@ +# tries to create an existing file, which fails in dpkg-source +# some-file +some-other-file -p0 +# non-existent patches trigger error in dpkg-source +# some-nonexistent-patch +# file-commented-out diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/patches/some-file b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/patches/some-file new file mode 100644 index 00000000..7749d406 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/patches/some-file @@ -0,0 +1,11 @@ +Some regular patch creating a file. + +--- /dev/null ++++ debian/debian/some-file +@@ -0,0 +1,6 @@ ++Some ++file ++created ++in ++debian ++directory. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/patches/some-other-file b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/patches/some-other-file new file mode 100644 index 00000000..ed24c8fd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/patches/some-other-file @@ -0,0 +1,12 @@ +Some -p0 patch creating a file. + +--- /dev/null ++++ debian/some-other-file +@@ -0,0 +1,7 @@ ++Some ++other ++file ++created ++in ++debian ++directory. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/patches/subdir/README b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/patches/subdir/README new file mode 100644 index 00000000..843d2491 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/patches/subdir/README @@ -0,0 +1 @@ +false positive for patch-file-present-but-not-mentioned-in-series tag diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/patches/subdir/file-not-referenced-in-series-2 b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/patches/subdir/file-not-referenced-in-series-2 new file mode 100644 index 00000000..257cc564 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/patches/subdir/file-not-referenced-in-series-2 @@ -0,0 +1 @@ +foo diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/patches/vendorname.series b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/patches/vendorname.series new file mode 100644 index 00000000..4232ed08 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/patches/vendorname.series @@ -0,0 +1 @@ +file-mentioned-in-vendor-series diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/eval/hints new file mode 100644 index 00000000..391c3741 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-general/eval/hints @@ -0,0 +1 @@ +patch-systems-quilt-general (source): patch-system quilt diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/ORIGIN new file mode 100644 index 00000000..8c8c2ad3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/patch-systems-quilt-no-newline + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/debian/README.source b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/debian/README.source new file mode 100644 index 00000000..17250a4d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/debian/README.source @@ -0,0 +1 @@ +This package uses quilt. See /usr/share/doc/quilt/README.source. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/debian/changelog new file mode 100644 index 00000000..c8ef10c7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/debian/changelog @@ -0,0 +1,17 @@ +patch-systems-quilt-no-newline (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: patch-systems-quilt-no-newline + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +patch-systems-quilt-no-newline (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: patch-systems-quilt-no-newline + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/debian/control new file mode 100644 index 00000000..3ad60151 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/debian/control @@ -0,0 +1,17 @@ +Source: patch-systems-quilt-no-newline +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), quilt +Homepage: https://lintian.debian.org/ + +Package: patch-systems-quilt-no-newline +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Patch system with no debian/series that does not end with newline + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/debian/patches/01_this_patch_is_ok b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/debian/patches/01_this_patch_is_ok new file mode 100644 index 00000000..7eee7078 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/debian/patches/01_this_patch_is_ok @@ -0,0 +1,7 @@ +This is a description of the patch + +--- a.orig 2008-11-11 19:38:12.000000000 +0000 ++++ a 2008-11-11 19:38:26.000000000 +0000 +@@ -1 +1,2 @@ + sample text ++and some more sample text diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/debian/patches/series b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/debian/patches/series new file mode 100644 index 00000000..0ca9c9c5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/debian/patches/series @@ -0,0 +1 @@ +01_this_patch_is_ok \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/eval/hints new file mode 100644 index 00000000..4e852b09 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-newline/eval/hints @@ -0,0 +1 @@ +patch-systems-quilt-no-newline (source): patch-system quilt diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/ORIGIN new file mode 100644 index 00000000..f61a8482 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/patch-systems-quilt-no-series + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/README b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/README new file mode 100644 index 00000000..336f590a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/README @@ -0,0 +1 @@ +Hallo World diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/debian/README.source b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/debian/README.source new file mode 100644 index 00000000..17250a4d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/debian/README.source @@ -0,0 +1 @@ +This package uses quilt. See /usr/share/doc/quilt/README.source. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/debian/changelog new file mode 100644 index 00000000..94d8b18e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/debian/changelog @@ -0,0 +1,17 @@ +patch-systems-quilt-no-series (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: patch-systems-quilt-no-series + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +patch-systems-quilt-no-series (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: patch-systems-quilt-no-series + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/debian/control new file mode 100644 index 00000000..d8a3b866 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/debian/control @@ -0,0 +1,17 @@ +Source: patch-systems-quilt-no-series +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), quilt +Homepage: https://lintian.debian.org/ + +Package: patch-systems-quilt-no-series +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for quilt patches with no series + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/debian/source/format new file mode 100644 index 00000000..d3827e75 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/debian/source/format @@ -0,0 +1 @@ +1.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/eval/hints new file mode 100644 index 00000000..5067cf18 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/patch-systems-quilt-no-series/eval/hints @@ -0,0 +1 @@ +patch-systems-quilt-no-series (source): patch-system quilt diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/ORIGIN new file mode 100644 index 00000000..c3d05b40 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/README b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/README new file mode 100644 index 00000000..e845566c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/README @@ -0,0 +1 @@ +README diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/.arch-inventory b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/.arch-inventory new file mode 100644 index 00000000..db895b7f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/.arch-inventory @@ -0,0 +1 @@ +diff-contains-arch-inventory-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/.be/foo b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/.be/foo new file mode 100644 index 00000000..c64bbe85 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/.be/foo @@ -0,0 +1 @@ +diff-contains-bts-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/.bzr/foo b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/.bzr/foo new file mode 100644 index 00000000..f8270b6b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/.bzr/foo @@ -0,0 +1 @@ +diff-contains-bzr-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/.hg/foo b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/.hg/foo new file mode 100644 index 00000000..5cd5b94f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/.hg/foo @@ -0,0 +1 @@ +diff-contains-hg-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/.hgtags b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/.hgtags new file mode 100644 index 00000000..3187d159 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/.hgtags @@ -0,0 +1 @@ +diff-contains-hg-tags-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/.svn/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/.svn/format new file mode 100644 index 00000000..d9d5d1b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/.svn/format @@ -0,0 +1 @@ +diff-contains-svn-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/CMakeCache.txt b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/CMakeCache.txt new file mode 100644 index 00000000..f21f3894 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/CMakeCache.txt @@ -0,0 +1 @@ +diff-contains-cmake-cache-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/CVS/Entries b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/CVS/Entries new file mode 100644 index 00000000..ed6f152a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/CVS/Entries @@ -0,0 +1 @@ +diff-contains-cvs-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/changelog new file mode 100644 index 00000000..a2b9a01d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/changelog @@ -0,0 +1,17 @@ +cruft-general-wig-pen (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-general-wig-pen + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +cruft-general-wig-pen (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-general-wig-pen + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/control new file mode 100644 index 00000000..3831bd21 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/control @@ -0,0 +1,17 @@ +Source: cruft-general-wig-pen +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: cruft-general-wig-pen +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for cruft added in a 2.0 package + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/foo.r1352 b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/foo.r1352 new file mode 100644 index 00000000..4249927e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/foo.r1352 @@ -0,0 +1 @@ +diff-contains-svn-conflict-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/foo.rej b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/foo.rej new file mode 100644 index 00000000..02ef3beb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/foo.rej @@ -0,0 +1 @@ +diff-contains-patch-failure-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/patches/wig-pen b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/patches/wig-pen new file mode 100644 index 00000000..a452b539 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/patches/wig-pen @@ -0,0 +1,5 @@ +--- upstream/README ++++ debian/README +@@ -1 +1 @@ +-README ++README for wig&pen diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/rules new file mode 100755 index 00000000..413418b3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_prep: + dh_prep -X~ -Xrej + +clean: + @echo 'Do nothing' diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/source/format new file mode 100644 index 00000000..cd5ac039 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/source/format @@ -0,0 +1 @@ +2.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/substvars b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/substvars new file mode 100644 index 00000000..abd3ebeb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/substvars @@ -0,0 +1 @@ +misc:Depends= diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/svk-commit444.tmp b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/svk-commit444.tmp new file mode 100644 index 00000000..3025663f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/svk-commit444.tmp @@ -0,0 +1 @@ +diff-contains-svk-commit-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/svn-commit.tmp b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/svn-commit.tmp new file mode 100644 index 00000000..4a26aa0c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/svn-commit.tmp @@ -0,0 +1 @@ +diff-contains-svn-commit-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/{arch}/foo b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/{arch}/foo new file mode 100644 index 00000000..ca1b833e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/debian/{arch}/foo @@ -0,0 +1 @@ +diff-contains-arch-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/cruft-general-wig-pen/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/legacy-relations/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/legacy-relations/ORIGIN new file mode 100644 index 00000000..763eda0d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/legacy-relations/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/quilt/legacy-relations + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/legacy-relations/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/legacy-relations/debian/changelog new file mode 100644 index 00000000..d23f2272 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/legacy-relations/debian/changelog @@ -0,0 +1,33 @@ +relations (5) unstable; urgency=low + + * I'm orphaning this package -- I'm sick of it: it's completely broken, + lintian complains all over the place. + + -- Jeroen van Wolffelaar Sun, 02 Dec 2007 15:59:59 -0800 + +relations (4) unstable; urgency=low + + * Added a package that tests dependencies for multiple versions of + libraries, and test some description stuff in there as well. + + -- Josip Rodin Fri, 29 Nov 2002 20:13:33 +0100 + +relations (3) unstable; urgency=low + + * Added a virtual provides to test against my virtual depends without + a real package first test + + -- Sean 'Shaleh' Perry Thu, 8 Feb 2001 11:29:53 -0800 + +relations (2) unstable; urgency=low + + * Added a depends on dpkg (violates policy) and a versioned depends + on bash (follows policy) + + -- Sean 'Shaleh' Perry Fri, 2 Feb 2001 12:37:17 -0800 + +relations (1) unstable; urgency=low + + * Initial version + + -- Richard Braakman Tue, 7 Jul 1998 16:27:56 +0200 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/legacy-relations/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/legacy-relations/debian/control new file mode 100644 index 00000000..6cd1c044 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/legacy-relations/debian/control @@ -0,0 +1,51 @@ +Source: relations +Section: misc +Priority: optional +Build-Depends: mail-transport-agent, libc6-dev, findutils, foo (= 3) [!amd64 !i386], bar, arch-test1 [i386], arch-test2 [!i386], quilt (>= 0.40), perl +Build-Depends-Indep: make, bash, debmake, build-essential, baz (= 2.0), ghostscript | gs, + car (>= 1.0), car (<= 2.0), caz (= 1.0) [amd64], caz (>= 2.0) [i386], + caz (= 2.0) [powerpc], perl (>= 5.0), foo (<< 4) [!amd64 !i386], libfoo (>= 1.2-1), bozzle [kfreebsd-i386] +Build-Conflicts: foo [amd64 i386], bar [alpha test], xlibs-dev, arch-test1 [powerpc], arch-test2 [!sparc] +Build-Conflicts-Indep: debmake [!powerpc] +Maintainer: Debian QA Group +Standards-Version: 3.7.3 +Homepage: lintian.debian.org +Origin: Debian +Bugs: debbugs://bugs.debian.org/ + +Package: relations +Architecture: all +Section: contrib/misc +Pre-Depends: awk|gawk +Depends: relations(<< 3), dpkg, bash (>> 2.0 ), mail-transport-agent, gawk | awk, foo (>> 2.0), foo (<< 2.2), coreutils, ,null (>= 0), ${misc:Depends}, makedev +Provides: mail-reader +Replaces: relations +Conflicts: foobar (<< 5+5), foo, relations, + gnuwdf, +Suggests: alpha, gnu (>= 44-3-4-8-11.4) | ung (<< 89beta) | nug | ngu, beta, some-other-package +Recommends: emacs21 | emacsen, dpkg, null, some-other-package, ${f-oo:b-ar}, gs | ghostscript | gs-aladdin +Description: Strange dependency relationships (dummy) + This package declares relationships designed to tickle lintian's "fields" + check. It should generate a number of tags for these. + . + The package is built with "dpkg --build --no-check", because some of the + relationships used here are normally rejected by dpkg. + +Package: relations-multiple-libs +Architecture: all +Section: non-free/misc +Depends: libstdc++2.10, libstdc++2.10-glibc2.2, libstdc++3.0, tk8.2, tk8.3, tcl8.0, tcl8.2, tkx8.2, tkx8.3, tclx8.2, libpng2, libpng3, xorg, ${shlibs:Depends}, makedev | udev +Provides: awk +Enhances: foo +Recommends: ${shlibs:Depends}, relations-multiple-libs, gs | gs-gpl, makedev +Breaks: libpng3 (<< 1.0), libpng2 +Suggests: x-dev, ghostscript | gs +Description: Duplicate library dependency relationships. + Duplicate library dependency relationships. + This tests the depending on different versions of the same library + at the same time. + . + At the same time, it conveniently tests some description file checks. :) + . + It is a metapackage from the lintian perspective, so the xorg dependency + should be allowed. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/legacy-relations/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/legacy-relations/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/legacy-relations/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/legacy-relations/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/legacy-relations/debian/rules new file mode 100755 index 00000000..5027f335 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/legacy-relations/debian/rules @@ -0,0 +1,49 @@ +#!/usr/bin/make -f + +# Copyright (C) 1998 Richard Braakman +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, you can find it on the World Wide +# Web at https://www.gnu.org/copyleft/gpl.html, or write to the Free +# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +# MA 02110-1301, USA. + +build-arch: + +build-indep: + +build: build-arch build-indep + +binary-arch: + +binary-indep: + install -d debian/tmp/DEBIAN + dpkg-gencontrol -prelations -isp + dpkg --build debian/tmp ../relations_5_all.deb + install -d debian/tmp/usr/share/doc/ + ln -s relations debian/tmp/usr/share/doc/relations-multiple-libs + dpkg-gencontrol -prelations-multiple-libs -isp + dpkg --build debian/tmp ../relations-multiple-libs_5_all.deb + +binary: binary-arch binary-indep + +clean:: + rm -rf debian/tmp debian/files + +# Test allowing quilt Build-Depends for manual quilt invocations. + TESTING=foo ANOTHER=bar quilt || true + +# Test requiring perl Build-Depends for manual perl invocations. + [ ! -f Build ] || $(PERL) Build distclean + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/legacy-relations/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/legacy-relations/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/legacy-relations/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/legacy-relations/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/legacy-relations/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/legacy-relations/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/legacy-relations/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/legacy-relations/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/legacy-relations/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/legacy-relations/debian/tmp/DEBIAN/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/legacy-relations/debian/tmp/DEBIAN/control new file mode 100644 index 00000000..87e7fe68 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/legacy-relations/debian/tmp/DEBIAN/control @@ -0,0 +1,14 @@ +Package: relations-multiple-libs +Version: 4 +Section: misc +Priority: optional +Architecture: all +Depends: libstdc++2.10, libstdc++2.10-glibc2.2, libstdc++3.0, tk8.2, tk8.3, tcl8.0, tcl8.2, tkx8.2, tkx8.3, tclx8.2, libpng2, libpng3 +Installed-Size: 12 +Maintainer: Lintian Maintainer +Source: relations +Description: Duplicate library dependency relationships. + Duplicate library dependency relationships. This tests the depending on + different versions of the same library at the same time. + . + At the same time, it conveniently tests some description file checks. :) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/legacy-relations/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/legacy-relations/eval/hints new file mode 100644 index 00000000..d8929ea2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/legacy-relations/eval/hints @@ -0,0 +1 @@ +relations (source): quilt-build-dep-but-no-series-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-empty-series/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-empty-series/ORIGIN new file mode 100644 index 00000000..4a2698fa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-empty-series/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/quilt/patch-systems-empty-series + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-empty-series/debian/README.source b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-empty-series/debian/README.source new file mode 100644 index 00000000..17250a4d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-empty-series/debian/README.source @@ -0,0 +1 @@ +This package uses quilt. See /usr/share/doc/quilt/README.source. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-empty-series/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-empty-series/debian/changelog new file mode 100644 index 00000000..0765714a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-empty-series/debian/changelog @@ -0,0 +1,17 @@ +patch-systems-empty-series (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: patch-systems-empty-series + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +patch-systems-empty-series (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: patch-systems-empty-series + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-empty-series/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-empty-series/debian/control new file mode 100644 index 00000000..40f6592b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-empty-series/debian/control @@ -0,0 +1,17 @@ +Source: patch-systems-empty-series +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), quilt +Homepage: https://lintian.debian.org/ + +Package: patch-systems-empty-series +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for quilt patches with empty series + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-empty-series/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-empty-series/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-empty-series/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-empty-series/debian/patches/series b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-empty-series/debian/patches/series new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-empty-series/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-empty-series/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-empty-series/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-empty-series/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-empty-series/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-empty-series/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-empty-series/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-empty-series/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-empty-series/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-empty-series/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-empty-series/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-empty-series/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-empty-series/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-empty-series/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-empty-series/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/ORIGIN new file mode 100644 index 00000000..55eba369 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/a b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/a new file mode 100644 index 00000000..c0acc645 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/a @@ -0,0 +1 @@ +sample text diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/debian/changelog new file mode 100644 index 00000000..8cb0458b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/debian/changelog @@ -0,0 +1,17 @@ +patch-systems-quilt-debian-changes (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: patch-systems-quilt-debian-changes + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +patch-systems-quilt-debian-changes (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: patch-systems-quilt-debian-changes + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/debian/control new file mode 100644 index 00000000..80799d80 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/debian/control @@ -0,0 +1,17 @@ +Source: patch-systems-quilt-debian-changes +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: patch-systems-quilt-debian-changes +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test a 3.0 (quilt) package which has a debian-changes-XXX patch + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/debian/patches/debian-changes-1.0-1 b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/debian/patches/debian-changes-1.0-1 new file mode 100644 index 00000000..7d0132f8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/debian/patches/debian-changes-1.0-1 @@ -0,0 +1,7 @@ +This is a description of the patch + +--- a/a 2008-11-11 19:38:12.000000000 +0000 ++++ a/a 2008-11-11 19:38:26.000000000 +0000 +@@ -1 +1,2 @@ + sample text ++and some more sample text diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/debian/patches/series b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/debian/patches/series new file mode 100644 index 00000000..9ca2b603 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/debian/patches/series @@ -0,0 +1 @@ +debian-changes-1.0-1 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/eval/hints new file mode 100644 index 00000000..fd3a3216 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/eval/hints @@ -0,0 +1 @@ +patch-systems-quilt-debian-changes (source): format-3.0-but-debian-changes-patch [debian/patches/debian-changes-1.0-1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/ORIGIN new file mode 100644 index 00000000..6d5903f9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/README.source b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/README.source new file mode 100644 index 00000000..17250a4d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/README.source @@ -0,0 +1 @@ +This package uses quilt. See /usr/share/doc/quilt/README.source. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/changelog new file mode 100644 index 00000000..9c93269c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/changelog @@ -0,0 +1,17 @@ +patch-systems-quilt-description (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: patch-systems-quilt-description + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +patch-systems-quilt-description (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: patch-systems-quilt-description + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/control new file mode 100644 index 00000000..48610737 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/control @@ -0,0 +1,17 @@ +Source: patch-systems-quilt-description +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), quilt +Homepage: https://lintian.debian.org/ + +Package: patch-systems-quilt-description +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for quilt patches which do not have accompanying descriptions + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/patches/01_this_patch_is_ok b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/patches/01_this_patch_is_ok new file mode 100644 index 00000000..7eee7078 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/patches/01_this_patch_is_ok @@ -0,0 +1,7 @@ +This is a description of the patch + +--- a.orig 2008-11-11 19:38:12.000000000 +0000 ++++ a 2008-11-11 19:38:26.000000000 +0000 +@@ -1 +1,2 @@ + sample text ++and some more sample text diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/patches/02_this_one_has_no_description b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/patches/02_this_one_has_no_description new file mode 100644 index 00000000..12128b84 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/patches/02_this_one_has_no_description @@ -0,0 +1,5 @@ +--- a.orig 2008-11-11 19:38:12.000000000 +0000 ++++ a 2008-11-11 19:38:26.000000000 +0000 +@@ -1 +1,2 @@ + sample text ++and some more sample text diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/patches/03_a_git_patch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/patches/03_a_git_patch new file mode 100644 index 00000000..025656a9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/patches/03_a_git_patch @@ -0,0 +1,8 @@ +diff --git a/a b/a +index eb39593..7258d2f 100644 +--- a 2008-11-11 19:38:12.000000000 +0000 ++++ a 2008-11-11 19:38:26.000000000 +0000 +@@ -1 +1,3 @@ + sample text + and some more sample text ++and yet another line diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/patches/04_template_description b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/patches/04_template_description new file mode 100644 index 00000000..09bfd885 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/patches/04_template_description @@ -0,0 +1,17 @@ +Description: + This patch include a templated text for description + TODO: Put a short summary on the line above and replace this paragraph + with a longer explanation of this change. Complete the meta-information + with other relevant fields (see below for details). To make it easier, the + information below has been extracted from the changelog. Adjust it or drop + it. + . +diff --git a/a b/a +index eb39593..7258d2f 100644 +--- a 2008-11-11 19:38:12.000000000 +0000 ++++ a 2008-11-11 19:38:26.000000000 +0000 +@@ -1 +1,4 @@ + sample text + and some more sample text + and yet another line ++and so on diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/patches/series b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/patches/series new file mode 100644 index 00000000..a7ab4725 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/patches/series @@ -0,0 +1,4 @@ +01_this_patch_is_ok +02_this_one_has_no_description +03_a_git_patch +04_template_description diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/eval/hints new file mode 100644 index 00000000..dd7eb593 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-description/eval/hints @@ -0,0 +1,3 @@ +patch-systems-quilt-description (source): quilt-patch-using-template-description [debian/patches/04_template_description] +patch-systems-quilt-description (source): quilt-patch-missing-description [debian/patches/03_a_git_patch] +patch-systems-quilt-description (source): quilt-patch-missing-description [debian/patches/02_this_one_has_no_description] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/ORIGIN new file mode 100644 index 00000000..d5e4008a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/README.source b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/README.source new file mode 100644 index 00000000..052084ec --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/README.source @@ -0,0 +1 @@ +Some stuff about quilt here. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/changelog new file mode 100644 index 00000000..0a01aaeb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/changelog @@ -0,0 +1,17 @@ +patch-systems-quilt-general (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: patch-systems-quilt-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +patch-systems-quilt-general (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: patch-systems-quilt-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/control new file mode 100644 index 00000000..a26e7521 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/control @@ -0,0 +1,17 @@ +Source: patch-systems-quilt-general +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), quilt +Homepage: https://lintian.debian.org/ + +Package: patch-systems-quilt-general +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: General tests of a quilt patch system + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/patches/README b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/patches/README new file mode 100644 index 00000000..843d2491 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/patches/README @@ -0,0 +1 @@ +false positive for patch-file-present-but-not-mentioned-in-series tag diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/patches/README.patches b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/patches/README.patches new file mode 100644 index 00000000..843d2491 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/patches/README.patches @@ -0,0 +1 @@ +false positive for patch-file-present-but-not-mentioned-in-series tag diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/patches/file-commented-out b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/patches/file-commented-out new file mode 100644 index 00000000..257cc564 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/patches/file-commented-out @@ -0,0 +1 @@ +foo diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/patches/file-mentioned-in-vendor-series b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/patches/file-mentioned-in-vendor-series new file mode 100644 index 00000000..257cc564 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/patches/file-mentioned-in-vendor-series @@ -0,0 +1 @@ +foo diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/patches/file-not-referenced-in-series b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/patches/file-not-referenced-in-series new file mode 100644 index 00000000..257cc564 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/patches/file-not-referenced-in-series @@ -0,0 +1 @@ +foo diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/patches/series b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/patches/series new file mode 100644 index 00000000..040d7e81 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/patches/series @@ -0,0 +1,6 @@ +# tries to create an existing file, which fails in dpkg-source +# some-file +some-other-file -p0 +# non-existent patches trigger error in dpkg-source +# some-nonexistent-patch +# file-commented-out diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/patches/some-file b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/patches/some-file new file mode 100644 index 00000000..7749d406 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/patches/some-file @@ -0,0 +1,11 @@ +Some regular patch creating a file. + +--- /dev/null ++++ debian/debian/some-file +@@ -0,0 +1,6 @@ ++Some ++file ++created ++in ++debian ++directory. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/patches/some-other-file b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/patches/some-other-file new file mode 100644 index 00000000..ed24c8fd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/patches/some-other-file @@ -0,0 +1,12 @@ +Some -p0 patch creating a file. + +--- /dev/null ++++ debian/some-other-file +@@ -0,0 +1,7 @@ ++Some ++other ++file ++created ++in ++debian ++directory. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/patches/subdir/README b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/patches/subdir/README new file mode 100644 index 00000000..843d2491 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/patches/subdir/README @@ -0,0 +1 @@ +false positive for patch-file-present-but-not-mentioned-in-series tag diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/patches/subdir/file-not-referenced-in-series-2 b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/patches/subdir/file-not-referenced-in-series-2 new file mode 100644 index 00000000..257cc564 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/patches/subdir/file-not-referenced-in-series-2 @@ -0,0 +1 @@ +foo diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/patches/vendorname.series b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/patches/vendorname.series new file mode 100644 index 00000000..4232ed08 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/patches/vendorname.series @@ -0,0 +1 @@ +file-mentioned-in-vendor-series diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/eval/hints new file mode 100644 index 00000000..211bcbd2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-general/eval/hints @@ -0,0 +1,6 @@ +patch-systems-quilt-general (source): quilt-patch-with-non-standard-options some-other-file -p0 [debian/patches/series:3] +patch-systems-quilt-general (source): quilt-patch-using-template-description [debian/patches/debian-changes-1.0-1] +patch-systems-quilt-general (source): patch-file-present-but-not-mentioned-in-series [debian/patches/subdir/file-not-referenced-in-series-2] +patch-systems-quilt-general (source): patch-file-present-but-not-mentioned-in-series [debian/patches/file-not-referenced-in-series] +patch-systems-quilt-general (source): package-uses-vendor-specific-patch-series [debian/patches/vendorname.series] +patch-systems-quilt-general (source): format-3.0-but-debian-changes-patch [debian/patches/debian-changes-1.0-1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/ORIGIN new file mode 100644 index 00000000..67da312f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/README b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/README new file mode 100644 index 00000000..557db03d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/README @@ -0,0 +1 @@ +Hello World diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/debian/changelog new file mode 100644 index 00000000..16212072 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/debian/changelog @@ -0,0 +1,17 @@ +patch-systems-quilt-no-depends (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: patch-systems-quilt-no-depends + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +patch-systems-quilt-no-depends (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: patch-systems-quilt-no-depends + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/debian/control new file mode 100644 index 00000000..5b1d18ac --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/debian/control @@ -0,0 +1,17 @@ +Source: patch-systems-quilt-no-depends +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: patch-systems-quilt-no-depends +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for quilt series but no B-D on quilt + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/debian/patches/series b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/debian/patches/series new file mode 100644 index 00000000..a920a3a9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/debian/patches/series @@ -0,0 +1 @@ +some-change.patch diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/debian/patches/some-change.patch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/debian/patches/some-change.patch new file mode 100644 index 00000000..c34fd8f6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/debian/patches/some-change.patch @@ -0,0 +1,6 @@ +Description: Does something very useful - it hides "empty-series" tag +--- a/README 2010-12-27 14:09:55.025074505 +0100 ++++ b/README 2010-12-27 14:10:09.656080199 +0100 +@@ -1 +1,2 @@ + Hello World ++Goodbye world diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/eval/hints new file mode 100644 index 00000000..b8683278 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-depends/eval/hints @@ -0,0 +1 @@ +patch-systems-quilt-no-depends (source): quilt-series-but-no-build-dep [debian/patches/series] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/ORIGIN new file mode 100644 index 00000000..b8807097 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/debian/README.source b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/debian/README.source new file mode 100644 index 00000000..17250a4d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/debian/README.source @@ -0,0 +1 @@ +This package uses quilt. See /usr/share/doc/quilt/README.source. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/debian/changelog new file mode 100644 index 00000000..c8ef10c7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/debian/changelog @@ -0,0 +1,17 @@ +patch-systems-quilt-no-newline (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: patch-systems-quilt-no-newline + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +patch-systems-quilt-no-newline (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: patch-systems-quilt-no-newline + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/debian/control new file mode 100644 index 00000000..3ad60151 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/debian/control @@ -0,0 +1,17 @@ +Source: patch-systems-quilt-no-newline +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), quilt +Homepage: https://lintian.debian.org/ + +Package: patch-systems-quilt-no-newline +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Patch system with no debian/series that does not end with newline + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/debian/patches/01_this_patch_is_ok b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/debian/patches/01_this_patch_is_ok new file mode 100644 index 00000000..7eee7078 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/debian/patches/01_this_patch_is_ok @@ -0,0 +1,7 @@ +This is a description of the patch + +--- a.orig 2008-11-11 19:38:12.000000000 +0000 ++++ a 2008-11-11 19:38:26.000000000 +0000 +@@ -1 +1,2 @@ + sample text ++and some more sample text diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/debian/patches/series b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/debian/patches/series new file mode 100644 index 00000000..0ca9c9c5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/debian/patches/series @@ -0,0 +1 @@ +01_this_patch_is_ok \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/eval/hints new file mode 100644 index 00000000..5417fe38 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-newline/eval/hints @@ -0,0 +1 @@ +patch-systems-quilt-no-newline (source): quilt-series-without-trailing-newline [debian/patches/series] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/ORIGIN new file mode 100644 index 00000000..0e702720 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/README b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/README new file mode 100644 index 00000000..336f590a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/README @@ -0,0 +1 @@ +Hallo World diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/debian/README.source b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/debian/README.source new file mode 100644 index 00000000..17250a4d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/debian/README.source @@ -0,0 +1 @@ +This package uses quilt. See /usr/share/doc/quilt/README.source. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/debian/changelog new file mode 100644 index 00000000..94d8b18e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/debian/changelog @@ -0,0 +1,17 @@ +patch-systems-quilt-no-series (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: patch-systems-quilt-no-series + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +patch-systems-quilt-no-series (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: patch-systems-quilt-no-series + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/debian/control new file mode 100644 index 00000000..d8a3b866 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/debian/control @@ -0,0 +1,17 @@ +Source: patch-systems-quilt-no-series +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), quilt +Homepage: https://lintian.debian.org/ + +Package: patch-systems-quilt-no-series +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for quilt patches with no series + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/debian/source/format new file mode 100644 index 00000000..d3827e75 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/debian/source/format @@ -0,0 +1 @@ +1.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/eval/hints new file mode 100644 index 00000000..d9f628c3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/patch-systems-quilt-no-series/eval/hints @@ -0,0 +1 @@ +patch-systems-quilt-no-series (source): quilt-build-dep-but-no-series-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/ORIGIN new file mode 100644 index 00000000..95e336c2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/quilt/quilt-patch-dpatch-desc + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/README b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/README new file mode 100644 index 00000000..e845566c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/README @@ -0,0 +1 @@ +README diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/debian/changelog new file mode 100644 index 00000000..eaa1a05d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/debian/changelog @@ -0,0 +1,17 @@ +quilt-patch-dpatch-desc (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: quilt-patch-dpatch-desc + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +quilt-patch-dpatch-desc (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: quilt-patch-dpatch-desc + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/debian/control new file mode 100644 index 00000000..facf57db --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/debian/control @@ -0,0 +1,17 @@ +Source: quilt-patch-dpatch-desc +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: quilt-patch-dpatch-desc +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for dpatch related flags in quilt patch + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/debian/patches/dpatch-desc.patch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/debian/patches/dpatch-desc.patch new file mode 100644 index 00000000..7814d2f2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/debian/patches/dpatch-desc.patch @@ -0,0 +1,10 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## +## All lines beginning with `## DP:' are a description of the patch. + +@DPATCH@ +--- upstream/README ++++ debian/README +@@ -1 +1 @@ +-README ++README for quilt test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/debian/patches/series b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/debian/patches/series new file mode 100644 index 00000000..5cf02bc9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/debian/patches/series @@ -0,0 +1 @@ +dpatch-desc.patch diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/eval/hints new file mode 100644 index 00000000..15c2d782 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-desc/eval/hints @@ -0,0 +1,2 @@ +quilt-patch-dpatch-desc (source): quilt-patch-uses-dpatch-placeholder [debian/patches/dpatch-desc.patch:5] +quilt-patch-dpatch-desc (source): quilt-patch-uses-dpatch-placeholder [debian/patches/dpatch-desc.patch:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/ORIGIN new file mode 100644 index 00000000..36e13630 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/README b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/README new file mode 100644 index 00000000..e845566c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/README @@ -0,0 +1 @@ +README diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/debian/changelog new file mode 100644 index 00000000..b83e0808 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/debian/changelog @@ -0,0 +1,17 @@ +quilt-patch-dpatch-file-ext (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: quilt-patch-dpatch-file-ext + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +quilt-patch-dpatch-file-ext (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: quilt-patch-dpatch-file-ext + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/debian/control new file mode 100644 index 00000000..02756f78 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/debian/control @@ -0,0 +1,17 @@ +Source: quilt-patch-dpatch-file-ext +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: quilt-patch-dpatch-file-ext +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for dpatch related file ext in quilt patch + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/debian/patches/dpatch-tag.dpatch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/debian/patches/dpatch-tag.dpatch new file mode 100644 index 00000000..c2a2a456 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/debian/patches/dpatch-tag.dpatch @@ -0,0 +1,5 @@ +--- upstream/README ++++ debian/README +@@ -1 +1 @@ +-README ++README for quilt test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/debian/patches/series b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/debian/patches/series new file mode 100644 index 00000000..531f9fe4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/debian/patches/series @@ -0,0 +1 @@ +dpatch-tag.dpatch diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/eval/hints new file mode 100644 index 00000000..99e06120 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/quilt-patch-dpatch-file-ext/eval/hints @@ -0,0 +1,2 @@ +quilt-patch-dpatch-file-ext (source): quilt-patch-uses-dpatch-extension dpatch-tag.dpatch +quilt-patch-dpatch-file-ext (source): quilt-patch-missing-description [debian/patches/dpatch-tag.dpatch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/ORIGIN new file mode 100644 index 00000000..41fddc25 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/quilt/spelling-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/changelog new file mode 100644 index 00000000..8aa65df9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/changelog @@ -0,0 +1,13 @@ +spelling-general (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: spelling-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + * This line has a speling error. + - This line has the same speling error, but we should only + get one tag for it. + * Corrected spelling: abov -> above. + * Corrected typo: abov -> above. + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/control new file mode 100644 index 00000000..809e0fb8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/control @@ -0,0 +1,17 @@ +Source: spelling-general +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: spelling-general +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: General checks for spelling errors + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/copyright new file mode 100644 index 00000000..30cbe5c9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/copyright @@ -0,0 +1,21 @@ +This duplicate duplicate word should not trigger. (re. #897402) + +This is part of the testsuite of lintian. See the file debian/copyright +in the lintian source directory for more details. + +Insofar as this is copyrightable, it is: + + Copyright 2010 Russ Allbery + +This text should not generate a spelling error for "ment": + + computer software documentation," as such terms are used in + 48 C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Govern- + ment only as a commercial end item. Consistent with 48 C.F.R. + 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), + +But deafult is still a spelling error. + +This text should not generate a spelling error for the duplicate "a" (re. #844166) + + following Attribution Information: (a) a copyright notice including the name diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/doc-base b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/doc-base new file mode 100644 index 00000000..3839a9bd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/doc-base @@ -0,0 +1,9 @@ +Document: spelling-general +Title: Check for debian doc-base spelling errors +Author: Russ Allbery +Abstract: This control file exercises, picky, speling error checks for + Debian doc-base files, such as meta-package. +Section: Programming + +Format: text +Files: /usr/share/doc/spelling-general/copyright diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/patches/add-readme b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/patches/add-readme new file mode 100644 index 00000000..b1647ba1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/patches/add-readme @@ -0,0 +1,8 @@ +This is a deliberate speling error. duplicate + +duplicate + +--- upstream.orig/README ++++ upstream/README +@@ -0,0 +1 @@ ++Added by patch system. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/patches/nonrel b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/patches/nonrel new file mode 100644 index 00000000..48e77400 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/patches/nonrel @@ -0,0 +1,6 @@ +This is a deliberate speling error. (false positive; description mentions typo) + +--- upstream.orig/nonrel ++++ upstream/nonrel +@@ -0,0 +1 @@ ++Added by patch system. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/patches/nonrel2 b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/patches/nonrel2 new file mode 100644 index 00000000..e7dd209f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/patches/nonrel2 @@ -0,0 +1,8 @@ +From: Speling Error +Date: Mon, 10 Sep 2018 05:16:45 +0200 +Subject: Foo bar + +--- upstream.orig/nonrel2 ++++ upstream/nonrel2 +@@ -0,0 +1 @@ ++Added by patch system. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/patches/series b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/patches/series new file mode 100644 index 00000000..d31f6739 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/patches/series @@ -0,0 +1,4 @@ +add-readme +spelling +nonrel +nonrel2 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/patches/spelling b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/patches/spelling new file mode 100644 index 00000000..29b9cfd8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/patches/spelling @@ -0,0 +1,6 @@ +This is a deliberate speling error. (false positive; filename match) + +--- upstream.orig/spelling ++++ upstream/spelling +@@ -0,0 +1 @@ ++Added by patch system. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/eval/hints new file mode 100644 index 00000000..05d7e241 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/quilt/spelling-general/eval/hints @@ -0,0 +1 @@ +spelling-general (source): spelling-error-in-patch-description speling spelling [debian/patches/add-readme] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/ORIGIN new file mode 100644 index 00000000..c690aa59 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/patches/spelling-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/changelog new file mode 100644 index 00000000..8aa65df9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/changelog @@ -0,0 +1,13 @@ +spelling-general (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: spelling-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + * This line has a speling error. + - This line has the same speling error, but we should only + get one tag for it. + * Corrected spelling: abov -> above. + * Corrected typo: abov -> above. + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/control new file mode 100644 index 00000000..809e0fb8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/control @@ -0,0 +1,17 @@ +Source: spelling-general +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: spelling-general +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: General checks for spelling errors + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/copyright new file mode 100644 index 00000000..30cbe5c9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/copyright @@ -0,0 +1,21 @@ +This duplicate duplicate word should not trigger. (re. #897402) + +This is part of the testsuite of lintian. See the file debian/copyright +in the lintian source directory for more details. + +Insofar as this is copyrightable, it is: + + Copyright 2010 Russ Allbery + +This text should not generate a spelling error for "ment": + + computer software documentation," as such terms are used in + 48 C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Govern- + ment only as a commercial end item. Consistent with 48 C.F.R. + 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), + +But deafult is still a spelling error. + +This text should not generate a spelling error for the duplicate "a" (re. #844166) + + following Attribution Information: (a) a copyright notice including the name diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/doc-base b/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/doc-base new file mode 100644 index 00000000..3839a9bd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/doc-base @@ -0,0 +1,9 @@ +Document: spelling-general +Title: Check for debian doc-base spelling errors +Author: Russ Allbery +Abstract: This control file exercises, picky, speling error checks for + Debian doc-base files, such as meta-package. +Section: Programming + +Format: text +Files: /usr/share/doc/spelling-general/copyright diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/patches/add-readme b/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/patches/add-readme new file mode 100644 index 00000000..b1647ba1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/patches/add-readme @@ -0,0 +1,8 @@ +This is a deliberate speling error. duplicate + +duplicate + +--- upstream.orig/README ++++ upstream/README +@@ -0,0 +1 @@ ++Added by patch system. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/patches/nonrel b/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/patches/nonrel new file mode 100644 index 00000000..48e77400 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/patches/nonrel @@ -0,0 +1,6 @@ +This is a deliberate speling error. (false positive; description mentions typo) + +--- upstream.orig/nonrel ++++ upstream/nonrel +@@ -0,0 +1 @@ ++Added by patch system. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/patches/nonrel2 b/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/patches/nonrel2 new file mode 100644 index 00000000..e7dd209f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/patches/nonrel2 @@ -0,0 +1,8 @@ +From: Speling Error +Date: Mon, 10 Sep 2018 05:16:45 +0200 +Subject: Foo bar + +--- upstream.orig/nonrel2 ++++ upstream/nonrel2 +@@ -0,0 +1 @@ ++Added by patch system. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/patches/series b/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/patches/series new file mode 100644 index 00000000..d31f6739 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/patches/series @@ -0,0 +1,4 @@ +add-readme +spelling +nonrel +nonrel2 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/patches/spelling b/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/patches/spelling new file mode 100644 index 00000000..29b9cfd8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/patches/spelling @@ -0,0 +1,6 @@ +This is a deliberate speling error. (false positive; filename match) + +--- upstream.orig/spelling ++++ upstream/spelling +@@ -0,0 +1 @@ ++Added by patch system. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/eval/hints new file mode 100644 index 00000000..b86bb714 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/patches/spelling-general/eval/hints @@ -0,0 +1 @@ +spelling-general (source): patch-system quilt diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/ORIGIN new file mode 100644 index 00000000..3977d84f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/po-debconf/debconf-templates-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/config-gen.pl b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/config-gen.pl new file mode 100644 index 00000000..e6588b71 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/config-gen.pl @@ -0,0 +1,31 @@ +#!/usr/bin/perl + +# Helper script to generate d/config from d/templates. +# It is just here to make sure all templates are "used". + +use strict; +use warnings; + +print < ) { + + if ($line =~ /^Template:\s*(\S+)\s*$/) { + + my $template = $1; + next + unless defined $template; + + print "db_input high $template || true\n"; + print "db_go\n\n"; + } +} + +exit 0; diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/changelog new file mode 100644 index 00000000..86003062 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/changelog @@ -0,0 +1,17 @@ +debconf-templates-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debconf-templates-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debconf-templates-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debconf-templates-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/config b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/config new file mode 100644 index 00000000..cfb96e3e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/config @@ -0,0 +1,72 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +db_input high debconf/translated || true +db_go + +db_input high debconf/unsplit-choices || true +db_go + +db_input high debconf-malformed-template || true +db_go + +db_input high debconf/no-type || true +db_go + +db_input high debconf/unknown-type || true +db_go + +db_input high debconf/boolean-bogus-default || true +db_go + +db_input high debconf/select-boolean-choice || true +db_go + +db_input high debconf/select-empty-trans-choices || true +db_go + +db_input high debconf/select-without-choices || true +db_go + +db_input high debconf/no-description || true +db_go + +db_input high debconf/duplicate-long-desc || true +db_go + +db_input high debconf/unknown-field || true +db_go + +db_input high debconf/malformed-prompt || true +db_go + +db_input high debconf/imperative-select || true +db_go + +db_input high debconf/malformed-question || true +db_go + +db_input high debconf/question-in-extended || true +db_go + +db_input high debconf/malformed-note-title || true +db_go + +db_input high debconf/too-long-short-desc || true +db_go + +db_input high debconf/first-person || true +db_go + +db_input high debconf/assumption || true +db_go + +db_input high debconf/5-green-bottles-on-the-wall || true +db_go + +db_input high debconf/entropy-type || true +db_go + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/control new file mode 100644 index 00000000..8788d39d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/control @@ -0,0 +1,16 @@ +Source: debconf-templates-general +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no + +Package: debconf-templates-general +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, cdebconf +Description: Test for various debconf template issues + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/po/POTFILES.in b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/po/POTFILES.in new file mode 100644 index 00000000..cef83a34 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] templates diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/po/en.po b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/po/en.po new file mode 100644 index 00000000..07349228 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/po/en.po @@ -0,0 +1,241 @@ +# English translations for PACKAGE package. +# Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# Niels Thykier , 2012. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-01 22:34+0000\n" +"PO-Revision-Date: 2012-10-01 22:54+0200\n" +"Last-Translator: Niels Thykier \n" +"Language-Team: English\n" +"Language: en_US\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. Type: error +#. Description +#: ../templates:1001 +msgid "Useless note" +msgstr "Useless note" + +#. Type: select +#. Choices +#: ../templates:2001 +msgid "left, right, up, down" +msgstr "left, right, up, down" + +#. Type: select +#. Description +#: ../templates:2002 +msgid "Pick the odd one out" +msgstr "Pick the odd one out" + +#. Type: text +#. Description +#: ../templates:3001 +msgid "Missing template field." +msgstr "Missing template field." + +#. Type: boolean +#. Description +#: ../templates:4001 +msgid "Is this a bad template?" +msgstr "Is this a bad template?" + +#. Type: boolean +#. Description +#: ../templates:5001 +msgid "Missing type" +msgstr "Missing type" + +#. Type: lintian +#. Description +#: ../templates:6001 +msgid "Template with unknown type" +msgstr "Template with unknown type" + +#. Type: boolean +#. Description +#: ../templates:7001 +msgid "How do you like the default?" +msgstr "How do you like the default?" + +#. Type: boolean +#. Description +#: ../templates:7001 +msgid "On a scale of \"false\" to \"true\"." +msgstr "On a scale of \"false\" to \"true\"." + +#. Type: select +#. Description +#: ../templates:8001 +msgid "A boolean type would have been better" +msgstr "A boolean type would have been better" + +#. Type: select +#. Description +#: ../templates:9001 +msgid "Preference" +msgstr "Preference" + +#. Type: select +#. Description +#: ../templates:10001 +msgid "Missing a Choices field" +msgstr "Missing a Choices field" + +#. Type: error +#. Description +#. Type: error +#. Description +#: ../templates:12001 +msgid "Duplicate long description" +msgstr "Duplicate long description" + +#. Type: boolean +#. Description +#: ../templates:13001 +msgid "Is the field below unknown?" +msgstr "Is the field below unknown?" + +#. Type: string +#. Description +#: ../templates:14001 +msgid "What is the name of this package checker:" +msgstr "What is the name of this package checker:" + +#. Type: select +#. Description +#: ../templates:15001 +msgid "Select either x or y" +msgstr "Select either x or y" + +#. Type: boolean +#. Description +#: ../templates:16001 +msgid "Lintian is the best!" +msgstr "Lintian is the best!" + +#. Type: boolean +#. Description +#: ../templates:17001 +msgid "Do you like sakana?" +msgstr "Do you like sakana?" + +#. Type: boolean +#. Description +#: ../templates:17001 +msgid "Or do you prefer sake?" +msgstr "Or do you prefer sake?" + +#. Type: note +#. Description +#: ../templates:18001 +msgid "Aren't you tired of all these debconf prompts?" +msgstr "Aren't you tired of all these debconf prompts?" + +#. Type: boolean +#. Description +#: ../templates:19001 +msgid "" +"This template has a very long short description, is that what you call an " +"oxymoron?" +msgstr "" +"This template has a very long short description, is that what you call an " +"oxymoron?" + +#. Type: select +#. Description +#: ../templates:20001 +msgid "I think Lintian is the best" +msgstr "I think Lintian is the best" + +#. Type: boolean +#. Description +#: ../templates:21001 +msgid "Do you like Lintian?" +msgstr "Do you like Lintian?" + +#. Type: boolean +#. Description +#: ../templates:21001 +msgid "Pick \"yes\" if you do." +msgstr "Pick \"yes\" if you do." + +#. Type: string +#. Description +#: ../templates:22001 +msgid "Name the title of this song:" +msgstr "Name the title of this song:" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Five green bottles sitting on the wall, Five green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be four " +"green bottles sitting on the wall." +msgstr "" +"Five green bottles sitting on the wall, Five green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be four " +"green bottles sitting on the wall." + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Four green bottles sitting on the wall, Four green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be three " +"green bottles sitting on the wall." +msgstr "" +"Four green bottles sitting on the wall, Four green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be three " +"green bottles sitting on the wall." + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Three green bottles sitting on the wall, Three green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be two " +"green bottles sitting on the wall." +msgstr "" +"Three green bottles sitting on the wall, Three green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be two " +"green bottles sitting on the wall." + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Two green bottles sitting on the wall, Two green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be one " +"green bottle sitting on the wall." +msgstr "" +"Two green bottles sitting on the wall, Two green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be one " +"green bottle sitting on the wall." + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"One green bottle sitting on the wall, One green bottle sitting on the wall, " +"And if one green bottle should accidentally fall, There'll be no green " +"bottles sitting on the wall." +msgstr "" +"One green bottle sitting on the wall, One green bottle sitting on the wall, " +"And if one green bottle should accidentally fall, There'll be no green " +"bottles sitting on the wall." + +#. Type: entropy +#. Description +#: ../templates:23001 +#| msgid "Template with unknown type" +msgid "Template with entropy type" +msgstr "Template with unknown type" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/po/en_US.po b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/po/en_US.po new file mode 100644 index 00000000..450a03ca --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/po/en_US.po @@ -0,0 +1,223 @@ +# English translations for PACKAGE package. +# Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# Niels Thykier , 2012. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-01 22:34+0000\n" +"PO-Revision-Date: 2012-10-01 22:54+0200\n" +"Last-Translator: Russ Allbery \n" +"Language-Team: English \n" +"Language: en_US\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. Type: error +#. Description +#: ../templates:1001 +msgid "Useless note" +msgstr "" + +#. Type: select +#. Choices +#: ../templates:2001 +msgid "left, right, up, down" +msgstr "" + +#. Type: select +#. Description +#: ../templates:2002 +msgid "Pick the odd one out" +msgstr "" + +#. Type: text +#. Description +#: ../templates:3001 +msgid "Missing template field." +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:4001 +msgid "Is this a bad template?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:5001 +msgid "Missing type" +msgstr "" + +#. Type: lintian +#. Description +#: ../templates:6001 +msgid "Template with unknown type" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:7001 +msgid "How do you like the default?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:7001 +msgid "On a scale of \"false\" to \"true\"." +msgstr "" + +#. Type: select +#. Description +#: ../templates:8001 +msgid "A boolean type would have been better" +msgstr "" + +#. Type: select +#. Description +#: ../templates:9001 +msgid "Preference" +msgstr "" + +#. Type: select +#. Description +#: ../templates:10001 +msgid "Missing a Choices field" +msgstr "" + +#. Type: error +#. Description +#. Type: error +#. Description +#: ../templates:12001 +msgid "Duplicate long description" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:13001 +msgid "Is the field below unknown?" +msgstr "" + +#. Type: string +#. Description +#: ../templates:14001 +msgid "What is the name of this package checker:" +msgstr "" + +#. Type: select +#. Description +#: ../templates:15001 +msgid "Select either x or y" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:16001 +msgid "Lintian is the best!" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:17001 +msgid "Do you like sakana?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:17001 +msgid "Or do you prefer sake?" +msgstr "" + +#. Type: note +#. Description +#: ../templates:18001 +msgid "Aren't you tired of all these debconf prompts?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:19001 +msgid "" +"This template has a very long short description, is that what you call an " +"oxymoron?" +msgstr "" + +#. Type: select +#. Description +#: ../templates:20001 +msgid "I think Lintian is the best" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:21001 +msgid "Do you like Lintian?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:21001 +msgid "Pick \"yes\" if you do." +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "Name the title of this song:" +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Five green bottles sitting on the wall, Five green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be four " +"green bottles sitting on the wall." +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Four green bottles sitting on the wall, Four green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be three " +"green bottles sitting on the wall." +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Three green bottles sitting on the wall, Three green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be two " +"green bottles sitting on the wall." +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Two green bottles sitting on the wall, Two green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be one " +"green bottle sitting on the wall." +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"One green bottle sitting on the wall, One green bottle sitting on the wall, " +"And if one green bottle should accidentally fall, There'll be no green " +"bottles sitting on the wall." +msgstr "" + +#. Type: entropy +#. Description +#: ../templates:23001 +msgid "Template with entropy type" +msgstr "" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/po/templates.pot b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/po/templates.pot new file mode 100644 index 00000000..b7f5a7b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/po/templates.pot @@ -0,0 +1,223 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-01 22:34+0000\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: error +#. Description +#: ../templates:1001 +msgid "Useless note" +msgstr "" + +#. Type: select +#. Choices +#: ../templates:2001 +msgid "left, right, up, down" +msgstr "" + +#. Type: select +#. Description +#: ../templates:2002 +msgid "Pick the odd one out" +msgstr "" + +#. Type: text +#. Description +#: ../templates:3001 +msgid "Missing template field." +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:4001 +msgid "Is this a bad template?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:5001 +msgid "Missing type" +msgstr "" + +#. Type: lintian +#. Description +#: ../templates:6001 +msgid "Template with unknown type" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:7001 +msgid "How do you like the default?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:7001 +msgid "On a scale of \"false\" to \"true\"." +msgstr "" + +#. Type: select +#. Description +#: ../templates:8001 +msgid "A boolean type would have been better" +msgstr "" + +#. Type: select +#. Description +#: ../templates:9001 +msgid "Preference" +msgstr "" + +#. Type: select +#. Description +#: ../templates:10001 +msgid "Missing a Choices field" +msgstr "" + +#. Type: error +#. Description +#. Type: error +#. Description +#: ../templates:12001 +msgid "Duplicate long description" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:13001 +msgid "Is the field below unknown?" +msgstr "" + +#. Type: string +#. Description +#: ../templates:14001 +msgid "What is the name of this package checker:" +msgstr "" + +#. Type: select +#. Description +#: ../templates:15001 +msgid "Select either x or y" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:16001 +msgid "Lintian is the best!" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:17001 +msgid "Do you like sakana?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:17001 +msgid "Or do you prefer sake?" +msgstr "" + +#. Type: note +#. Description +#: ../templates:18001 +msgid "Aren't you tired of all these debconf prompts?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:19001 +msgid "" +"This template has a very long short description, is that what you call an " +"oxymoron?" +msgstr "" + +#. Type: select +#. Description +#: ../templates:20001 +msgid "I think Lintian is the best" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:21001 +msgid "Do you like Lintian?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:21001 +msgid "Pick \"yes\" if you do." +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "Name the title of this song:" +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Five green bottles sitting on the wall, Five green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be four " +"green bottles sitting on the wall." +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Four green bottles sitting on the wall, Four green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be three " +"green bottles sitting on the wall." +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Three green bottles sitting on the wall, Three green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be two " +"green bottles sitting on the wall." +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Two green bottles sitting on the wall, Two green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be one " +"green bottle sitting on the wall." +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"One green bottle sitting on the wall, One green bottle sitting on the wall, " +"And if one green bottle should accidentally fall, There'll be no green " +"bottles sitting on the wall." +msgstr "" + +#. Type: entropy +#. Description +#: ../templates:23001 +msgid "Template with entropy type" +msgstr "" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/postinst new file mode 100644 index 00000000..4d6cb4dc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/postinst @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e + +#DEBHELPER# + +. /usr/share/debconf/confmodule + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/templates b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/templates new file mode 100644 index 00000000..46ca1843 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/templates @@ -0,0 +1,124 @@ +Template: debconf/translated +Type: error +_Description: Useless note + +Template: debconf/unsplit-choices +Type: select +_Choices: left, right, up, down +_Description: Pick the odd one out + +Type: text +_Description: Missing template field. + +Template: debconf-malformed-template +Type: boolean +_Description: Is this a bad template? + +Template: debconf/no-type +_Description: Missing type + +Template: debconf/unknown-type +Type: lintian +_Description: Template with unknown type + +Template: debconf/boolean-bogus-default +Type: boolean +Default: lintian +_Description: How do you like the default? + On a scale of "false" to "true". + +Template: debconf/select-boolean-choice +Type: select +Choices: yes, no +_Description: A boolean type would have been better + +Template: debconf/select-empty-trans-choices +Type: select +Choices: sakana, sake +Choices-Da: +_Description: Preference + +Template: debconf/select-without-choices +Type: select +_Description: Missing a Choices field + +Template: debconf/no-description +Type: error + +Template: debconf/duplicate-long-desc +Type: error +_Description: Duplicate long description + Duplicate long description + +Template: debconf/unknown-field +Type: boolean +_Description: Is the field below unknown? +Unknown-field: yes, it is. + +Template: debconf/malformed-prompt +Type: string +_Description: What is the name of this package checker: + +Template: debconf/imperative-select +Type: select +Choices: x,y +_Description: Select either x or y + +Template: debconf/malformed-question +Type: boolean +_Description: Lintian is the best! + +Template: debconf/question-in-extended +Type: boolean +_Description: Do you like sakana? + Or do you prefer sake? + +Template: debconf/malformed-note-title +Type: note +_Description: Aren't you tired of all these debconf prompts? + +Template: debconf/too-long-short-desc +Type: boolean +_Description: This template has a very long short description, is that what you call an oxymoron? + +Template: debconf/first-person +Type: select +Choices: lintian, no-lintian +_Description: I think Lintian is the best + +Template: debconf/assumption +Type: boolean +_Description: Do you like Lintian? + Pick "yes" if you do. + +Template: debconf/5-green-bottles-on-the-wall +Type: string +_Description: Name the title of this song: + Five green bottles sitting on the wall, + Five green bottles sitting on the wall, + And if one green bottle should accidentally fall, + There'll be four green bottles sitting on the wall. + . + Four green bottles sitting on the wall, + Four green bottles sitting on the wall, + And if one green bottle should accidentally fall, + There'll be three green bottles sitting on the wall. + . + Three green bottles sitting on the wall, + Three green bottles sitting on the wall, + And if one green bottle should accidentally fall, + There'll be two green bottles sitting on the wall. + . + Two green bottles sitting on the wall, + Two green bottles sitting on the wall, + And if one green bottle should accidentally fall, + There'll be one green bottle sitting on the wall. + . + One green bottle sitting on the wall, + One green bottle sitting on the wall, + And if one green bottle should accidentally fall, + There'll be no green bottles sitting on the wall. + +Template: debconf/entropy-type +Type: entropy +_Description: Template with entropy type diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/eval/hints new file mode 100644 index 00000000..e225a5a3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/eval/hints @@ -0,0 +1 @@ +debconf-templates-general (source): debconf-translation-using-general-list [debian/po/en_US.po] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/gen-source.mk b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/gen-source.mk new file mode 100755 index 00000000..f6f5975f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/debconf-templates-general/gen-source.mk @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +all: debian/config + +debian/config: debian/templates + perl config-gen.pl < $< > $@ + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/ORIGIN new file mode 100644 index 00000000..24758a15 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/po-debconf/invalid-potfiles-in + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/changelog new file mode 100644 index 00000000..0615779c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/changelog @@ -0,0 +1,17 @@ +invalid-potfiles-in (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: invalid-potfiles-in + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +invalid-potfiles-in (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: invalid-potfiles-in + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/config b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/config new file mode 100755 index 00000000..224c204a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/config @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +db_get test/checksum_error || true + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/control new file mode 100644 index 00000000..b1cab08f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/control @@ -0,0 +1,16 @@ +Source: invalid-potfiles-in +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no + +Package: invalid-potfiles-in +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, cdebconf +Description: Test for invalid POTFILES.in for debconf template + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/po/POTFILES.in b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/po/POTFILES.in new file mode 100644 index 00000000..1c61d482 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/po/POTFILES.in @@ -0,0 +1,2 @@ +# taken from preseed 1.90; see #883653; FL +[type: gettext/rfc822deb] templates diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/po/templates.pot b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/po/templates.pot new file mode 100644 index 00000000..3abfcf6f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/po/templates.pot @@ -0,0 +1,37 @@ +# taken from preseed 1.90; see #883653; FL + +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: preseed\n" +"Report-Msgid-Bugs-To: preseed@packages.debian.org\n" +"POT-Creation-Date: 2016-11-22 22:34+0000\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: error +#. Description +#. XXX: should be made translatable after Stretch +#: ../templates:1001 +msgid "Checksum error" +msgstr "" + +#. Type: error +#. Description +#. XXX: should be made translatable after Stretch +#: ../templates:1001 +msgid "" +"The ${ALGORITHM} checksum of the file retrieved from <${LOCATION}> fails to " +"match the expected value of \"${CHECKSUM}\". The file may be corrupt, or " +"the provided checksums may be out of date." +msgstr "" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/po/zh_CN.po b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/po/zh_CN.po new file mode 100644 index 00000000..5be7a86e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/po/zh_CN.po @@ -0,0 +1,64 @@ +# taken from preseed 1.90; see #883653; FL + +# THIS FILE IS GENERATED AUTOMATICALLY FROM THE D-I PO MASTER FILES +# The master files can be found under packages/po/ +# +# DO NOT MODIFY THIS FILE DIRECTLY: SUCH CHANGES WILL BE LOST +# +# Simplified Chinese translation for Debian Installer. +# +# Copyright (C) 2003-2008 Software in the Public Interest, Inc. +# This file is distributed under the same license as debian-installer. +# +# Translated by Yijun Yuan (2004), Carlos Z.F. Liu (2004,2005,2006), +# Ming Hua (2005,2006,2007,2008), Xiyue Deng (2008), Kov Chai (2008), +# Kenlen Lai (2008), WCM (2008), Ren Xiaolei (2008). +# +# +# Translations from iso-codes: +# Tobias Toedter , 2007. +# Translations taken from ICU SVN on 2007-09-09 +# +# Free Software Foundation, Inc., 2002, 2003, 2007, 2008. +# Alastair McKinstry , 2001,2002. +# Translations taken from KDE: +# - Wang Jian , 2000. +# - Carlos Z.F. Liu , 2004 - 2006. +# LI Daobing , 2007, 2008, 2009, 2010. +# YunQiang Su , 2011. +# +# Mai Hao Hui , 2001 (translations from galeon) +# YunQiang Su , 2010, 2011, 2012, 2013. +# Yangfl , 2017. +# +msgstr "" +"Project-Id-Version: debian-installer\n" +"Report-Msgid-Bugs-To: preseed@packages.debian.org\n" +"POT-Creation-Date: 2016-11-22 22:34+0000\n" +"PO-Revision-Date: 2017-06-11 18:20+0800\n" +"Last-Translator: Yangfl \n" +"Language-Team: \n" +"Language: zh_CN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. Type: error +#. Description +#. XXX: should be made translatable after Stretch +#: ../templates:1001 +msgid "Checksum error" +msgstr "校验码错误" + +#. Type: error +#. Description +#. XXX: should be made translatable after Stretch +#: ../templates:1001 +msgid "" +"The ${ALGORITHM} checksum of the file retrieved from <${LOCATION}> fails to " +"match the expected value of \"${CHECKSUM}\". The file may be corrupt, or " +"the provided checksums may be out of date." +msgstr "" +"从 <${LOCATION}> 下载的文件 ${ALGORITHM} 校验码不符合预期,预期的值" +"为“${CHECKSUM}”。文件可能已经损毁,或所提供的校验码可能已经过期。" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/postinst new file mode 100644 index 00000000..4d6cb4dc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/postinst @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e + +#DEBHELPER# + +. /usr/share/debconf/confmodule + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/templates b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/templates new file mode 100644 index 00000000..144f9223 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/templates @@ -0,0 +1,22 @@ +Template: test/checksum_error +Type: error +# Lintian test note: The space between '# and CHECKSUM' in the lines +# below is the unicode character NO BREAK SPACE U+00A0 (\302\240 in +# UTF-8) and the sole reason why intltool-update fails. +# +# ERROR: xgettext failed to generate PO template file because there is non-ASCII +# string marked for translation. Please make sure that all strings marked +# for translation are in uniform encoding (say UTF-8), then *prepend* the +# following line to POTFILES.in and rerun intltool-update: +# +# [encoding: UTF-8] +# +# taken from preseed 1.90; see #883653; FL +# +# Translators : DO NOT TRANSLATE variable names : ALGORITHM, LOCATION +# and CHECKSUM +# :sl2: +_Description: Checksum error + The ${ALGORITHM} checksum of the file retrieved from <${LOCATION}> fails + to match the expected value of "${CHECKSUM}". The file may be corrupt, + or the provided checksums may be out of date. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/eval/hints new file mode 100644 index 00000000..40d99321 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/invalid-potfiles-in/eval/hints @@ -0,0 +1 @@ +invalid-potfiles-in (source): invalid-potfiles-in [debian/po/POTFILES.in] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/ORIGIN new file mode 100644 index 00000000..f5e18c3c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/po-debconf/legacy-debconf + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/changelog new file mode 100644 index 00000000..1aa50be8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/changelog @@ -0,0 +1,6 @@ +debconf (1~rc1) unstable; urgency=low + + * Initial Release + * Changelog line with exactly 80 characters which tests the line-too-long tag. + + -- Lintian Maintainers Wed, 3 May 2006 18:07:19 -0500 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/control new file mode 100644 index 00000000..37b76641 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/control @@ -0,0 +1,52 @@ +Source: debconf +Section: utils +Priority: optional +Build-Depends: debhelper-compat (= 14) +Maintainer: Lintian Maintainers +Standards-Version: 3.7.2 + +Package: debconf-test +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (dummy) + +Package: debconf-test-noscripts +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (noscripts) + Package missing postinst/postrm/config. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: debconf-test-preinst +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (preinst) + Package uses debconf only in preinst. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: debconf-test-postinst +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (postinst) + Package uses debconf only in postinst. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: debconf-udeb +Section: debian-installer +XC-Package-Type: udeb +XB-Installer-Menu-Item: 100 +Architecture: any +Depends: ${shlibs:Depends} +Description: Test udeb package for the debconf checks of lintian (dummy) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/copyright new file mode 100644 index 00000000..84843ee3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/copyright @@ -0,0 +1,10 @@ +Copyright (C) 2004 Frank Lichtenheld + +Test for really old FSF address: + +Free Software Foundation, Inc., 675 Mass Ave, Cambridge, +MA 02139, USA. + +Test for a dh-make boilerplate: +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test-noscripts.templates b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test-noscripts.templates new file mode 100644 index 00000000..93f80713 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test-noscripts.templates @@ -0,0 +1,3 @@ +Template: debconf/test +Type: text +_description: Foo bar (1) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test-postinst.postinst b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test-postinst.postinst new file mode 100644 index 00000000..56ab8712 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test-postinst.postinst @@ -0,0 +1,10 @@ +#!/bin/sh +set -e + +. /usr/share/debconf/confmodule + +db_input medium debconf/test + +#DEBHELPER# + +true diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test-postinst.postrm b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test-postinst.postrm new file mode 100644 index 00000000..cbf5e3b2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test-postinst.postrm @@ -0,0 +1,7 @@ +#!/bin/sh +set -e +if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_purge +fi +#DEBHELPER# diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test-postinst.templates b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test-postinst.templates new file mode 100644 index 00000000..2a2a8ab6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test-postinst.templates @@ -0,0 +1,3 @@ +Template: debconf/test +Type: text +_description: Enter something: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test-preinst.postrm b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test-preinst.postrm new file mode 100644 index 00000000..cbf5e3b2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test-preinst.postrm @@ -0,0 +1,7 @@ +#!/bin/sh +set -e +if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_purge +fi +#DEBHELPER# diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test-preinst.preinst b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test-preinst.preinst new file mode 100644 index 00000000..bf6f0749 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test-preinst.preinst @@ -0,0 +1,13 @@ +#!/bin/sh +set -e + +# Obsolete name for the confmodule +. /usr/share/debconf/confmodule.sh + +. /usr/share/debconf/confmodule + +db_input medium debconf/test + +#DEBHELPER# + +true diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test-preinst.templates b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test-preinst.templates new file mode 100644 index 00000000..2a2a8ab6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test-preinst.templates @@ -0,0 +1,3 @@ +Template: debconf/test +Type: text +_description: Enter something: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test.config b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test.config new file mode 100644 index 00000000..9e32d06f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test.config @@ -0,0 +1,24 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +db_settitle "Funky lintian test" + +# Bad priorities. +db_text LOW debconf/test +db_input normal debconf/test + +# Valid priorities. +db_text \ +high debconf/test +foo=medium +db_input $foo debconf/test +db_input "$foo" debconf/test +db_input 'medium' debconf/test + +# debconf/transtring should not be flagged as unused +# (it's aliased to debconf/alias, which is used) +db_register debconf/transtring debconf/alias +db_input medium debconf/alias diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test.postinst b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test.postinst new file mode 100644 index 00000000..b3870371 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test.postinst @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +# Not supposed to do this here. +db_input medium debconf/test + +true diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test.templates b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test.templates new file mode 100644 index 00000000..811bb6cf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test.templates @@ -0,0 +1,101 @@ +Template: debconf/test +Type: text +_description: Foo bar (1) + +Template: debconf/testmulti +Type: multiselect +__Choices: foo, bar, boo +_Description: test comma usages in choices fields + +Template: debconf/testmulti-escape +Type: multiselect +_Choices: foo\, bar, boo +_Description: test escaped comma usages in choices fields: + +Template: debconf/testboolean +Type: boolean +_Description: Enter yes or no: + Do you want to answer this question? + +Template: debconf/teststring +Type: string +_Description: This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + +Template: debconf/testnote +Type: note +Description: This should be a title and not a really long sentence that ends in a regular period. + +Template: debconf/1st-person +Type: select +__Choices: one, two +_Description: Select one of these: + I am a stupid test of first-person syntax that tells you to select yes + even though yes isn't an option in this prompt. + +Template: debconf/internal +Type: boolean +Description: For internal use only + We are testing that style checks are not applied to templates that are + marked as internal. + +Template: debconf/no-description +Type: string + +Template: debconf/translate +Type: boolean +_Default: false +_Description: Should this really be translated? + +Template: debconf/transtring +Type: string +_Default: 1 +_Description: Count of templates: + The number of useless numbers that a translator would have to translate + for this template. + +Template: debconf/language +__Choices: English, Spanish, German, French +# This is the default choice. Translators should put their own language, +# if available, here instead, but the value MUST be the English version +# of the value for the package scripts to work properly. +_Default: English[ translators, see the comment in the PO files] +_Description: The default language, an example of a default that should + be translated. + +Template: debconf/error +Type: error +_Description: An error occurred + This is a sample Debconf error template. + +Template: debconf/should-be-boolean +Type: select +__Choices: yes, no +_Description: Choose: + Pick yes or no. + +Template: debconf/should-be-no-longer-a-problem +Type: boolean +_Description: Decide, lintian + Using "no longer" should no longer be detected as + making-assumptions-about-interfaces-in-templates by lintian. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test.templates.de b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test.templates.de new file mode 100644 index 00000000..f9ea1219 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test.templates.de @@ -0,0 +1,3 @@ +Template: debconf/testmulti +Type: multiselect +Choices: foo, bar\, boo, boo diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test.templates.in b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-test.templates.in new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-udeb.postinst b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-udeb.postinst new file mode 100644 index 00000000..4ce41f08 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-udeb.postinst @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +ldconfig + +true diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-udeb.templates b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-udeb.templates new file mode 100644 index 00000000..5d7cf5a7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/debconf-udeb.templates @@ -0,0 +1,3 @@ +Template: debian-installer/debconf-udeb/title +Type: text +_description: This is just a test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/po/POTFILES.in b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/po/POTFILES.in new file mode 100644 index 00000000..d0c82f08 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/po/POTFILES.in @@ -0,0 +1,2 @@ +[type: gettext/rfc822deb] debconf-test.templates +[type: gettext/rfc822deb] debconf-udeb.templates diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/po/de.po b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/po/de.po new file mode 100644 index 00000000..86c57968 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/po/de.po @@ -0,0 +1,66 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2004-12-06 01:01+0100\n" +"Last-Translator: Frank Lichtenheld \n" +"Language-Team: debian-l10n-german@l.d.o\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "foo" +msgstr "foo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "bar" +msgstr "bar, boo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "boo" +msgstr "boo" + +#. Type: multiselect +#. Description +#: ../debconf-test.templates:8 +msgid "test comma usages in choices fields" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:11 +msgid "foo\\, bar, boo" +msgstr "foo, bar, boo" + +#. Type: text +#. description +#: ../debconf-udeb.templates:3 +msgid "This is just a test" +msgstr "Dies ist nur ein Test" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/po/fr.po b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/po/fr.po new file mode 100644 index 00000000..c74deb28 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/po/fr.po @@ -0,0 +1,60 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"Last-Translator: Frank Lichtenheld \n" +"Language-Team: debian-l10n-german@l.d.o\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "foo" +msgstr "foo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "bar" +msgstr "bar, boo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "boo" +msgstr "boo" + +#. Type: multiselect +#. Description +#: ../debconf-test.templates:8 +msgid "test comma usages in choices fields" +msgstr "" + +#. Type: text +#. description +#: ../debconf-udeb.templates:3 +msgid "This is just a test" +msgstr " diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/po/lang.po b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/po/lang.po new file mode 100644 index 00000000..7ac498af --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/po/lang.po @@ -0,0 +1,15 @@ +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/po/nds.po b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/po/nds.po new file mode 100644 index 00000000..7ac498af --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/po/nds.po @@ -0,0 +1,15 @@ +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/po/output b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/po/output new file mode 100644 index 00000000..c3df1a5b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/po/output @@ -0,0 +1 @@ +2 utf8 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/po/pt_BR.po b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/po/pt_BR.po new file mode 100644 index 00000000..7ac498af --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/po/pt_BR.po @@ -0,0 +1,15 @@ +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/po/sample-file.po b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/po/sample-file.po new file mode 100644 index 00000000..8dcc0ffa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/po/sample-file.po @@ -0,0 +1 @@ +This is some file that isn't actually a valid .po file. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/po/templates.pot b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/po/templates.pot new file mode 100644 index 00000000..914c77f0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/po/templates.pot @@ -0,0 +1,61 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "foo" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "bar" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "boo" +msgstr "" + +#. Type: multiselect +#. Description +#: ../debconf-test.templates:8 +msgid "test comma usages in choices fields" +msgstr "" + +#. Type: text +#. description +#: ../debconf-udeb.templates:3 +msgid "This is just a test" +msgstr "" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/pycompat b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/pycompat new file mode 100644 index 00000000..0cfbf088 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/pycompat @@ -0,0 +1 @@ +2 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/pyversions b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/pyversions new file mode 100644 index 00000000..6f290b06 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/pyversions @@ -0,0 +1 @@ +>= 2.7 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/rules new file mode 100755 index 00000000..933901ac --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/rules @@ -0,0 +1,64 @@ +#!/usr/bin/make -f + +deb_dir = debian/debconf +udeb_dir = debian/debconf-udeb +build_dirs = $(deb_dir) $(udeb_dir) + +build-indep: +# There are no architecture-independent files to be built +# by this package. If there were any they would be made +# here. + +build-arch: + dh_testdir + touch build + +build: build-indep build-arch + +clean: + dh_testdir + dh_testroot + -rm -f build + + dh_clean + +binary-indep: build +# There are no architecture-independent files to be uploaded +# generated by this package. If there were any they would be +# made here. + +binary-arch: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs -a + + dh_installchangelogs -a + dh_installdocs -a + dh_installdebconf -pdebconf-test + dh_installdebconf -pdebconf-test-noscripts --noscripts + dh_installdebconf -pdebconf-test-preinst --noscripts + dh_installdebconf -pdebconf-test-postinst --noscripts + dh_installdebconf -pdebconf-udeb + + + + + dh_compress -a + dh_fixperms -a + +# The shlibs stuff doesn't matter here so do it in a weird order to +# test warnings. + dh_installdeb -a + dh_shlibdeps -a + dh_makeshlibs -a + dh_gencontrol -a + dh_md5sums + dh_builddeb -a + dh_makeshlibs -a + +# Below here is fairly generic really + +binary: binary-indep binary-arch + +.PHONY: build-arch build-indep build binary binary-arch binary-indep clean checkroot diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/eval/hints new file mode 100644 index 00000000..636bc66f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/legacy-debconf/eval/hints @@ -0,0 +1,12 @@ +debconf (source): untranslatable-debconf-templates [debian/debconf-test.templates:58] +debconf (source): untranslatable-debconf-templates [debian/debconf-test.templates:47] +debconf (source): unknown-encoding-in-po-file [debian/po/fr.po] +debconf (source): translated-default-field [debian/debconf-test.templates:72] +debconf (source): translated-default-field [debian/debconf-test.templates:67] +debconf (source): stray-translated-debconf-templates [debian/debconf-test.templates.de] +debconf (source): no-complete-debconf-translation +debconf (source): newer-debconf-templates [debian/po/templates.pot] +debconf (source): misnamed-po-file [debian/po/sample-file.po] +debconf (source): misnamed-po-file [debian/po/lang.po] +debconf (source): invalid-po-file [debian/po/sample-file.po] +debconf (source): invalid-po-file [debian/po/fr.po] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/ORIGIN new file mode 100644 index 00000000..48d52b5f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/po-debconf/po-debconf-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/changelog new file mode 100644 index 00000000..9a466a2e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/changelog @@ -0,0 +1,17 @@ +po-debconf-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: po-debconf-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +po-debconf-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: po-debconf-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/control new file mode 100644 index 00000000..bd1bde36 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/control @@ -0,0 +1,17 @@ +Source: po-debconf-general +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: po-debconf-general +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: General tests for debconf translations + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/po/English.po b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/po/English.po new file mode 100644 index 00000000..e99b8223 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/po/English.po @@ -0,0 +1 @@ +Not a PO file or an English translation. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/po/POTFILES.in b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/po/POTFILES.in new file mode 100644 index 00000000..da5857ef --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/po/POTFILES.in @@ -0,0 +1,3 @@ +# This is a comment, which should be ignored. +[type: gettext/rfc822deb] templates +some-other-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/po/de.po b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/po/de.po new file mode 100644 index 00000000..545fd251 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/po/de.po @@ -0,0 +1,2 @@ +This is just some random other file that isn't a German translation at +all. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/po/templates.pot b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/po/templates.pot new file mode 100644 index 00000000..420734f8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/po/templates.pot @@ -0,0 +1,30 @@ +msgid "" +msgstr "" +"Project-Id-Version: Lintian 2.4.3\n" +"PO-Revision-Date: +2010-07-25 17:07 -0700\n" +"Last-Translator: Russ Allbery \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Default +#: ../templates:1001 +msgid "foo" +msgstr "" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "This is a string question used for testing:" +msgstr "" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "This is a second string question:" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "This one ensures no 100% translation of the template." diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/templates b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/templates new file mode 100644 index 00000000..b626825a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/templates @@ -0,0 +1,10 @@ +Template: po-debconf-general/test +Type: string +_Default: foo +Description: This is a string question used for testing: + +Template: po-debconf-general/test-2 +Type: string +Default: bar +_Description: This is a second string question: + This one ensures no 100% translation of the template. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/templates.en_US b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/templates.en_US new file mode 100644 index 00000000..617a4745 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/templates.en_US @@ -0,0 +1,5 @@ +Template: po-debconf-general/test +Type: string +Default: foo +_Description: This is an English translation that shouldn't be in this + directory. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/eval/hints new file mode 100644 index 00000000..af584a38 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-general/eval/hints @@ -0,0 +1,8 @@ +po-debconf-general (source): untranslatable-debconf-templates [debian/templates:4] +po-debconf-general (source): translated-default-field [debian/templates:3] +po-debconf-general (source): stray-translated-debconf-templates [debian/templates.en_US] +po-debconf-general (source): no-complete-debconf-translation +po-debconf-general (source): missing-file-from-potfiles-in some-other-file [debian/po/POTFILES.in:3] +po-debconf-general (source): misnamed-po-file [debian/po/English.po] +po-debconf-general (source): invalid-po-file [debian/po/de.po] +po-debconf-general (source): invalid-po-file [debian/po/English.po] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/ORIGIN new file mode 100644 index 00000000..d9ca7936 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/po-debconf/po-debconf-missing + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/debian/changelog new file mode 100644 index 00000000..b24a7de2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/debian/changelog @@ -0,0 +1,17 @@ +po-debconf-missing (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: po-debconf-missing + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +po-debconf-missing (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: po-debconf-missing + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/debian/config b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/debian/config new file mode 100755 index 00000000..240b7f8c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/debian/config @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +db_get po-debconf-general/test || true +db_get po-debconf-general/test-2 || true + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/debian/control new file mode 100644 index 00000000..472f35ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/debian/control @@ -0,0 +1,17 @@ +Source: po-debconf-missing +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: po-debconf-missing +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for missing po-debconf files + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/debian/po/en.po b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/debian/po/en.po new file mode 100644 index 00000000..dbf7e690 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/debian/po/en.po @@ -0,0 +1,17 @@ +# Woohoo, translations - here to suppress a "no-complete-translation" +# +msgid "" +msgstr "" +"Project-Id-Version: po-debconf-missing\n" +"Report-Msgid-Bugs-To: po-debconf-missing@packages.debian.org\n" +"POT-Creation-Date: 2009-08-24 19:24+0200\n" +"PO-Revision-Date: 2010-09-03 23:51+0200\n" +"Last-Translator: Lintian Maintainers \n" +"Language-Team: Lintian Maintainers \n" +"Language: en\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/debian/postinst new file mode 100644 index 00000000..0ae7a184 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/debian/postinst @@ -0,0 +1,7 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +#DEBHELPER# diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/debian/templates b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/debian/templates new file mode 100644 index 00000000..1285e40a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/debian/templates @@ -0,0 +1,10 @@ +Template: po-debconf-general/test +Type: string +Default: foo +_Description: This is a string question used for testing: + +Template: po-debconf-general/test-2 +Type: string +Default: bar +_Description: This is a second string question: + This one ensures no 100% translation of the template. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/eval/hints new file mode 100644 index 00000000..68300402 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-missing/eval/hints @@ -0,0 +1,2 @@ +po-debconf-missing (source): missing-templates-pot +po-debconf-missing (source): missing-potfiles-in diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/ORIGIN new file mode 100644 index 00000000..c557350c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/debian/changelog new file mode 100644 index 00000000..b3175919 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/debian/changelog @@ -0,0 +1,17 @@ +po-debconf-no-po-debconf (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: po-debconf-no-po-debconf + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +po-debconf-no-po-debconf (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: po-debconf-no-po-debconf + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/debian/config b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/debian/config new file mode 100755 index 00000000..240b7f8c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/debian/config @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +db_get po-debconf-general/test || true +db_get po-debconf-general/test-2 || true + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/debian/control new file mode 100644 index 00000000..b6b02577 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/debian/control @@ -0,0 +1,17 @@ +Source: po-debconf-no-po-debconf +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: po-debconf-no-po-debconf +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for not using po-debconf + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/debian/postinst new file mode 100644 index 00000000..0ae7a184 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/debian/postinst @@ -0,0 +1,7 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +#DEBHELPER# diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/debian/templates b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/debian/templates new file mode 100644 index 00000000..1d685bcf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/debian/templates @@ -0,0 +1,10 @@ +Template: po-debconf-general/test +Type: string +Default: foo +Description: This is a string question used for testing: + +Template: po-debconf-general/test-2 +Type: string +Default: bar +Description: This is a second string question: + This one ensures no 100% translation of the template. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/eval/hints new file mode 100644 index 00000000..2fd5c5b5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/po-debconf/po-debconf-no-po-debconf/eval/hints @@ -0,0 +1,3 @@ +po-debconf-no-po-debconf (source): untranslatable-debconf-templates [debian/templates:9] +po-debconf-no-po-debconf (source): untranslatable-debconf-templates [debian/templates:4] +po-debconf-no-po-debconf (source): not-using-po-debconf diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/bad-email-format/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/readme/bad-email-format/ORIGIN new file mode 100644 index 00000000..807ba237 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/bad-email-format/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/readme/bad-email-format + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/bad-email-format/debian/README.Debian b/packages/debmagic/tests/lintian-parity/checks/debian/readme/bad-email-format/debian/README.Debian new file mode 100644 index 00000000..87bfcdf7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/bad-email-format/debian/README.Debian @@ -0,0 +1,7 @@ +foo++ for Debian +---------------- + +This should trigger a warning, as i use a fake mail address. + + -- Marc 'HE' Brockschmidt , Wed, 14 Apr 2004 01:44:18 +0200 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/bad-email-format/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/readme/bad-email-format/debian/changelog new file mode 100644 index 00000000..55bcf555 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/bad-email-format/debian/changelog @@ -0,0 +1,17 @@ +bad-email-format (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: bad-email-format + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +bad-email-format (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: bad-email-format + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/bad-email-format/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/readme/bad-email-format/debian/control new file mode 100644 index 00000000..af171d2f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/bad-email-format/debian/control @@ -0,0 +1,17 @@ +Source: bad-email-format +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: bad-email-format +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Debian.README with email address in unknown format + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/bad-email-format/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/readme/bad-email-format/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/bad-email-format/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/bad-email-format/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/readme/bad-email-format/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/bad-email-format/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/bad-email-format/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/readme/bad-email-format/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/bad-email-format/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/bad-email-format/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/readme/bad-email-format/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/bad-email-format/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/bad-email-format/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/readme/bad-email-format/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/bad-email-format/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/bad-email-format/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/readme/bad-email-format/eval/hints new file mode 100644 index 00000000..72ab52da --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/bad-email-format/eval/hints @@ -0,0 +1 @@ +bad-email-format (binary): readme-debian-contains-invalid-email-address foo@unknown [usr/share/doc/bad-email-format/README.Debian] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/debian-readme-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/readme/debian-readme-general/ORIGIN new file mode 100644 index 00000000..cf776acd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/debian-readme-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/readme/debian-readme-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/debian-readme-general/debian/README.Debian b/packages/debmagic/tests/lintian-parity/checks/debian/readme/debian-readme-general/debian/README.Debian new file mode 100644 index 00000000..482b668a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/debian-readme-general/debian/README.Debian @@ -0,0 +1,11 @@ +This is a test README.Debian with a few problems that Lintian should +catch, like accidentaly misspelled words. + +Here is a reference to /usr/doc/debian-readme-general, which is an old +path that nothing should use any more. + +ALS is not a spelling error for also and ANG is not a spelling error for +and. In general, possible acronyms like COMIT should be ignored. But +only to a certain length; CHNAGES is still wrong. + + -- Unknown diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/debian-readme-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/readme/debian-readme-general/debian/changelog new file mode 100644 index 00000000..d23700d1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/debian-readme-general/debian/changelog @@ -0,0 +1,17 @@ +debian-readme-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debian-readme-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debian-readme-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debian-readme-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/debian-readme-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/readme/debian-readme-general/debian/control new file mode 100644 index 00000000..bb8c3ad0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/debian-readme-general/debian/control @@ -0,0 +1,17 @@ +Source: debian-readme-general +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: debian-readme-general +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: General tests for README.Debian + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/debian-readme-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/readme/debian-readme-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/debian-readme-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/debian-readme-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/readme/debian-readme-general/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/debian-readme-general/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/debian-readme-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/readme/debian-readme-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/debian-readme-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/debian-readme-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/readme/debian-readme-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/debian-readme-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/debian-readme-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/readme/debian-readme-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/debian-readme-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/debian-readme-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/readme/debian-readme-general/eval/hints new file mode 100644 index 00000000..a5b1e27f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/debian-readme-general/eval/hints @@ -0,0 +1,4 @@ +debian-readme-general (binary): spelling-error-in-readme-debian accidentaly accidentally [usr/share/doc/debian-readme-general/README.Debian] +debian-readme-general (binary): spelling-error-in-readme-debian CHNAGES CHANGES [usr/share/doc/debian-readme-general/README.Debian] +debian-readme-general (binary): readme-debian-mentions-usr-doc [usr/share/doc/debian-readme-general/README.Debian:4] +debian-readme-general (binary): readme-debian-contains-invalid-email-address unknown@unknown [usr/share/doc/debian-readme-general/README.Debian] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/ORIGIN new file mode 100644 index 00000000..8cd7b139 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/readme/legacy-etcfiles + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/debian/README.Debian b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/debian/README.Debian new file mode 100644 index 00000000..e289bfb2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/debian/README.Debian @@ -0,0 +1,5 @@ +this is a package to test lintian's handling of files in /etc. +Also, there's a random mention of /usr/doc here to prompt a warning. +But /usr/documentation doesn't. + + -- Russ Allbery , Mon, 18 Feb 2008 16:40:55 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/debian/changelog new file mode 100644 index 00000000..4f047b64 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/debian/changelog @@ -0,0 +1,7 @@ +etcfiles (1) unstable; urgency=low + + * Acknowledge NMU (Closes: #123456). + * initial setup + + -- Lintian Maintainers Fri, 21 Sep 2001 11:56:02 -0700 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/debian/conffiles b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/debian/conffiles new file mode 100644 index 00000000..76032b78 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/debian/conffiles @@ -0,0 +1,5 @@ +/etc/proper +/var/lib/foo +/etc/cron.daily/cronfile-normal +/etc/cron.daily/.cronfile-begins-with-fullstop +/etc/cron.daily/cronfile-contains.fullstop diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/debian/conffiles.only b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/debian/conffiles.only new file mode 100644 index 00000000..a4b38954 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/debian/conffiles.only @@ -0,0 +1,2 @@ +/etc/etcfiles/foo +/etc/etcfiles/bar diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/debian/control new file mode 100644 index 00000000..f3dbda7f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/debian/control @@ -0,0 +1,20 @@ +Source: etcfiles +Section: misc +Priority: optional +Maintainer: Lintian Maintainers +Standards-Version: 3.5.0 + +Package: etcfiles +Architecture: any +Depends: ${shlibs:Depends} +Description: test handling of files in /etc + Regression test for lintian's handling of files in /etc. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: only-etcfiles +Architecture: all +Depends: etcfiles (= ${source:Version}) +Description: test handling of conffile-only package diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/debian/rules new file mode 100755 index 00000000..97ff09fc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/debian/rules @@ -0,0 +1,64 @@ +#!/usr/bin/make -f + +tmp=debian/tmp +tmponly=debian/only-etcfiles + +clean: + rm -f debian/files debian/substvars + rm -rf debian/tmp + rm -rf debian/only-etcfiles + +build: +build-arch: +build-indep: +binary-indep: + install -d $(tmp)/etc + install -m 644 proper $(tmp)/etc + install -m 644 improper $(tmp)/etc + mkdir $(tmp)/etc/cron.daily + touch $(tmp)/etc/cron.daily/cronfile-normal + touch $(tmp)/etc/cron.daily/.cronfile-begins-with-fullstop + touch $(tmp)/etc/cron.daily/cronfile-contains.fullstop + ln $(tmp)/etc/improper $(tmp)/etc/improper-link + install -d $(tmp)/usr/share/doc/etcfiles + install -d $(tmp)/var/lib + install -m 644 proper $(tmp)/var/lib/foo + install -m 644 debian/README.Debian $(tmp)/usr/share/doc/etcfiles + install -m 644 debian/changelog $(tmp)/usr/share/doc/etcfiles + #gzip -9 $(tmp)/usr/share/doc/etcfiles/changelog + install -d $(tmp)/DEBIAN + install -m 644 debian/conffiles $(tmp)/DEBIAN + + echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/cronfile-normal' \ + > debian/tmp/DEBIAN/md5sums + echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/.cronfile-begins-with-fullstop' \ + >> debian/tmp/DEBIAN/md5sums + echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/cronfile-contains.fullstop' \ + >> debian/tmp/DEBIAN/md5sums + echo '05c72cacce994208128b7d081116b04a ./etc/proper' \ + >> debian/tmp/DEBIAN/md5sums + echo 'ab371382468880299e5ebd05921764ce etc/improper' \ + >> debian/tmp/DEBIAN/md5sums + echo 'ab371382468880299e5ebd05921764ce usr/bin/foo' \ + >> debian/tmp/DEBIAN/md5sums + echo 'this is a malformed line' \ + >> debian/tmp/DEBIAN/md5sums + echo '56fb27e455dd86d8801f1ecd3a4cee49 usr/share/doc/etcfiles/README.Debian' \ + >> debian/tmp/DEBIAN/md5sums + + install -d $(tmponly)/etc/etcfiles + touch $(tmponly)/etc/etcfiles/foo + touch $(tmponly)/etc/etcfiles/bar + install -d $(tmponly)/usr/share/doc + cd $(tmponly)/usr/share/doc && ln -s etcfiles only-etcfiles + install -d $(tmponly)/DEBIAN + install -m 644 debian/conffiles.only $(tmponly)/DEBIAN/conffiles + + dpkg-gencontrol -isp -petcfiles + dpkg-gencontrol -isp -ponly-etcfiles -P$(tmponly) + dpkg --build $(tmp) .. + dpkg --build $(tmponly) .. + +binary: binary-indep + +.PHONY: binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/eval/hints new file mode 100644 index 00000000..8781179d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/eval/hints @@ -0,0 +1 @@ +etcfiles (binary): readme-debian-mentions-usr-doc [usr/share/doc/etcfiles/README.Debian:2] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/improper b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/improper new file mode 100644 index 00000000..23656f41 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/improper @@ -0,0 +1,2 @@ +[config] + var = value \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/proper b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/proper new file mode 100644 index 00000000..f3dc68bf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-etcfiles/proper @@ -0,0 +1,2 @@ +# i am a config file +foo = var \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-foo++/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-foo++/ORIGIN new file mode 100644 index 00000000..ff834303 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-foo++/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/readme/legacy-foo++ + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-foo++/debian/README.Debian b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-foo++/debian/README.Debian new file mode 100644 index 00000000..87bfcdf7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-foo++/debian/README.Debian @@ -0,0 +1,7 @@ +foo++ for Debian +---------------- + +This should trigger a warning, as i use a fake mail address. + + -- Marc 'HE' Brockschmidt , Wed, 14 Apr 2004 01:44:18 +0200 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-foo++/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-foo++/debian/changelog new file mode 100644 index 00000000..e1637f75 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-foo++/debian/changelog @@ -0,0 +1,31 @@ +foo++ (5) unstable; urgency=low + + * Add a fake README.Debian to trigger a warning. + * This should trigger + debian-changelog-file-contains-debmake-default-email-address. + + -- Marc 'HE' Brockschmidt Wed, 14 Apr 2003 01:35:47 +0200 + +foo++ (4) unstable; urgency=low + + * This changelog now includes a ISO-8859-1 character: '' + + -- Frank Lichtenheld Fri, 5 Mar 2004 13:41:39 +0100 + +foo++ (3) unstable; urgency=low + + * Set maintainers + uploaders incorrectly + + -- Jeroen van Wolffelaar Fri, 5 Mar 2004 04:20:24 +0100 + +foo++ (2) unstable; urgency=low + + * Added a foo++-helper package to try and catch even more ++ bugs. + + -- Sean 'Shaleh' Perry Sat, 10 Feb 2001 23:16:17 -0800 + +foo++ (1) unstable; urgency=low + + * Initial version + + -- Sean 'Shaleh' Perry Thu, 16 Nov 2000 09:11:40 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-foo++/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-foo++/debian/control new file mode 100644 index 00000000..fb2469e1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-foo++/debian/control @@ -0,0 +1,29 @@ +Source: foo++ +Section: misc +Priority: optional +Maintainer: Lintian Maintainer +Uploaders: Marc 'HE' Brockschmidt , Jeroen van Wolffelaar , + Frank , +Standards-Version: 3.1.1 +XS-Dm-Upload-Allowed: no + +Package: foo++ +Architecture: all +Build-Depends: test +Depends: test, libssl0.9.7 +Description: see how lintian reacts to plus signs in the package name + Regression test to see if lintian tests work on a package with plus signs in + its name. + . + This description also uses non-UTF8 high bytes chars: ÄÖÜß + +Package: foo++-helper +Architecture: all +Depends: test, foo++ +Description: see how lintian reacts to plus signs in the package name + Regression test to see if lintian tests work on a package with plus signs in + its name. This has /usr/share/doc links to foo++ to trigger even more checks. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-foo++/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-foo++/debian/copyright new file mode 100644 index 00000000..e2d6d93e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-foo++/debian/copyright @@ -0,0 +1,7 @@ +A reference to /usr/share/common-licenses/GPL to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +However, there is also a reference to /usr/share/common-licenses/LGPL, so +who knows what bits actually depend on libssl. + +Copr. 2007 Somebody. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-foo++/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-foo++/debian/rules new file mode 100755 index 00000000..63bb4dbe --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-foo++/debian/rules @@ -0,0 +1,36 @@ +#!/usr/bin/make -f + +foo=foo++ +helper=foo++-helper + +build-arch: + +build-indep: + +build: build-arch build-indep + +binary-arch: + +binary-indep: + install -d debian/$(foo)/DEBIAN + install -d debian/$(foo)/usr/share/doc/$(foo) + install -m 644 debian/changelog \ + debian/$(foo)/usr/share/doc/$(foo)/changelog + gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/changelog + install -m 644 debian/README.Debian \ + debian/$(foo)/usr/share/doc/$(foo)/README.Debian + gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/README.Debian + dpkg-gencontrol -isp -p$(foo) -Pdebian/$(foo) + dpkg --build debian/$(foo) .. + + install -d debian/$(helper)/DEBIAN + install -d debian/$(helper)/usr/share/doc/ + ln -sf $(foo) debian/$(helper)/usr/share/doc/$(helper) + dpkg-gencontrol -isp -p$(helper) -Pdebian/$(helper) + dpkg --build debian/$(helper) .. + +binary: binary-arch binary-indep + +clean: + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-foo++/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-foo++/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-foo++/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-foo++/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-foo++/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-foo++/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-foo++/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-foo++/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-foo++/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-foo++/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-foo++/debian/watch new file mode 100644 index 00000000..26f9a3c1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-foo++/debian/watch @@ -0,0 +1,6 @@ +# A comment \ +version=0 + +# uscan does not interpret the backslash above, it is just part of the comment + +http://domain.tld/file-(.*)\.tar\.gz diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-foo++/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-foo++/eval/hints new file mode 100644 index 00000000..3a3d628c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/readme/legacy-foo++/eval/hints @@ -0,0 +1 @@ +foo++ (binary): readme-debian-contains-invalid-email-address foo@unknown [usr/share/doc/foo++/README.Debian.gz] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-binary-targets/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-binary-targets/ORIGIN new file mode 100644 index 00000000..a52424db --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-binary-targets/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-binary-targets/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-binary-targets/debian/changelog new file mode 100644 index 00000000..3870a877 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-binary-targets/debian/changelog @@ -0,0 +1,17 @@ +control-file-rules-requires-root-binary-targets (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-rules-requires-root-binary-targets + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +control-file-rules-requires-root-binary-targets (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-rules-requires-root-binary-targets + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-binary-targets/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-binary-targets/debian/control new file mode 100644 index 00000000..466f7dd5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-binary-targets/debian/control @@ -0,0 +1,17 @@ +Source: control-file-rules-requires-root-binary-targets +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: binary-targets +Homepage: https://lintian.debian.org/ + +Package: control-file-rules-requires-root-binary-targets +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for "Rules-Requires-Root: binary-targets" + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-binary-targets/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-binary-targets/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-binary-targets/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-binary-targets/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-binary-targets/debian/rules new file mode 100755 index 00000000..3d706f5e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-binary-targets/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_builddeb: + dh_builddeb -- -Zgzip diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-binary-targets/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-binary-targets/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-binary-targets/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-binary-targets/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-binary-targets/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-binary-targets/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-binary-targets/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-binary-targets/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-binary-targets/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-binary-targets/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-binary-targets/eval/hints new file mode 100644 index 00000000..fedc8bd0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-binary-targets/eval/hints @@ -0,0 +1 @@ +control-file-rules-requires-root-binary-targets (source): custom-compression-in-debian-rules dh_builddeb -- -Zgzip [debian/rules:7] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-no/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-no/ORIGIN new file mode 100644 index 00000000..453be575 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-no/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/control-file-rules-requires-root-no + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-no/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-no/debian/changelog new file mode 100644 index 00000000..c9248540 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-no/debian/changelog @@ -0,0 +1,17 @@ +control-file-rules-requires-root-no (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-rules-requires-root-no + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +control-file-rules-requires-root-no (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-rules-requires-root-no + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-no/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-no/debian/control new file mode 100644 index 00000000..5371beb1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-no/debian/control @@ -0,0 +1,17 @@ +Source: control-file-rules-requires-root-no +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no +Homepage: https://lintian.debian.org/ + +Package: control-file-rules-requires-root-no +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for "Rules-Requires-Root: no" + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-no/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-no/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-no/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-no/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-no/debian/rules new file mode 100755 index 00000000..3d706f5e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-no/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_builddeb: + dh_builddeb -- -Zgzip diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-no/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-no/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-no/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-no/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-no/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-no/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-no/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-no/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-no/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-no/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-no/eval/hints new file mode 100644 index 00000000..f1f23afe --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/control-file-rules-requires-root-no/eval/hints @@ -0,0 +1 @@ +control-file-rules-requires-root-no (source): custom-compression-in-debian-rules dh_builddeb -- -Zgzip [debian/rules:7] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-compat-old/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-compat-old/ORIGIN new file mode 100644 index 00000000..85bedead --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-compat-old/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/debhelper-compat-old + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-compat-old/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-compat-old/debian/changelog new file mode 100644 index 00000000..f10e95c0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-compat-old/debian/changelog @@ -0,0 +1,17 @@ +debhelper-compat-old (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-compat-old + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-compat-old (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-compat-old + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-compat-old/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-compat-old/debian/control new file mode 100644 index 00000000..0932a415 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-compat-old/debian/control @@ -0,0 +1,17 @@ +Source: debhelper-compat-old +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: debhelper-compat-old +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for old debian/compat file + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-compat-old/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-compat-old/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-compat-old/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-compat-old/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-compat-old/debian/rules new file mode 100755 index 00000000..3d706f5e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-compat-old/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_builddeb: + dh_builddeb -- -Zgzip diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-compat-old/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-compat-old/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-compat-old/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-compat-old/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-compat-old/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-compat-old/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-compat-old/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-compat-old/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-compat-old/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-compat-old/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-compat-old/eval/hints new file mode 100644 index 00000000..d7b6688a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-compat-old/eval/hints @@ -0,0 +1 @@ +debhelper-compat-old (source): custom-compression-in-debian-rules dh_builddeb -- -Zgzip [debian/rules:7] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-deb-build-options/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-deb-build-options/ORIGIN new file mode 100644 index 00000000..761b9fdd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-deb-build-options/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/debhelper-deb-build-options + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-deb-build-options/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-deb-build-options/debian/changelog new file mode 100644 index 00000000..6635fe3c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-deb-build-options/debian/changelog @@ -0,0 +1,17 @@ +debhelper-deb-build-options (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-deb-build-options + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-deb-build-options (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-deb-build-options + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-deb-build-options/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-deb-build-options/debian/control new file mode 100644 index 00000000..05d90f18 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-deb-build-options/debian/control @@ -0,0 +1,17 @@ +Source: debhelper-deb-build-options +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: debhelper-deb-build-options +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test the value of DEB_BUILD_OPTIONS + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-deb-build-options/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-deb-build-options/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-deb-build-options/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-deb-build-options/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-deb-build-options/debian/rules new file mode 100755 index 00000000..69a9f013 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-deb-build-options/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +export DEB_BUILD_OPTIONS=nocheck +export DEB_BUILD_MAINT_OPTIONS=hardening=+pie,-fortify + +%: + dh $@ diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-deb-build-options/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-deb-build-options/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-deb-build-options/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-deb-build-options/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-deb-build-options/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-deb-build-options/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-deb-build-options/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-deb-build-options/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-deb-build-options/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-deb-build-options/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-deb-build-options/eval/hints new file mode 100644 index 00000000..00e00563 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-deb-build-options/eval/hints @@ -0,0 +1 @@ +debhelper-deb-build-options (source): debian-rules-sets-DEB_BUILD_OPTIONS [debian/rules:3] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-dh-compat/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-dh-compat/ORIGIN new file mode 100644 index 00000000..a450f7a7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-dh-compat/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/debhelper-dh-compat + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-dh-compat/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-dh-compat/debian/changelog new file mode 100644 index 00000000..ae6d39f0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-dh-compat/debian/changelog @@ -0,0 +1,17 @@ +debhelper-dh-compat (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-dh-compat + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-dh-compat (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-dh-compat + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-dh-compat/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-dh-compat/debian/control new file mode 100644 index 00000000..2ac0af09 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-dh-compat/debian/control @@ -0,0 +1,17 @@ +Source: debhelper-dh-compat +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: debhelper-dh-compat +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test the value of DH_COMPAT + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-dh-compat/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-dh-compat/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-dh-compat/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-dh-compat/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-dh-compat/debian/rules new file mode 100755 index 00000000..111f4959 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-dh-compat/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +export DH_COMPAT=10 + +%: + dh $@ + +DH_COMPAT=8 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-dh-compat/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-dh-compat/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-dh-compat/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-dh-compat/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-dh-compat/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-dh-compat/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-dh-compat/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-dh-compat/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-dh-compat/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-dh-compat/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-dh-compat/eval/hints new file mode 100644 index 00000000..cd1a7058 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-dh-compat/eval/hints @@ -0,0 +1 @@ +debhelper-dh-compat (source): debian-rules-sets-DH_COMPAT [debian/rules:3] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-no-depends/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-no-depends/ORIGIN new file mode 100644 index 00000000..2308742d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-no-depends/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/debhelper-no-depends + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-no-depends/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-no-depends/debian/changelog new file mode 100644 index 00000000..65ac2c62 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-no-depends/debian/changelog @@ -0,0 +1,17 @@ +debhelper-no-depends (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-no-depends + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debhelper-no-depends (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debhelper-no-depends + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-no-depends/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-no-depends/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-no-depends/debian/compat @@ -0,0 +1 @@ +9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-no-depends/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-no-depends/debian/control new file mode 100644 index 00000000..968f5448 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-no-depends/debian/control @@ -0,0 +1,33 @@ +Source: debhelper-no-depends +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Rules-Requires-Root: no + +Package: debhelper-no-depends +Architecture: all +Description: Test dependency requirements for debhelper + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: debhelper-pre-depends +Architecture: all +Pre-Depends: ${misc:Depends} +Description: Test dependency requirements for debhelper extra string + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. Extra + string to not to trigger duplicated description tags. It may + be an empty package. + +Package: debhelper-suggests +Architecture: all +Suggests: ${misc:Depends} +Description: Test dependency requirements for debhelper another extra string + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. Extra + string. It may be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-no-depends/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-no-depends/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-no-depends/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-no-depends/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-no-depends/debian/rules new file mode 100755 index 00000000..79ec4da4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-no-depends/debian/rules @@ -0,0 +1,22 @@ +#!/usr/bin/make -f +%: + dh $@ + +binary: binary-arch binary-indep +binary-arch: +binary-indep: + -dh_clideps + -dh_gstscancodecs + dh_lisp || true +# We don't warn about commands inside make conditionals, so none of these +# get any warnings. +ifeq "$(USE_DH_PYTHON3)" "y" + dh_python3 +else + ifeq "$(USE_PYSUPPORT)" "y" + dh_pysupport + endif +endif + dh binary-indep + -dh_strip_nondeterminism + -dh_scour diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-no-depends/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-no-depends/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-no-depends/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-no-depends/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-no-depends/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-no-depends/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-no-depends/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-no-depends/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-no-depends/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-no-depends/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-no-depends/eval/hints new file mode 100644 index 00000000..f4bb3145 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debhelper-no-depends/eval/hints @@ -0,0 +1 @@ +debhelper-no-depends (source): rules-require-build-prerequisite (does not satisfy debhelper:any | debhelper-compat:any) [debian/rules] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-calls-nproc/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-calls-nproc/ORIGIN new file mode 100644 index 00000000..558abce6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-calls-nproc/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/debian-rules-calls-nproc + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-calls-nproc/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-calls-nproc/debian/changelog new file mode 100644 index 00000000..8af09980 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-calls-nproc/debian/changelog @@ -0,0 +1,17 @@ +debian-rules-calls-nproc (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debian-rules-calls-nproc + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debian-rules-calls-nproc (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debian-rules-calls-nproc + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-calls-nproc/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-calls-nproc/debian/control new file mode 100644 index 00000000..3be2145e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-calls-nproc/debian/control @@ -0,0 +1,17 @@ +Source: debian-rules-calls-nproc +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: debian-rules-calls-nproc +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: debian/rules calls nproc + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-calls-nproc/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-calls-nproc/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-calls-nproc/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-calls-nproc/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-calls-nproc/debian/rules new file mode 100755 index 00000000..45b94672 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-calls-nproc/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f + +NUM_CPUS=`/usr/bin/nproc` + +%: + dh $@ + +override_dh_auto_build: + # This use of `nproc` will not cause a hint. + @echo "Building with $$(nproc) jobs." + dh_auto_build -- -j $(shell nproc) + echo Just saying the word nproc also will not cause a hint. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-calls-nproc/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-calls-nproc/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-calls-nproc/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-calls-nproc/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-calls-nproc/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-calls-nproc/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-calls-nproc/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-calls-nproc/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-calls-nproc/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-calls-nproc/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-calls-nproc/eval/hints new file mode 100644 index 00000000..72c5f2a8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-calls-nproc/eval/hints @@ -0,0 +1,3 @@ +debian-rules-calls-nproc (source): debian-rules-calls-nproc [debian/rules:3] +debian-rules-calls-nproc (source): debian-rules-calls-nproc [debian/rules:11] +debian-rules-calls-nproc (source): debian-rules-calls-nproc [debian/rules:10] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/ORIGIN new file mode 100644 index 00000000..4d961c1e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/debian/changelog new file mode 100644 index 00000000..12485466 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/debian/changelog @@ -0,0 +1,17 @@ +debian-rules-uses-as-needed-linker-flag (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debian-rules-uses-as-needed-linker-flag + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debian-rules-uses-as-needed-linker-flag (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debian-rules-uses-as-needed-linker-flag + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/debian/control new file mode 100644 index 00000000..9f1192fe --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/debian/control @@ -0,0 +1,17 @@ +Source: debian-rules-uses-as-needed-linker-flag +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: debian-rules-uses-as-needed-linker-flag +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for --as-needed in debian/rules. + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/debian/rules new file mode 100755 index 00000000..38cb607c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f + +export DEB_BADFLAGS_MAINT_APPEND = -Wl,--as-needed + +export DEB_GOODFLAGS_MAINT_APPEND = -lprefix -Wl,--no-as-needed -lfoo, -Wl,-as-needed -lsuffix +export DEB_GOODFLAGS_MAINT_APPEND = -lprefix -Wl,--as-needed -Wl,--no-as-needed -lsuffix + +%: + dh $@ + +override_dh_autoreconf: + -dh_autoreconf --as-needed diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/eval/hints new file mode 100644 index 00000000..f7f3eac9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/eval/hints @@ -0,0 +1,2 @@ +debian-rules-uses-as-needed-linker-flag (source): debian-rules-uses-as-needed-linker-flag [debian/rules:3] +debian-rules-uses-as-needed-linker-flag (source): debian-rules-uses-as-needed-linker-flag [debian/rules:12] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-installed-python-versions/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-installed-python-versions/ORIGIN new file mode 100644 index 00000000..a8964a6f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-installed-python-versions/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/debian-rules-uses-installed-python-versions + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-installed-python-versions/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-installed-python-versions/debian/changelog new file mode 100644 index 00000000..542ea1a7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-installed-python-versions/debian/changelog @@ -0,0 +1,17 @@ +debian-rules-uses-installed-python-versions (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debian-rules-uses-installed-python-versions + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debian-rules-uses-installed-python-versions (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debian-rules-uses-installed-python-versions + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-installed-python-versions/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-installed-python-versions/debian/control new file mode 100644 index 00000000..d1eb9080 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-installed-python-versions/debian/control @@ -0,0 +1,17 @@ +Source: debian-rules-uses-installed-python-versions +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: debian-rules-uses-installed-python-versions +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Tests for py3versions -i + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-installed-python-versions/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-installed-python-versions/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-installed-python-versions/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-installed-python-versions/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-installed-python-versions/debian/rules new file mode 100755 index 00000000..88fd8992 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-installed-python-versions/debian/rules @@ -0,0 +1,17 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_auto_test: + # Good + echo $(shell py3versions -s) + echo $(shell py3versions -vs) + echo $(shell py3versions -sv) + echo $(shell py3versions -v) + + # Bad + echo $(shell py3versions -i) + echo $(shell py3versions -vi) + echo $(shell py3versions --installed) + echo $(shell py3versions --verbose --installed) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-installed-python-versions/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-installed-python-versions/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-installed-python-versions/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-installed-python-versions/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-installed-python-versions/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-installed-python-versions/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-installed-python-versions/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-installed-python-versions/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-installed-python-versions/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-installed-python-versions/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-installed-python-versions/eval/hints new file mode 100644 index 00000000..baeea5d2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-installed-python-versions/eval/hints @@ -0,0 +1,7 @@ +debian-rules-uses-installed-python-versions (source): debian-rules-uses-supported-python-versions-without-python-all-build-depends py3versions -vs [debian/rules:9] +debian-rules-uses-installed-python-versions (source): debian-rules-uses-supported-python-versions-without-python-all-build-depends py3versions -sv [debian/rules:10] +debian-rules-uses-installed-python-versions (source): debian-rules-uses-supported-python-versions-without-python-all-build-depends py3versions -s [debian/rules:8] +debian-rules-uses-installed-python-versions (source): debian-rules-uses-installed-python-versions py3versions -vi [debian/rules:15] +debian-rules-uses-installed-python-versions (source): debian-rules-uses-installed-python-versions py3versions -i [debian/rules:14] +debian-rules-uses-installed-python-versions (source): debian-rules-uses-installed-python-versions py3versions --verbose --installed [debian/rules:17] +debian-rules-uses-installed-python-versions (source): debian-rules-uses-installed-python-versions py3versions --installed [debian/rules:16] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/ORIGIN new file mode 100644 index 00000000..1c5e27eb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/debian/changelog new file mode 100644 index 00000000..e6e6333b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/debian/changelog @@ -0,0 +1,17 @@ +debian-rules-uses-supported-python-versions-without-python-all-build-depends (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debian-rules-uses-supported-python-versions-without-python-all-build-depends + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debian-rules-uses-supported-python-versions-without-python-all-build-depends (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debian-rules-uses-supported-python-versions-without-python-all-build-depends + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/debian/control new file mode 100644 index 00000000..0aee0fd6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/debian/control @@ -0,0 +1,17 @@ +Source: debian-rules-uses-supported-python-versions-without-python-all-build-depends +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: debian-rules-uses-supported-python-versions-without-python-all-build-depends +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Tests for py3versions -s without python3-all build-depends + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/debian/rules new file mode 100755 index 00000000..d92a6d55 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/debian/rules @@ -0,0 +1,14 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_auto_build: + # Good + echo $(shell py3versions -v) + + # Bad + echo $(shell py3versions -s) + echo $(shell py3versions -vs) + echo $(shell py3versions -sv) + echo $(shell py3versions --supported) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/eval/hints new file mode 100644 index 00000000..06b59c55 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/eval/hints @@ -0,0 +1,4 @@ +debian-rules-uses-supported-python-versions-without-python-all-build-depends (source): debian-rules-uses-supported-python-versions-without-python-all-build-depends py3versions -vs [debian/rules:12] +debian-rules-uses-supported-python-versions-without-python-all-build-depends (source): debian-rules-uses-supported-python-versions-without-python-all-build-depends py3versions -sv [debian/rules:13] +debian-rules-uses-supported-python-versions-without-python-all-build-depends (source): debian-rules-uses-supported-python-versions-without-python-all-build-depends py3versions -s [debian/rules:11] +debian-rules-uses-supported-python-versions-without-python-all-build-depends (source): debian-rules-uses-supported-python-versions-without-python-all-build-depends py3versions --supported [debian/rules:14] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/curly-braces/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/curly-braces/ORIGIN new file mode 100644 index 00000000..e19692bd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/curly-braces/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/dh-sequencer/curly-braces + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/curly-braces/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/curly-braces/debian/changelog new file mode 100644 index 00000000..6065735e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/curly-braces/debian/changelog @@ -0,0 +1,17 @@ +curly-braces (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: curly-braces + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +curly-braces (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: curly-braces + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/curly-braces/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/curly-braces/debian/control new file mode 100644 index 00000000..bab6b245 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/curly-braces/debian/control @@ -0,0 +1,17 @@ +Source: curly-braces +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: curly-braces +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Uses dh sequencer with curly variable notation (false positive) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/curly-braces/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/curly-braces/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/curly-braces/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/curly-braces/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/curly-braces/debian/rules new file mode 100644 index 00000000..000210ba --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/curly-braces/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh ${@} diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/curly-braces/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/curly-braces/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/curly-braces/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/curly-braces/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/curly-braces/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/curly-braces/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/curly-braces/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/curly-braces/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/curly-braces/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/curly-braces/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/curly-braces/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/curly-braces/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/dependency/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/dependency/ORIGIN new file mode 100644 index 00000000..7f1690a5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/dependency/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/dh-sequencer/dependency + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/dependency/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/dependency/debian/changelog new file mode 100644 index 00000000..21c64f33 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/dependency/debian/changelog @@ -0,0 +1,17 @@ +double-quotes (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: double-quotes + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +double-quotes (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: double-quotes + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/dependency/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/dependency/debian/control new file mode 100644 index 00000000..324dfccd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/dependency/debian/control @@ -0,0 +1,17 @@ +Source: double-quotes +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: double-quotes +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Uses dh sequencer with explicit dependency (false positive) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/dependency/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/dependency/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/dependency/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/dependency/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/dependency/debian/rules new file mode 100644 index 00000000..76cf6438 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/dependency/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f + +export USER=fake +export HOME=$(CURDIR)/debian/fake-home + +$(CURDIR)/debian/fake-home: + mkdir $(CURDIR)/debian/fake-home + +%: $(CURDIR)/debian/fake-home + dh $@ diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/dependency/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/dependency/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/dependency/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/dependency/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/dependency/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/dependency/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/dependency/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/dependency/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/dependency/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/dependency/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/dependency/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/double-quotes/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/double-quotes/ORIGIN new file mode 100644 index 00000000..a88eb5b7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/double-quotes/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/dh-sequencer/double-quotes + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/double-quotes/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/double-quotes/debian/changelog new file mode 100644 index 00000000..21c64f33 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/double-quotes/debian/changelog @@ -0,0 +1,17 @@ +double-quotes (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: double-quotes + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +double-quotes (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: double-quotes + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/double-quotes/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/double-quotes/debian/control new file mode 100644 index 00000000..dc8b6c8e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/double-quotes/debian/control @@ -0,0 +1,17 @@ +Source: double-quotes +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: double-quotes +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Uses dh sequencer with double quotes around variable (false positive) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/double-quotes/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/double-quotes/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/double-quotes/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/double-quotes/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/double-quotes/debian/rules new file mode 100644 index 00000000..5875e309 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/double-quotes/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh "$@" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/double-quotes/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/double-quotes/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/double-quotes/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/double-quotes/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/double-quotes/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/double-quotes/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/double-quotes/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/double-quotes/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/double-quotes/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/double-quotes/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/double-quotes/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/double-quotes/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/environment-prefix/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/environment-prefix/ORIGIN new file mode 100644 index 00000000..8ded69a7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/environment-prefix/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/dh-sequencer/environment-prefix + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/environment-prefix/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/environment-prefix/debian/changelog new file mode 100644 index 00000000..2418e70d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/environment-prefix/debian/changelog @@ -0,0 +1,17 @@ +environment-prefix (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: environment-prefix + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +environment-prefix (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: environment-prefix + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/environment-prefix/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/environment-prefix/debian/control new file mode 100644 index 00000000..ffa5fac7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/environment-prefix/debian/control @@ -0,0 +1,17 @@ +Source: environment-prefix +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: environment-prefix +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Uses dh sequencer with a prefix setting an environment variable (false positive) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/environment-prefix/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/environment-prefix/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/environment-prefix/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/environment-prefix/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/environment-prefix/debian/rules new file mode 100644 index 00000000..6ad65cc5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/environment-prefix/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + PREFIX=/usr dh $@ diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/environment-prefix/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/environment-prefix/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/environment-prefix/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/environment-prefix/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/environment-prefix/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/environment-prefix/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/environment-prefix/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/environment-prefix/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/environment-prefix/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/environment-prefix/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/environment-prefix/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/environment-prefix/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/explicit-targets/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/explicit-targets/ORIGIN new file mode 100644 index 00000000..8cd8aa9a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/explicit-targets/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/dh-sequencer/explicit-targets + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/explicit-targets/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/explicit-targets/debian/changelog new file mode 100644 index 00000000..1c68888e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/explicit-targets/debian/changelog @@ -0,0 +1,17 @@ +explicit-targets (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: explicit-targets + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +explicit-targets (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: explicit-targets + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/explicit-targets/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/explicit-targets/debian/control new file mode 100644 index 00000000..d94565e8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/explicit-targets/debian/control @@ -0,0 +1,17 @@ +Source: explicit-targets +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: explicit-targets +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Uses dh sequencer but not the % target wildcard + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/explicit-targets/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/explicit-targets/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/explicit-targets/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/explicit-targets/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/explicit-targets/debian/rules new file mode 100644 index 00000000..f7b25c52 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/explicit-targets/debian/rules @@ -0,0 +1,11 @@ +#!/usr/bin/make -f + +.PHONY: binary binary-arch binary-indep build build-arch build-indep clean install +binary-arch build build-arch build-indep clean install: + dh $@ + +binary binary-indep: + dh $@ + +build-stamp: + dh $@ diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/explicit-targets/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/explicit-targets/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/explicit-targets/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/explicit-targets/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/explicit-targets/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/explicit-targets/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/explicit-targets/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/explicit-targets/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/explicit-targets/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/explicit-targets/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/explicit-targets/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/explicit-targets/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/no-dh-sequencer/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/no-dh-sequencer/ORIGIN new file mode 100644 index 00000000..4e7520dc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/no-dh-sequencer/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/no-dh-sequencer/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/no-dh-sequencer/debian/changelog new file mode 100644 index 00000000..b089fb88 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/no-dh-sequencer/debian/changelog @@ -0,0 +1,17 @@ +no-dh-sequencer (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: no-dh-sequencer + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +no-dh-sequencer (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: no-dh-sequencer + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/no-dh-sequencer/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/no-dh-sequencer/debian/compat new file mode 100644 index 00000000..7f8f011e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/no-dh-sequencer/debian/compat @@ -0,0 +1 @@ +7 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/no-dh-sequencer/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/no-dh-sequencer/debian/control new file mode 100644 index 00000000..80f6b63b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/no-dh-sequencer/debian/control @@ -0,0 +1,17 @@ +Source: no-dh-sequencer +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 7~) +Homepage: https://lintian.debian.org/ + +Package: no-dh-sequencer +Architecture: any +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Uses standard debhelper targets but not the dh sequencer + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/no-dh-sequencer/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/no-dh-sequencer/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/no-dh-sequencer/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/no-dh-sequencer/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/no-dh-sequencer/debian/rules new file mode 100755 index 00000000..c3ff202c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/no-dh-sequencer/debian/rules @@ -0,0 +1,76 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_python +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/no-dh-sequencer/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/no-dh-sequencer/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/no-dh-sequencer/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/no-dh-sequencer/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/no-dh-sequencer/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/no-dh-sequencer/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/no-dh-sequencer/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/no-dh-sequencer/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/no-dh-sequencer/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/no-dh-sequencer/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/no-dh-sequencer/eval/hints new file mode 100644 index 00000000..a2ff5e0b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/no-dh-sequencer/eval/hints @@ -0,0 +1 @@ +no-dh-sequencer (source): no-dh-sequencer [debian/rules] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/parentheses/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/parentheses/ORIGIN new file mode 100644 index 00000000..494786a5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/parentheses/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/dh-sequencer/parentheses + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/parentheses/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/parentheses/debian/changelog new file mode 100644 index 00000000..79af3a00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/parentheses/debian/changelog @@ -0,0 +1,17 @@ +parentheses (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: parentheses + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +parentheses (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: parentheses + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/parentheses/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/parentheses/debian/control new file mode 100644 index 00000000..570c5346 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/parentheses/debian/control @@ -0,0 +1,17 @@ +Source: parentheses +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: parentheses +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Uses dh sequencer with parentheses around variable name (false positive) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/parentheses/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/parentheses/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/parentheses/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/parentheses/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/parentheses/debian/rules new file mode 100644 index 00000000..0ceea365 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/parentheses/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $(@) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/parentheses/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/parentheses/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/parentheses/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/parentheses/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/parentheses/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/parentheses/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/parentheses/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/parentheses/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/parentheses/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/parentheses/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/parentheses/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/parentheses/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/single-quotes/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/single-quotes/ORIGIN new file mode 100644 index 00000000..f56d2448 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/single-quotes/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/dh-sequencer/single-quotes + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/single-quotes/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/single-quotes/debian/changelog new file mode 100644 index 00000000..06637109 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/single-quotes/debian/changelog @@ -0,0 +1,17 @@ +single-quotes (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: single-quotes + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +single-quotes (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: single-quotes + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/single-quotes/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/single-quotes/debian/control new file mode 100644 index 00000000..f6ce4f3a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/single-quotes/debian/control @@ -0,0 +1,17 @@ +Source: single-quotes +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: single-quotes +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Uses dh sequencer with single quotes around variable (false positive) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/single-quotes/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/single-quotes/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/single-quotes/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/single-quotes/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/single-quotes/debian/rules new file mode 100644 index 00000000..2822991c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/single-quotes/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh '$@' diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/single-quotes/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/single-quotes/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/single-quotes/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/single-quotes/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/single-quotes/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/single-quotes/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/single-quotes/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/single-quotes/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/single-quotes/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/single-quotes/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/single-quotes/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/single-quotes/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/with-comments/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/with-comments/ORIGIN new file mode 100644 index 00000000..a74d2747 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/with-comments/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/dh-sequencer/with-comments + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/with-comments/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/with-comments/debian/changelog new file mode 100644 index 00000000..34940ac4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/with-comments/debian/changelog @@ -0,0 +1,17 @@ +with-comments (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: with-comments + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +with-comments (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: with-comments + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/with-comments/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/with-comments/debian/control new file mode 100644 index 00000000..93b8dda7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/with-comments/debian/control @@ -0,0 +1,17 @@ +Source: with-comments +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: with-comments +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Uses dh sequencer but with comments inside the Makefile recipe (false positive) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/with-comments/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/with-comments/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/with-comments/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/with-comments/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/with-comments/debian/rules new file mode 100644 index 00000000..f547287c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/with-comments/debian/rules @@ -0,0 +1,6 @@ +#!/usr/bin/make -f + +%: + # this comment should not trigger a false positive + # neither should this one + dh $(@) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/with-comments/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/with-comments/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/with-comments/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/with-comments/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/with-comments/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/with-comments/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/with-comments/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/with-comments/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/with-comments/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/with-comments/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/with-comments/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/dh-sequencer/with-comments/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/generic-empty/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/generic-empty/ORIGIN new file mode 100644 index 00000000..bd24f8ea --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/generic-empty/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/generic-empty + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/generic-empty/README b/packages/debmagic/tests/lintian-parity/checks/debian/rules/generic-empty/README new file mode 100644 index 00000000..ed1b149f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/generic-empty/README @@ -0,0 +1,4 @@ +This is the smallest possible Debian package that I can get +dpkg-buildpackage to build (with the exception of this documentation). +It tests Lintian handling of packages that are missing everything one +would normally expect to have. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/generic-empty/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/generic-empty/debian/changelog new file mode 100644 index 00000000..21ba4143 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/generic-empty/debian/changelog @@ -0,0 +1,2 @@ +generic-empty (1.0) unstable; + -- a Tue, 30 Dec 2008 17:34:02 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/generic-empty/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/generic-empty/debian/control new file mode 100644 index 00000000..cd8d0ba5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/generic-empty/debian/control @@ -0,0 +1,5 @@ +Source: generic-empty +Maintainer: a + +Package: generic-empty +Architecture: all diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/generic-empty/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/generic-empty/debian/rules new file mode 100755 index 00000000..62da96d6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/generic-empty/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f +build: +binary: + install -d debian/generic-empty debian/generic-empty/DEBIAN + dpkg-gencontrol -pgeneric-empty -Pdebian/generic-empty + dpkg --build debian/generic-empty .. + +clean: + rm -rf debian/generic-empty diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/generic-empty/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/generic-empty/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/generic-empty/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/generic-empty/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/generic-empty/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/generic-empty/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/generic-empty/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/generic-empty/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/generic-empty/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/generic-empty/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/generic-empty/eval/hints new file mode 100644 index 00000000..c6a9a409 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/generic-empty/eval/hints @@ -0,0 +1,4 @@ +generic-empty (source): debian-rules-missing-required-target build-indep [debian/rules] +generic-empty (source): debian-rules-missing-required-target build-arch [debian/rules] +generic-empty (source): debian-rules-missing-required-target binary-indep [debian/rules] +generic-empty (source): debian-rules-missing-required-target binary-arch [debian/rules] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/INSTALL b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/INSTALL new file mode 100644 index 00000000..3b50ea95 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/INSTALL @@ -0,0 +1,176 @@ +Basic Installation +================== + + These are generic installation instructions. + + The `configure' shell script attempts to guess correct values for +various system-dependent variables used during compilation. It uses +those values to create a `Makefile' in each directory of the package. +It may also create one or more `.h' files containing system-dependent +definitions. Finally, it creates a shell script `config.status' that +you can run in the future to recreate the current configuration, a file +`config.cache' that saves the results of its tests to speed up +reconfiguring, and a file `config.log' containing compiler output +(useful mainly for debugging `configure'). + + If you need to do unusual things to compile the package, please try +to figure out how `configure' could check whether to do them, and mail +diffs or instructions to the address given in the `README' so they can +be considered for the next release. If at some point `config.cache' +contains results you don't want to keep, you may remove or edit it. + + The file `configure.in' is used to create `configure' by a program +called `autoconf'. You only need `configure.in' if you want to change +it or regenerate `configure' using a newer version of `autoconf'. + +The simplest way to compile this package is: + + 1. `cd' to the directory containing the package's source code and type + `./configure' to configure the package for your system. If you're + using `csh' on an old version of System V, you might need to type + `sh ./configure' instead to prevent `csh' from trying to execute + `configure' itself. + + Running `configure' takes a while. While running, it prints some + messages telling which features it is checking for. + + 2. Type `make' to compile the package. + + 3. Optionally, type `make check' to run any self-tests that come with + the package. + + 4. Type `make install' to install the programs and any data files and + documentation. + + 5. You can remove the program binaries and object files from the + source code directory by typing `make clean'. To also remove the + files that `configure' created (so you can compile the package for + a different kind of computer), type `make distclean'. There is + also a `make maintainer-clean' target, but that is intended mainly + for the package's developers. If you use it, you may have to get + all sorts of other programs in order to regenerate files that came + with the distribution. + +Compilers and Options +===================== + + Some systems require unusual options for compilation or linking that +the `configure' script does not know about. You can give `configure' +initial values for variables by setting them in the environment. Using +a Bourne-compatible shell, you can do that on the command line like +this: + CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure + +Or on systems that have the `env' program, you can do it like this: + env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure + +Compiling For Multiple Architectures +==================================== + + You can compile the package for more than one kind of computer at the +same time, by placing the object files for each architecture in their +own directory. To do this, you must use a version of `make' that +supports the `VPATH' variable, such as GNU `make'. `cd' to the +directory where you want the object files and executables to go and run +the `configure' script. `configure' automatically checks for the +source code in the directory that `configure' is in and in `..'. + + If you have to use a `make' that does not supports the `VPATH' +variable, you have to compile the package for one architecture at a time +in the source code directory. After you have installed the package for +one architecture, use `make distclean' before reconfiguring for another +architecture. + +Installation Names +================== + + By default, `make install' will install the package's files in +`/usr/local/bin', `/usr/local/man', etc. You can specify an +installation prefix other than `/usr/local' by giving `configure' the +option `--prefix=PATH'. + + You can specify separate installation prefixes for +architecture-specific files and architecture-independent files. If you +give `configure' the option `--exec-prefix=PATH', the package will use +PATH as the prefix for installing programs and libraries. +Documentation and other data files will still use the regular prefix. + + If the package supports it, you can cause programs to be installed +with an extra prefix or suffix on their names by giving `configure' the +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. + +Optional Features +================= + + Some packages pay attention to `--enable-FEATURE' options to +`configure', where FEATURE indicates an optional part of the package. +They may also pay attention to `--with-PACKAGE' options, where PACKAGE +is something like `gnu-as' or `x' (for the X Window System). The +`README' should mention any `--enable-' and `--with-' options that the +package recognizes. + + For packages that use the X Window System, `configure' can usually +find the X include and library files automatically, but if it doesn't, +you can use the `configure' options `--x-includes=DIR' and +`--x-libraries=DIR' to specify their locations. + +Specifying the System Type +========================== + + There may be some features `configure' can not figure out +automatically, but needs to determine by the type of host the package +will run on. Usually `configure' can figure that out, but if it prints +a message saying it can not guess the host type, give it the +`--host=TYPE' option. TYPE can either be a short name for the system +type, such as `sun4', or a canonical name with three fields: + CPU-COMPANY-SYSTEM + +See the file `config.sub' for the possible values of each field. If +`config.sub' isn't included in this package, then this package doesn't +need to know the host type. + + If you are building compiler tools for cross-compiling, you can also +use the `--target=TYPE' option to select the type of system they will +produce code for and the `--build=TYPE' option to select the type of +system on which you are compiling the package. + +Sharing Defaults +================ + + If you want to set default values for `configure' scripts to share, +you can create a site shell script called `config.site' that gives +default values for variables like `CC', `cache_file', and `prefix'. +`configure' looks for `PREFIX/share/config.site' if it exists, then +`PREFIX/etc/config.site' if it exists. Or, you can set the +`CONFIG_SITE' environment variable to the location of the site script. +A warning: not all `configure' scripts look for a site script. + +Operation Controls +================== + + `configure' recognizes the following options to control how it +operates. + +`--cache-file=FILE' + Use and save the results of the tests in FILE instead of + `./config.cache'. Set FILE to `/dev/null' to disable caching, for + debugging `configure'. + +`--help' + Print a summary of the options to `configure', and exit. + +`--quiet' +`--silent' +`-q' + Do not print messages saying which checks are being made. + +`--srcdir=DIR' + Look for the package's source code in directory DIR. Usually + `configure' can determine that directory automatically. + +`--version' + Print the version of Autoconf used to generate the `configure' + script, and exit. + +`configure' also accepts some other, not widely useful, options. + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/Makefile new file mode 100644 index 00000000..da1dc555 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/Makefile @@ -0,0 +1,12 @@ +all: hello hello-static + +hello: hello.c + gcc hello.c -o hello + +hello-static: hello.c + gcc -static hello.c -o hello-static + +clean: + rm -f hello hello-static + +distclean: clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/ORIGIN new file mode 100644 index 00000000..83c67f17 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/legacy-binary + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/NEWS.Debian b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/NEWS.Debian new file mode 100644 index 00000000..29f561c4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/NEWS.Debian @@ -0,0 +1,12 @@ +binary (4-1.1) UNRELEASED; urgency=high + + This is a Debian NEWS entry that isn't encoded properly in UTF-8: . + It also has a usefull speling error. + + -- Russ Allbery Sun, 14 Oct 2007 17:11:36 -0700 + +binary (1) unstable; urgency=low + + This is another entry but this one isn't syntactically valid. + + -- Russ Allbery 2007-10-14 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/README.Debian b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/README.Debian new file mode 100644 index 00000000..94bcc0ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/README.Debian @@ -0,0 +1,5 @@ +this is a binary package to test lintian's handling of bins. +Check handling of D-Bus and dbus (neither of which should produce +warnings). + + -- Russ Allbery , Wed, 6 Feb 2008 18:35:11 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/changelog new file mode 100644 index 00000000..35b8c0bf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/changelog @@ -0,0 +1,47 @@ +binary (4-1.1) unstable; urgency=low + + * I'm doing an comaintainer-upload, acknowledging a NMU, but with a version + number which suggests I'm doing a NMU myself. + + Lintian-maintainers: Please don't update this changelog, otherwise you'll + probably break the checks/nmu checks. + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 01:49:42 +0200 + +binary (4-1) unstable; urgency=low + + * Weird version number for the new check for accidents with native + packaging. + * Date was fixed by BR and this test was put on changelog-file-strange-date + due to dpkg bug, see #794674. + + -- Marc 'HE' Brockschmidt Thu, 15 Apr 2004 23:33:51 +0200 + +binary (4) unstable; urgency=low + + * Add big file to /usr/share to trigger the big-usr-share check + + -- Jeroen van Wolffelaar Fri, 27 Feb 2004 10:15:59 +0100 + +binary (3) unstable; urgency=unlimited + + * Add some bogus menu entries using su-to-root in a bogus way + + -- Jeroen van Wolffelaar Thu, 12 Feb 2004 20:11:22 +0100 + +binary (2) unstable; urgency=low + + * Added an INSTALL document which policy 6.3 suggests not to do + + -- Sean 'Shaleh' Perry Tue, 30 Jan 2001 15:23:59 -0800 + +binary (1) unstable; urgency=low + + * hello.c added + * hello-static is same as hello, but compiled statically + * added a menu entry which lacks a Section + * added a postinst + * postinst calls suidregister which is no longer policy compliant + + -- Sean 'Shaleh' Perry Wed, 10 Jan 2001 08:55:34 -0800 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/conffiles b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/conffiles new file mode 100644 index 00000000..d1a08433 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/conffiles @@ -0,0 +1 @@ +/etc/menu-methods/lintian diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/control new file mode 100644 index 00000000..c797357b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/control @@ -0,0 +1,42 @@ +Source: binary +Section: misc +Priority: optional +Maintainer: Lintian Maintainers +Uploaders: Co-maintainer one , Jeroen van Wolffelaar , Co-maintainer three +Standards-Version: 3.2.1 +Homepage: http://lintian.debian.org/ +Vcs-Svn: http://svn.wolffelaar.nl/lintian/trunk +XS-Vcs-Browser: http://svn.wolffelaar.nl/lintian/trunk +XS-Dm-Upload-Allowed: yes + +Package: binary +Architecture: any +Pre-Depends: ${shlibs:Depends}, xorg, binary-data (= ${source:Version}), libssl0.9.8 +Homepage: +Vcs-Svn: http://svn.wolffelaar.nl/lintian/trunk +Description: test handling of binary files + Regression test for lintian's handling of binary files for debian. This + is checked for picky spelling errors. + . + This package list [ subversion | gconf ] should not be flagged as a spelling + mistake. The spelling correction for dont should be correct. + . + Homepage: http://lintian.debian.org/ + +Package: binary-data +Architecture: all +Depends: binary (= ${source:Version}), libssl-not-openssl, + libssl0.9.8 | or-something-else +Description: test handling of binary relationships + Regression test for lintian's checking of package relationships between + arch:any and arch:all packages. + . + This mention of subversion should be flagged as a spelling mistake. + +#Package: binary-comment +#Architecture: space-almonds +#Depends: * +#Depends: * +#Description: test comment support +# Yes, comments are actually allowed in debian/control, so none of the +# above should produce errors. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/copyright new file mode 100644 index 00000000..1d6806de --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/copyright @@ -0,0 +1,15 @@ +hello.c is released under public domain. This is distributed in the hope that +it will be useful, but without any warranty; without even the implied warranty +of merchantability or fitness for a particular purpose. + +A reference to /usr/share/common-licenses/GPL-2 to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +Test for old FSF address: + +Free Software Foundation, Inc., 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. + +Test for deprecated ntionl ncoding. + +Improper capitalization of linux or debian isn't caught here. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/doc-base b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/doc-base new file mode 100644 index 00000000..7e5b38f2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/doc-base @@ -0,0 +1,41 @@ +Document: binary!docs +Title: Broken debian binary doc-base control file +Author: Russ Allbery +Abstract: This control file exercises various tests of doc-base control + files, including several things that aren't tested yet. The third and + fourth one has trailing whitespace. + . + This section has a speling error and bad character. + . + The above separator was fine. +Section: Non/Existant +Unknown: Some field + + + +Format: debiandoc-sgML +Files: /usr/share/doc/binary/binary.sgml.gz +Unknown: Some field + +Format: ESP +Index: /usr/share/doc/binary/binary.txt + +Index: /usr/share/doc/binary/html/index.html + /usr/share/doc/binary/html/ch1.html + /usr/share/doc/binary/html/ch4.html + + +Format: HTML +Index: /usr/share/doc/binary/html/index.html +Files: /usr/share/doc/binary/html/ch?.h*l + /usr/share/doc/binary/hml/*.html + +Format: inFO +Files: /usr/share/info/binary.info.gz + +Format: HTML +Index: /usr/share/doc/binary/html/index.html +Files: /usr/share/doc/binary/html/ch5.html + /usr/share/doc/binary/html/ch6.html + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/goodbye.desktop b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/goodbye.desktop new file mode 100644 index 00000000..f6ce8e3f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/goodbye.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Name:Goodbye +# Name=Goodbye +Comment=Say hello! +SpecialTag=This doesn't exist! +Exec=goodbye +icon=hello +Terminal=true +Type=Application +Categories=WeirdStuff;Screensaver; +Encoding=ISO-10646-1 +[Other Entry] +Name=Goodbye diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/hello.desktop b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/hello.desktop new file mode 100644 index 00000000..f7954685 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/hello.desktop @@ -0,0 +1,14 @@ +# some random comment + +# [Foo Bar] +[KDE Desktop Entry] +Name=Hello +Name[en_US]=Hello +Comment=Say hello! +Exec=kdesu hello +Icon=hello +Terminal=true +Type=Application +Categories=GNOME;GTK;System;Applet;X-Foo;Settings; +Encoding=UTF-8 +OnlyShowIn=GNOME; diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/menu b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/menu new file mode 100644 index 00000000..e8972f4f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/menu @@ -0,0 +1,26 @@ +?package(binary):needs=text title="Hello World" command="/usr/bin/hello" +?package(binary):needs=text section="Applications/System" title="Run cfdisk (0)" command="/usr/bin/su-to-root cfdisk" +?package(binary):needs="text" section="Applications/System/Hardware" title="Run cfdisk (1)" command="sux -p cfdisk" +?package(binary):needs="x11" section="Window Managers" title="Run xfdisk" command="/usr/sbin/su-to-root -c xfdisk" +?package(binary):needs="wm" section="Applications/System/Administration" title="Run fdisk-wm" command="su-to-root -c hello" +?package(binary):section="Apps/Games" title="I'm not root!" command="su-to-root -c imnothere" +?package(binary):needs="text" section="Apps/System" title="I'm not here!" command="/imnothere" +?package(binary,other-binary):\ + needs="text"\ + section="Applications/Shells"\ + title="more than one required"\ + command="other-bin -s omething" +?package(binary):needs="wmmodule" section="WindowManagers/Modules" title="somemodule" command="ModuleCmd" +?package(binary):needs="wmmodule" section="FVWM Modules" title="somemodule" command="ModuleCmd" +?package(binary):needs="text" section="Applications/System/Administration" title="I'm not in /usr/bin!" command="iminusrbin" +?package(binary):needs="text"\ + section="Applications/System/Administration"\ + title="I'm not root!" command="su-to-root -c imnothere" +?package(binary):needs="text" section="Applications/System/Administration"\ + title="Run cfdisk (0)" command="cfdisk" +?package(binary):needs="text" section="Applications/System/Administration" title="Hello World" command="/usr/bin/hello" +?package(binary):needs="wm" section="FVWM Modules" title="Fake Module" command="hello" +?package(binary):needs="fvwmmodule" section="Window Maker" title="Fake Module"\ + command="hello" +?package(binary):needs="x11" section="Applications/System/Hardware" title="Run xfdisk" command="su-to-root -c 'xfdisk -f'" +?package(binary):needs="text" section="Applications/System/Administration" title="foo" command="sh /path/to/foo" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/menu-method b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/menu-method new file mode 100644 index 00000000..9f07bd73 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/menu-method @@ -0,0 +1,22 @@ +#!/usr/bin/install-menu + +# -*- mode: shell-script; -*- +#I need menu-1! +# + +!include notmenu.h + +compat="menu-2" + +outputencoding="UTF-8"; +outputlanguage="C"; + +x11 = AppEntry("false"); +text = AppEntry("true"); + +startmenu = ""; +endmenu = ""; +submenutitle = ""; +rootprefix = "/var/lib/lintian/menu"; +userprefix = ".local/share/lintian/menu"; + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/postinst new file mode 100644 index 00000000..29e18619 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/postinst @@ -0,0 +1,6 @@ +#! /bin/bash -e + +if [ $1 eq 'configure' ] +then + suidregister hello-static root root 4755 +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/rules new file mode 100755 index 00000000..a962ea92 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/rules @@ -0,0 +1,92 @@ +#!/usr/bin/make -f + +tmp=debian/tmp + +# This reference to $(PWD) should not cause an error but the one below +# should. +build-arch: + make + echo $(PWD) + +build: build-arch + +clean: + make -i clean + [ ! -f debian/files ] || rm -f debian/files + [ ! -f debian/substvars ] || rm -f debian/substvars + [ ! -d debian/tmp ] || rm -rf debian/tmp + [ ! -d debian/binary ] || rm -rf debian/binary + [ ! -d debian/binary-data ] || rm -rf debian/binary-data + +binary-arch: build + install -d $(tmp)/usr/bin + install -d $(tmp)/boot/hello + install -m 755 hello $(tmp)/usr/bin + touch $(tmp)/usr/bin/iminusrbin + chmod 755 $(tmp)/usr/bin/iminusrbin + install -m 755 hello-static $(tmp)/usr/bin + strip $(tmp)/usr/bin/hello-static + install -m 755 hello-static $(tmp)/usr/bin/hello.static + strip --remove-section=.comment --remove-section=.note $(tmp)/usr/bin/hello.static + ln $(tmp)/usr/bin/hello.static $(tmp)/usr/bin/static-hello + install -m 755 hello-static $(tmp)/boot/hello + strip --remove-section=.comment --remove-section=.note $(tmp)/boot/hello/hello-static + install -d $(tmp)/usr/share/doc/binary + install -m 644 INSTALL $(tmp)/usr/share/doc/binary + install -d $(tmp)/usr/share/doc/binary/html + echo '' > $(tmp)/usr/share/doc/binary/html/index.html + echo '' > $(tmp)/usr/share/doc/binary/html/ch1.html + ln -s ../html/./ch1.html $(tmp)/usr/share/doc/binary/html/ch2.html + ln -s /usr/share/doc/binary/htm/ch1.html $(tmp)/usr/share/doc/binary/html/ch3.html + echo '' > $(tmp)/usr/share/doc/binary/html/ch5.html + ln $(tmp)/usr/share/doc/binary/html/ch5.html \ + $(tmp)/usr/share/doc/binary/html/ch6.html + install -d $(tmp)/usr/share/menu + install -d $(tmp)/usr/lib/menu + install -d $(tmp)/usr/share/binary + install -m 644 debian/menu $(tmp)/usr/share/menu/binary + install -m 644 debian/menu $(tmp)/usr/lib/menu/binary + install -d $(tmp)/etc/menu-methods + install -m 755 debian/menu-method $(tmp)/etc/menu-methods/lintian + install -d $(tmp)/usr/share/doc-base + install -m 644 debian/doc-base $(tmp)/usr/share/doc-base/binary + touch '$(tmp)/usr/share/doc-base/space ' + install -m 644 debian/README.Debian $(tmp)/usr/share/doc/binary + install -m 644 debian/NEWS.Debian $(tmp)/usr/share/doc/binary + gzip -n -9 $(tmp)/usr/share/doc/binary/NEWS.Debian + install -m 644 debian/copyright $(tmp)/usr/share/doc/binary + install -m 644 debian/changelog $(tmp)/usr/share/doc/binary + #gzip -n -9 $(tmp)/usr/share/doc/binary/changelog + install -d $(tmp)/DEBIAN + install -m 755 debian/postinst $(tmp)/DEBIAN + install -m 644 debian/conffiles $(tmp)/DEBIAN + + install -d $(tmp)/usr/share/applications + install -m 644 debian/hello.desktop \ + $(tmp)/usr/share/applications/hello.desktop + install -m 755 debian/goodbye.desktop \ + $(tmp)/usr/share/applications/goodbye.desktop + + # should be ok... + echo boe > $(tmp)/usr/bar + ln $(tmp)/usr/bar $(tmp)/usr/foo + # but this isn't + echo boe > $(tmp)/usr/bar2 + ln $(tmp)/usr/bar2 $(tmp)/usr/share/baz + + dd if=/dev/zero of=$(tmp)/usr/share/binary/largefile bs=1024 count=4000 + + install -d debian/binary-data/DEBIAN + install -d debian/binary-data/usr/share/doc + ln -s binary debian/binary-data/usr/share/doc/binary-data + + dpkg-shlibdeps $(tmp)/usr/bin/hello + dpkg-gencontrol -pbinary -isp + dpkg-gencontrol -pbinary-data -Pdebian/binary-data -isp + + dpkg --build debian/tmp .. + dpkg --build debian/binary-data .. + +binary: binary-arch + +.PHONY: build-arch build binary-arch binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/templates b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/templates new file mode 100644 index 00000000..3d928614 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/templates @@ -0,0 +1,16 @@ +# The debconf templates defined here are the sort that you'd use if +# providing a wordlist and an ispell dictionary for the language +# "perl". This shouldn't trigger warnings about not using debconf-po. + +Template: shared/packages-ispell +Type: text +Description: + +Template: shared/packages-wordlist +Type: text +Description: + +Template: miscfiles/languages +Type: text +Default: perl (Pathologically Eclectic Rubbish Lister) +Description: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/eval/hints new file mode 100644 index 00000000..76fa0380 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/eval/hints @@ -0,0 +1,4 @@ +binary (source): debian-rules-missing-required-target build-indep [debian/rules] +binary (source): debian-rules-missing-required-target binary-indep [debian/rules] +binary (source): debian-rules-ignores-make-clean-error [debian/rules:14] +binary (source): debian-rules-calls-pwd [debian/rules:9] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/hello.c b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/hello.c new file mode 100644 index 00000000..2fb04e17 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-binary/hello.c @@ -0,0 +1,8 @@ +#include +#include + +int main(int argc, char *argv[]) { + + printf("Hello, World!\n"); + exit(0); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/ORIGIN new file mode 100644 index 00000000..689f5b4c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/legacy-debconf + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/changelog new file mode 100644 index 00000000..1aa50be8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/changelog @@ -0,0 +1,6 @@ +debconf (1~rc1) unstable; urgency=low + + * Initial Release + * Changelog line with exactly 80 characters which tests the line-too-long tag. + + -- Lintian Maintainers Wed, 3 May 2006 18:07:19 -0500 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/control new file mode 100644 index 00000000..37b76641 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/control @@ -0,0 +1,52 @@ +Source: debconf +Section: utils +Priority: optional +Build-Depends: debhelper-compat (= 14) +Maintainer: Lintian Maintainers +Standards-Version: 3.7.2 + +Package: debconf-test +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (dummy) + +Package: debconf-test-noscripts +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (noscripts) + Package missing postinst/postrm/config. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: debconf-test-preinst +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (preinst) + Package uses debconf only in preinst. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: debconf-test-postinst +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (postinst) + Package uses debconf only in postinst. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: debconf-udeb +Section: debian-installer +XC-Package-Type: udeb +XB-Installer-Menu-Item: 100 +Architecture: any +Depends: ${shlibs:Depends} +Description: Test udeb package for the debconf checks of lintian (dummy) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/copyright new file mode 100644 index 00000000..84843ee3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/copyright @@ -0,0 +1,10 @@ +Copyright (C) 2004 Frank Lichtenheld + +Test for really old FSF address: + +Free Software Foundation, Inc., 675 Mass Ave, Cambridge, +MA 02139, USA. + +Test for a dh-make boilerplate: +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test-noscripts.templates b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test-noscripts.templates new file mode 100644 index 00000000..93f80713 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test-noscripts.templates @@ -0,0 +1,3 @@ +Template: debconf/test +Type: text +_description: Foo bar (1) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test-postinst.postinst b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test-postinst.postinst new file mode 100644 index 00000000..56ab8712 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test-postinst.postinst @@ -0,0 +1,10 @@ +#!/bin/sh +set -e + +. /usr/share/debconf/confmodule + +db_input medium debconf/test + +#DEBHELPER# + +true diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test-postinst.postrm b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test-postinst.postrm new file mode 100644 index 00000000..cbf5e3b2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test-postinst.postrm @@ -0,0 +1,7 @@ +#!/bin/sh +set -e +if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_purge +fi +#DEBHELPER# diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test-postinst.templates b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test-postinst.templates new file mode 100644 index 00000000..2a2a8ab6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test-postinst.templates @@ -0,0 +1,3 @@ +Template: debconf/test +Type: text +_description: Enter something: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test-preinst.postrm b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test-preinst.postrm new file mode 100644 index 00000000..cbf5e3b2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test-preinst.postrm @@ -0,0 +1,7 @@ +#!/bin/sh +set -e +if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_purge +fi +#DEBHELPER# diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test-preinst.preinst b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test-preinst.preinst new file mode 100644 index 00000000..bf6f0749 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test-preinst.preinst @@ -0,0 +1,13 @@ +#!/bin/sh +set -e + +# Obsolete name for the confmodule +. /usr/share/debconf/confmodule.sh + +. /usr/share/debconf/confmodule + +db_input medium debconf/test + +#DEBHELPER# + +true diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test-preinst.templates b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test-preinst.templates new file mode 100644 index 00000000..2a2a8ab6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test-preinst.templates @@ -0,0 +1,3 @@ +Template: debconf/test +Type: text +_description: Enter something: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test.config b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test.config new file mode 100644 index 00000000..9e32d06f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test.config @@ -0,0 +1,24 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +db_settitle "Funky lintian test" + +# Bad priorities. +db_text LOW debconf/test +db_input normal debconf/test + +# Valid priorities. +db_text \ +high debconf/test +foo=medium +db_input $foo debconf/test +db_input "$foo" debconf/test +db_input 'medium' debconf/test + +# debconf/transtring should not be flagged as unused +# (it's aliased to debconf/alias, which is used) +db_register debconf/transtring debconf/alias +db_input medium debconf/alias diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test.postinst b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test.postinst new file mode 100644 index 00000000..b3870371 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test.postinst @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +# Not supposed to do this here. +db_input medium debconf/test + +true diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test.templates b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test.templates new file mode 100644 index 00000000..811bb6cf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test.templates @@ -0,0 +1,101 @@ +Template: debconf/test +Type: text +_description: Foo bar (1) + +Template: debconf/testmulti +Type: multiselect +__Choices: foo, bar, boo +_Description: test comma usages in choices fields + +Template: debconf/testmulti-escape +Type: multiselect +_Choices: foo\, bar, boo +_Description: test escaped comma usages in choices fields: + +Template: debconf/testboolean +Type: boolean +_Description: Enter yes or no: + Do you want to answer this question? + +Template: debconf/teststring +Type: string +_Description: This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + +Template: debconf/testnote +Type: note +Description: This should be a title and not a really long sentence that ends in a regular period. + +Template: debconf/1st-person +Type: select +__Choices: one, two +_Description: Select one of these: + I am a stupid test of first-person syntax that tells you to select yes + even though yes isn't an option in this prompt. + +Template: debconf/internal +Type: boolean +Description: For internal use only + We are testing that style checks are not applied to templates that are + marked as internal. + +Template: debconf/no-description +Type: string + +Template: debconf/translate +Type: boolean +_Default: false +_Description: Should this really be translated? + +Template: debconf/transtring +Type: string +_Default: 1 +_Description: Count of templates: + The number of useless numbers that a translator would have to translate + for this template. + +Template: debconf/language +__Choices: English, Spanish, German, French +# This is the default choice. Translators should put their own language, +# if available, here instead, but the value MUST be the English version +# of the value for the package scripts to work properly. +_Default: English[ translators, see the comment in the PO files] +_Description: The default language, an example of a default that should + be translated. + +Template: debconf/error +Type: error +_Description: An error occurred + This is a sample Debconf error template. + +Template: debconf/should-be-boolean +Type: select +__Choices: yes, no +_Description: Choose: + Pick yes or no. + +Template: debconf/should-be-no-longer-a-problem +Type: boolean +_Description: Decide, lintian + Using "no longer" should no longer be detected as + making-assumptions-about-interfaces-in-templates by lintian. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test.templates.de b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test.templates.de new file mode 100644 index 00000000..f9ea1219 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test.templates.de @@ -0,0 +1,3 @@ +Template: debconf/testmulti +Type: multiselect +Choices: foo, bar\, boo, boo diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test.templates.in b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-test.templates.in new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-udeb.postinst b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-udeb.postinst new file mode 100644 index 00000000..4ce41f08 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-udeb.postinst @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +ldconfig + +true diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-udeb.templates b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-udeb.templates new file mode 100644 index 00000000..5d7cf5a7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/debconf-udeb.templates @@ -0,0 +1,3 @@ +Template: debian-installer/debconf-udeb/title +Type: text +_description: This is just a test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/po/POTFILES.in b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/po/POTFILES.in new file mode 100644 index 00000000..d0c82f08 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/po/POTFILES.in @@ -0,0 +1,2 @@ +[type: gettext/rfc822deb] debconf-test.templates +[type: gettext/rfc822deb] debconf-udeb.templates diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/po/de.po b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/po/de.po new file mode 100644 index 00000000..86c57968 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/po/de.po @@ -0,0 +1,66 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2004-12-06 01:01+0100\n" +"Last-Translator: Frank Lichtenheld \n" +"Language-Team: debian-l10n-german@l.d.o\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "foo" +msgstr "foo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "bar" +msgstr "bar, boo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "boo" +msgstr "boo" + +#. Type: multiselect +#. Description +#: ../debconf-test.templates:8 +msgid "test comma usages in choices fields" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:11 +msgid "foo\\, bar, boo" +msgstr "foo, bar, boo" + +#. Type: text +#. description +#: ../debconf-udeb.templates:3 +msgid "This is just a test" +msgstr "Dies ist nur ein Test" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/po/fr.po b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/po/fr.po new file mode 100644 index 00000000..c74deb28 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/po/fr.po @@ -0,0 +1,60 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"Last-Translator: Frank Lichtenheld \n" +"Language-Team: debian-l10n-german@l.d.o\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "foo" +msgstr "foo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "bar" +msgstr "bar, boo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "boo" +msgstr "boo" + +#. Type: multiselect +#. Description +#: ../debconf-test.templates:8 +msgid "test comma usages in choices fields" +msgstr "" + +#. Type: text +#. description +#: ../debconf-udeb.templates:3 +msgid "This is just a test" +msgstr " diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/po/lang.po b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/po/lang.po new file mode 100644 index 00000000..7ac498af --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/po/lang.po @@ -0,0 +1,15 @@ +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/po/nds.po b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/po/nds.po new file mode 100644 index 00000000..7ac498af --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/po/nds.po @@ -0,0 +1,15 @@ +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/po/output b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/po/output new file mode 100644 index 00000000..c3df1a5b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/po/output @@ -0,0 +1 @@ +2 utf8 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/po/pt_BR.po b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/po/pt_BR.po new file mode 100644 index 00000000..7ac498af --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/po/pt_BR.po @@ -0,0 +1,15 @@ +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/po/sample-file.po b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/po/sample-file.po new file mode 100644 index 00000000..8dcc0ffa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/po/sample-file.po @@ -0,0 +1 @@ +This is some file that isn't actually a valid .po file. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/po/templates.pot b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/po/templates.pot new file mode 100644 index 00000000..914c77f0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/po/templates.pot @@ -0,0 +1,61 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "foo" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "bar" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "boo" +msgstr "" + +#. Type: multiselect +#. Description +#: ../debconf-test.templates:8 +msgid "test comma usages in choices fields" +msgstr "" + +#. Type: text +#. description +#: ../debconf-udeb.templates:3 +msgid "This is just a test" +msgstr "" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/pycompat b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/pycompat new file mode 100644 index 00000000..0cfbf088 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/pycompat @@ -0,0 +1 @@ +2 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/pyversions b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/pyversions new file mode 100644 index 00000000..6f290b06 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/pyversions @@ -0,0 +1 @@ +>= 2.7 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/rules new file mode 100755 index 00000000..933901ac --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/rules @@ -0,0 +1,64 @@ +#!/usr/bin/make -f + +deb_dir = debian/debconf +udeb_dir = debian/debconf-udeb +build_dirs = $(deb_dir) $(udeb_dir) + +build-indep: +# There are no architecture-independent files to be built +# by this package. If there were any they would be made +# here. + +build-arch: + dh_testdir + touch build + +build: build-indep build-arch + +clean: + dh_testdir + dh_testroot + -rm -f build + + dh_clean + +binary-indep: build +# There are no architecture-independent files to be uploaded +# generated by this package. If there were any they would be +# made here. + +binary-arch: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs -a + + dh_installchangelogs -a + dh_installdocs -a + dh_installdebconf -pdebconf-test + dh_installdebconf -pdebconf-test-noscripts --noscripts + dh_installdebconf -pdebconf-test-preinst --noscripts + dh_installdebconf -pdebconf-test-postinst --noscripts + dh_installdebconf -pdebconf-udeb + + + + + dh_compress -a + dh_fixperms -a + +# The shlibs stuff doesn't matter here so do it in a weird order to +# test warnings. + dh_installdeb -a + dh_shlibdeps -a + dh_makeshlibs -a + dh_gencontrol -a + dh_md5sums + dh_builddeb -a + dh_makeshlibs -a + +# Below here is fairly generic really + +binary: binary-indep binary-arch + +.PHONY: build-arch build-indep build binary binary-arch binary-indep clean checkroot diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/eval/hints new file mode 100644 index 00000000..fee3d997 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-debconf/eval/hints @@ -0,0 +1,2 @@ +debconf (source): debian-rules-calls-debhelper-in-odd-order dh_makeshlibs [debian/rules:58] +debconf (source): debian-rules-calls-debhelper-in-odd-order dh_makeshlibs [debian/rules:54] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/ORIGIN new file mode 100644 index 00000000..ece9bb3c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/legacy-etcfiles + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/debian/README.Debian b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/debian/README.Debian new file mode 100644 index 00000000..e289bfb2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/debian/README.Debian @@ -0,0 +1,5 @@ +this is a package to test lintian's handling of files in /etc. +Also, there's a random mention of /usr/doc here to prompt a warning. +But /usr/documentation doesn't. + + -- Russ Allbery , Mon, 18 Feb 2008 16:40:55 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/debian/changelog new file mode 100644 index 00000000..4f047b64 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/debian/changelog @@ -0,0 +1,7 @@ +etcfiles (1) unstable; urgency=low + + * Acknowledge NMU (Closes: #123456). + * initial setup + + -- Lintian Maintainers Fri, 21 Sep 2001 11:56:02 -0700 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/debian/conffiles b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/debian/conffiles new file mode 100644 index 00000000..76032b78 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/debian/conffiles @@ -0,0 +1,5 @@ +/etc/proper +/var/lib/foo +/etc/cron.daily/cronfile-normal +/etc/cron.daily/.cronfile-begins-with-fullstop +/etc/cron.daily/cronfile-contains.fullstop diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/debian/conffiles.only b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/debian/conffiles.only new file mode 100644 index 00000000..a4b38954 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/debian/conffiles.only @@ -0,0 +1,2 @@ +/etc/etcfiles/foo +/etc/etcfiles/bar diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/debian/control new file mode 100644 index 00000000..f3dbda7f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/debian/control @@ -0,0 +1,20 @@ +Source: etcfiles +Section: misc +Priority: optional +Maintainer: Lintian Maintainers +Standards-Version: 3.5.0 + +Package: etcfiles +Architecture: any +Depends: ${shlibs:Depends} +Description: test handling of files in /etc + Regression test for lintian's handling of files in /etc. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: only-etcfiles +Architecture: all +Depends: etcfiles (= ${source:Version}) +Description: test handling of conffile-only package diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/debian/rules new file mode 100755 index 00000000..97ff09fc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/debian/rules @@ -0,0 +1,64 @@ +#!/usr/bin/make -f + +tmp=debian/tmp +tmponly=debian/only-etcfiles + +clean: + rm -f debian/files debian/substvars + rm -rf debian/tmp + rm -rf debian/only-etcfiles + +build: +build-arch: +build-indep: +binary-indep: + install -d $(tmp)/etc + install -m 644 proper $(tmp)/etc + install -m 644 improper $(tmp)/etc + mkdir $(tmp)/etc/cron.daily + touch $(tmp)/etc/cron.daily/cronfile-normal + touch $(tmp)/etc/cron.daily/.cronfile-begins-with-fullstop + touch $(tmp)/etc/cron.daily/cronfile-contains.fullstop + ln $(tmp)/etc/improper $(tmp)/etc/improper-link + install -d $(tmp)/usr/share/doc/etcfiles + install -d $(tmp)/var/lib + install -m 644 proper $(tmp)/var/lib/foo + install -m 644 debian/README.Debian $(tmp)/usr/share/doc/etcfiles + install -m 644 debian/changelog $(tmp)/usr/share/doc/etcfiles + #gzip -9 $(tmp)/usr/share/doc/etcfiles/changelog + install -d $(tmp)/DEBIAN + install -m 644 debian/conffiles $(tmp)/DEBIAN + + echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/cronfile-normal' \ + > debian/tmp/DEBIAN/md5sums + echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/.cronfile-begins-with-fullstop' \ + >> debian/tmp/DEBIAN/md5sums + echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/cronfile-contains.fullstop' \ + >> debian/tmp/DEBIAN/md5sums + echo '05c72cacce994208128b7d081116b04a ./etc/proper' \ + >> debian/tmp/DEBIAN/md5sums + echo 'ab371382468880299e5ebd05921764ce etc/improper' \ + >> debian/tmp/DEBIAN/md5sums + echo 'ab371382468880299e5ebd05921764ce usr/bin/foo' \ + >> debian/tmp/DEBIAN/md5sums + echo 'this is a malformed line' \ + >> debian/tmp/DEBIAN/md5sums + echo '56fb27e455dd86d8801f1ecd3a4cee49 usr/share/doc/etcfiles/README.Debian' \ + >> debian/tmp/DEBIAN/md5sums + + install -d $(tmponly)/etc/etcfiles + touch $(tmponly)/etc/etcfiles/foo + touch $(tmponly)/etc/etcfiles/bar + install -d $(tmponly)/usr/share/doc + cd $(tmponly)/usr/share/doc && ln -s etcfiles only-etcfiles + install -d $(tmponly)/DEBIAN + install -m 644 debian/conffiles.only $(tmponly)/DEBIAN/conffiles + + dpkg-gencontrol -isp -petcfiles + dpkg-gencontrol -isp -ponly-etcfiles -P$(tmponly) + dpkg --build $(tmp) .. + dpkg --build $(tmponly) .. + +binary: binary-indep + +.PHONY: binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/eval/hints new file mode 100644 index 00000000..0a58f094 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/eval/hints @@ -0,0 +1 @@ +etcfiles (source): debian-rules-missing-required-target binary-arch [debian/rules] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/improper b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/improper new file mode 100644 index 00000000..23656f41 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/improper @@ -0,0 +1,2 @@ +[config] + var = value \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/proper b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/proper new file mode 100644 index 00000000..f3dc68bf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-etcfiles/proper @@ -0,0 +1,2 @@ +# i am a config file +foo = var \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-fields/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-fields/ORIGIN new file mode 100644 index 00000000..d79ec7ba --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-fields/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/legacy-fields + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-fields/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-fields/debian/changelog new file mode 100644 index 00000000..1840a57f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-fields/debian/changelog @@ -0,0 +1,10 @@ +fields (1.5-.3) unstable; urgency=low + + * This package adds tests for the following tags: + - debian-revision-not-well-formed + - depends-on-python-minimal + - essential-no-not-needed + - debian-revision-should-not-be-zero + - new-essential-package + + -- Tobias Quathamer Sun, 10 Apr 2011 14:30:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-fields/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-fields/debian/control new file mode 100644 index 00000000..d980a6e2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-fields/debian/control @@ -0,0 +1,28 @@ +Source: fields +Section: does-not-exist +Priority: standard +Maintainer: Lintian Maintainers +Standards-Version: 3.9.2 + +Package: fields +Essential: no +Architecture: all +Depends: python-minimal +Description: Generate some errors + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: another-version +Essential: yes +Section: admin +Architecture: all +Description: Also generate some errors + This package gets another version number and tries to sneak in a new + essential package. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-fields/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-fields/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-fields/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-fields/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-fields/debian/rules new file mode 100755 index 00000000..11ad4a75 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-fields/debian/rules @@ -0,0 +1,33 @@ +#!/usr/bin/make -f + +tmp=debian/tmp + +build-arch: + +build-indep: + +build: build-arch build-indep + +binary-arch: + +binary-indep: + install -d $(tmp)/usr/share/doc/fields + install -m 644 debian/changelog \ + $(tmp)/usr/share/doc/fields/changelog + gzip -n -9 $(tmp)/usr/share/doc/fields/changelog + dh_md5sums -pfields -P$(tmp) + dpkg-gencontrol -pfields -P$(tmp) + dpkg --build $(tmp) .. + rm -rf $(tmp) + + # Create another package with a different version + dh_md5sums -panother-version -P$(tmp) + dpkg-gencontrol -panother-version -v123.4-0 -P$(tmp) + dpkg --build $(tmp) .. + +binary: binary-arch binary-indep + +clean: + rm -rf debian/files $(tmp) debian/substvars + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-fields/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-fields/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-fields/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-fields/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-fields/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-fields/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-fields/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-fields/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-fields/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-fields/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-fields/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-fields/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-fields/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-fields/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-fields/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-fields/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-fields/eval/hints new file mode 100644 index 00000000..4ec1eba8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-fields/eval/hints @@ -0,0 +1 @@ +fields (source): rules-require-build-prerequisite (does not satisfy debhelper:any | debhelper-compat:any) [debian/rules] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/ORIGIN new file mode 100644 index 00000000..915afb9c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/legacy-scripts + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/csh-foo b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/csh-foo new file mode 100644 index 00000000..eaf47a15 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/csh-foo @@ -0,0 +1,2 @@ +#! /bin/csh + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/changelog new file mode 100644 index 00000000..9c6bc545 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/changelog @@ -0,0 +1,41 @@ +scripts (6ds-1ubuntu0.5.10.1) unstable; urgency=low + + * I'm also not able to write my name. + * Added a script in /etc/Xsession.d + * Bizarre version number courtesy of + https://wiki.ubuntu.com/SecurityUpdateProcedures#Prepare + + -- Mark 'HE' Brokschmitt Thu, 23 Jun 2005 14:32:39 +0200 + +scripts (5-1) unstable; urgency=low + + * I'm making a typo in my own name... And I want lintian to warn me about + it. + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 02:26:34 +0200 + +scripts (4-1) unstable; urgency=low + + * Add new example to check that not executable files with a shebang line + called *in don't trigger the script-not-executable warning. + + -- Marc 'HE' Brockschmidt Wed, 14 Apr 2004 19:44:04 +0200 + +scripts (3-3) unstable; urgency=low + + * Add suidperlfoo and some code in debian/rules to + check the new suidperl checks + + -- Frank Lichtenheld Wed, 31 Mar 2004 21:06:20 +0000 + +scripts (2-1) unstable; urgency=low + + * Add tkfoo script for tk checkings + + -- Lintian Maintainers Sat, 21 Feb 2004 17:13:36 +0100 + +scripts (1-0) unstable; urgency=low + + * Initial version + + -- Lintian Maintainers Sat, 10 Feb 2001 15:37:31 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/control new file mode 100644 index 00000000..e172d446 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/control @@ -0,0 +1,15 @@ +Source: scripts +Section: interpreters +Priority: optional +Maintainer: Lintian Maintainers +Uploaders: Jeroen van Wolfelaar , Marc 'HE' Brockschmidt +Standards-Version: 3.2.1 + +Package: scripts +Architecture: all +Depends: test, ruby1.8, build-essential, libssl0.9.7, php7.0-cli +Recommends: tk8.4 | wish +Description: test lintian's script file checks + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/copyright new file mode 100644 index 00000000..ad8a119e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/copyright @@ -0,0 +1,5 @@ +This file contains the phrase "under the same terms as Perl itself" to +trigger warnings about not having common-licenses references. + +This file contains the phrase "public domain" which should suppress +warnings about no copyright date. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/postinst new file mode 100644 index 00000000..7c5baf1f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/postinst @@ -0,0 +1,14 @@ +#!/bin/sh + +if [ -x "/etc/init.d/lsb-broken" ] ; then + update-rc.d lsb-broken defaults >/dev/null +fi +if [ -x "/etc/init.d/no-lsb" ] ; then + update-rc.d no-lsb defaults >/dev/null +fi +if [ -x "/etc/init.d/skeleton" ] ; then + update-rc.d skeleton defaults >/dev/null +fi +if [ -x "/etc/init.d/lsb-other" ] ; then + update-rc.d lsb-other defaults >/dev/null +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/postrm b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/postrm new file mode 100644 index 00000000..8fa75a25 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/postrm @@ -0,0 +1,9 @@ +#!/bin/sh -e + +if [ "$1" = purge ] ; then + update-rc.d lsb-broken remove >/dev/null + update-rc.d no-lsb remove >/dev/null + update-rc.d skeleton remove >/dev/null + update-rc.d lsb-other remove >/dev/null + update-rc.d lsb-other remove >/dev/null +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/preinst b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/preinst new file mode 100644 index 00000000..07995570 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/preinst @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e +set -x + +# +# Some comments here +# + +# This serves as an example of an "empty" script, so +# please do not add any real code here, thank you :) + +#DEBHELPER# + +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/rules new file mode 100755 index 00000000..0b3bf4f5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/rules @@ -0,0 +1,102 @@ +#!/usr/bin/make -f + +tmp=debian/tmp + +build-arch: + echo "Hi, in an arch: all package, I am a bug!" + +build-indep: + +build: build-arch build-indep + +binary-arch: + echo "Hi, in an arch: all package, I am a bug!" + +binary-indep: + install -d $(tmp)/usr/bin/ + install -d $(tmp)/etc/X11/Xsession.d/ + install -d $(tmp)/etc/init.d/ + install -d $(tmp)/etc/csh/login.d/ + install -d $(tmp)/etc/fish.d/ + install -d $(tmp)/usr/share/scripts/ + install -d $(tmp)/usr/share/doc/scripts/ + install -d $(tmp)/usr/lib/cgi-bin + install -d $(tmp)/DEBIAN + + install -m 755 csh-foo $(tmp)/etc/csh/login.d/ + install -m 755 envfoo $(tmp)/usr/bin/ + install -m 755 fish-foo $(tmp)/etc/fish.d/ + install -m 755 jruby-broken $(tmp)/usr/bin/ + install -m 755 perlfoo $(tmp)/usr/bin/ + install -m 755 rubyfoo $(tmp)/usr/bin/ +# This doesn't use "env" but should also trigger script-in-usr-share-doc + install -m 755 rubyfoo $(tmp)/usr/share/doc/scripts/ + install -m 755 make-foo $(tmp)/usr/bin/ + install -m 755 lefty-foo $(tmp)/usr/bin/ + install -m 4751 perlfoo $(tmp)/usr/bin/suidperlfoo2 + install -m 755 sh-broken $(tmp)/usr/bin/ + install -m 4555 suidperlfoo $(tmp)/usr/bin/ + install -m 755 tkfoo $(tmp)/usr/bin/ + install -m 755 wishfoo $(tmp)/usr/bin/ + install -m 644 xsession-test $(tmp)/etc/X11/Xsession.d/ + +# Permissions here aren't part of what's being tested, but let us exercise +# some other errors. + install -m 755 perl-bizarre-1 $(tmp)/usr/bin/ + install -m 750 perl-bizarre-2 $(tmp)/usr/bin/ + install -m 754 perl-bizarre-3 $(tmp)/usr/bin/ + install -m 705 guile-bizarre $(tmp)/usr/bin/ + +# First one should produce a warning; second one shouldn't. + + install -m 644 init-skeleton $(tmp)/etc/init.d/skeleton + install -m 755 init-no-lsb $(tmp)/etc/init.d/no-lsb + install -m 755 init-lsb-broken $(tmp)/etc/init.d/lsb-broken + install -m 755 init-lsb-other $(tmp)/etc/init.d/lsb-other + + install -m 755 phpfoo $(tmp)/usr/share/scripts/ + sed 's/php$$/php7.0/' phpfoo > $(tmp)/usr/share/scripts/php7.0foo + chmod 755 $(tmp)/usr/share/scripts/php7.0foo + + install -m 755 phpenvfoo $(tmp)/usr/share/scripts/ + sed 's/php$$/php7.0/' phpenvfoo > $(tmp)/usr/share/scripts/php7.0envfoo + chmod 755 $(tmp)/usr/share/scripts/php7.0envfoo + + echo "#!/usr/bin/perl" >> $(tmp)/usr/share/scripts/foobar.in + chmod 644 $(tmp)/usr/share/scripts/foobar.in + + touch $(tmp)/usr/share/scripts/mono.exe + chmod 755 $(tmp)/usr/share/scripts/mono.exe + + echo "#!/bin/sh" > $(tmp)/usr/share/scripts/foo\$$bar + chmod 755 $(tmp)/usr/share/scripts/foo\$$bar + + echo "#!/bin/sh" > $(tmp)/usr/lib/cgi-bin/cgi-script + chmod 755 $(tmp)/usr/lib/cgi-bin/cgi-script + + echo "#!/bin/sh" > $(tmp)/usr/bin/test.sh + chmod 755 $(tmp)/usr/bin/test.sh + + + dh_testroot # dummy to test missing debhelper dependency + + + install -m 644 debian/changelog $(tmp)/usr/share/doc/scripts/changelog.Debian + gzip -n -9 $(tmp)/usr/share/doc/scripts/changelog.Debian + install -m 644 debian/copyright $(tmp)/usr/share/doc/scripts/copyright + + install -m 644 debian/scripts.conffiles $(tmp)/DEBIAN/conffiles + install -m 755 debian/preinst $(tmp)/DEBIAN/preinst + install -m 755 debian/postinst $(tmp)/DEBIAN/postinst + install -m 755 debian/postrm $(tmp)/DEBIAN/postrm + touch $(tmp)/DEBIAN/prerm + chmod 755 $(tmp)/DEBIAN/prerm + dpkg-gencontrol -isp + dpkg --build $(tmp) .. + +binary: binary-arch binary-indep + +clean: + rm -rf debian/files $(tmp) debian/substvars + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/scripts.conffiles b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/scripts.conffiles new file mode 100644 index 00000000..01a371a6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/scripts.conffiles @@ -0,0 +1,6 @@ +/etc/init.d/lsb-broken +/etc/init.d/lsb-other +/etc/init.d/no-lsb +/etc/X11/Xsession.d/xsession-test +/etc/csh/login.d/csh-foo +/etc/fish.d/fish-foo diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/watch new file mode 100644 index 00000000..dba58153 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/debian/watch @@ -0,0 +1,8 @@ +# watch file with upstream version mangling + +version=2 +opts="uversionmangle=s/$/ds/" \ +http://qa.debian.org/watch/sf.php?project=foo scripts\.([\d.]+)\.tar\.gz debian uupdate + +version=3 +http://ftp.sf.net/foo/foo_bar(.+)\.Z 5 uupdate \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/envfoo b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/envfoo new file mode 100755 index 00000000..e005037f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/envfoo @@ -0,0 +1,4 @@ +#! /bin/env python + +if __name__ == '__main__': + print 'Hi there' diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/eval/hints new file mode 100644 index 00000000..cb1cdbdc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/eval/hints @@ -0,0 +1,2 @@ +scripts (source): rules-require-build-prerequisite (does not satisfy debhelper:any | debhelper-compat:any) [debian/rules] +scripts (source): binary-arch-rules-but-pkg-is-arch-indep [debian/rules] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/fish-foo b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/fish-foo new file mode 100644 index 00000000..7f59139a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/fish-foo @@ -0,0 +1,2 @@ +#! /usr/bin/fish + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/guile-bizarre b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/guile-bizarre new file mode 100644 index 00000000..70e2c745 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/guile-bizarre @@ -0,0 +1,6 @@ +#! /bin/sh +# -*- scheme -*- +exec guile -s $0 $* +# Seen in the wild as build-guile-gtk in libguilegtk-1.2-dev (0.31-5.1) +# Tests script_is_evil_and_wrong +!# diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/init-lsb-broken b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/init-lsb-broken new file mode 100644 index 00000000..e4dfa92b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/init-lsb-broken @@ -0,0 +1,34 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: bad-lsb +# Required-Start: $local_fs $remote_fs +# Required-Stop: +# Default-Start: 1 2 3 4 5 +# Default-Stop: S 0 1 6 X +# Short-Description: Example Lintian initscript +# but this can't be continued +# Description: An example of a bad LSB section in an init script. +# This continuation is allowed (with spaces). +# This one is too (with tabs). +# X-Debian-Foo: Some unknown but valid keyword. +# Foo: Some invalid keyword. + +# Whoops, no terminating line. + +# And then we have this duplicate section. +### BEGIN INIT INFO +# Required-Start: This one doesn't count. +### END INIT INFO + +# Hey, look at all of those missing actions! But stop isn't missing. +case "$1" in + start|stop) + echo "Blah" + ;; + *) + echo "Usage: foo start" >&2 + exit 3 + ;; +esac + +: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/init-lsb-other b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/init-lsb-other new file mode 100644 index 00000000..adb47959 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/init-lsb-other @@ -0,0 +1,22 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: lsb-other +# Required-Start: $local_fs $remote_fs +# Required-Stop: $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Description: This is another LSB script test, which has a missing +# Short-Description. +### END INIT INFO + +case "$1" in + start|stop|restart|reload|force-reload) + echo "Blah" + ;; + *) + echo "Usage: foo start" >&2 + exit 3 + ;; +esac + +: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/init-no-lsb b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/init-no-lsb new file mode 100644 index 00000000..6b994dd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/init-no-lsb @@ -0,0 +1,17 @@ +#! /bin/sh +# No LSB section, but otherwise okay. (Well, the messages are bad, but we +# don't check that yet.) + +case "$1" in + start) + echo "Blah starting" + ;; + stop) + echo "Blah stopping" + ;; + restart|force-reload) + echo "Blah restarting" + ;; +esac + +: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/init-skeleton b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/init-skeleton new file mode 100644 index 00000000..c868508f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/init-skeleton @@ -0,0 +1,150 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: skeleton +# Required-Start: $local_fs $remote_fs +# Required-Stop: $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: S 0 1 6 +# Short-Description: Example Lintian initscript +# Description: This file should be used to construct scripts to be +# placed in /etc/init.d. +### END INIT INFO + +# Do NOT "set -e" + +# PATH should only include /usr/* if it runs after the mountnfs.sh script +PATH=/usr/sbin:/usr/bin:/sbin:/bin +DESC="Description of the service" +NAME=daemonexecutablename +DAEMON=/usr/sbin/$NAME +DAEMON_ARGS="--options args" +PIDFILE=/var/run/$NAME.pid +SCRIPTNAME=/etc/init.d/$NAME + +# Exit if the package is not installed +[ -x "$DAEMON" ] || exit 0 + +# Read configuration variable file if it is present +[ -r /etc/default/$NAME ] && . /etc/default/$NAME + +# Load the VERBOSE setting and other rcS variables +[ -f /etc/default/rcS ] && . /etc/default/rcS + +# Define LSB log_* functions. +# Depend on lsb-base (>= 3.0-6) to ensure that this file is present. +. /lib/lsb/init-functions + +# +# Function that starts the daemon/service +# +do_start() +{ + # Return + # 0 if daemon has been started + # 1 if daemon was already running + # 2 if daemon could not be started + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ + || return 1 + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ + $DAEMON_ARGS \ + || return 2 + # Add code here, if necessary, that waits for the process to be ready + # to handle requests from services started subsequently which depend + # on this one. As a last resort, sleep for some time. +} + +# +# Function that stops the daemon/service +# +do_stop() +{ + # Return + # 0 if daemon has been stopped + # 1 if daemon was already stopped + # 2 if daemon could not be stopped + # other if a failure occurred + start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME + RETVAL="$?" + [ "$RETVAL" = 2 ] && return 2 + # Wait for children to finish too if this is a daemon that forks + # and if the daemon is only ever run from this initscript. + # If the above conditions are not satisfied then add some other code + # that waits for the process to drop all resources that could be + # needed by services started subsequently. A last resort is to + # sleep for some time. + start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON + [ "$?" = 2 ] && return 2 + # Many daemons don't delete their pidfiles when they exit. + rm -f $PIDFILE + return "$RETVAL" +} + +# +# Function that sends a SIGHUP to the daemon/service +# +do_reload() { + # + # If the daemon can reload its configuration without + # restarting (for example, when it is sent a SIGHUP), + # then implement that here. + # + start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME + return 0 +} + +case "$1" in + start) + [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" + do_start + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + stop) + [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" + do_stop + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + #reload|force-reload) + # + # If do_reload() is not implemented then leave this commented out + # and leave 'force-reload' as an alias for 'restart'. + # + #log_daemon_msg "Reloading $DESC" "$NAME" + #do_reload + #log_end_msg $? + #;; + restart|force-reload) + # + # If the "reload" option is implemented then remove the + # 'force-reload' alias + # + log_daemon_msg "Restarting $DESC" "$NAME" + do_stop + case "$?" in + 0|1) + do_start + case "$?" in + 0) log_end_msg 0 ;; + 1) log_end_msg 1 ;; # Old process is still running + *) log_end_msg 1 ;; # Failed to start + esac + ;; + *) + # Failed to stop + log_end_msg 1 + ;; + esac + ;; + *) + #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 + exit 3 + ;; +esac + +: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/jruby-broken b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/jruby-broken new file mode 100644 index 00000000..56f574df --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/jruby-broken @@ -0,0 +1,2 @@ +#!/usr/bin/jruby +# There's no non-versioned jruby, so this should be an error. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/lefty-foo b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/lefty-foo new file mode 100644 index 00000000..52c003ed --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/lefty-foo @@ -0,0 +1,2 @@ +#!/usr/local/bin/lefty + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/make-foo b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/make-foo new file mode 100644 index 00000000..6b787b50 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/make-foo @@ -0,0 +1,3 @@ +#!/usr/bin/make + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/perl-bizarre-1 b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/perl-bizarre-1 new file mode 100644 index 00000000..fc632c85 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/perl-bizarre-1 @@ -0,0 +1,11 @@ +#! /bin/sh +eval '(exit $?0)' && eval 'PERL_BADLANG=x;export PERL_BADLANG;: \ +;exec perl -x -S -- "$0" ${1+"$@"};#'if 0; +eval 'setenv PERL_BADLANG x;exec perl -x -S -- "$0" $argv:q;#'.q+ +#!perl -w +package Htex::a2ping; $0=~/(.*)/s;unshift@INC,'.';do($1);die$@if$@;__END__+if !1; +# This Perl script was generated by JustLib2 at Wed Apr 23 09:14:13 2003. +# Don't touch/remove any lines above; http://www.inf.bme.hu/~pts/justlib + +# The above was actually seen in the wild and stresses the +# script_is_evil_and_wrong test. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/perl-bizarre-2 b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/perl-bizarre-2 new file mode 100644 index 00000000..afd9cfe5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/perl-bizarre-2 @@ -0,0 +1,7 @@ +#!/bin/sh +eval 'exec /usr/bin/perl -wS $0 ${1+"$@"}' + if $running_under_some_shell; + +# I'm someone following perlrun except without using the Perl #! line. +# Now something to choke bash. +while (<>) { if (/%#/) { print } } diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/perl-bizarre-3 b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/perl-bizarre-3 new file mode 100644 index 00000000..44baf75e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/perl-bizarre-3 @@ -0,0 +1,6 @@ +eval '(exit $?0)' && eval 'exec perl -wS $0 ${1+"$@"}' +& eval 'exec /usr/bin/perl -wS $0 $argv:q' + if $running_under_some_shell; + +# More utterly bizarreness from perlrun. This one even doesn't work if +# there's a valid #! line on the first line. I don't understand why.... diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/perlfoo b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/perlfoo new file mode 100644 index 00000000..5b27ed0b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/perlfoo @@ -0,0 +1,3 @@ +#! /usr/bin/perl + +print "Hello, World!"; diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/phpenvfoo b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/phpenvfoo new file mode 100644 index 00000000..cbbfb2eb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/phpenvfoo @@ -0,0 +1,7 @@ +#!/usr/bin/env php + + +Dumb PHP script + + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/phpfoo b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/phpfoo new file mode 100644 index 00000000..e0595e65 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/phpfoo @@ -0,0 +1,7 @@ +#!/usr/bin/php + + +Dumb PHP script + + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/rubyfoo b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/rubyfoo new file mode 100644 index 00000000..80246058 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/rubyfoo @@ -0,0 +1,4 @@ +#!/bin/ruby1.8 + +# Ok, that example is really pathetic, but until we have +# some better code in checks/scripts, it will do diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/sh-broken b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/sh-broken new file mode 100644 index 00000000..7b790744 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/sh-broken @@ -0,0 +1,2 @@ +#!/bin/sh +if fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/suidperlfoo b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/suidperlfoo new file mode 100644 index 00000000..bcbc471d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/suidperlfoo @@ -0,0 +1,3 @@ +#! /usr/bin/suidperl + +print "Hello, World!"; diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/tkfoo b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/tkfoo new file mode 100755 index 00000000..533595a5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/tkfoo @@ -0,0 +1,31 @@ +#!/bin/sh +# +# Insane amount of empty lines and comments + +# +# +# +# + +# +# + +# +# +# + +# +# + +# +# This line makes the next one a comment in Tcl \ +exec wish "$0" -- ${1+"$@"} + +# lintian should not check the following for syntax +# if it detects the line above correctly +# Code snippet taken from eTkTab + +if { [array names prefs keybindings] != "" } { + # Read in the file + array set unparsed_bindings [ read_settings_file $prefs(keybindings)] +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/wishfoo b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/wishfoo new file mode 100644 index 00000000..035c9ad1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/wishfoo @@ -0,0 +1,4 @@ +#!/usr/bin/wish +# +# This is not actually a wish script, here to force a test of wish +# dependencies. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/xsession-test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/xsession-test new file mode 100644 index 00000000..ca49d729 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/legacy-scripts/xsession-test @@ -0,0 +1,3 @@ +#!/bin/sh + +echo "Foo." diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/permissions-775/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/permissions-775/ORIGIN new file mode 100644 index 00000000..fd2e8d37 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/permissions-775/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/permissions-775 + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/permissions-775/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/permissions-775/debian/changelog new file mode 100644 index 00000000..917627a5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/permissions-775/debian/changelog @@ -0,0 +1,17 @@ +permissions-775 (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: permissions-775 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +permissions-775 (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: permissions-775 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/permissions-775/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/permissions-775/debian/control new file mode 100644 index 00000000..48553edd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/permissions-775/debian/control @@ -0,0 +1,17 @@ +Source: permissions-775 +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: permissions-775 +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test in which debian/rules has group write permissions. + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/permissions-775/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/permissions-775/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/permissions-775/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/permissions-775/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/permissions-775/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/permissions-775/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/permissions-775/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/permissions-775/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/permissions-775/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/permissions-775/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/permissions-775/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/permissions-775/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/permissions-775/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/permissions-775/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/permissions-775/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/permissions-775/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/permissions-775/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-build-dep-pattern/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-build-dep-pattern/ORIGIN new file mode 100644 index 00000000..93012752 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-build-dep-pattern/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/rules-build-dep-pattern + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-build-dep-pattern/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-build-dep-pattern/debian/changelog new file mode 100644 index 00000000..c0c0828c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-build-dep-pattern/debian/changelog @@ -0,0 +1,17 @@ +rules-build-dep-pattern (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-build-dep-pattern + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +rules-build-dep-pattern (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-build-dep-pattern + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-build-dep-pattern/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-build-dep-pattern/debian/control new file mode 100644 index 00000000..3c02216a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-build-dep-pattern/debian/control @@ -0,0 +1,17 @@ +Source: rules-build-dep-pattern +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: rules-build-dep-pattern +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check recognition of pattern dependencies + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-build-dep-pattern/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-build-dep-pattern/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-build-dep-pattern/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-build-dep-pattern/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-build-dep-pattern/debian/rules new file mode 100755 index 00000000..dbb0df19 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-build-dep-pattern/debian/rules @@ -0,0 +1,37 @@ +#!/usr/bin/make -f + +build-indep: + +build-arch: build-stamp + +build-stamp: + dh build-arch + touch $@ + +build: build-arch build-indep + +# From deejayd 0.8.2-1 +clean: $(PYVERS:%=clean-python%) + +clean-python%: + dh_testdir + dh_testroot + + rm -f build-python* + python$* setup.py clean --all + find $(CURDIR) -name '*pyc' -exec rm -f {} \; + dh_clean + +install: install-stamp +install-stamp: build-stamp + dh install + touch $@ + +binary-arch: install + dh $@ + +binary-indep: install + dh $@ + +binary: binary-arch binary-indep +.PHONY: binary binary-arch binary-indep install clean build build-arch build-indep diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-build-dep-pattern/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-build-dep-pattern/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-build-dep-pattern/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-build-dep-pattern/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-build-dep-pattern/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-build-dep-pattern/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-build-dep-pattern/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-build-dep-pattern/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-build-dep-pattern/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-build-dep-pattern/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-build-dep-pattern/eval/hints new file mode 100644 index 00000000..fe34c317 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-build-dep-pattern/eval/hints @@ -0,0 +1 @@ +rules-build-dep-pattern (source): rules-require-build-prerequisite (does not satisfy python3:any | python3-dev:any | python3-all:any | python3-all-dev:any | python3.13:any | python3.13-dev:any | python3.14:any | python3.14-dev:any) [debian/rules] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/ORIGIN new file mode 100644 index 00000000..11cb55f6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/rules-debug-symbol-migration-possibly-complete + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/debian/changelog new file mode 100644 index 00000000..a7b196ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/debian/changelog @@ -0,0 +1,17 @@ +rules-debug-symbol-migration-possibly-complete (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-debug-symbol-migration-possibly-complete + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +rules-debug-symbol-migration-possibly-complete (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-debug-symbol-migration-possibly-complete + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/debian/control new file mode 100644 index 00000000..756acc63 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/debian/control @@ -0,0 +1,17 @@ +Source: rules-debug-symbol-migration-possibly-complete +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: rules-debug-symbol-migration-possibly-complete +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for --dbgsym-migration etc. + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/debian/rules new file mode 100755 index 00000000..0407d98d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_strip: + dh_strip prefix --ddeb-migration=foo suffix + dh_strip prefix --dbgsym-migration=foo suffix + dh_strip prefix --dbgsym-migration='apostrophe' suffix + dh_strip prefix --dbgsym-migration='apostrophe << 1' suffix diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/eval/hints new file mode 100644 index 00000000..39d2436d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/eval/hints @@ -0,0 +1,4 @@ +rules-debug-symbol-migration-possibly-complete (source): debug-symbol-migration-possibly-complete --ddeb-migration=foo [debian/rules:7] +rules-debug-symbol-migration-possibly-complete (source): debug-symbol-migration-possibly-complete --dbgsym-migration=foo [debian/rules:8] +rules-debug-symbol-migration-possibly-complete (source): debug-symbol-migration-possibly-complete --dbgsym-migration='apostrophe' [debian/rules:9] +rules-debug-symbol-migration-possibly-complete (source): debug-symbol-migration-possibly-complete --dbgsym-migration='apostrophe << 1' [debian/rules:10] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-dh-12/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-dh-12/ORIGIN new file mode 100644 index 00000000..ba54b3d4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-dh-12/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-dh-12 + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-dh-12/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-dh-12/debian/changelog new file mode 100644 index 00000000..926f8332 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-dh-12/debian/changelog @@ -0,0 +1,17 @@ +rules-dh-auto-test-does-not-check-deb-build-options-dh-12 (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-dh-auto-test-does-not-check-deb-build-options-dh-12 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +rules-dh-auto-test-does-not-check-deb-build-options-dh-12 (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-dh-auto-test-does-not-check-deb-build-options-dh-12 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-dh-12/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-dh-12/debian/control new file mode 100644 index 00000000..32978ead --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-dh-12/debian/control @@ -0,0 +1,19 @@ +Source: rules-dh-auto-test-does-not-check-deb-build-options-dh-12 +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 12), phpab, phpunit, pkg-php-tools +Rules-Requires-Root: no +Homepage: https://lintian.debian.org/ + +Package: rules-dh-auto-test-does-not-check-deb-build-options-dh-12 +Architecture: all +Depends: ${misc:Depends}, ${phpcomposer:Debian-require} +Recommends: ${phpcomposer:Debian-recommend} +Suggests: ${phpcomposer:Debian-suggest} +Description: Test for missing checks for DEB_BUILD_PROFILES using DH12 + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-dh-12/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-dh-12/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-dh-12/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-dh-12/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-dh-12/debian/rules new file mode 100755 index 00000000..b46c1221 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-dh-12/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_auto_test: + /bin/sync diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-dh-12/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-dh-12/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-dh-12/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-dh-12/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-dh-12/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-dh-12/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-dh-12/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-dh-12/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-dh-12/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-dh-12/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-dh-12/eval/hints new file mode 100644 index 00000000..3c96199b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-dh-12/eval/hints @@ -0,0 +1 @@ +rules-dh-auto-test-does-not-check-deb-build-options-dh-12 (source): override_dh_auto_test-does-not-check-DEB_BUILD_OPTIONS [debian/rules:6] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/ORIGIN new file mode 100644 index 00000000..5aa1adca --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/debian/changelog new file mode 100644 index 00000000..11bf7eed --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/debian/changelog @@ -0,0 +1,17 @@ +rules-dh-auto-test-does-not-check-deb-build-options-unrel-a (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-dh-auto-test-does-not-check-deb-build-options-unrel-a + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +rules-dh-auto-test-does-not-check-deb-build-options-unrel-a (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-dh-auto-test-does-not-check-deb-build-options-unrel-a + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/debian/control new file mode 100644 index 00000000..f561fb3c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/debian/control @@ -0,0 +1,17 @@ +Source: rules-dh-auto-test-does-not-check-deb-build-options-unrel-a +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: rules-dh-auto-test-does-not-check-deb-build-options-unrel-a +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for missing checks for DEB_BUILD_PROFILES (false-positive) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/debian/rules new file mode 100755 index 00000000..6f702feb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_auto_test: +ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) + /bin/true +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/ORIGIN new file mode 100644 index 00000000..23fa9740 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/debian/changelog new file mode 100644 index 00000000..c37ec150 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/debian/changelog @@ -0,0 +1,17 @@ +rules-dh-auto-test-does-not-check-deb-build-options-unrel-b (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-dh-auto-test-does-not-check-deb-build-options-unrel-b + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +rules-dh-auto-test-does-not-check-deb-build-options-unrel-b (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-dh-auto-test-does-not-check-deb-build-options-unrel-b + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/debian/control new file mode 100644 index 00000000..4462b333 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/debian/control @@ -0,0 +1,17 @@ +Source: rules-dh-auto-test-does-not-check-deb-build-options-unrel-b +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: rules-dh-auto-test-does-not-check-deb-build-options-unrel-b +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for missing checks for DEB_BUILD_PROFILES (false-positive) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/debian/rules new file mode 100755 index 00000000..11bd6cc5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh $@ + +# Empty target follows +override_dh_auto_test: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/ORIGIN new file mode 100644 index 00000000..51eb9843 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/debian/changelog new file mode 100644 index 00000000..6297a130 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/debian/changelog @@ -0,0 +1,17 @@ +rules-dh-auto-test-does-not-check-deb-build-options-unrel-c (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-dh-auto-test-does-not-check-deb-build-options-unrel-c + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +rules-dh-auto-test-does-not-check-deb-build-options-unrel-c (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-dh-auto-test-does-not-check-deb-build-options-unrel-c + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/debian/control new file mode 100644 index 00000000..3d419735 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/debian/control @@ -0,0 +1,17 @@ +Source: rules-dh-auto-test-does-not-check-deb-build-options-unrel-c +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: rules-dh-auto-test-does-not-check-deb-build-options-unrel-c +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for missing checks for DEB_BUILD_PROFILES (false-positive) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/debian/rules new file mode 100755 index 00000000..91dd51c7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/debian/rules @@ -0,0 +1,29 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_auto_test: + dh_auto_test + dh_auto_test # Comment + mkdir ignore/ + rm -rf ignore/ + -dh_auto_test -- SUFFIX=1 + @dh_auto_test -- SUFFIX=1 + -cp -r ignore ignore/ + FOO=mydir dh_auto_test -- BAR=2 + : Disabled + echo "Disabled" + @echo "Disabled" + -echo "Disabled" + -mv -v ignore ignore/ + [ true ] || echo ignore + ENV="var" \ + ENV="var" \ + dh_auto_test || true + rm -f missing + test true && echo "foo" + rmdir missing || true + ln -sf foo bar + true + /bin/true diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-order/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-order/ORIGIN new file mode 100644 index 00000000..2cfe379f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-order/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/rules-dh-order + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-order/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-order/debian/changelog new file mode 100644 index 00000000..051efff2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-order/debian/changelog @@ -0,0 +1,17 @@ +rules-dh-order (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-dh-order + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +rules-dh-order (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-dh-order + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-order/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-order/debian/control new file mode 100644 index 00000000..f17a10b1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-order/debian/control @@ -0,0 +1,17 @@ +Source: rules-dh-order +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: rules-dh-order +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test order of dh command invocations + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-order/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-order/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-order/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-order/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-order/debian/rules new file mode 100755 index 00000000..8ea3133d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-order/debian/rules @@ -0,0 +1,34 @@ +#!/usr/bin/make -f +%: + dh $@ + +# Test for calling debhelper commands out of order. We take advantage here +# of the fact checks/rules doesn't care what target the commands are called +# from by using several uncalled targets. + +reverse: + dh_builddeb + dh_gencontrol + dh_installdeb + dh_shlibdeps + dh_makeshlibs + +shared-order: + dh_shlibdeps + dh_makeshlibs + dh_installdeb + dh_gencontrol + dh_builddeb + +multiple-package: + dh_makeshlibs -pfoo + dh_shlibdeps -pfoo + dh_installdeb -pfoo + dh_gencontrol -pfoo + dh_builddeb -pfoo + + dh_makeshlibs -pbar + dh_gencontrol -pbar + dh_installdeb -pbar + dh_shlibdeps -pbar + dh_builddeb -pbar diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-order/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-order/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-order/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-order/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-order/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-order/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-order/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-order/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-order/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-order/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-order/eval/hints new file mode 100644 index 00000000..b0d36b07 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-order/eval/hints @@ -0,0 +1,5 @@ +rules-dh-order (source): debian-rules-calls-debhelper-in-odd-order dh_shlibdeps [debian/rules:13] +rules-dh-order (source): debian-rules-calls-debhelper-in-odd-order dh_makeshlibs [debian/rules:18] +rules-dh-order (source): debian-rules-calls-debhelper-in-odd-order dh_makeshlibs [debian/rules:14] +rules-dh-order (source): debian-rules-calls-debhelper-in-odd-order dh_installdeb [debian/rules:12] +rules-dh-order (source): debian-rules-calls-debhelper-in-odd-order dh_gencontrol [debian/rules:11] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target-nonempty/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target-nonempty/ORIGIN new file mode 100644 index 00000000..3c8044b2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target-nonempty/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/rules-dh-unused-target-nonempty + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target-nonempty/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target-nonempty/debian/changelog new file mode 100644 index 00000000..4cc8f8b2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target-nonempty/debian/changelog @@ -0,0 +1,17 @@ +rules-dh-unused-target-nonempty (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-dh-unused-target-nonempty + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +rules-dh-unused-target-nonempty (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-dh-unused-target-nonempty + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target-nonempty/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target-nonempty/debian/control new file mode 100644 index 00000000..3c456dc3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target-nonempty/debian/control @@ -0,0 +1,17 @@ +Source: rules-dh-unused-target-nonempty +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: rules-dh-unused-target-nonempty +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Allow dh in unused targets, but nothing else + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target-nonempty/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target-nonempty/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target-nonempty/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target-nonempty/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target-nonempty/debian/rules new file mode 100755 index 00000000..79fc28bd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target-nonempty/debian/rules @@ -0,0 +1,29 @@ +#!/usr/bin/make -f + +build: build-stamp +build-arch: +build-indep: + +build-stamp: + dh build + touch $@ + +clean: + dh $@ + +install: install-stamp +install-stamp: build-stamp + dh install + touch $@ + +binary-arch: install + dh $@ + # This target is not empty, but it should be + -install foo bar + +binary-indep: install + dh $@ + +binary: binary-arch binary-indep + +.PHONY: binary binary-arch binary-indep install clean build build-arch build-indep diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target-nonempty/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target-nonempty/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target-nonempty/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target-nonempty/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target-nonempty/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target-nonempty/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target-nonempty/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target-nonempty/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target-nonempty/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target-nonempty/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target-nonempty/eval/hints new file mode 100644 index 00000000..4a6f8cd8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target-nonempty/eval/hints @@ -0,0 +1 @@ +rules-dh-unused-target-nonempty (source): binary-arch-rules-but-pkg-is-arch-indep [debian/rules] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target/ORIGIN new file mode 100644 index 00000000..b38d0675 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/rules-dh-unused-target + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target/debian/changelog new file mode 100644 index 00000000..9bc46675 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target/debian/changelog @@ -0,0 +1,17 @@ +rules-dh-unused-target (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-dh-unused-target + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +rules-dh-unused-target (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-dh-unused-target + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target/debian/control new file mode 100644 index 00000000..18d7ac0b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target/debian/control @@ -0,0 +1,17 @@ +Source: rules-dh-unused-target +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: rules-dh-unused-target +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Allow dh in unused targets + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target/debian/rules new file mode 100755 index 00000000..ca3e9b51 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target/debian/rules @@ -0,0 +1,29 @@ +#!/usr/bin/make -f + +build-indep: + +build-arch: build-stamp + +build-stamp: + dh build-arch + touch $@ + +build: build-arch build-indep + +clean: + dh $@ + +install: install-stamp +install-stamp: build-stamp + dh install + touch $@ + +binary-arch: install + dh $@ + +binary-indep: install + dh $@ + +binary: binary-arch binary-indep + +.PHONY: binary binary-arch binary-indep install clean build build-arch build-indep diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-dh-unused-target/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-general/ORIGIN new file mode 100644 index 00000000..a96e4788 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/rules-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-general/debian/changelog new file mode 100644 index 00000000..5041a78e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-general/debian/changelog @@ -0,0 +1,17 @@ +rules-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +rules-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-general/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-general/debian/compat new file mode 100644 index 00000000..b1bd38b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-general/debian/compat @@ -0,0 +1 @@ +13 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-general/debian/control new file mode 100644 index 00000000..29256a45 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-general/debian/control @@ -0,0 +1,16 @@ +Source: rules-general +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends-Indep: debhelper (>= 13~), python +Rules-Requires-Root: no + +Package: rules-general +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test various debian/rules checks + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-general/debian/rules new file mode 100755 index 00000000..e1f72bf7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-general/debian/rules @@ -0,0 +1,23 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +#export DH_VERBOSE = 1 + +DEB_AUTO_UPDATE_DEBIAN_CONTROL = yes +DH_EXTRA_ADDONS = systemd + +%: + dh $@ + +clean: + dh_clean + echo $(DEB_BUILD_OPTS) $(PWD) + @echo $(_) + +# dh_make generated override targets +# This is example for Cmake (See https://bugs.debian.org/641051 ) +#override_dh_auto_configure: +# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) + +override_dh_shlibdeps: + dh_shlibdeps -V "liblintian0 (>= 0.0.1)" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-general/eval/hints new file mode 100644 index 00000000..8587a201 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-general/eval/hints @@ -0,0 +1,8 @@ +rules-general (source): missing-build-depends-for-clean-target-in-debian-rules (does not satisfy debhelper:any | debhelper-compat:any) [debian/rules] +rules-general (source): debian-rules-uses-special-shell-variable [debian/rules:15] +rules-general (source): debian-rules-uses-deb-build-opts [debian/rules:14] +rules-general (source): debian-rules-updates-control-automatically [debian/rules:6] +rules-general (source): debian-rules-should-not-use-DH_EXTRA_ADDONS systemd [debian/rules:7] +rules-general (source): debian-rules-passes-version-info-to-dh_shlibdeps [debian/rules:23] +rules-general (source): debian-rules-is-dh_make-template [debian/rules:17] +rules-general (source): debian-rules-calls-pwd [debian/rules:14] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignore-define/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignore-define/ORIGIN new file mode 100644 index 00000000..e5d3abee --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignore-define/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/rules-ignore-define + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignore-define/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignore-define/debian/changelog new file mode 100644 index 00000000..baaf9596 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignore-define/debian/changelog @@ -0,0 +1,17 @@ +rules-ignore-define (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-ignore-define + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +rules-ignore-define (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-ignore-define + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignore-define/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignore-define/debian/control new file mode 100644 index 00000000..3c3426ae --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignore-define/debian/control @@ -0,0 +1,17 @@ +Source: rules-ignore-define +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: rules-ignore-define +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Ignore define blocks when checking rule files + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignore-define/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignore-define/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignore-define/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignore-define/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignore-define/debian/rules new file mode 100755 index 00000000..3445f5c1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignore-define/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f +%: + dh $@ + +binary-arch: + # EMPTY + +define checkdir + test -f debian/rules +endef diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignore-define/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignore-define/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignore-define/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignore-define/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignore-define/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignore-define/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignore-define/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignore-define/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignore-define/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignore-define/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignore-define/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean-fp/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean-fp/ORIGIN new file mode 100644 index 00000000..74de187a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean-fp/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/rules-ignores-error-clean-fp + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean-fp/debian/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean-fp/debian/Makefile new file mode 100644 index 00000000..959feb88 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean-fp/debian/Makefile @@ -0,0 +1,3 @@ +all: + +distclean: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean-fp/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean-fp/debian/changelog new file mode 100644 index 00000000..da305b82 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean-fp/debian/changelog @@ -0,0 +1,17 @@ +rules-ignores-error-clean-fp (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-ignores-error-clean-fp + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +rules-ignores-error-clean-fp (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-ignores-error-clean-fp + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean-fp/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean-fp/debian/control new file mode 100644 index 00000000..2d27e185 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean-fp/debian/control @@ -0,0 +1,17 @@ +Source: rules-ignores-error-clean-fp +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: rules-ignores-error-clean-fp +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check against Lintian false-positive error + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean-fp/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean-fp/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean-fp/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean-fp/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean-fp/debian/rules new file mode 100755 index 00000000..63556d9a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean-fp/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_auto_clean: + $(MAKE) -Cdebian distclean + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean-fp/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean-fp/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean-fp/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean-fp/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean-fp/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean-fp/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean-fp/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean-fp/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean-fp/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean-fp/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean-fp/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean/Makefile new file mode 100644 index 00000000..959feb88 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean/Makefile @@ -0,0 +1,3 @@ +all: + +distclean: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean/ORIGIN new file mode 100644 index 00000000..2bada5f3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/rules-ignores-error-clean + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean/debian/changelog new file mode 100644 index 00000000..c8b97cc6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean/debian/changelog @@ -0,0 +1,17 @@ +rules-ignores-error-clean (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-ignores-error-clean + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +rules-ignores-error-clean (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-ignores-error-clean + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean/debian/control new file mode 100644 index 00000000..779d2577 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean/debian/control @@ -0,0 +1,17 @@ +Source: rules-ignores-error-clean +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: rules-ignores-error-clean +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for rules ignoring clean error + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean/debian/rules new file mode 100755 index 00000000..b86584fa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_auto_clean: + -$(MAKE) distclean + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean/eval/hints new file mode 100644 index 00000000..ef99bcf2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-ignores-error-clean/eval/hints @@ -0,0 +1 @@ +rules-ignores-error-clean (source): debian-rules-ignores-make-clean-error [debian/rules:6] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-includes/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-includes/ORIGIN new file mode 100644 index 00000000..a97d5a79 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-includes/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/rules-missing-targets-with-includes + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-includes/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-includes/debian/changelog new file mode 100644 index 00000000..3fc1e795 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-includes/debian/changelog @@ -0,0 +1,17 @@ +rules-missing-targets-with-includes (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-missing-targets-with-includes + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +rules-missing-targets-with-includes (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-missing-targets-with-includes + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-includes/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-includes/debian/control new file mode 100644 index 00000000..8d5d6c86 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-includes/debian/control @@ -0,0 +1,17 @@ +Source: rules-missing-targets-with-includes +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: rules-missing-targets-with-includes +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test a debian/rules with targets included from another file + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-includes/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-includes/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-includes/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-includes/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-includes/debian/rules new file mode 100755 index 00000000..512e7e17 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-includes/debian/rules @@ -0,0 +1,3 @@ +#!/usr/bin/make -f + + include debian/rules.mk diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-includes/debian/rules.mk b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-includes/debian/rules.mk new file mode 100644 index 00000000..4e686146 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-includes/debian/rules.mk @@ -0,0 +1,2 @@ +%: + dh $@ diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-includes/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-includes/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-includes/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-includes/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-includes/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-includes/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-includes/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-includes/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-includes/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-includes/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-includes/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-known-includes/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-known-includes/ORIGIN new file mode 100644 index 00000000..a564a8f6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-known-includes/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/rules-missing-targets-with-known-includes + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-known-includes/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-known-includes/debian/changelog new file mode 100644 index 00000000..b4c6d0cf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-known-includes/debian/changelog @@ -0,0 +1,17 @@ +rules-missing-targets-with-known-includes (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-missing-targets-with-known-includes + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +rules-missing-targets-with-known-includes (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-missing-targets-with-known-includes + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-known-includes/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-known-includes/debian/control new file mode 100644 index 00000000..5909fa7b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-known-includes/debian/control @@ -0,0 +1,17 @@ +Source: rules-missing-targets-with-known-includes +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), javahelper +Homepage: https://lintian.debian.org/ + +Package: rules-missing-targets-with-known-includes +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for debian/rules with known included file + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-known-includes/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-known-includes/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-known-includes/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-known-includes/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-known-includes/debian/rules new file mode 100755 index 00000000..e92755bd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-known-includes/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +# This should trigger a missing $type targets, since +# we know the makefile does not implement them. +include /usr/share/javahelper/java-vars.mk + +clean build binary: + dh $@ diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-known-includes/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-known-includes/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-known-includes/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-known-includes/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-known-includes/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-known-includes/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-known-includes/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-known-includes/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-known-includes/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-known-includes/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-known-includes/eval/hints new file mode 100644 index 00000000..a8a5c95d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets-with-known-includes/eval/hints @@ -0,0 +1,4 @@ +rules-missing-targets-with-known-includes (source): debian-rules-missing-required-target build-indep [debian/rules] +rules-missing-targets-with-known-includes (source): debian-rules-missing-required-target build-arch [debian/rules] +rules-missing-targets-with-known-includes (source): debian-rules-missing-required-target binary-indep [debian/rules] +rules-missing-targets-with-known-includes (source): debian-rules-missing-required-target binary-arch [debian/rules] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets/ORIGIN new file mode 100644 index 00000000..032aca31 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/rules-missing-targets + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets/debian/changelog new file mode 100644 index 00000000..9d21ddbb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets/debian/changelog @@ -0,0 +1,17 @@ +rules-missing-targets (1.0+dfsg-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-missing-targets + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +rules-missing-targets (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-missing-targets + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets/debian/control new file mode 100644 index 00000000..e3d1e51c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets/debian/control @@ -0,0 +1,27 @@ +Source: rules-missing-targets +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no + +Package: rules-missing-targets +Architecture: any +Depends: ${misc:Depends}, rules-missing-targets-data +Description: Test for missing targets in debian/rules + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: rules-missing-targets-data +Architecture: all +Depends: ${misc:Depends}, +Description: Test for missing targets in debian/rules - data + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + Data package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets/debian/rules new file mode 100755 index 00000000..3e3c60f4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets/debian/rules @@ -0,0 +1,5 @@ +#!/usr/bin/make -f + +# Missing build-arch/build-indep :) +build clean binary binary-arch binary-indep: + dh $@ diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets/eval/hints new file mode 100644 index 00000000..5c57705c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-missing-targets/eval/hints @@ -0,0 +1,2 @@ +rules-missing-targets (source): debian-rules-missing-required-target build-indep [debian/rules] +rules-missing-targets (source): debian-rules-missing-required-target build-arch [debian/rules] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-not-makefile/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-not-makefile/ORIGIN new file mode 100644 index 00000000..e26257ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-not-makefile/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/rules-not-makefile + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-not-makefile/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-not-makefile/debian/changelog new file mode 100644 index 00000000..7c9b452b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-not-makefile/debian/changelog @@ -0,0 +1,17 @@ +rules-not-makefile (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-not-makefile + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +rules-not-makefile (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-not-makefile + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-not-makefile/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-not-makefile/debian/control new file mode 100644 index 00000000..d5dc1c66 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-not-makefile/debian/control @@ -0,0 +1,17 @@ +Source: rules-not-makefile +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: rules-not-makefile +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check if the rules file is a makefile + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-not-makefile/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-not-makefile/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-not-makefile/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-not-makefile/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-not-makefile/debian/rules new file mode 100755 index 00000000..97e5f8da --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-not-makefile/debian/rules @@ -0,0 +1,13 @@ +#!/bin/sh +# This should be a makefile. +exec dh "$@" + +# fake targets to trick lintian into believing the +# required targets are present (removed unrelated errors). +binary: +binary-arch: +binary-indep: +build: +build-arch: +build-indep: +clean: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-not-makefile/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-not-makefile/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-not-makefile/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-not-makefile/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-not-makefile/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-not-makefile/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-not-makefile/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-not-makefile/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-not-makefile/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-not-makefile/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-not-makefile/eval/hints new file mode 100644 index 00000000..492bf1f0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-not-makefile/eval/hints @@ -0,0 +1 @@ +rules-not-makefile (source): debian-rules-not-a-makefile [debian/rules] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/ORIGIN new file mode 100644 index 00000000..321dd2b5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/debian/changelog new file mode 100644 index 00000000..b781f915 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/debian/changelog @@ -0,0 +1,17 @@ +rules-override-dh-foo-does-not-call-dh-foo-unrel (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-override-dh-foo-does-not-call-dh-foo-unrel + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +rules-override-dh-foo-does-not-call-dh-foo-unrel (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-override-dh-foo-does-not-call-dh-foo-unrel + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/debian/control new file mode 100644 index 00000000..6c232b53 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/debian/control @@ -0,0 +1,17 @@ +Source: rules-override-dh-foo-does-not-call-dh-foo-unrel +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: rules-override-dh-foo-does-not-call-dh-foo-unrel +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for missing calls to dh_foo in override_dh_foo (false positives) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/debian/rules new file mode 100755 index 00000000..c4d25dce --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/debian/rules @@ -0,0 +1,18 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_clean: + true + dh_clean # This rule is a false positive + +override_dh_fixperms: + true + $(overridden_command) # This rule is a false positive + +override_dh_fixperms-indep: + dh_fixperms + +override_dh_fixperms-arch: + dh_fixperms diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/ORIGIN new file mode 100644 index 00000000..2c29a2b9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/debian/changelog new file mode 100644 index 00000000..808df319 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/debian/changelog @@ -0,0 +1,17 @@ +rules-override-dh-foo-does-not-call-dh-foo (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-override-dh-foo-does-not-call-dh-foo + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +rules-override-dh-foo-does-not-call-dh-foo (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-override-dh-foo-does-not-call-dh-foo + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/debian/control new file mode 100644 index 00000000..fba27ea3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/debian/control @@ -0,0 +1,17 @@ +Source: rules-override-dh-foo-does-not-call-dh-foo +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: rules-override-dh-foo-does-not-call-dh-foo +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for missing calls to dh_foo in override_dh_foo + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/debian/rules new file mode 100755 index 00000000..9270348b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f + +%: + dh $@ + +# Empty targets +override_dh_clean: +override_dh_fixperms: +override_dh_fixperms-indep: +override_dh_fixperms-arch: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/eval/hints new file mode 100644 index 00000000..171356ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/eval/hints @@ -0,0 +1,4 @@ +rules-override-dh-foo-does-not-call-dh-foo (source): override_dh_fixperms-does-not-call-dh_fixperms [debian/rules:9] +rules-override-dh-foo-does-not-call-dh-foo (source): override_dh_fixperms-does-not-call-dh_fixperms [debian/rules:8] +rules-override-dh-foo-does-not-call-dh-foo (source): override_dh_fixperms-does-not-call-dh_fixperms [debian/rules:10] +rules-override-dh-foo-does-not-call-dh-foo (source): override_dh_clean-does-not-call-dh_clean [debian/rules:7] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-parses-dpkg-parsechangelog/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-parses-dpkg-parsechangelog/ORIGIN new file mode 100644 index 00000000..c6759acc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-parses-dpkg-parsechangelog/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/rules-parses-dpkg-parsechangelog + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-parses-dpkg-parsechangelog/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-parses-dpkg-parsechangelog/debian/changelog new file mode 100644 index 00000000..82be3e2b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-parses-dpkg-parsechangelog/debian/changelog @@ -0,0 +1,17 @@ +rules-parses-dpkg-parsechangelog (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-parses-dpkg-parsechangelog + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +rules-parses-dpkg-parsechangelog (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-parses-dpkg-parsechangelog + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-parses-dpkg-parsechangelog/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-parses-dpkg-parsechangelog/debian/control new file mode 100644 index 00000000..264dd2d5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-parses-dpkg-parsechangelog/debian/control @@ -0,0 +1,17 @@ +Source: rules-parses-dpkg-parsechangelog +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: rules-parses-dpkg-parsechangelog +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for debian/rules manually parsing dpkg-parsechangelog + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-parses-dpkg-parsechangelog/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-parses-dpkg-parsechangelog/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-parses-dpkg-parsechangelog/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-parses-dpkg-parsechangelog/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-parses-dpkg-parsechangelog/debian/rules new file mode 100755 index 00000000..9ea710e4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-parses-dpkg-parsechangelog/debian/rules @@ -0,0 +1,11 @@ +#!/usr/bin/make -f + +DATE = $(shell dpkg-parsechangelog -SDate) +SOURCE = $(shell dpkg-parsechangelog -SSource) +SOURCE2 = $(shell dpkg-parsechangelog | grep ^Source | cut -d" " -f2) +VERSION = $(shell dpkg-parsechangelog -SVersion) +VERSION2 = $(shell dpkg-parsechangelog | sed -ne 's,^Version: *\(.*\)$$,\1,p') +TIMESTAMP = $(shell dpkg-parsechangelog -STimestamp) + +%: + dh $@ diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-parses-dpkg-parsechangelog/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-parses-dpkg-parsechangelog/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-parses-dpkg-parsechangelog/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-parses-dpkg-parsechangelog/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-parses-dpkg-parsechangelog/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-parses-dpkg-parsechangelog/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-parses-dpkg-parsechangelog/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-parses-dpkg-parsechangelog/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-parses-dpkg-parsechangelog/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-parses-dpkg-parsechangelog/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-parses-dpkg-parsechangelog/eval/hints new file mode 100644 index 00000000..88e06d08 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-parses-dpkg-parsechangelog/eval/hints @@ -0,0 +1,6 @@ +rules-parses-dpkg-parsechangelog (source): debian-rules-parses-dpkg-parsechangelog [debian/rules:8] +rules-parses-dpkg-parsechangelog (source): debian-rules-parses-dpkg-parsechangelog [debian/rules:7] +rules-parses-dpkg-parsechangelog (source): debian-rules-parses-dpkg-parsechangelog [debian/rules:6] +rules-parses-dpkg-parsechangelog (source): debian-rules-parses-dpkg-parsechangelog [debian/rules:5] +rules-parses-dpkg-parsechangelog (source): debian-rules-parses-dpkg-parsechangelog [debian/rules:4] +rules-parses-dpkg-parsechangelog (source): debian-rules-parses-dpkg-parsechangelog [debian/rules:3] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sanitize-all-buildflag/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sanitize-all-buildflag/ORIGIN new file mode 100644 index 00000000..078fee4e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sanitize-all-buildflag/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/rules-sanitize-all-buildflag + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sanitize-all-buildflag/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sanitize-all-buildflag/debian/changelog new file mode 100644 index 00000000..86e20704 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sanitize-all-buildflag/debian/changelog @@ -0,0 +1,17 @@ +rules-sanitize-all-buildflag (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-sanitize-all-buildflag + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +rules-sanitize-all-buildflag (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-sanitize-all-buildflag + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sanitize-all-buildflag/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sanitize-all-buildflag/debian/control new file mode 100644 index 00000000..f8d4da9c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sanitize-all-buildflag/debian/control @@ -0,0 +1,17 @@ +Source: rules-sanitize-all-buildflag +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: rules-sanitize-all-buildflag +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for sanitize=+all + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sanitize-all-buildflag/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sanitize-all-buildflag/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sanitize-all-buildflag/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sanitize-all-buildflag/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sanitize-all-buildflag/debian/rules new file mode 100755 index 00000000..eef8ddc6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sanitize-all-buildflag/debian/rules @@ -0,0 +1,6 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS = sanitize=+all + +%: + dh $@ diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sanitize-all-buildflag/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sanitize-all-buildflag/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sanitize-all-buildflag/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sanitize-all-buildflag/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sanitize-all-buildflag/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sanitize-all-buildflag/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sanitize-all-buildflag/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sanitize-all-buildflag/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sanitize-all-buildflag/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sanitize-all-buildflag/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sanitize-all-buildflag/eval/hints new file mode 100644 index 00000000..8602693f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sanitize-all-buildflag/eval/hints @@ -0,0 +1 @@ +rules-sanitize-all-buildflag (source): debian-rules-should-not-use-sanitize-all-buildflag [debian/rules:3] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sets-dpkg-architecture-variable/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sets-dpkg-architecture-variable/ORIGIN new file mode 100644 index 00000000..b66fcef9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sets-dpkg-architecture-variable/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/rules-sets-dpkg-architecture-variable + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sets-dpkg-architecture-variable/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sets-dpkg-architecture-variable/debian/changelog new file mode 100644 index 00000000..69a75ce1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sets-dpkg-architecture-variable/debian/changelog @@ -0,0 +1,17 @@ +rules-sets-dpkg-architecture-variable (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-sets-dpkg-architecture-variable + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +rules-sets-dpkg-architecture-variable (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-sets-dpkg-architecture-variable + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sets-dpkg-architecture-variable/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sets-dpkg-architecture-variable/debian/control new file mode 100644 index 00000000..fee097ef --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sets-dpkg-architecture-variable/debian/control @@ -0,0 +1,17 @@ +Source: rules-sets-dpkg-architecture-variable +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: rules-sets-dpkg-architecture-variable +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for unnecessary dpkg-architecture assignments + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sets-dpkg-architecture-variable/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sets-dpkg-architecture-variable/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sets-dpkg-architecture-variable/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sets-dpkg-architecture-variable/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sets-dpkg-architecture-variable/debian/rules new file mode 100755 index 00000000..77454fa7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sets-dpkg-architecture-variable/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +export DEB_HOST_ARCH = invalid +export DEB_BUILD_ARCH := invalid +export DEB_TARGET_ARCH ?= false-positive + +%: + dh $@ diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sets-dpkg-architecture-variable/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sets-dpkg-architecture-variable/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sets-dpkg-architecture-variable/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sets-dpkg-architecture-variable/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sets-dpkg-architecture-variable/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sets-dpkg-architecture-variable/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sets-dpkg-architecture-variable/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sets-dpkg-architecture-variable/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sets-dpkg-architecture-variable/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sets-dpkg-architecture-variable/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sets-dpkg-architecture-variable/eval/hints new file mode 100644 index 00000000..e636d4be --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-sets-dpkg-architecture-variable/eval/hints @@ -0,0 +1,2 @@ +rules-sets-dpkg-architecture-variable (source): debian-rules-sets-dpkg-architecture-variable DEB_HOST_ARCH [debian/rules:3] +rules-sets-dpkg-architecture-variable (source): debian-rules-sets-dpkg-architecture-variable DEB_BUILD_ARCH [debian/rules:4] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-should-not-use-custom-compression-settings/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-should-not-use-custom-compression-settings/ORIGIN new file mode 100644 index 00000000..61893fda --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-should-not-use-custom-compression-settings/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/rules-should-not-use-custom-compression-settings + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-should-not-use-custom-compression-settings/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-should-not-use-custom-compression-settings/debian/changelog new file mode 100644 index 00000000..2baba488 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-should-not-use-custom-compression-settings/debian/changelog @@ -0,0 +1,17 @@ +rules-should-not-use-custom-compression-settings (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-should-not-use-custom-compression-settings + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +rules-should-not-use-custom-compression-settings (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-should-not-use-custom-compression-settings + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-should-not-use-custom-compression-settings/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-should-not-use-custom-compression-settings/debian/control new file mode 100644 index 00000000..a6a40576 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-should-not-use-custom-compression-settings/debian/control @@ -0,0 +1,17 @@ +Source: rules-should-not-use-custom-compression-settings +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: rules-should-not-use-custom-compression-settings +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for over-eager tarball compression etc. + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-should-not-use-custom-compression-settings/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-should-not-use-custom-compression-settings/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-should-not-use-custom-compression-settings/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-should-not-use-custom-compression-settings/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-should-not-use-custom-compression-settings/debian/rules new file mode 100755 index 00000000..fbbdc99b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-should-not-use-custom-compression-settings/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_builddeb: + dh_builddeb -- -Zxz -z 9 + dh_builddeb -- -z9 -Z xz + dh_builddeb -- -z8 -Z xz + dh_builddeb -- -z9 -Zgzip + dh_builddeb -- -Zxz -Sextreme -z9 + dh_builddeb -- -Zxz -z9 -Sextreme diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-should-not-use-custom-compression-settings/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-should-not-use-custom-compression-settings/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-should-not-use-custom-compression-settings/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-should-not-use-custom-compression-settings/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-should-not-use-custom-compression-settings/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-should-not-use-custom-compression-settings/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-should-not-use-custom-compression-settings/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-should-not-use-custom-compression-settings/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-should-not-use-custom-compression-settings/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-should-not-use-custom-compression-settings/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-should-not-use-custom-compression-settings/eval/hints new file mode 100644 index 00000000..09e88f18 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-should-not-use-custom-compression-settings/eval/hints @@ -0,0 +1,6 @@ +rules-should-not-use-custom-compression-settings (source): custom-compression-in-debian-rules dh_builddeb -- -z9 -Zgzip [debian/rules:10] +rules-should-not-use-custom-compression-settings (source): custom-compression-in-debian-rules dh_builddeb -- -z9 -Z xz [debian/rules:8] +rules-should-not-use-custom-compression-settings (source): custom-compression-in-debian-rules dh_builddeb -- -z8 -Z xz [debian/rules:9] +rules-should-not-use-custom-compression-settings (source): custom-compression-in-debian-rules dh_builddeb -- -Zxz -z9 -Sextreme [debian/rules:12] +rules-should-not-use-custom-compression-settings (source): custom-compression-in-debian-rules dh_builddeb -- -Zxz -Sextreme -z9 [debian/rules:11] +rules-should-not-use-custom-compression-settings (source): custom-compression-in-debian-rules dh_builddeb -- -Zxz -z 9 [debian/rules:7] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-special-variables/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-special-variables/ORIGIN new file mode 100644 index 00000000..18a13154 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-special-variables/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/rules-special-variables + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-special-variables/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-special-variables/debian/changelog new file mode 100644 index 00000000..6a8eb946 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-special-variables/debian/changelog @@ -0,0 +1,17 @@ +rules-special-variables (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-special-variables + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +rules-special-variables (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-special-variables + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-special-variables/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-special-variables/debian/control new file mode 100644 index 00000000..cfc172f8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-special-variables/debian/control @@ -0,0 +1,17 @@ +Source: rules-special-variables +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: rules-special-variables +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for debian/rules using special variables + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-special-variables/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-special-variables/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-special-variables/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-special-variables/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-special-variables/debian/rules new file mode 100755 index 00000000..fe1e7a62 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-special-variables/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +DEB_CFLAGS_APPEND:= -Wl,--as-needed + +%: + dh $@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-special-variables/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-special-variables/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-special-variables/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-special-variables/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-special-variables/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-special-variables/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-special-variables/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-special-variables/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-special-variables/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-special-variables/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-special-variables/eval/hints new file mode 100644 index 00000000..198af251 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-special-variables/eval/hints @@ -0,0 +1,2 @@ +rules-special-variables (source): debian-rules-uses-wrong-environment-variable [debian/rules:3] +rules-special-variables (source): debian-rules-uses-as-needed-linker-flag [debian/rules:3] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-symlink/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-symlink/ORIGIN new file mode 100644 index 00000000..deb03e15 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-symlink/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/rules-symlink + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-symlink/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-symlink/debian/changelog new file mode 100644 index 00000000..e84c11f2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-symlink/debian/changelog @@ -0,0 +1,17 @@ +rules-symlink (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-symlink + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +rules-symlink (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-symlink + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-symlink/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-symlink/debian/control new file mode 100644 index 00000000..2afe57cb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-symlink/debian/control @@ -0,0 +1,17 @@ +Source: rules-symlink +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: rules-symlink +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for debian/rules being a symlink + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-symlink/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-symlink/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-symlink/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-symlink/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-symlink/debian/rules new file mode 120000 index 00000000..10e9548b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-symlink/debian/rules @@ -0,0 +1 @@ +rules.real \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-symlink/debian/rules.real b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-symlink/debian/rules.real new file mode 100755 index 00000000..2d33f6ac --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-symlink/debian/rules.real @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-symlink/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-symlink/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-symlink/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-symlink/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-symlink/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-symlink/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-symlink/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-symlink/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-symlink/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-symlink/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-symlink/eval/hints new file mode 100644 index 00000000..02f26f1e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-symlink/eval/hints @@ -0,0 +1 @@ +rules-symlink (source): debian-rules-is-symlink [debian/rules] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-get-orig-source/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-get-orig-source/ORIGIN new file mode 100644 index 00000000..71516fa5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-get-orig-source/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/rules-unnecessary-get-orig-source + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-get-orig-source/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-get-orig-source/debian/changelog new file mode 100644 index 00000000..96035c12 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-get-orig-source/debian/changelog @@ -0,0 +1,17 @@ +rules-unnecessary-get-orig-source (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-unnecessary-get-orig-source + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +rules-unnecessary-get-orig-source (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-unnecessary-get-orig-source + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-get-orig-source/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-get-orig-source/debian/control new file mode 100644 index 00000000..410fe26e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-get-orig-source/debian/control @@ -0,0 +1,17 @@ +Source: rules-unnecessary-get-orig-source +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: rules-unnecessary-get-orig-source +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for unnecessary get-orig-source targets + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-get-orig-source/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-get-orig-source/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-get-orig-source/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-get-orig-source/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-get-orig-source/debian/rules new file mode 100755 index 00000000..67494846 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-get-orig-source/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh $@ + +get-orig-source: + uscan --noconf --force-download --rename --download-current-version --destdir=.. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-get-orig-source/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-get-orig-source/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-get-orig-source/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-get-orig-source/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-get-orig-source/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-get-orig-source/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-get-orig-source/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-get-orig-source/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-get-orig-source/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-get-orig-source/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-get-orig-source/eval/hints new file mode 100644 index 00000000..accab16e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-get-orig-source/eval/hints @@ -0,0 +1 @@ +rules-unnecessary-get-orig-source (source): debian-rules-contains-unnecessary-get-orig-source-target [debian/rules] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/ORIGIN new file mode 100644 index 00000000..2dfaae13 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/debian/changelog new file mode 100644 index 00000000..6307350c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/debian/changelog @@ -0,0 +1,17 @@ +rules-unnecessary-source-date-epoch-unrel (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-unnecessary-source-date-epoch-unrel + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +rules-unnecessary-source-date-epoch-unrel (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-unnecessary-source-date-epoch-unrel + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/debian/control new file mode 100644 index 00000000..1e7c11cd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/debian/control @@ -0,0 +1,16 @@ +Source: rules-unnecessary-source-date-epoch-unrel +Priority: optional +Section: python +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), dpkg-dev (>= 1.18.8), debhelper (>= 10.10) +Rules-Requires-Root: no + +Package: rules-unnecessary-source-date-epoch-unrel +Architecture: all +Depends: ${misc:Depends} +Description: Test package + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/debian/rules new file mode 100755 index 00000000..ec2dec69 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +SOURCE_DATE_EPOCH = $(shell date -d "$$(dpkg-parsechangelog -SDate)" +%s) + +export SOURCE_DATE_EPOCH = $(shell date +%s) + +%: + dh $@ diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/eval/hints new file mode 100644 index 00000000..eb595785 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/eval/hints @@ -0,0 +1 @@ +rules-unnecessary-source-date-epoch-unrel (source): debian-rules-parses-dpkg-parsechangelog [debian/rules:3] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch/ORIGIN new file mode 100644 index 00000000..47834d57 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch/debian/changelog new file mode 100644 index 00000000..e7361aff --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch/debian/changelog @@ -0,0 +1,17 @@ +rules-unnecessary-source-date-epoch (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-unnecessary-source-date-epoch + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +rules-unnecessary-source-date-epoch (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-unnecessary-source-date-epoch + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch/debian/compat new file mode 100644 index 00000000..f599e28b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch/debian/compat @@ -0,0 +1 @@ +10 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch/debian/control new file mode 100644 index 00000000..3221d41e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch/debian/control @@ -0,0 +1,16 @@ +Source: rules-unnecessary-source-date-epoch +Priority: optional +Section: python +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: dpkg-dev (>= 1.18.7), debhelper (>= 10.9) +Rules-Requires-Root: no + +Package: rules-unnecessary-source-date-epoch +Architecture: all +Depends: ${misc:Depends} +Description: Test package + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch/debian/rules new file mode 100755 index 00000000..ec2dec69 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +SOURCE_DATE_EPOCH = $(shell date -d "$$(dpkg-parsechangelog -SDate)" +%s) + +export SOURCE_DATE_EPOCH = $(shell date +%s) + +%: + dh $@ diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch/eval/hints new file mode 100644 index 00000000..4c1864ab --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-unnecessary-source-date-epoch/eval/hints @@ -0,0 +1,3 @@ +rules-unnecessary-source-date-epoch (source): unnecessary-source-date-epoch-assignment [debian/rules:5] +rules-unnecessary-source-date-epoch (source): unnecessary-source-date-epoch-assignment [debian/rules:3] +rules-unnecessary-source-date-epoch (source): debian-rules-parses-dpkg-parsechangelog [debian/rules:3] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-variable-targets/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-variable-targets/ORIGIN new file mode 100644 index 00000000..68c92528 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-variable-targets/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/rules/rules-variable-targets + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-variable-targets/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-variable-targets/debian/changelog new file mode 100644 index 00000000..5837c5e4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-variable-targets/debian/changelog @@ -0,0 +1,17 @@ +rules-variable-targets (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-variable-targets + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +rules-variable-targets (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-variable-targets + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-variable-targets/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-variable-targets/debian/control new file mode 100644 index 00000000..ae9f7793 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-variable-targets/debian/control @@ -0,0 +1,17 @@ +Source: rules-variable-targets +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: rules-variable-targets +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test against missing targets in debian/rules + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-variable-targets/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-variable-targets/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-variable-targets/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-variable-targets/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-variable-targets/debian/rules new file mode 100755 index 00000000..bdb1c68b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-variable-targets/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f + + TARGETS := build clean binary binary-arch binary-indep build-arch build-indep + +$(TARGETS): + dh $@ + +.PHONY: $(TARGETS) + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-variable-targets/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-variable-targets/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-variable-targets/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-variable-targets/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-variable-targets/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-variable-targets/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-variable-targets/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-variable-targets/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-variable-targets/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-variable-targets/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/rules/rules-variable-targets/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/Makefile new file mode 100644 index 00000000..21a67b5e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/Makefile @@ -0,0 +1,23 @@ +CC=gcc +MYCFLAGS=-Wall -Winline -O2 -fPIC +CFLAGS:=$(MYCFLAGS) $(CPPFLAGS) $(CFLAGS) + +SONAMES:= libany.so.1 libany6gcc.so.1v6 libany5gcc.so.1 libanyQ16.so.6 +LIBFILES:= $(patsubst %,%.0.1, $(SONAMES)) + +all: $(LIBFILES) + +$(LIBFILES): code.o + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^ -lc + +clean: + rm -f *.a *.o *.so* + +install: all + install -m 0755 -d $(DESTDIR)/usr/lib + install -m 0755 *.so* $(DESTDIR)/usr/lib + for FILE in $(SONAMES) ; do \ + ln -s $${FILE}.0.1 $(DESTDIR)/usr/lib/$$FILE ; \ + done + +.PHONY: install clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/ORIGIN new file mode 100644 index 00000000..8ec08e85 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/code.c b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/code.c new file mode 100644 index 00000000..0c4f9177 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/code.c @@ -0,0 +1,9 @@ +#include +#include + +void e(char *p, int i, void (*f)(char *)){ + char test[10]; + memcpy(test, p, i); + f(test); + printf("%s", test); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/changelog new file mode 100644 index 00000000..a22d9e3b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/changelog @@ -0,0 +1,17 @@ +binaries-doesnt-match-sonames (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-doesnt-match-sonames + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +binaries-doesnt-match-sonames (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-doesnt-match-sonames + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/compat @@ -0,0 +1 @@ +9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/control new file mode 100644 index 00000000..50fd44f8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/control @@ -0,0 +1,48 @@ +Source: binaries-doesnt-match-sonames +Priority: optional +Section: libs +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 9.20151004~) +Rules-Requires-Root: no + +Package: mylibany +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for library package that does not match SONAME + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + + +Package: libany6gcc1v6 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for library package that does not match SONAME with gcc 6 version + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + It test if v6 string are correctly escaped + +Package: libany5gcc1v5 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for library package that does not match SONAME with gcc 5 version + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + It test if v5 string are correctly escaped + +Package: libanyq16-6 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for library package that does not match SONAME with Q16 version + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + It test if string are correctly escaped like for imagemagick. + . + library name is not libanyQ166 \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/libany5gcc1v5.install b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/libany5gcc1v5.install new file mode 100644 index 00000000..283bc611 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/libany5gcc1v5.install @@ -0,0 +1 @@ +/usr/lib/libany5gcc.* \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/libany5gcc1v5.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/libany5gcc1v5.symbols new file mode 100644 index 00000000..a3945022 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/libany5gcc1v5.symbols @@ -0,0 +1,2 @@ +libany5gcc.so.1 libany5gcc1v5 #MINVER# + e@Base 1.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/libany6gcc1v6.install b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/libany6gcc1v6.install new file mode 100644 index 00000000..9485e876 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/libany6gcc1v6.install @@ -0,0 +1 @@ +/usr/lib/libany6gcc.* \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/libany6gcc1v6.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/libany6gcc1v6.symbols new file mode 100644 index 00000000..aee5f00d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/libany6gcc1v6.symbols @@ -0,0 +1,2 @@ +libany6gcc.so.1v6 libany6gcc1v6 #MINVER# + e@Base 1.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/libanyq16-6.install b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/libanyq16-6.install new file mode 100644 index 00000000..b4ecaea7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/libanyq16-6.install @@ -0,0 +1 @@ +/usr/lib/libanyQ16* \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/libanyq16-6.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/libanyq16-6.symbols new file mode 100644 index 00000000..0f32f79b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/libanyq16-6.symbols @@ -0,0 +1,2 @@ +libanyQ16.so.1v6 libanyQ16-6 #MINVER# + e@Base 1.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/mylibany.install b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/mylibany.install new file mode 100644 index 00000000..5c86ce11 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/mylibany.install @@ -0,0 +1 @@ +/usr/lib/libany.* \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/mylibany.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/mylibany.symbols new file mode 100644 index 00000000..9b6f4543 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/mylibany.symbols @@ -0,0 +1,2 @@ +libany.so.1 mylibany #MINVER# + e@Base 1.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/eval/hints new file mode 100644 index 00000000..6cf925b1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-doesnt-match-sonames/eval/hints @@ -0,0 +1,4 @@ +mylibany (binary): symbols-file-missing-build-depends-package-field libany.so.1 [symbols] +libanyq16-6 (binary): symbols-file-missing-build-depends-package-field libanyQ16.so.6 [symbols] +libany6gcc1v6 (binary): symbols-file-missing-build-depends-package-field libany6gcc.so.1v6 [symbols] +libany5gcc1v5 (binary): symbols-file-missing-build-depends-package-field libany5gcc.so.1 [symbols] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/Makefile new file mode 100644 index 00000000..fcf25f49 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/Makefile @@ -0,0 +1,14 @@ +all: + gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -fPIC -shared -Wl,-z,defs -Wl,-soname,libbasic.so.2 -o libbasic.so.2 basic.c + g++ $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) -fPIC -shared -Wl,-z,defs \ + -Wl,-soname,libbasic++.so.2 -olibbasic++.so.2 cpp.cxx + +install: + install -d $(DESTDIR)/usr/lib/ + install -m 644 -c -s libbasic.so.2 $(DESTDIR)/usr/lib/libbasic.so.2 + install -m 644 -c -s libbasic++.so.2 $(DESTDIR)/usr/lib/libbasic++.so.2 + +clean distclean: + rm -f libbasic.so.2 libbasic++.so.2 + +check test: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/ORIGIN new file mode 100644 index 00000000..c588810e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/basic.c b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/basic.c new file mode 100644 index 00000000..27e93fcc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/basic.c @@ -0,0 +1,19 @@ +#include +#include + +static void +hardening_trigger(char *p, int i, void (*f)(char *)) +{ + char test[10]; + memcpy(test, p, i); + f(test); + printf("%s", test); +} + +int +lib_interface(void) +{ + printf("Hello world!\n"); + hardening_trigger(NULL, 0, NULL); + return 0; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/cpp.cxx b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/cpp.cxx new file mode 100644 index 00000000..1338e40b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/cpp.cxx @@ -0,0 +1,14 @@ +#include +#include + +using namespace std; + +template T +cxx_lib_interface(vector &v) +{ + cout << ":-) hello world" << endl; + return v[0]; +} + + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/debian/changelog new file mode 100644 index 00000000..0b51c79b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/debian/changelog @@ -0,0 +1,17 @@ +binaries-missing-depends-on-libc (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-missing-depends-on-libc + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +binaries-missing-depends-on-libc (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-missing-depends-on-libc + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/debian/compat @@ -0,0 +1 @@ +9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/debian/control new file mode 100644 index 00000000..e02144fa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/debian/control @@ -0,0 +1,17 @@ +Source: binaries-missing-depends-on-libc +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 9.20151004~), perl +Rules-Requires-Root: no + +Package: libbasic2 +Section: libs +Architecture: any +Depends: some-pkg, ${misc:Depends}, ${shlib:Depends} +Description: Test for missing libc depends + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/debian/libbasic2.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/debian/libbasic2.symbols new file mode 100644 index 00000000..0119bca8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/debian/libbasic2.symbols @@ -0,0 +1,4 @@ +libbasic.so.2 libbasic2 #MINVER# + lib_interface@Base 1.0 +libbasic++.so.2 libbasic2 #MINVER# + (c++)cxx_lib_interface@Base 1.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/debian/rules new file mode 100644 index 00000000..188f490e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/debian/rules @@ -0,0 +1,15 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +# Make sure the C++ library actually links to libc +export DEB_LDFLAGS_MAINT_APPEND=-Wl,--no-as-needed + +%: + dh $@ + +override_dh_gencontrol: + # Remove the shlib:Depends since it will contain libc + sed -i '/shlib:Depends=/ d' debian/libbasic2.substvars + echo "shlib:depends=" >> debian/libbasic2.substvars + dh_gencontrol diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/eval/hints new file mode 100644 index 00000000..72900446 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends-on-libc/eval/hints @@ -0,0 +1,2 @@ +libbasic2 (binary): symbols-file-missing-build-depends-package-field libbasic.so.2 [symbols] +libbasic2 (binary): symbols-file-missing-build-depends-package-field libbasic++.so.2 [symbols] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/Makefile new file mode 100644 index 00000000..6fc39688 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/Makefile @@ -0,0 +1,12 @@ +all: + gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -fPIC -shared -Wl,-z,defs -Wl,-soname,libbasic.so.2 -o libbasic.so.2 basic.c + +install: + # install it under the correct triplet directory + install -d $(DESTDIR)/usr/lib/ + install -m 644 -c -s libbasic.so.2 $(DESTDIR)/usr/lib/libbasic.so.2 + +clean distclean: + rm -f libbasic.so.2 + +check test: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/ORIGIN new file mode 100644 index 00000000..315f8aa5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/shlibs/binaries-missing-depends + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/basic.c b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/basic.c new file mode 100644 index 00000000..27e93fcc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/basic.c @@ -0,0 +1,19 @@ +#include +#include + +static void +hardening_trigger(char *p, int i, void (*f)(char *)) +{ + char test[10]; + memcpy(test, p, i); + f(test); + printf("%s", test); +} + +int +lib_interface(void) +{ + printf("Hello world!\n"); + hardening_trigger(NULL, 0, NULL); + return 0; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/debian/changelog new file mode 100644 index 00000000..596a881c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/debian/changelog @@ -0,0 +1,17 @@ +binaries-missing-depends (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-missing-depends + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +binaries-missing-depends (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-missing-depends + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/debian/compat @@ -0,0 +1 @@ +9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/debian/control new file mode 100644 index 00000000..9869a6b7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/debian/control @@ -0,0 +1,17 @@ +Source: binaries-missing-depends +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 9.20151004~), perl +Rules-Requires-Root: no + +Package: libbasic2 +Architecture: any +Section: libs +Depends: ${misc:Depends}, ${shlib:Depends} +Description: Test for missing depends line + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/debian/libbasic2.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/debian/libbasic2.symbols new file mode 100644 index 00000000..c2b8fb33 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/debian/libbasic2.symbols @@ -0,0 +1,2 @@ +libbasic.so.2 libbasic2 #MINVER# + lib_interface@Base 1.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/debian/rules new file mode 100644 index 00000000..8a832551 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +override_dh_builddeb: + sed -i '/Depends:/ d' debian/libbasic2/DEBIAN/control + dh_builddeb diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/eval/hints new file mode 100644 index 00000000..d4e8830e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-missing-depends/eval/hints @@ -0,0 +1 @@ +libbasic2 (binary): symbols-file-missing-build-depends-package-field libbasic.so.2 [symbols] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/Makefile new file mode 100644 index 00000000..ad7783bc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/Makefile @@ -0,0 +1,12 @@ + +all: + gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -fPIC -shared -Wl,-z,defs -Wl,-soname,libbasic.so.2 -o libbasic.so.2 basic.c + +install: + install -d $(DESTDIR)/usr/lib/ + install -m 644 -c -s libbasic.so.2 $(DESTDIR)/usr/lib/libbasic.so.2 + +clean distclean: + rm -f libbasic.so.2 + +check test: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/ORIGIN new file mode 100644 index 00000000..e7f93dd5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/shlibs/binaries-multiarch-same + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/basic.c b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/basic.c new file mode 100644 index 00000000..27e93fcc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/basic.c @@ -0,0 +1,19 @@ +#include +#include + +static void +hardening_trigger(char *p, int i, void (*f)(char *)) +{ + char test[10]; + memcpy(test, p, i); + f(test); + printf("%s", test); +} + +int +lib_interface(void) +{ + printf("Hello world!\n"); + hardening_trigger(NULL, 0, NULL); + return 0; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/debian/changelog new file mode 100644 index 00000000..d38ebfa8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/debian/changelog @@ -0,0 +1,17 @@ +binaries-multiarch-same (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-multiarch-same + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +binaries-multiarch-same (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-multiarch-same + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/debian/compat @@ -0,0 +1 @@ +9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/debian/control new file mode 100644 index 00000000..570e7252 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/debian/control @@ -0,0 +1,25 @@ +Source: binaries-multiarch-same +Priority: optional +Section: libs +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 9.20151004~) +Rules-Requires-Root: no + +Package: libbasic2 +Architecture: any +Pre-Depends: ${misc:Pre-Depends}, multiarch-support +Depends: ${misc:Depends}, ${shlibs:Depends} +Multi-Arch: same +Description: Test of multiarch same package with unsafe binaries + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + Note there is an explicitly pre-depends on multiarch-support, since + older versions of debhelper might not use it yet. dpkg-dev will + remove the duplicate entry (if any). + + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/debian/libbasic2.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/debian/libbasic2.symbols new file mode 100644 index 00000000..c2b8fb33 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/debian/libbasic2.symbols @@ -0,0 +1,2 @@ +libbasic.so.2 libbasic2 #MINVER# + lib_interface@Base 1.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/eval/hints new file mode 100644 index 00000000..d4e8830e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch-same/eval/hints @@ -0,0 +1 @@ +libbasic2 (binary): symbols-file-missing-build-depends-package-field libbasic.so.2 [symbols] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/Makefile new file mode 100644 index 00000000..979e3667 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/Makefile @@ -0,0 +1,26 @@ + +# Since dpkg in stable (Squeeze) does not support MULTIARCH we cannot use +# dpkg-architecture -qDEB_HOST_MULTIARCH +# Therefore this test is hardcoded to x86 and amd64 + +ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH) + +ifeq (i386,$(ARCH)) + TRIPLET = i386-linux-gnu +else + TRIPLET = x86_64-linux-gnu +endif + + +all: + gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -fPIC -shared -Wl,-z,defs -Wl,-soname,libbasic.so.2 -o libbasic.so.2 basic.c + +install: + # install it under the correct triplet directory + install -d $(DESTDIR)/usr/lib/$(TRIPLET) + install -m 644 -c -s libbasic.so.2 $(DESTDIR)/usr/lib/$(TRIPLET)/libbasic.so.2 + +clean distclean: + rm -f libbasic.so.2 + +check test: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/ORIGIN new file mode 100644 index 00000000..a067969d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/shlibs/binaries-multiarch + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/basic.c b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/basic.c new file mode 100644 index 00000000..27e93fcc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/basic.c @@ -0,0 +1,19 @@ +#include +#include + +static void +hardening_trigger(char *p, int i, void (*f)(char *)) +{ + char test[10]; + memcpy(test, p, i); + f(test); + printf("%s", test); +} + +int +lib_interface(void) +{ + printf("Hello world!\n"); + hardening_trigger(NULL, 0, NULL); + return 0; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/debian/changelog new file mode 100644 index 00000000..684d940e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/debian/changelog @@ -0,0 +1,17 @@ +binaries-multiarch (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-multiarch + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +binaries-multiarch (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: binaries-multiarch + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/debian/compat @@ -0,0 +1 @@ +9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/debian/control new file mode 100644 index 00000000..a1331470 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/debian/control @@ -0,0 +1,21 @@ +Source: binaries-multiarch +Priority: optional +Section: libs +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 9.20151004~) +Rules-Requires-Root: no + +Package: libbasic2 +Architecture: any +Pre-Depends: ${misc:Pre-Depends}, multiarch-support +Depends: ${misc:Depends}, ${shlibs:Depends} +Description: Test of a correct multiarch package + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + Note there is an explicitly pre-depends on multiarch-support, since + older versions of debhelper might not use it yet. dpkg-dev will + remove the duplicate entry (if any). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/debian/libbasic2.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/debian/libbasic2.symbols new file mode 100644 index 00000000..c2b8fb33 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/debian/libbasic2.symbols @@ -0,0 +1,2 @@ +libbasic.so.2 libbasic2 #MINVER# + lib_interface@Base 1.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/debian/rules new file mode 100644 index 00000000..249fe250 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/debian/rules @@ -0,0 +1,23 @@ +#!/usr/bin/make -f + +# Since dpkg in stable (Squeeze) does not support MULTIARCH we cannot use +# dpkg-architecture -qDEB_HOST_MULTIARCH +# Therefore this test is hardcoded to x86 and amd64 + +ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH) + +ifeq (i386,$(ARCH)) + TRIPLET = i386-linux-gnu +else + TRIPLET = x86_64-linux-gnu +endif + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +override_dh_makeshlibs: + # dpkg-dev uses ld.so.conf so if we do not pass the lib directly + # this will fail on all x86 machines without with libc6 < 2.13-5 + dh_makeshlibs -- -edebian/libbasic2/usr/lib/$(TRIPLET)/libbasic.so.2 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/eval/hints new file mode 100644 index 00000000..d4e8830e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/binaries-multiarch/eval/hints @@ -0,0 +1 @@ +libbasic2 (binary): symbols-file-missing-build-depends-package-field libbasic.so.2 [symbols] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/Makefile new file mode 100644 index 00000000..ff58c3a2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/Makefile @@ -0,0 +1,24 @@ +CC=gcc +CFLAGS+= -fPIC + +SONAMES:= libpublic.so.1 +LIBFILES:= $(patsubst %,%.0.1, $(SONAMES)) +LIBDIR := /usr/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH) + +all: $(LIBFILES) + +$(LIBFILES): code.o + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^ -lc + +clean: + rm -f *.a *.o *.so* + +install: all + install -m 0755 -d $(DESTDIR)$(LIBDIR) + install -m 0644 *.so* $(DESTDIR)$(LIBDIR) + set -e ; for FILE in $(SONAMES) ; do \ + ln -s $${FILE}.0.1 $(DESTDIR)$(LIBDIR)/$$FILE ; \ + ln -s $${FILE}.0.1 $(DESTDIR)$(LIBDIR)/$$(echo $$FILE | perl -pe 's/\.so\K.*//') ; \ + done + +.PHONY: install clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/ORIGIN new file mode 100644 index 00000000..271a5070 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/shlibs/files-wrong-ma-foreign + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/code.c b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/code.c new file mode 100644 index 00000000..0ed08e05 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/code.c @@ -0,0 +1,15 @@ +#include +#include + +double e(void (*f)(char *)){ + char tmp[10]; + double x; + f(tmp); + x = atof(tmp); + return exp(x); +} + +double energy(double mass){ + return pow(10.0, 8.0) * pow(3.0, 2.0) * mass; +} + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/debian/changelog new file mode 100644 index 00000000..99b07c2b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/debian/changelog @@ -0,0 +1,17 @@ +files-wrong-ma-foreign (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: files-wrong-ma-foreign + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +files-wrong-ma-foreign (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: files-wrong-ma-foreign + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/debian/compat @@ -0,0 +1 @@ +9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/debian/control new file mode 100644 index 00000000..f1636e60 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/debian/control @@ -0,0 +1,33 @@ +Source: files-wrong-ma-foreign +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 9.20151004~) +Rules-Requires-Root: no + +Package: libpublic1 +Section: libs +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends}, +Multi-Arch: same +Description: Test for wrong usage of Multi-Arch foreign + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: libpublic-dev +Section: libdevel +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends}, +Multi-Arch: foreign +Description: Test for wrong usage of Multi-Arch foreign (dev) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + Supposedly includes some headers. + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/debian/libpublic-dev.install b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/debian/libpublic-dev.install new file mode 100644 index 00000000..012244d1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/debian/libpublic-dev.install @@ -0,0 +1 @@ +usr/lib/*/*.so diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/debian/libpublic1.install b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/debian/libpublic1.install new file mode 100644 index 00000000..3de3b10a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/debian/libpublic1.install @@ -0,0 +1 @@ +usr/lib/*/*.so.* diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/debian/libpublic1.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/debian/libpublic1.symbols new file mode 100644 index 00000000..d8226ca0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/debian/libpublic1.symbols @@ -0,0 +1,3 @@ +libexecbit.so.1 libexecbit1 #MINVER# + e@Base 1.0 + energy@Base 0.9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/eval/hints new file mode 100644 index 00000000..a157d774 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/files-wrong-ma-foreign/eval/hints @@ -0,0 +1 @@ +libpublic1 (binary): symbols-file-missing-build-depends-package-field libpublic.so.1 [symbols] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/ORIGIN new file mode 100644 index 00000000..d88fa2b3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/shlibs/legacy-debug + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/debian/_symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/debian/_symbols new file mode 100644 index 00000000..46e6af1c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/debian/_symbols @@ -0,0 +1,23 @@ + This line should flag a syntax error +# but this one shouldn't +| although this one should, but for a different reason + and so should this + +libhello.so.0 libhello0 #MINVER# +| libhello0c2 (>= 1.2) , libhelloc0c2 (<< 1.3) +| hello-dbg3| libhelloc0c3|foobar (= 1.2) |hello-dbg2 +| hello-dbg + hello@Base 1.0 +* Build-Dep-Foo: bar + hello2@Base 2.0 4 + hello3@Base 2.0 1 + hello3@Base 2.0 A + dummy + +libhello.so.2 libhello2 #MINVER# +* Build-Depends-Package: libbar +| libhello2 (>= 1:2.3) + hello@Base 2.0 + +libhello.so.0 libhello0 #MINVER# + duplicate@Base 1.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/debian/changelog new file mode 100644 index 00000000..3e50d335 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/debian/changelog @@ -0,0 +1,13 @@ +debug (1.0) unstable; urgency=low + + * NMU. + (uploaded by the maintainer and with repeated version number) + + -- Russ Allbery Tue, 4 Apr 2006 20:27:22 +0000 + +debug (1.0) unstable; urgency=low + + * Initial version. + + -- Russ Allbery Sat, 4 Mar 2006 21:31:06 -0800 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/debian/compat new file mode 100644 index 00000000..7f8f011e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/debian/compat @@ -0,0 +1 @@ +7 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/debian/control new file mode 100644 index 00000000..fcb2b867 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/debian/control @@ -0,0 +1,85 @@ +Source: debug +Section: utils +Priority: optional +Maintainer: Russ Allbery +Build-Depends: debhelper (>= 5.0.0) +Build-Depends-Indep: not-debhelper (>= 0.4.3) +Standards-Version: 3.7.0 + +Package: hello +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for external debugging information + Lintian regression test for external debugging file handling. This test + contains the binary. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: hello-dbg +Priority: optional +Section: debug +Architecture: any +Depends: hello (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} +Description: Test for external debugging information (symbols) + Lintian regression test for external debugging file handling. This test + contains the binary symbols. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libhello0 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for external debugging information (library) + Lintian regression test for external debugging file handling. This test + contains a library. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libhello0-dbg +Section: debug +Priority: optional +Architecture: any +Depends: libhello (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} +Description: Test for external debugging information (library symbols) + Lintian regression test for external debugging file handling. This test + contains the library symbols. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: hi-dbg +Section: debug +Priority: optional +Architecture: any +Depends: foo-pkg, not-libhello0 +Description: Test for external debugging symbols + Lintian regression test for external debugging files handling. This test + contains the library symbols. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: hello-hello-dbg +Section: debug +Priority: optional +Architecture: any +Depends: foo-pkg, not-libhello0, hello +Description: Test for external debugging symbols - another try + Lintian regression test for external debugging files handling. This test + contains the library symbols. This package actually tests a combination of + the above. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/debian/copyright new file mode 100644 index 00000000..5d4f6c29 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/debian/copyright @@ -0,0 +1,4 @@ +Written Sat, 04 Mar 2006 21:30:01 -0800 by Russ Allbery . + +Test for copyright in capital letters. (#464992) +COPYRIGHT RUSS ALLBERY 2006 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/debian/rules new file mode 100755 index 00000000..b6598955 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/debian/rules @@ -0,0 +1,99 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. + +# turn off PIE in CC in case we have a PIEful toolchain: +ifneq ($(findstring -no-pie,$(shell gcc -no-pie 2>&1)),) + CC := gcc +else + CC := gcc -fno-pie -no-pie +endif + +build-indep: + +build-arch: build-stamp + +build-stamp: + dh_testdir + $(CC) -D_REENTRANT -fPIC -c libhello.c + $(CC) -o libhello.so.0.0 -shared -Wl,-soname,libhello.so.0 libhello.o + ln -s libhello.so.0.0 libhello.so + $(CC) -o hello hello.c -L. -lhello + touch build-stamp + +build: build-arch build-indep + +clean: + dh_testdir + dh_testroot + rm -f build-stamp *.o libhello.so.0.0 libhello.so + dh_clean + +install: build-stamp + dh_testdir + dh_testroot + dh_clean -k + install -D hello $(CURDIR)/debian/hello/usr/bin/hello + install -D libhello.so.0.0 \ + $(CURDIR)/debian/libhello0/usr/lib/libhello.so.0.0 + ln -s libhello.so.0.0 \ + $(CURDIR)/debian/libhello0/usr/lib/libhello.so.0 + +# Build architecture-dependent files here. +export DH_OPTIONS +binary-arch: DH_OPTIONS=-a +binary-arch: build-stamp install + dh_testdir + dh_testroot + dh_installchangelogs -N hello-dbg + dh_installdocs + DH_OPTIONS= dh_strip -phello --dbg-package=hello-dbg + DH_OPTIONS= dh_strip -plibhello0 --dbg-package=libhello0-dbg + + # Now break a few things. Copy the debugging data into places it + # shouldn't be. + cp $(CURDIR)/debian/hello-dbg/usr/lib/debug/usr/bin/hello \ + $(CURDIR)/debian/hello/usr/bin/hello.dbg + cp $(CURDIR)/debian/libhello0-dbg/usr/lib/debug/usr/lib/libhello.so.0.0 \ + $(CURDIR)/debian/libhello0-dbg/usr/lib/libhello.so.dbg + + # Put a full copy of the library in libhello0-dbg in /usr/lib/debug, + # which is okay. + install -m 644 libhello.so.0.0 \ + $(CURDIR)/debian/libhello0-dbg/usr/lib/debug/libhello.so.0.0 + + # Also put it in /usr/lib/debug/lib, which isn't. + install -D -m 644 libhello.so.0.0 \ + $(CURDIR)/debian/libhello0-dbg/usr/lib/debug/lib/libhello.so.0.0 + + # Requires a versioned dependency. + dh_icons + + dh_link + dh_compress + dh_fixperms + dh_makeshlibs -X debug + dh_installdeb + dh_shlibdeps -X debug + + # We do this by hand as otherwise dpkg-gensymbols + # will error due to the broken symbols file + # and abort the build; similarly the file in + # the source tree is _symbols so that dpkg + # doesn't attempt to sanity check it + install -d $(CURDIR)/debian/libhello0/DEBIAN + install -m 644 $(CURDIR)/debian/_symbols \ + $(CURDIR)/debian/libhello0/DEBIAN/symbols + # hello doesn't contain any shlibs, but we + # make it contain a symbols file + install -d $(CURDIR)/debian/hello/DEBIAN + install -m 644 $(CURDIR)/debian/_symbols \ + $(CURDIR)/debian/hello/DEBIAN/symbols + + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-indep: +binary: binary-indep binary-arch +.PHONY: build-arch build-indep build binary binary-indep binary-arch clean install diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/eval/hints new file mode 100644 index 00000000..d9fdaffb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/eval/hints @@ -0,0 +1,48 @@ +libhello0 (binary): unknown-meta-field-in-symbols-file Build-Dep-Foo (libhello.so.0) [symbols:11] +libhello0 (binary): syntax-error-in-symbols-file [symbols:4] +libhello0 (binary): syntax-error-in-symbols-file [symbols:3] +libhello0 (binary): syntax-error-in-symbols-file [symbols:1] +libhello0 (binary): syntax-error-in-symbols-file [symbols:19] +libhello0 (binary): syntax-error-in-symbols-file [symbols:15] +libhello0 (binary): syntax-error-in-symbols-file [symbols:11] +libhello0 (binary): symbols-for-undeclared-shared-library libhello 2 +libhello0 (binary): symbols-file-missing-build-depends-package-field libhello.so.0 [symbols] +libhello0 (binary): symbols-declares-dependency-on-other-package libhelloc0c3 (libhello.so.0) [symbols] +libhello0 (binary): symbols-declares-dependency-on-other-package libhelloc0c2 (<< 1.3) (libhello.so.0) [symbols] +libhello0 (binary): symbols-declares-dependency-on-other-package libhello2 (libhello.so.2) [symbols] +libhello0 (binary): symbols-declares-dependency-on-other-package libhello2 (>= 1:2.3) (libhello.so.2) [symbols] +libhello0 (binary): symbols-declares-dependency-on-other-package libhello0c2 (>= 1.2) (libhello.so.0) [symbols] +libhello0 (binary): symbols-declares-dependency-on-other-package hello-dbg3 (libhello.so.0) [symbols] +libhello0 (binary): symbols-declares-dependency-on-other-package hello-dbg2 (libhello.so.0) [symbols] +libhello0 (binary): symbols-declares-dependency-on-other-package hello-dbg (libhello.so.0) [symbols] +libhello0 (binary): symbols-declares-dependency-on-other-package foobar (= 1.2) (libhello.so.0) [symbols] +libhello0 (binary): surplus-shared-library-symbols libhello 2 [symbols] +libhello0 (binary): invalid-template-id-in-symbols-file should this [symbols:4] +libhello0 (binary): invalid-template-id-in-symbols-file A [symbols:14] +libhello0 (binary): invalid-template-id-in-symbols-file 4 [symbols:12] +libhello0 (binary): duplicate-entry-in-symbols-control-file (lines 6 22) libhello 0 [symbols] +hello (binary): unknown-meta-field-in-symbols-file Build-Dep-Foo (libhello.so.0) [symbols:11] +hello (binary): syntax-error-in-symbols-file [symbols:4] +hello (binary): syntax-error-in-symbols-file [symbols:3] +hello (binary): syntax-error-in-symbols-file [symbols:1] +hello (binary): syntax-error-in-symbols-file [symbols:19] +hello (binary): syntax-error-in-symbols-file [symbols:15] +hello (binary): syntax-error-in-symbols-file [symbols:11] +hello (binary): symbols-file-missing-build-depends-package-field libhello.so.0 [symbols] +hello (binary): symbols-declares-dependency-on-other-package libhelloc0c3 (libhello.so.0) [symbols] +hello (binary): symbols-declares-dependency-on-other-package libhelloc0c2 (<< 1.3) (libhello.so.0) [symbols] +hello (binary): symbols-declares-dependency-on-other-package libhello2 (libhello.so.2) [symbols] +hello (binary): symbols-declares-dependency-on-other-package libhello2 (>= 1:2.3) (libhello.so.2) [symbols] +hello (binary): symbols-declares-dependency-on-other-package libhello0c2 (>= 1.2) (libhello.so.0) [symbols] +hello (binary): symbols-declares-dependency-on-other-package libhello0 (libhello.so.0) [symbols] +hello (binary): symbols-declares-dependency-on-other-package hello-dbg3 (libhello.so.0) [symbols] +hello (binary): symbols-declares-dependency-on-other-package hello-dbg2 (libhello.so.0) [symbols] +hello (binary): symbols-declares-dependency-on-other-package hello-dbg (libhello.so.0) [symbols] +hello (binary): symbols-declares-dependency-on-other-package foobar (= 1.2) (libhello.so.0) [symbols] +hello (binary): surplus-shared-library-symbols libhello 2 [symbols] +hello (binary): surplus-shared-library-symbols libhello 0 [symbols] +hello (binary): invalid-template-id-in-symbols-file should this [symbols:4] +hello (binary): invalid-template-id-in-symbols-file A [symbols:14] +hello (binary): invalid-template-id-in-symbols-file 4 [symbols:12] +hello (binary): empty-shared-library-symbols [symbols] +hello (binary): duplicate-entry-in-symbols-control-file (lines 6 22) libhello 0 [symbols] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/hello.c b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/hello.c new file mode 100644 index 00000000..76f83373 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/hello.c @@ -0,0 +1,9 @@ +#include +#include "libhello.h" + +int +main(void) +{ + hello(); + exit(0); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/libhello.c b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/libhello.c new file mode 100644 index 00000000..e2f84096 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/libhello.c @@ -0,0 +1,7 @@ +#include + +void +hello(void) +{ + printf("Hello, World!\n"); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/libhello.h b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/libhello.h new file mode 100644 index 00000000..ef774764 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-debug/libhello.h @@ -0,0 +1 @@ +void hello(void); diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/Makefile new file mode 100644 index 00000000..657dc2ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/Makefile @@ -0,0 +1,55 @@ +# This is the correct way to build a lib + +CC=gcc +CFLAGS=-g -Wall -Winline -O2 +LDFLAGS=-Wl,--no-as-needed + +OBJS=baz.o extra.o +SHOBJS=baz.sho extra.sho +NOPICOBJS = $(SHOBJS) + +all: libbaz1.a libbaz2.a libbaz1.so.1.0.3b libbaz2.so libbaz3.so.1.0.3b \ + libbaz.so + +libbaz2.so: libbaz2.so.1.0 + ln -sf $^ $@ +libbaz2.so.1.0: libbaz2.so.1.0.3b + ln -sf $^ $@ + +# Oops, forget the soname altogether +libbaz1.so.1.0.3b: $(NOPICOBJS) + $(CC) $(LDFLAGS) -o $@ -shared $^ -lc + +libbaz2.so.1.0.3b: $(SHOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz2.so.1.0 $^ -lc + +# Non-PIC. We can't test this on all architectures +libbaz3.so.1.0.3b: $(NOPICOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz3.so.1 $^ -lc + +# Non-versioned SONAME. +libbaz.so: $(SHOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz.so $^ -lc + +#%.o-noreentrant: %.c +# $(CC) $(LDFLAGS) $(CFLAGS) -o $@ -c $< + +%.sho: %.c + $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -fPIC -o $@ -c $< + +%.o: %.c + $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -o $@ -c $< + +libbaz2.a: $(OBJS) + ar cq $@ $(OBJS) + strip --strip-unneeded --remove-section=.comment \ + --remove-section=-note $@ + ranlib $@ + +# The pic one in the .a (wrong), no archive table +libbaz1.a: $(SHOBJS) + ar cqS $@ $^ + strip --strip-unneeded --remove-section=.comment \ + --remove-section=-note $@ +clean: + rm -f *.a *.o *.so* *.sho diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/ORIGIN new file mode 100644 index 00000000..4fcb4919 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/shlibs/legacy-libbaz + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/baz.c b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/baz.c new file mode 100644 index 00000000..4d5fc458 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/baz.c @@ -0,0 +1,6 @@ +#include + +double pw(double p) +{ + return exp(p); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/changelog new file mode 100644 index 00000000..44c0a832 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/changelog @@ -0,0 +1,6 @@ +libbaz (1-1) unstable; urgency=low + + * Initial setup + + -- Sean 'Shaleh' Perry Tue, 30 Jan 2001 15:23:59 -0800 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/compat new file mode 100644 index 00000000..b1bd38b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/compat @@ -0,0 +1 @@ +13 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/control new file mode 100644 index 00000000..15066870 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/control @@ -0,0 +1,58 @@ +Source: libbaz +Section: libs +Priority: optional +Maintainer: Lintian Maintainer +Build-depends: debhelper (>=4) +Standards-Version: 3.2.1 + +Package: libbaz1 +Architecture: any +Provides: libbaz +Description: test handling of library packages + Regression test for lintian's handling of libraries. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz1-dev +Architecture: any +Depends: libbaz1 (= ${source:Version}), perlapi-5.8.8 +Description: development package + Regression test for lintian's handling of libraries (dev). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2 +Architecture: any +Depends: ${shlibs:Depends}, libssl0.9.8 +Description: test handling of library packages (good) + Regression test for lintian's handling of libraries (good). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2-dev +Architecture: any +Depends: ${shlibs:Depends}, libbaz2 (= ${source:Version}) +Description: development package (good) + Regression test for lintian's handling of libraries (dev good). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2-dbg +Architecture: any +Depends: libbaz2 (= ${binary:Version}) +Priority: optional +Description: debugging package + Regression test for lintian's handling of libraries (debug). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/copyright new file mode 100644 index 00000000..a874c878 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/copyright @@ -0,0 +1,8 @@ +This package is released under public domain. This is distributed in the hope +that it will be useful, but without any warranty; without even the implied +warranty of merchantability or fitness for a particular purpose. + +A reference to /usr/share/common-licenses/GPL-2 to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +However, this has an OpenSSL exception. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/dev.postinst b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/dev.postinst new file mode 100644 index 00000000..683e3cc5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/dev.postinst @@ -0,0 +1,4 @@ +#!/bin/sh -e + +$PKG=libbaz1-dev + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/dev.prerm b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/dev.prerm new file mode 100644 index 00000000..683e3cc5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/dev.prerm @@ -0,0 +1,4 @@ +#!/bin/sh -e + +$PKG=libbaz1-dev + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/lib.postinst b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/lib.postinst new file mode 100644 index 00000000..ec0b98ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/lib.postinst @@ -0,0 +1,10 @@ +#!/bin/sh -e + +$PKG=libbaz1 + +if [ "$1" = "configure" ]; then + if [ -d /usr/doc -a ! -e /usr/doc/$PKG -a -d /usr/share/doc/$PKG ] +; then + ln -sf ../share/doc/$PKG /usr/doc/$PKG + fi +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/lib.prerm b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/lib.prerm new file mode 100644 index 00000000..50e37c3b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/lib.prerm @@ -0,0 +1,7 @@ +#!/bin/sh -e + +$PKG=libbaz1 + +if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/$PKG ]; then + rm -f /usr/doc/$PKG +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/lib.shlibs b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/lib.shlibs new file mode 100644 index 00000000..b88e2882 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/lib.shlibs @@ -0,0 +1,8 @@ +libdoesntexist2 1.0 libbaz1 +libdoesntexist2 1.0 libbaz1 +libbaz2 1.1 libbaz +libbaz3 1 libbaz1 (>> 1-1) +libbaz4 1 libbaz1 (= 1-1) +libbaz5 1 libbaz2 +udeb: libdoesntexist2 1.0 libbaz2 +udeb: libdoesntexist2 1.0 libbaz2 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/lib.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/lib.symbols new file mode 100644 index 00000000..72f9d8ab --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/lib.symbols @@ -0,0 +1,3 @@ +libbaz.so.2 libbaz1 #MINVER# + pw 1-1 + foo 1.1-1 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/rules new file mode 100755 index 00000000..fa99bc8a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/rules @@ -0,0 +1,121 @@ +#!/usr/bin/make -f + +lib_tmp=debian/tmp-lib +dev_tmp=debian/tmp-dev + +LIB=libbaz1 +DEV=libbaz1-dev + +VENDORARCH := $(shell perl -MConfig -wE'say substr($$Config{vendorarch},1)') + +build-arch: + $(MAKE) + +build-indep: + +build: build-arch build-indep + +clean: + $(MAKE) clean + dh_clean -plibbaz2 -plibbaz2-dev + rm -f debian/files debian/substvars + rm -rf $(lib_tmp) $(dev_tmp) + +# Now the correct libbaz2-dev package +binary-correct: + install -d debian/libbaz2-dev/usr/lib + cp -a libbaz2.a libbaz2.so debian/libbaz2-dev/usr/lib + # usually, I'd also include some .h files to /usr/include + + # Now the correct libbaz2 package + install -d debian/libbaz2/usr/lib + cp -a libbaz2.so.* debian/libbaz2/usr/lib + chmod a-x debian/libbaz2/usr/lib/* + + # General stuff that is tested in other testsets: + dh_installdocs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_compress -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + + # Mess up the libbaz2 changelog files to test the symlink handling. + ln -s /usr/share/doc/lintian/changelog.gz \ + debian/libbaz2/usr/share/doc/libbaz2/changelog.gz + install -m 644 debian/changelog \ + debian/libbaz2-dev/usr/share/doc/libbaz2-dev/foo + ln -s foo debian/libbaz2-dev/usr/share/doc/libbaz2-dev/changelog + + # Okay, if either line is omitted, it should be noted + dh_strip --dbg-package=libbaz2-dbg -plibbaz2 -plibbaz2-dev + dh_makeshlibs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_shlibdeps -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + + # and again, regular packaging stuff + dh_installdeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + echo udeb: libbaz2 1.0 libbaz2 >> debian/libbaz2/DEBIAN/shlibs + dh_gencontrol -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_builddeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + +# and the incorrect one +binary-arch: build-arch binary-correct + # first, the lib package + install -d $(lib_tmp)/usr/lib + # resp. no soname (check), wrong soname (check), and no-pic (check) + cp -a libbaz1.so.1.0* $(lib_tmp)/usr/lib + cp -a libbaz2.so.1.0.3b $(lib_tmp)/usr/lib/libfoo2.so.1.0.3b + install -m644 libbaz3.so.1.0.3b $(lib_tmp)/usr/lib/libbaz3.so.1.0.3b + # let's include the .a in the non-dev too (TODO) + # Also, libbaz1.a hasn't a symbol table (TODO) + cp -a *.a $(lib_tmp)/usr/lib + # And a wrong .so symlink (wrong, only in -dev, TODO) + ln -s libfoo3.so.0.9 $(lib_tmp)/usr/lib/libfoo3.so + # And a wrong .so.X symlink (wrong, should point to a real existing + # shlib, TODO) + ln -s libfoo.so.0.9.1 $(lib_tmp)/usr/lib/libfoo.so.0.9 + # And a plain .so (wrong, TODO) + touch $(lib_tmp)/usr/lib/libbar2.so + # And a non-versioned SONAME. + install -m644 libbaz.so $(lib_tmp)/usr/lib/libbaz.so + strip --remove-section=.comment --strip-unneeded $(lib_tmp)/usr/lib/libbaz.so + # Pretend to be a Perl module to test a lack of Perl dependencies. + install -d $(lib_tmp)/$(VENDORARCH)/auto/Foo + install -m 644 libbaz2.so.1.0.3b $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + strip $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + + install -d $(lib_tmp)/usr/share/doc/$(LIB) + install -m 644 debian/copyright $(lib_tmp)/usr/share/doc/$(LIB) + install -m 644 debian/changelog $(lib_tmp)/usr/share/doc/$(LIB) + gzip -n -9 $(lib_tmp)/usr/share/doc/$(LIB)/changelog + install -d $(lib_tmp)/DEBIAN + install -m 755 debian/lib.postinst $(lib_tmp)/DEBIAN/postinst + install -m 755 debian/lib.prerm $(lib_tmp)/DEBIAN/prerm + touch $(lib_tmp)/usr/share/doc/README.Debian + #dpkg-shlibdeps $(lib_tmp)/usr/lib/libbaz.so.1.0 + install -m 755 debian/lib.shlibs $(lib_tmp)/DEBIAN/shlibs + install -m 755 debian/lib.symbols $(lib_tmp)/DEBIAN/symbols + dpkg-gencontrol -isp -p$(LIB) -P$(lib_tmp) + dpkg --build $(lib_tmp) .. + + # now the -dev package + install -d $(dev_tmp)/usr/include + install -d $(lib_tmp)/usr/lib + # let's also install the .so at the same time... (wrong, TODO) + cp -a *.a *.so.* $(lib_tmp)/usr/lib + # and fuck up permission (TODO) + chmod a+x $(lib_tmp)/usr/lib/*.a + # Pretend to be a Perl module to test a lack of Perl dependencies. + install -d $(dev_tmp)/$(VENDORARCH)/auto/Foo + install -m 644 libbaz2.so.1.0.3b $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + strip $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + install -d $(dev_tmp)/usr/share/doc + ln -s $(LIB) $(dev_tmp)/usr/share/doc/$(DEV) + install -d $(dev_tmp)/DEBIAN + install -m 755 debian/dev.postinst $(dev_tmp)/DEBIAN/postinst + install -m 755 debian/dev.prerm $(dev_tmp)/DEBIAN/prerm + dpkg-gencontrol -isp -p$(DEV) -P$(dev_tmp) + dpkg --build $(dev_tmp) .. + + +binary: binary-arch + +# The mention of binary-indep here should be sufficient to suppress the +# warning that it's not present. +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/source.lintian-overrides b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/source.lintian-overrides new file mode 100644 index 00000000..6008d271 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/source.lintian-overrides @@ -0,0 +1 @@ +libbaz source: maintainer-script-lacks-debhelper-token diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/eval/hints new file mode 100644 index 00000000..8e668dcc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/eval/hints @@ -0,0 +1,20 @@ +libbaz2 (binary): no-symbols-control-file usr/lib/libbaz2.so.1.0.3b +libbaz1 (binary): symbols-for-undeclared-shared-library libbaz 2 +libbaz1 (binary): symbols-file-missing-build-depends-package-field libbaz.so.2 [symbols] +libbaz1 (binary): symbols-file-contains-debian-revision on symbol foo (libbaz.so.2) [symbols] +libbaz1 (binary): symbols-file-contains-current-version-with-debian-revision on symbol pw (libbaz.so.2) [symbols] +libbaz1 (binary): surplus-shared-library-symbols libbaz 2 [symbols] +libbaz1 (binary): ships-undeclared-shared-library libbaz2 1.0 for usr/lib/libfoo2.so.1.0.3b [shlibs] +libbaz1 (binary): shared-library-symbols-not-tracked libbaz3 1 for usr/lib/libbaz3.so.1.0.3b [symbols] +libbaz1 (binary): shared-library-symbols-not-tracked libbaz2 1.0 for usr/lib/libfoo2.so.1.0.3b [symbols] +libbaz1 (binary): shared-library-symbols-not-tracked libbaz.so for usr/lib/libbaz.so [symbols] +libbaz1 (binary): shared-library-not-shipped udeb: libdoesntexist2 1.0 [shlibs] +libbaz1 (binary): shared-library-not-shipped libdoesntexist2 1.0 [shlibs] +libbaz1 (binary): shared-library-not-shipped libbaz5 1 [shlibs] +libbaz1 (binary): shared-library-not-shipped libbaz4 1 [shlibs] +libbaz1 (binary): shared-library-not-shipped libbaz2 1.1 [shlibs] +libbaz1 (binary): shared-library-lacks-version usr/lib/libbaz.so libbaz.so +libbaz1 (binary): duplicate-in-shlibs (lines 7 8) udeb: libdoesntexist2 1.0 [shlibs] +libbaz1 (binary): duplicate-in-shlibs (lines 1 2) libdoesntexist2 1.0 [shlibs] +libbaz1 (binary): distant-prerequisite-in-shlibs libbaz2 [shlibs] +libbaz1 (binary): distant-prerequisite-in-shlibs libbaz1 (>> 1-1) [shlibs] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/extra.c b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/legacy-libbaz/extra.c new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/Makefile new file mode 100644 index 00000000..37bef22e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/Makefile @@ -0,0 +1,23 @@ +CC=gcc +CFLAGS+= -fPIC + +SONAMES:= libnoshf.so.1 libeshf.so.1 libunshf.so.1 libfdshf.so.1 \ + libdupshf.so.1 +LIBFILES:= $(patsubst %,%.0.1, $(SONAMES)) + +all: $(LIBFILES) + +$(LIBFILES): code.o + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^ -lc + +clean: + rm -f *.a *.o *.so* + +install: all + install -m 0755 -d $(DESTDIR)/usr/lib + install -m 0644 *.so* $(DESTDIR)/usr/lib + for FILE in $(SONAMES) ; do \ + ln -s $${FILE}.0.1 $(DESTDIR)/usr/lib/$$FILE ; \ + done + +.PHONY: install clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/ORIGIN new file mode 100644 index 00000000..5504d8ec --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/shlibs/shared-libs-control-file + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/code.c b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/code.c new file mode 100644 index 00000000..0ed08e05 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/code.c @@ -0,0 +1,15 @@ +#include +#include + +double e(void (*f)(char *)){ + char tmp[10]; + double x; + f(tmp); + x = atof(tmp); + return exp(x); +} + +double energy(double mass){ + return pow(10.0, 8.0) * pow(3.0, 2.0) * mass; +} + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/changelog new file mode 100644 index 00000000..1b8b5386 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/changelog @@ -0,0 +1,17 @@ +shared-libs-control-file (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-control-file + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +shared-libs-control-file (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-control-file + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/compat @@ -0,0 +1 @@ +9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/control new file mode 100644 index 00000000..902add7d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/control @@ -0,0 +1,57 @@ +Source: shared-libs-control-file +Priority: optional +Section: libs +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 9.20151004~) +Rules-Requires-Root: no + +Package: libnoshf1 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test checks related to shlibs files (no shlibs file) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + Checks for missing shlibs file. + +Package: libeshf1 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test checks related to shlibs files (empty shlibs file) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + Checks for empty shlibs file. + +Package: libunshf1 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test checks related to shlibs files (unused entry) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + Checks for unused entry in shlibs file. + +Package: libfdshf1 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test checks related to shlibs files (foreign dep) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + Checks for foreign dependency entry in shlibs file. + +Package: libdupshf1 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test checks related to shlibs files (dup entry) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + Checks for duplicate entry in shlibs file. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/libdupshf1.install b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/libdupshf1.install new file mode 100644 index 00000000..7452fe19 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/libdupshf1.install @@ -0,0 +1 @@ +usr/lib/libdupshf* diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/libdupshf1.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/libdupshf1.symbols new file mode 100644 index 00000000..166a3462 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/libdupshf1.symbols @@ -0,0 +1,3 @@ +libdupshf.so.1 libdupshf1 #MINVER# + e@Base 1.0 + energy@Base 0.9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/libeshf1.install b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/libeshf1.install new file mode 100644 index 00000000..5ef4c2db --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/libeshf1.install @@ -0,0 +1 @@ +usr/lib/libeshf* diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/libeshf1.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/libeshf1.symbols new file mode 100644 index 00000000..fdd02042 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/libeshf1.symbols @@ -0,0 +1,3 @@ +libeshf.so.1 libeshf1 #MINVER# + e@Base 1.0 + energy@Base 0.9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/libfdshf1.install b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/libfdshf1.install new file mode 100644 index 00000000..c01a3682 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/libfdshf1.install @@ -0,0 +1 @@ +usr/lib/libfdshf* diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/libfdshf1.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/libfdshf1.symbols new file mode 100644 index 00000000..4a188317 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/libfdshf1.symbols @@ -0,0 +1,3 @@ +libfdshf.so.1 libfdshf1 #MINVER# + e@Base 1.0 + energy@Base 0.9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/libnoshf1.install b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/libnoshf1.install new file mode 100644 index 00000000..175a915d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/libnoshf1.install @@ -0,0 +1 @@ +usr/lib/libnoshf* diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/libnoshf1.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/libnoshf1.symbols new file mode 100644 index 00000000..fef945e4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/libnoshf1.symbols @@ -0,0 +1,3 @@ +libnoshf.so.1 libnoshf1 #MINVER# + e@Base 1.0 + energy@Base 0.9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/libunshf1.install b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/libunshf1.install new file mode 100644 index 00000000..dcdae560 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/libunshf1.install @@ -0,0 +1 @@ +usr/lib/libunshf* diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/libunshf1.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/libunshf1.symbols new file mode 100644 index 00000000..737842d1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/libunshf1.symbols @@ -0,0 +1,3 @@ +libunshf.so.1 libunshf1 #MINVER# + e@Base 1.0 + energy@Base 0.9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/rules new file mode 100644 index 00000000..0cd4c154 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/rules @@ -0,0 +1,19 @@ +#!/usr/bin/make -f + +DUPSHF:=debian/libdupshf1/DEBIAN/shlibs + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +override_dh_builddeb: + # Work around "smart tools" that check the shlibs + # before installing them. + rm -f debian/libnoshf1/DEBIAN/shlibs + echo "# aloha" > debian/libeshf1/DEBIAN/shlibs + echo "libfoo 1 libunshf1 (> 0.1)" >> debian/libunshf1/DEBIAN/shlibs + sed -i 's/libfdshf1/libforeign1/' debian/libfdshf1/DEBIAN/shlibs + cat $(DUPSHF) $(DUPSHF) > $(DUPSHF).tmp + mv -f $(DUPSHF).tmp $(DUPSHF) + dh_builddeb diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/eval/hints new file mode 100644 index 00000000..87f69e65 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-control-file/eval/hints @@ -0,0 +1,11 @@ +libunshf1 (binary): symbols-file-missing-build-depends-package-field libunshf.so.1 [symbols] +libunshf1 (binary): shared-library-not-shipped libfoo 1 [shlibs] +libunshf1 (binary): outdated-relation-in-shlibs libunshf1 (> 0.1) [shlibs] +libnoshf1 (binary): symbols-file-missing-build-depends-package-field libnoshf.so.1 [symbols] +libnoshf1 (binary): no-shlibs usr/lib/libnoshf.so.1.0.1 +libfdshf1 (binary): symbols-file-missing-build-depends-package-field libfdshf.so.1 [symbols] +libfdshf1 (binary): distant-prerequisite-in-shlibs libforeign1 [shlibs] +libeshf1 (binary): symbols-file-missing-build-depends-package-field libeshf.so.1 [symbols] +libeshf1 (binary): ships-undeclared-shared-library libeshf 1 for usr/lib/libeshf.so.1.0.1 [shlibs] +libdupshf1 (binary): symbols-file-missing-build-depends-package-field libdupshf.so.1 [symbols] +libdupshf1 (binary): duplicate-in-shlibs (lines 1 2) libdupshf 1 [shlibs] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/Makefile new file mode 100644 index 00000000..decdff1a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/Makefile @@ -0,0 +1,27 @@ +CC=gcc +CFLAGS+= -fPIC + +SONAME:= libfoo-1.so +LSONAME:= libbar-1.so +devsymlink=$(shell echo $(1) | perl -pe 's:-[\d\.]*\.so$$:\.so:') +LIBFILES:=$(SONAME) $(LSONAME) + +all: $(LIBFILES) + +$(LIBFILES): code.o + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$@ $^ -lc + +clean: + rm -f *.a *.o *.so* + +install: all + install -m 0755 -d $(DESTDIR)/lib + install -m 0755 -d $(DESTDIR)/usr/lib + install -m 0755 -d $(DESTDIR)/usr/include + install -m 0644 $(LSONAME) $(DESTDIR)/lib + install -m 0644 $(SONAME) $(DESTDIR)/usr/lib + ln -s /lib/$(LSONAME) $(DESTDIR)/usr/lib/$(call devsymlink,$(LSONAME)) + ln -s $(SONAME) $(DESTDIR)/usr/lib/$(call devsymlink,$(SONAME)) + install -m 0644 code.h $(DESTDIR)/usr/include + +.PHONY: install clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/ORIGIN new file mode 100644 index 00000000..428f63ee --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/code.c b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/code.c new file mode 100644 index 00000000..9a887359 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/code.c @@ -0,0 +1,16 @@ +#include +#include +#include "code.h" + +double e(void (*f)(char *)){ + char tmp[10]; + double x; + f(tmp); + x = atof(tmp); + return exp(x); +} + +double energy(double mass){ + return pow(10.0, 8.0) * pow(3.0, 2.0) * mass; +} + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/code.h b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/code.h new file mode 100644 index 00000000..570beae3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/code.h @@ -0,0 +1,8 @@ +#ifndef CODE_H_ +#define CODE_H_ + +double e(void (*f)(char *)); + +double energy(double mass); + +#endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/changelog new file mode 100644 index 00000000..372211c0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/changelog @@ -0,0 +1,17 @@ +shared-libs-dev-symlink-fp (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-dev-symlink-fp + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +shared-libs-dev-symlink-fp (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-dev-symlink-fp + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/compat @@ -0,0 +1 @@ +9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/control new file mode 100644 index 00000000..f9914e94 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/control @@ -0,0 +1,27 @@ +Source: shared-libs-dev-symlink-fp +Priority: optional +Section: libs +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 9.20151004~) +Rules-Requires-Root: no + +Package: libfoo-1 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test against dev symlink fp + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libfoo-dev +Architecture: any +Section: libdevel +Depends: ${shlibs:Depends}, ${misc:Depends}, + libfoo-1 (= ${binary:Version}) +Description: Test against dev symlink fp - dev + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + Dev package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/libfoo-1.install b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/libfoo-1.install new file mode 100644 index 00000000..cb060ec6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/libfoo-1.install @@ -0,0 +1,2 @@ +lib/libbar-1.so +usr/lib/libfoo-1.so diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/libfoo-1.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/libfoo-1.symbols new file mode 100644 index 00000000..910a1e5b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/libfoo-1.symbols @@ -0,0 +1,7 @@ +libfoo-1.so libfoo-1 #MINVER# + e@Base 1.0 + energy@Base 0.9 + +libbar-1.so libfoo-1 #MINVER# + e@Base 1.0 + energy@Base 0.9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/libfoo-dev.install b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/libfoo-dev.install new file mode 100644 index 00000000..ed7b1467 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/libfoo-dev.install @@ -0,0 +1,3 @@ +usr/include +usr/lib/libbar.so +usr/lib/libfoo.so diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/eval/hints new file mode 100644 index 00000000..09ab005d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink-fp/eval/hints @@ -0,0 +1,2 @@ +libfoo-1 (binary): symbols-file-missing-build-depends-package-field libfoo-1.so [symbols] +libfoo-1 (binary): symbols-file-missing-build-depends-package-field libbar-1.so [symbols] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/Makefile new file mode 100644 index 00000000..a7a50b9f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/Makefile @@ -0,0 +1,24 @@ +CC=gcc +CFLAGS+= -fPIC + +SONAMES:= libfoo.so.1 +LIBFILES:= $(patsubst %,%.0.1, $(SONAMES)) + +all: $(LIBFILES) + +$(LIBFILES): code.o + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^ -lc + +clean: + rm -f *.a *.o *.so* + +install: all + install -m 0755 -d $(DESTDIR)/usr/lib + install -m 0755 -d $(DESTDIR)/usr/include + install -m 0644 *.so* $(DESTDIR)/usr/lib + for FILE in $(SONAMES) ; do \ + ln -s $${FILE}.0.1 $(DESTDIR)/usr/lib/$$FILE ; \ + done + install -m 0644 code.h $(DESTDIR)/usr/include + +.PHONY: install clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/ORIGIN new file mode 100644 index 00000000..562add0c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/shlibs/shared-libs-dev-symlink + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/code.c b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/code.c new file mode 100644 index 00000000..9a887359 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/code.c @@ -0,0 +1,16 @@ +#include +#include +#include "code.h" + +double e(void (*f)(char *)){ + char tmp[10]; + double x; + f(tmp); + x = atof(tmp); + return exp(x); +} + +double energy(double mass){ + return pow(10.0, 8.0) * pow(3.0, 2.0) * mass; +} + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/code.h b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/code.h new file mode 100644 index 00000000..570beae3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/code.h @@ -0,0 +1,8 @@ +#ifndef CODE_H_ +#define CODE_H_ + +double e(void (*f)(char *)); + +double energy(double mass); + +#endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/changelog new file mode 100644 index 00000000..dd28b309 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/changelog @@ -0,0 +1,17 @@ +shared-libs-dev-symlink (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-dev-symlink + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +shared-libs-dev-symlink (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-dev-symlink + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/compat @@ -0,0 +1 @@ +9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/control new file mode 100644 index 00000000..514a93e1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/control @@ -0,0 +1,27 @@ +Source: shared-libs-dev-symlink +Priority: optional +Section: libs +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 9.20151004~) +Rules-Requires-Root: no + +Package: libfoo1 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test checks related to dev symlink + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libfoo-dev +Architecture: any +Section: libdevel +Depends: ${shlibs:Depends}, ${misc:Depends}, + libfoo1 (= ${binary:Version}) +Description: Test checks related to dev symlink - dev + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + Dev package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/libfoo-dev.install b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/libfoo-dev.install new file mode 100644 index 00000000..e43b95cb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/libfoo-dev.install @@ -0,0 +1 @@ +usr/include diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/libfoo1.install b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/libfoo1.install new file mode 100644 index 00000000..08fa063f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/libfoo1.install @@ -0,0 +1 @@ +usr/lib/libfoo.so.* diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/libfoo1.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/libfoo1.symbols new file mode 100644 index 00000000..a1f052b2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/libfoo1.symbols @@ -0,0 +1,3 @@ +libfoo.so.1 libfoo1 #MINVER# + e@Base 1.0 + energy@Base 0.9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/eval/hints new file mode 100644 index 00000000..a7f8c306 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-dev-symlink/eval/hints @@ -0,0 +1 @@ +libfoo1 (binary): symbols-file-missing-build-depends-package-field libfoo.so.1 [symbols] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/Makefile new file mode 100644 index 00000000..09972893 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/Makefile @@ -0,0 +1,23 @@ +CC=gcc +CFLAGS+= -fPIC + +SONAMES:= libexecbit.so.1 libbadperm.so.1 +LIBFILES:= $(patsubst %,%.0.1, $(SONAMES)) + +all: $(LIBFILES) + +$(LIBFILES): code.o + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^ -lc + +clean: + rm -f *.a *.o *.so* + +install: all + install -m 0755 -d $(DESTDIR)/usr/lib + install -m 0755 *execbit*.so* $(DESTDIR)/usr/lib + install -m 0600 *badperm*.so* $(DESTDIR)/usr/lib + for FILE in $(SONAMES) ; do \ + ln -s $${FILE}.0.1 $(DESTDIR)/usr/lib/$$FILE ; \ + done + +.PHONY: install clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/ORIGIN new file mode 100644 index 00000000..3bb36da7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/shlibs/shared-libs-exec-bit + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/code.c b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/code.c new file mode 100644 index 00000000..0ed08e05 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/code.c @@ -0,0 +1,15 @@ +#include +#include + +double e(void (*f)(char *)){ + char tmp[10]; + double x; + f(tmp); + x = atof(tmp); + return exp(x); +} + +double energy(double mass){ + return pow(10.0, 8.0) * pow(3.0, 2.0) * mass; +} + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/debian/changelog new file mode 100644 index 00000000..964c3e13 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/debian/changelog @@ -0,0 +1,17 @@ +shared-libs-exec-bit (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-exec-bit + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +shared-libs-exec-bit (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-exec-bit + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/debian/compat @@ -0,0 +1 @@ +9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/debian/control new file mode 100644 index 00000000..f473cb39 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/debian/control @@ -0,0 +1,15 @@ +Source: shared-libs-exec-bit +Priority: optional +Section: libs +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 9.20151004~) +Rules-Requires-Root: no + +Package: libexecbit1 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test checks related to libs with exec bit + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/debian/libexecbit1.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/debian/libexecbit1.symbols new file mode 100644 index 00000000..d8226ca0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/debian/libexecbit1.symbols @@ -0,0 +1,3 @@ +libexecbit.so.1 libexecbit1 #MINVER# + e@Base 1.0 + energy@Base 0.9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/debian/rules new file mode 100644 index 00000000..9082f3fd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +override_dh_fixperms: + # Do nothing, TYIA diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/eval/hints new file mode 100644 index 00000000..b576dcd9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-bit/eval/hints @@ -0,0 +1,2 @@ +libexecbit1 (binary): symbols-file-missing-build-depends-package-field libexecbit.so.1 [symbols] +libexecbit1 (binary): symbols-file-missing-build-depends-package-field libbadperm.so.1 [symbols] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/Makefile new file mode 100644 index 00000000..17548913 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/Makefile @@ -0,0 +1,22 @@ +CC=gcc +CFLAGS+= -fPIC + +SONAMES:= libexecstack.so.1 +LIBFILES:= $(patsubst %,%.0.1, $(SONAMES)) + +all: $(LIBFILES) + +$(LIBFILES): foo.o get.o + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^ + +clean: + rm -f *.a *.o *.so* + +install: all + install -m 0755 -d $(DESTDIR)/usr/lib + install -m 0755 *.so* $(DESTDIR)/usr/lib + for FILE in $(SONAMES) ; do \ + ln -s $${FILE}.0.1 $(DESTDIR)/usr/lib/$$FILE ; \ + done + +.PHONY: install clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/ORIGIN new file mode 100644 index 00000000..a1c139ea --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/shlibs/shared-libs-exec-stack + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/debian/changelog new file mode 100644 index 00000000..708c858c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/debian/changelog @@ -0,0 +1,17 @@ +shared-libs-exec-stack (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-exec-stack + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +shared-libs-exec-stack (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-exec-stack + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/debian/compat @@ -0,0 +1 @@ +9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/debian/control new file mode 100644 index 00000000..b8b71a1f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/debian/control @@ -0,0 +1,15 @@ +Source: shared-libs-exec-stack +Priority: optional +Section: libs +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 9.20151004~) +Rules-Requires-Root: no + +Package: libexecstack1 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test checks related to libs with exec stack + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/debian/libexecstack1.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/debian/libexecstack1.symbols new file mode 100644 index 00000000..1cc72aec --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/debian/libexecstack1.symbols @@ -0,0 +1,3 @@ +libexecstack.so.1 libexecstack1 #MINVER# + foo@Base 1.0 + get@Base 1.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/eval/hints new file mode 100644 index 00000000..57bd1d2e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/eval/hints @@ -0,0 +1 @@ +libexecstack1 (binary): symbols-file-missing-build-depends-package-field libexecstack.so.1 [symbols] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/foo.c b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/foo.c new file mode 100644 index 00000000..7f417990 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/foo.c @@ -0,0 +1,9 @@ +extern int get(int, int (*)(int)); + +int foo(int a) { + int b = a; + int bar(int a) { + return a + b; + } + return get(a, bar); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/get.c b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/get.c new file mode 100644 index 00000000..82076377 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exec-stack/get.c @@ -0,0 +1,6 @@ +int get(int a, int (*f)(int)) { + return f(a); +} + +extern int foo(int); + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/Makefile new file mode 100644 index 00000000..68d58636 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/Makefile @@ -0,0 +1,22 @@ +CC=gcc +CFLAGS+= -fPIC + +SONAMES:= libexecbit.so.1 +LIBFILES:= $(patsubst %,%.0.1, $(SONAMES)) + +all: $(LIBFILES) + +$(LIBFILES): code.o + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^ -lc + +clean: + rm -f *.a *.o *.so* + +install: all + install -m 0755 -d $(DESTDIR)/usr/lib + install -m 0755 *.so* $(DESTDIR)/usr/lib + for FILE in $(SONAMES) ; do \ + ln -s $${FILE}.0.1 $(DESTDIR)/usr/lib/$$FILE ; \ + done + +.PHONY: install clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/ORIGIN new file mode 100644 index 00000000..c4b560ef --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/shlibs/shared-libs-exit-fork + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/code.c b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/code.c new file mode 100644 index 00000000..df63394a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/code.c @@ -0,0 +1,12 @@ +#include +#include + +double e(void (*f)(char *)){ + char tmp[10]; + double x; + f(tmp); + x = atof(tmp); + if (fork() != 0) + exit(1); + return x; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/debian/changelog new file mode 100644 index 00000000..53766d0e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/debian/changelog @@ -0,0 +1,17 @@ +shared-libs-exit-fork (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-exit-fork + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +shared-libs-exit-fork (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-exit-fork + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/debian/compat @@ -0,0 +1 @@ +9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/debian/control new file mode 100644 index 00000000..4ca1097b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/debian/control @@ -0,0 +1,15 @@ +Source: shared-libs-exit-fork +Priority: optional +Section: libs +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 9.20151004~) +Rules-Requires-Root: no + +Package: libexecbit1 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test checks related to libs invoking both exit(3) and fork(2) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/debian/libexecbit1.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/debian/libexecbit1.symbols new file mode 100644 index 00000000..0b268339 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/debian/libexecbit1.symbols @@ -0,0 +1,2 @@ +libexecbit.so.1 libexecbit1 #MINVER# + e@Base 1.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/eval/hints new file mode 100644 index 00000000..61057350 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit-fork/eval/hints @@ -0,0 +1 @@ +libexecbit1 (binary): symbols-file-missing-build-depends-package-field libexecbit.so.1 [symbols] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/Makefile new file mode 100644 index 00000000..68d58636 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/Makefile @@ -0,0 +1,22 @@ +CC=gcc +CFLAGS+= -fPIC + +SONAMES:= libexecbit.so.1 +LIBFILES:= $(patsubst %,%.0.1, $(SONAMES)) + +all: $(LIBFILES) + +$(LIBFILES): code.o + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^ -lc + +clean: + rm -f *.a *.o *.so* + +install: all + install -m 0755 -d $(DESTDIR)/usr/lib + install -m 0755 *.so* $(DESTDIR)/usr/lib + for FILE in $(SONAMES) ; do \ + ln -s $${FILE}.0.1 $(DESTDIR)/usr/lib/$$FILE ; \ + done + +.PHONY: install clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/ORIGIN new file mode 100644 index 00000000..13afdd97 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/shlibs/shared-libs-exit + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/code.c b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/code.c new file mode 100644 index 00000000..297a4e89 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/code.c @@ -0,0 +1,13 @@ +#include + +double e(void (*f)(char *)){ + char tmp[10]; + double x; + f(tmp); + x = atof(tmp); + if (x < 0.0) { + exit(1); + } else { + return x; + } +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/debian/changelog new file mode 100644 index 00000000..15514e2b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/debian/changelog @@ -0,0 +1,17 @@ +shared-libs-exit (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-exit + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +shared-libs-exit (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-exit + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/debian/compat @@ -0,0 +1 @@ +9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/debian/control new file mode 100644 index 00000000..eb04d7ef --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/debian/control @@ -0,0 +1,15 @@ +Source: shared-libs-exit +Priority: optional +Section: libs +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 9.20151004~) +Rules-Requires-Root: no + +Package: libexecbit1 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test checks related to libs invoking exit(3) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/debian/libexecbit1.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/debian/libexecbit1.symbols new file mode 100644 index 00000000..0b268339 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/debian/libexecbit1.symbols @@ -0,0 +1,2 @@ +libexecbit.so.1 libexecbit1 #MINVER# + e@Base 1.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/eval/hints new file mode 100644 index 00000000..61057350 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-exit/eval/hints @@ -0,0 +1 @@ +libexecbit1 (binary): symbols-file-missing-build-depends-package-field libexecbit.so.1 [symbols] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/Makefile new file mode 100644 index 00000000..2e3306ee --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/Makefile @@ -0,0 +1,20 @@ +CC=gcc +CFLAGS+= -fPIC + +SONAMES:= libfoo.so.1 +LIBFILES:= $(patsubst %,%.0.1, $(SONAMES)) + +all: $(LIBFILES) + +$(LIBFILES): code.o + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^ -lc + +clean: + rm -f *.a *.o *.so* + +install: all + install -m 0755 -d $(DESTDIR)/usr/lib + install -m 0644 *.so* $(DESTDIR)/usr/lib + install -T -m 0644 *.so* $(DESTDIR)/usr/lib/libfoo.so.1 + +.PHONY: install clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/ORIGIN new file mode 100644 index 00000000..a5fe11e8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/shlibs/shared-libs-ldconfig-not-symlink + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/code.c b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/code.c new file mode 100644 index 00000000..0ed08e05 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/code.c @@ -0,0 +1,15 @@ +#include +#include + +double e(void (*f)(char *)){ + char tmp[10]; + double x; + f(tmp); + x = atof(tmp); + return exp(x); +} + +double energy(double mass){ + return pow(10.0, 8.0) * pow(3.0, 2.0) * mass; +} + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/debian/changelog new file mode 100644 index 00000000..934768cf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/debian/changelog @@ -0,0 +1,17 @@ +shared-libs-ldconfig-not-symlink (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-ldconfig-not-symlink + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +shared-libs-ldconfig-not-symlink (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-ldconfig-not-symlink + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/debian/compat @@ -0,0 +1 @@ +9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/debian/control new file mode 100644 index 00000000..459b8afb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/debian/control @@ -0,0 +1,15 @@ +Source: shared-libs-ldconfig-not-symlink +Priority: optional +Section: libs +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 9.20151004~) +Rules-Requires-Root: no + +Package: libfoo1 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test ldconfig symlink not being a symlink + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/debian/libfoo1.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/debian/libfoo1.symbols new file mode 100644 index 00000000..a1f052b2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/debian/libfoo1.symbols @@ -0,0 +1,3 @@ +libfoo.so.1 libfoo1 #MINVER# + e@Base 1.0 + energy@Base 0.9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/eval/hints new file mode 100644 index 00000000..a7f8c306 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/eval/hints @@ -0,0 +1 @@ +libfoo1 (binary): symbols-file-missing-build-depends-package-field libfoo.so.1 [symbols] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/Makefile new file mode 100644 index 00000000..4d3c2863 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/Makefile @@ -0,0 +1,22 @@ +CC=gcc +CFLAGS+= -fPIC + +SONAMES:= libfoo.so.1 libfish.so.1 libuns.so.1 +LIBFILES:= $(patsubst %,%.0.1, $(SONAMES)) + +all: $(LIBFILES) + +$(LIBFILES): code.o + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^ -lm + +clean: + rm -f *.a *.o *.so* + +install: all + install -m 0755 -d $(DESTDIR)/usr/lib + install -m 0644 *.so* $(DESTDIR)/usr/lib + for FILE in $(SONAMES) ; do \ + ln -s $${FILE}.0.1 $(DESTDIR)/usr/lib/$$FILE ; \ + done + +.PHONY: install clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/ORIGIN new file mode 100644 index 00000000..05cfe19f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/app b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/app new file mode 100755 index 00000000..04f1961b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/app @@ -0,0 +1,2 @@ +#!/bin/sh +echo Hello World diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/code.c b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/code.c new file mode 100644 index 00000000..0ed08e05 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/code.c @@ -0,0 +1,15 @@ +#include +#include + +double e(void (*f)(char *)){ + char tmp[10]; + double x; + f(tmp); + x = atof(tmp); + return exp(x); +} + +double energy(double mass){ + return pow(10.0, 8.0) * pow(3.0, 2.0) * mass; +} + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/app.install b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/app.install new file mode 100644 index 00000000..fe6951df --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/app.install @@ -0,0 +1,2 @@ +app usr/lib/app + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/app.postinst b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/app.postinst new file mode 100755 index 00000000..3e67b7e6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/app.postinst @@ -0,0 +1,6 @@ +#!/bin/sh +set -e + +ldconfig + +#DEBHELPER# diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/app.postrm b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/app.postrm new file mode 100755 index 00000000..eaeb28d2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/app.postrm @@ -0,0 +1,6 @@ +#!/bin/sh +set -e + +if [ "$1" = remove ] ; then ldconfig ; fi + +#DEBHELPER# diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/app.triggers b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/app.triggers new file mode 100644 index 00000000..dd866036 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/app.triggers @@ -0,0 +1 @@ +activate-noawait ldconfig diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/changelog new file mode 100644 index 00000000..0766029c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/changelog @@ -0,0 +1,17 @@ +shared-libs-ldconfig-scripts (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-ldconfig-scripts + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +shared-libs-ldconfig-scripts (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-ldconfig-scripts + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/compat @@ -0,0 +1 @@ +9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/control new file mode 100644 index 00000000..ad03471e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/control @@ -0,0 +1,47 @@ +Source: shared-libs-ldconfig-scripts +Priority: optional +Section: libs +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 9.20151004~) +Rules-Requires-Root: no + +Package: libfoo1 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test checks related to ldconfig in scripts (missing ldc) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + Checks for missing ldconfig in scripts. + +Package: libfish1 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test checks related to ldconfig in scripts (preinst/rm ldc) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + Checks for ldconfig in preinst/prerm scripts. + +Package: libuns1 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test checks related to ldconfig in scripts (unsafe ldc) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + Checks for unsafe ldconfig usage scripts. + +Package: app +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test checks related to ldconfig in scripts (useless ldc) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + Checks for useless ldconfig usage in scripts. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/libfish1.install b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/libfish1.install new file mode 100644 index 00000000..b1c4ec98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/libfish1.install @@ -0,0 +1 @@ +usr/lib/libfish* diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/libfish1.preinst b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/libfish1.preinst new file mode 100755 index 00000000..3e67b7e6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/libfish1.preinst @@ -0,0 +1,6 @@ +#!/bin/sh +set -e + +ldconfig + +#DEBHELPER# diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/libfish1.prerm b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/libfish1.prerm new file mode 100755 index 00000000..3e67b7e6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/libfish1.prerm @@ -0,0 +1,6 @@ +#!/bin/sh +set -e + +ldconfig + +#DEBHELPER# diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/libfish1.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/libfish1.symbols new file mode 100644 index 00000000..2c5a075f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/libfish1.symbols @@ -0,0 +1,3 @@ +libfish.so.1 libfish1 #MINVER# + e@Base 1.0 + energy@Base 0.9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/libfoo1.install b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/libfoo1.install new file mode 100644 index 00000000..f3a3a052 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/libfoo1.install @@ -0,0 +1 @@ +usr/lib/libfoo* diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/libfoo1.postinst b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/libfoo1.postinst new file mode 100755 index 00000000..2615bf97 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/libfoo1.postinst @@ -0,0 +1,8 @@ +#!/bin/sh +set -e + +# No ldconfig +if false ; then true ; fi + +# -- we will remove all debhelper stuff later. +#DEBHELPER# diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/libfoo1.postrm b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/libfoo1.postrm new file mode 100755 index 00000000..9b2f6369 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/libfoo1.postrm @@ -0,0 +1,8 @@ +#!/bin/sh +set -e + +if false ; then true ; fi + + +# -- we will remove all debhelper stuff later. +#DEBHELPER# diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/libfoo1.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/libfoo1.symbols new file mode 100644 index 00000000..a1f052b2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/libfoo1.symbols @@ -0,0 +1,3 @@ +libfoo.so.1 libfoo1 #MINVER# + e@Base 1.0 + energy@Base 0.9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/libuns1.install b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/libuns1.install new file mode 100644 index 00000000..b91d5ff0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/libuns1.install @@ -0,0 +1 @@ +usr/lib/libuns* diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/libuns1.postrm b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/libuns1.postrm new file mode 100755 index 00000000..acc5d156 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/libuns1.postrm @@ -0,0 +1,8 @@ +#!/bin/sh +set -e + +ldconfig + + +# -- we will remove all debhelper stuff later. +#DEBHELPER# diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/libuns1.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/libuns1.symbols new file mode 100644 index 00000000..d91149f0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/libuns1.symbols @@ -0,0 +1,3 @@ +libuns.so.1 libuns1 #MINVER# + e@Base 1.0 + energy@Base 0.9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/rules new file mode 100755 index 00000000..b1c71a96 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/rules @@ -0,0 +1,21 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +override_dh_builddeb: + for P in $$(dh_listpackages) ; do \ + for S in postinst postrm preinst prerm ; do \ + if [ -f debian/$${P}.$${S} ] ; then \ + cp -af debian/$${P}.$${S} debian/$${P}/DEBIAN/$${S} ; \ + chmod 0755 debian/$${P}/DEBIAN/$${S} ; \ + sed -i '/#DEBHELPER#/ d' debian/$${P}/DEBIAN/$${S} ; \ + fi ; \ + done ; \ + done + # Work around debhelper adding triggers instead of explicit + # ldconfig calls + rm -f debian/libfoo1/DEBIAN/triggers + dh_builddeb diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/eval/hints new file mode 100644 index 00000000..67c138b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-scripts/eval/hints @@ -0,0 +1,3 @@ +libuns1 (binary): symbols-file-missing-build-depends-package-field libuns.so.1 [symbols] +libfoo1 (binary): symbols-file-missing-build-depends-package-field libfoo.so.1 [symbols] +libfish1 (binary): symbols-file-missing-build-depends-package-field libfish.so.1 [symbols] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/Makefile new file mode 100644 index 00000000..373cbd2e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/Makefile @@ -0,0 +1,22 @@ +CC=gcc +CFLAGS+= -fPIC + +SONAMES:= libfoo.so.1 +LIBFILES:= $(patsubst %,%.0.1, $(SONAMES)) + +all: $(LIBFILES) + +$(LIBFILES): code.o + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^ -lc + +clean: + rm -f *.a *.o *.so* + +install: all + install -m 0755 -d $(DESTDIR)/usr/lib + install -m 0644 *.so* $(DESTDIR)/usr/lib + echo "Strauss: Also Sprach Zarathustra" > \ + $(DESTDIR)/usr/lib/some-other-file + ln -s some-other-file $(DESTDIR)/usr/lib/libfoo.so.1 + +.PHONY: install clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/ORIGIN new file mode 100644 index 00000000..1953cb18 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/shlibs/shared-libs-ldconfig-wrong-file + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/code.c b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/code.c new file mode 100644 index 00000000..0ed08e05 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/code.c @@ -0,0 +1,15 @@ +#include +#include + +double e(void (*f)(char *)){ + char tmp[10]; + double x; + f(tmp); + x = atof(tmp); + return exp(x); +} + +double energy(double mass){ + return pow(10.0, 8.0) * pow(3.0, 2.0) * mass; +} + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/debian/changelog new file mode 100644 index 00000000..55253de2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/debian/changelog @@ -0,0 +1,17 @@ +shared-libs-ldconfig-wrong-file (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-ldconfig-wrong-file + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +shared-libs-ldconfig-wrong-file (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-ldconfig-wrong-file + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/debian/compat @@ -0,0 +1 @@ +9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/debian/control new file mode 100644 index 00000000..ae63e7aa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/debian/control @@ -0,0 +1,15 @@ +Source: shared-libs-ldconfig-wrong-file +Priority: optional +Section: libs +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 9.20151004~) +Rules-Requires-Root: no + +Package: libfoo1 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test ldconfig symlink with wrong target + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/debian/libfoo1.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/debian/libfoo1.symbols new file mode 100644 index 00000000..a1f052b2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/debian/libfoo1.symbols @@ -0,0 +1,3 @@ +libfoo.so.1 libfoo1 #MINVER# + e@Base 1.0 + energy@Base 0.9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/eval/hints new file mode 100644 index 00000000..a7f8c306 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/eval/hints @@ -0,0 +1 @@ +libfoo1 (binary): symbols-file-missing-build-depends-package-field libfoo.so.1 [symbols] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/Makefile new file mode 100644 index 00000000..6de68688 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/Makefile @@ -0,0 +1,19 @@ +CC=gcc +CFLAGS+= -fPIC + +SONAMES:= libexecbit.so.1 +LIBFILES:= $(patsubst %,%.0.1, $(SONAMES)) + +all: $(LIBFILES) + +$(LIBFILES): code.o + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^ -lc + +clean: + rm -f *.a *.o *.so* + +install: all + install -m 0755 -d $(DESTDIR)/usr/lib + install -m 0755 *.so* $(DESTDIR)/usr/lib + +.PHONY: install clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/ORIGIN new file mode 100644 index 00000000..11c6cb4a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/code.c b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/code.c new file mode 100644 index 00000000..65887f30 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/code.c @@ -0,0 +1,10 @@ +#include +#include + +double e(void (*f)(char *)){ + char tmp[10]; + double x; + f(tmp); + x = atof(tmp); + return exp(x); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/debian/changelog new file mode 100644 index 00000000..8dab3be6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/debian/changelog @@ -0,0 +1,17 @@ +shared-libs-missing-ldconfig-symlink (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-missing-ldconfig-symlink + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +shared-libs-missing-ldconfig-symlink (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-missing-ldconfig-symlink + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/debian/compat @@ -0,0 +1 @@ +9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/debian/control new file mode 100644 index 00000000..72c99e22 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/debian/control @@ -0,0 +1,15 @@ +Source: shared-libs-missing-ldconfig-symlink +Priority: optional +Section: libs +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 9.20151004~) +Rules-Requires-Root: no + +Package: libexecbit1 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for missing ldconfig symlink for shared libs + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/debian/libexecbit1.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/debian/libexecbit1.symbols new file mode 100644 index 00000000..0b268339 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/debian/libexecbit1.symbols @@ -0,0 +1,2 @@ +libexecbit.so.1 libexecbit1 #MINVER# + e@Base 1.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/eval/hints new file mode 100644 index 00000000..61057350 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/eval/hints @@ -0,0 +1 @@ +libexecbit1 (binary): symbols-file-missing-build-depends-package-field libexecbit.so.1 [symbols] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/Makefile new file mode 100644 index 00000000..ac55af7f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/Makefile @@ -0,0 +1,22 @@ +CC=gcc +CFLAGS+= -fPIC + +SONAMES:= libhallo.so.1 +LIBFILES:= $(patsubst %,%.0.1, $(SONAMES)) + +all: $(LIBFILES) + +$(LIBFILES): code.o + $(CC) $(LDFLAGS) -fPIC -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^ -lc + +clean: + rm -f *.a *.o *.so* + +install: all + install -m 0755 -d $(DESTDIR)/usr/lib + install -m 0755 *.so* $(DESTDIR)/usr/lib + for FILE in $(SONAMES) ; do \ + ln -s $${FILE}.0.1 $(DESTDIR)/usr/lib/$$FILE ; \ + done + +.PHONY: install clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/ORIGIN new file mode 100644 index 00000000..b1bb0a33 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/shlibs/shared-libs-multi-arch-foreign + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/code.c b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/code.c new file mode 100644 index 00000000..65887f30 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/code.c @@ -0,0 +1,10 @@ +#include +#include + +double e(void (*f)(char *)){ + char tmp[10]; + double x; + f(tmp); + x = atof(tmp); + return exp(x); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/debian/changelog new file mode 100644 index 00000000..fd40e050 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/debian/changelog @@ -0,0 +1,17 @@ +shared-libs-multi-arch-foreign (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-multi-arch-foreign + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +shared-libs-multi-arch-foreign (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-multi-arch-foreign + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/debian/compat @@ -0,0 +1 @@ +9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/debian/control new file mode 100644 index 00000000..cf4b5659 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/debian/control @@ -0,0 +1,16 @@ +Source: shared-libs-multi-arch-foreign +Priority: optional +Section: libs +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 9.20151004~) +Rules-Requires-Root: no + +Package: libhallo1 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Multi-Arch: foreign +Description: Test for shared libs in m-a foreign pkgs + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/debian/libhallo1.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/debian/libhallo1.symbols new file mode 100644 index 00000000..4c27e3f0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/debian/libhallo1.symbols @@ -0,0 +1,2 @@ +libhallo.so.1 libhallo1 #MINVER# + e@Base 1.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/eval/hints new file mode 100644 index 00000000..8a5512dc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-multi-arch-foreign/eval/hints @@ -0,0 +1 @@ +libhallo1 (binary): symbols-file-missing-build-depends-package-field libhallo.so.1 [symbols] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/Makefile new file mode 100644 index 00000000..8d357a8c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/Makefile @@ -0,0 +1,23 @@ +CC=gcc +CFLAGS+= -fPIC + +SONAMES:= libhallo.so.1 +LIBFILES:= $(patsubst %,%.0.1, $(SONAMES)) + +all: $(LIBFILES) + +$(LIBFILES): code.o + $(CC) $(LDFLAGS) -fPIC -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^ -lc + ./erase-pt-gnu-stack $@ + +clean: + rm -f *.a *.o *.so* + +install: all + install -m 0755 -d $(DESTDIR)/usr/lib + install -m 0755 *.so* $(DESTDIR)/usr/lib + for FILE in $(SONAMES) ; do \ + ln -s $${FILE}.0.1 $(DESTDIR)/usr/lib/$$FILE ; \ + done + +.PHONY: install clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/ORIGIN new file mode 100644 index 00000000..9b0f74cf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/code.c b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/code.c new file mode 100644 index 00000000..65887f30 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/code.c @@ -0,0 +1,10 @@ +#include +#include + +double e(void (*f)(char *)){ + char tmp[10]; + double x; + f(tmp); + x = atof(tmp); + return exp(x); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/debian/changelog new file mode 100644 index 00000000..4167250c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/debian/changelog @@ -0,0 +1,17 @@ +shared-libs-no-gnu-stack (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-no-gnu-stack + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +shared-libs-no-gnu-stack (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-no-gnu-stack + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/debian/compat @@ -0,0 +1 @@ +9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/debian/control new file mode 100644 index 00000000..17992c3f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/debian/control @@ -0,0 +1,15 @@ +Source: shared-libs-no-gnu-stack +Priority: optional +Section: libs +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 9.20151004~) +Rules-Requires-Root: no + +Package: libhallo1 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for shared libs without PT_GNU_STACK + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/debian/libhallo1.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/debian/libhallo1.symbols new file mode 100644 index 00000000..4c27e3f0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/debian/libhallo1.symbols @@ -0,0 +1,2 @@ +libhallo.so.1 libhallo1 #MINVER# + e@Base 1.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/erase-pt-gnu-stack b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/erase-pt-gnu-stack new file mode 100755 index 00000000..d3b7e595 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/erase-pt-gnu-stack @@ -0,0 +1,9 @@ +#!/usr/bin/perl -pi + +use strict; +use warnings; + +my $PT_GNU_STACK = 0x6474e551; +my $be = pack('L>', $PT_GNU_STACK); +my $le = pack('L<', $PT_GNU_STACK); +s/\Q$be\E|\Q$le\E/\0\0\0\0/g; diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/eval/hints new file mode 100644 index 00000000..8a5512dc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-gnu-stack/eval/hints @@ -0,0 +1 @@ +libhallo1 (binary): symbols-file-missing-build-depends-package-field libhallo.so.1 [symbols] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/ORIGIN new file mode 100644 index 00000000..5de5f82b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/shlibs/shared-libs-no-shared-lib + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/debian/changelog new file mode 100644 index 00000000..f04eed8e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/debian/changelog @@ -0,0 +1,17 @@ +shared-libs-no-shared-lib (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-no-shared-lib + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +shared-libs-no-shared-lib (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-no-shared-lib + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/debian/control new file mode 100644 index 00000000..87c236c9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/debian/control @@ -0,0 +1,15 @@ +Source: shared-libs-no-shared-lib +Priority: optional +Section: libs +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no + +Package: libfoo1 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test checks shlib without SO + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/debian/libfoo1.install b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/debian/libfoo1.install new file mode 100644 index 00000000..1d2eaab1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/debian/libfoo1.install @@ -0,0 +1 @@ +some-lib usr/lib diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/debian/libfoo1.shlibs b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/debian/libfoo1.shlibs new file mode 100644 index 00000000..f233a647 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/debian/libfoo1.shlibs @@ -0,0 +1 @@ +libfoo 1 libfoo1 (>= 1.0) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/debian/libfoo1.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/debian/libfoo1.symbols new file mode 100644 index 00000000..a1f052b2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/debian/libfoo1.symbols @@ -0,0 +1,3 @@ +libfoo.so.1 libfoo1 #MINVER# + e@Base 1.0 + energy@Base 0.9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/eval/hints new file mode 100644 index 00000000..38aca0a5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/eval/hints @@ -0,0 +1 @@ +libfoo1 (binary): empty-shlibs [shlibs] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/some-lib b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/some-lib new file mode 100644 index 00000000..5707e12b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-no-shared-lib/some-lib @@ -0,0 +1 @@ +Aloah world diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/Makefile new file mode 100644 index 00000000..b62fa17b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/Makefile @@ -0,0 +1,21 @@ +CC=gcc +CFLAGS+= -fPIC + +SONAMES:= libfoo.so.1 +LIBFILES:= $(patsubst %,%.0.1, $(SONAMES)) + +all: $(LIBFILES) + +$(LIBFILES): code.o + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^ -lc + +clean: + rm -f *.a *.o *.so* + +install: all + install -m 0755 -d $(DESTDIR)/usr/lib + install -m 0644 *.so* $(DESTDIR)/usr/lib + ln -s libfoo.so.1.0.1 $(DESTDIR)/usr/lib/libfoo.so.1 + ln -s libfoo.so.1.0.1 $(DESTDIR)/usr/lib/libfoo.so + +.PHONY: install clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/ORIGIN new file mode 100644 index 00000000..6c0e1170 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/code.c b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/code.c new file mode 100644 index 00000000..0ed08e05 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/code.c @@ -0,0 +1,15 @@ +#include +#include + +double e(void (*f)(char *)){ + char tmp[10]; + double x; + f(tmp); + x = atof(tmp); + return exp(x); +} + +double energy(double mass){ + return pow(10.0, 8.0) * pow(3.0, 2.0) * mass; +} + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/debian/changelog new file mode 100644 index 00000000..6a9c7fd5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/debian/changelog @@ -0,0 +1,17 @@ +shared-libs-non-dev-symlink (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-non-dev-symlink + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +shared-libs-non-dev-symlink (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-non-dev-symlink + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/debian/compat @@ -0,0 +1 @@ +9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/debian/control new file mode 100644 index 00000000..59c706ea --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/debian/control @@ -0,0 +1,15 @@ +Source: shared-libs-non-dev-symlink +Priority: optional +Section: libs +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 9.20151004~) +Rules-Requires-Root: no + +Package: libfoo1 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test checks related to dev symlink + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/debian/libfoo1.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/debian/libfoo1.symbols new file mode 100644 index 00000000..a1f052b2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/debian/libfoo1.symbols @@ -0,0 +1,3 @@ +libfoo.so.1 libfoo1 #MINVER# + e@Base 1.0 + energy@Base 0.9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/eval/hints new file mode 100644 index 00000000..a7f8c306 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-dev-symlink/eval/hints @@ -0,0 +1 @@ +libfoo1 (binary): symbols-file-missing-build-depends-package-field libfoo.so.1 [symbols] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/Makefile new file mode 100644 index 00000000..c5ec48c8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/Makefile @@ -0,0 +1,26 @@ +CC=gcc + +NOPICOBJS=non-pic.o +SONAME:=libbaz3.so.1 + +NOPIC_CFLAGS = $(CFLAGS) -fno-PIE +NOPIC_LDFLAGS = $(LDFLAGS) -fno-PIE -fno-pie + +all: libbaz3.so.1.0.3b + +# Non-PIC. We can't test this on all architectures +libbaz3.so.1.0.3b: $(NOPICOBJS) + $(CC) $(NOPIC_LDFLAGS) -o $@ -shared -Wl,-soname,$(SONAME) $^ -lc + +%.o: %.c + $(CC) $(NOPIC_CFLAGS) $(CPPFLAGS) -o $@ -c $< + +clean: + rm -f *.a *.o *.so* *.sho + +install: all + install -m 0755 -d $(DESTDIR)/usr/lib + install -m 0644 *.so* $(DESTDIR)/usr/lib + ln -s libbaz3.so.1.0.3b $(DESTDIR)/usr/lib/$(SONAME) + +.PHONY: install clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/ORIGIN new file mode 100644 index 00000000..879515d0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386 + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/debian/changelog new file mode 100644 index 00000000..d57f3918 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/debian/changelog @@ -0,0 +1,17 @@ +shared-libs-non-pic-i386 (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-non-pic-i386 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +shared-libs-non-pic-i386 (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-non-pic-i386 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/debian/compat @@ -0,0 +1 @@ +9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/debian/control new file mode 100644 index 00000000..2d5dde80 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/debian/control @@ -0,0 +1,16 @@ +Source: shared-libs-non-pic-i386 +Priority: optional +Section: libs +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 9.20151004~) +Rules-Requires-Root: no + +Package: libbaz3-1 +Architecture: i386 +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test checks related to non-pic code + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/debian/symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/debian/symbols new file mode 100644 index 00000000..63ba04d4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/debian/symbols @@ -0,0 +1,3 @@ +libbaz3.so libbaz3-1 #MINVER# + pw@Base 1.0 + stackprotfix@Base 1.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/eval/hints new file mode 100644 index 00000000..13e63f6b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/eval/hints @@ -0,0 +1 @@ +libbaz3-1 (binary): symbols-file-missing-build-depends-package-field libbaz3.so.1 [symbols] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/non-pic.c b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/non-pic.c new file mode 100644 index 00000000..f0fa7192 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-non-pic-i386/non-pic.c @@ -0,0 +1,11 @@ +#include +#include + +double pw(double p){ + return exp(p); +} + +void stackprotfix(void (*f)(char *, size_t)) { + char buffer[10]; + f(buffer, sizeof(buffer)); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/Makefile new file mode 100644 index 00000000..5ab4ec1f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/Makefile @@ -0,0 +1,22 @@ +CC=gcc +CFLAGS+= -fPIC + +SONAMES:= libfoo.so.1 libsym.so.1 libesym.so.1 +LIBFILES:= $(patsubst %,%.0.1, $(SONAMES)) + +all: $(LIBFILES) + +$(LIBFILES): code.o + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^ -lc + +clean: + rm -f *.a *.o *.so* + +install: all + install -m 0755 -d $(DESTDIR)/usr/lib + install -m 0644 *.so* $(DESTDIR)/usr/lib + for FILE in $(SONAMES) ; do \ + ln -s $${FILE}.0.1 $(DESTDIR)/usr/lib/$$FILE ; \ + done + +.PHONY: install clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/ORIGIN new file mode 100644 index 00000000..4494b056 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/shlibs/shared-libs-symbols-file + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/code.c b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/code.c new file mode 100644 index 00000000..0ed08e05 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/code.c @@ -0,0 +1,15 @@ +#include +#include + +double e(void (*f)(char *)){ + char tmp[10]; + double x; + f(tmp); + x = atof(tmp); + return exp(x); +} + +double energy(double mass){ + return pow(10.0, 8.0) * pow(3.0, 2.0) * mass; +} + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/changelog new file mode 100644 index 00000000..a5c5b10e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/changelog @@ -0,0 +1,17 @@ +shared-libs-symbols-file (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-symbols-file + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +shared-libs-symbols-file (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-symbols-file + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/compat @@ -0,0 +1 @@ +9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/control new file mode 100644 index 00000000..68fe1a02 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/control @@ -0,0 +1,48 @@ +Source: shared-libs-symbols-file +Priority: optional +Section: libs +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper (>= 9.20151004~) +Rules-Requires-Root: no + +Package: libfoo1 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test checks related to symbols files (deb revision) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + Checks for deb revisions in symbols files and other brokenness. + +Package: libsym1 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test checks related to symbols files (missing) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + Checks for missing symbol file. + + +Package: libesym1 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test checks related to symbols files (empty symbols) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + Checks for empty symbol file/missing shlib in symbols file. + +Package: nolibrary +Architecture: all +Depends: ${misc:Depends} +Description: Test checks related to symbols files (not a library) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + Check for shipping a symbols file without a library. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/libesym1.install b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/libesym1.install new file mode 100644 index 00000000..750092c9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/libesym1.install @@ -0,0 +1 @@ +usr/lib/libesym* diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/libfoo1.install b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/libfoo1.install new file mode 100644 index 00000000..f3a3a052 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/libfoo1.install @@ -0,0 +1 @@ +usr/lib/libfoo* diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/libfoo1.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/libfoo1.symbols new file mode 100644 index 00000000..7b916091 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/libfoo1.symbols @@ -0,0 +1,10 @@ +libfoo.so.1 libfoo1 #MINVER# + e@Base 1.0-1 + energy@Base 0.9-1 + +# duplicate +# - e@Base has a bad index +# - energy@Base is a syntax error (missing version) +libfoo.so.1 libfoo1 #MINVER# + e@Base 1.0 1 + energy@Base diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/libsym1.install b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/libsym1.install new file mode 100644 index 00000000..7faef4f7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/libsym1.install @@ -0,0 +1 @@ +usr/lib/libsym* diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/nolibrary.install b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/nolibrary.install new file mode 100644 index 00000000..241d3701 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/nolibrary.install @@ -0,0 +1 @@ +someconf.conf etc/ diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/rules new file mode 100644 index 00000000..9ef2bb20 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/rules @@ -0,0 +1,17 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +override_dh_builddeb: + # Apparently some of the tools are too smart to install + # a redundant/empty symbols file in the package, so here + # is a non-empty useless symbols file! + echo "# Aloha!" > debian/libesym1/DEBIAN/symbols + echo "# Aloha!" > debian/nolibrary/DEBIAN/symbols + # ... they are also too smart to install slightly broken + # variants of symbols files + install -m 0644 debian/libfoo1.symbols debian/libfoo1/DEBIAN/symbols + dh_builddeb diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/eval/hints new file mode 100644 index 00000000..d7b03076 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/eval/hints @@ -0,0 +1,9 @@ +nolibrary (binary): empty-shared-library-symbols [symbols] +libsym1 (binary): no-symbols-control-file usr/lib/libsym.so.1.0.1 +libfoo1 (binary): syntax-error-in-symbols-file [symbols:10] +libfoo1 (binary): symbols-file-missing-build-depends-package-field libfoo.so.1 [symbols] +libfoo1 (binary): symbols-file-contains-debian-revision on symbol energy@Base (libfoo.so.1) [symbols] +libfoo1 (binary): symbols-file-contains-current-version-with-debian-revision on symbol e@Base (libfoo.so.1) [symbols] +libfoo1 (binary): invalid-template-id-in-symbols-file 1 [symbols:9] +libfoo1 (binary): duplicate-entry-in-symbols-control-file (lines 1 8) libfoo 1 [symbols] +libesym1 (binary): shared-library-symbols-not-tracked libesym 1 for usr/lib/libesym.so.1.0.1 [symbols] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/someconf.conf b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/someconf.conf new file mode 100644 index 00000000..16940ead --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-symbols-file/someconf.conf @@ -0,0 +1,2 @@ +# Yada yada yada +Var=Val diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/Makefile new file mode 100644 index 00000000..daf74d1b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/Makefile @@ -0,0 +1,15 @@ +CC = gcc + +all: libfoo.so + +libfoo.so: foo.o + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libfoo.so $^ -lc + +%.o: %.c + $(CC) $(CFLAGS) $(CPPFLAGS) -fPIC -o $@ -c $< + +install: + install -d $(DESTDIR)/usr/lib + install -m644 libfoo.so $(DESTDIR)/usr/lib/ + +.PHONY: distclean realclean clean install test check diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/ORIGIN new file mode 100644 index 00000000..b3044ccb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/shlibs/shared-libs-unversioned + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/debian/changelog new file mode 100644 index 00000000..3801c2c4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/debian/changelog @@ -0,0 +1,17 @@ +shared-libs-unversioned (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-unversioned + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +shared-libs-unversioned (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: shared-libs-unversioned + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/debian/control new file mode 100644 index 00000000..0c6ad563 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/debian/control @@ -0,0 +1,15 @@ +Source: shared-libs-unversioned +Priority: optional +Section: libs +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no + +Package: libfoo +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test handling of shared libraries without versioned SONAMEs + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/debian/rules new file mode 100755 index 00000000..f60e347d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# Do this manually so it works with jessie's debhelper without +# breaking of stretch because we get two triggers. +# - This rules file can be removed once lintian requires +# debhelper/9.20160403 or newer. +override_dh_makeshlibs: + dh_makeshlibs -n diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/debian/symbols b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/debian/symbols new file mode 100644 index 00000000..76a969fe --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/debian/symbols @@ -0,0 +1,2 @@ +libfoo.so libfoo #MINVER# + foo@Base 1.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/debian/triggers b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/debian/triggers new file mode 100644 index 00000000..dd866036 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/debian/triggers @@ -0,0 +1 @@ +activate-noawait ldconfig diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/eval/hints new file mode 100644 index 00000000..eee1d97a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/eval/hints @@ -0,0 +1,2 @@ +libfoo (binary): symbols-file-missing-build-depends-package-field libfoo.so [symbols] +libfoo (binary): shared-library-lacks-version usr/lib/libfoo.so libfoo.so diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/foo.c b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/foo.c new file mode 100644 index 00000000..aa323d55 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/shlibs/shared-libs-unversioned/foo.c @@ -0,0 +1,24 @@ +/* + * Be sure that this library uses a function from libc. Otherwise, gcc is + * smart enough not to link it with libc and we get more tags for missing + * dependency lines. + */ + +#include +#include +#include + +double e(void (*f)(char *)){ + char tmp[10]; + double x; + f(tmp); + x = atof(tmp); + return exp(x); +} + +int +foo(int num) +{ + printf("%d\n", num); + return num * 42; +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-classifications/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-classifications/ORIGIN new file mode 100644 index 00000000..549a76be --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-classifications/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/source-dir/debian-source-dir-classifications + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-classifications/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-classifications/debian/changelog new file mode 100644 index 00000000..2cfce545 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-classifications/debian/changelog @@ -0,0 +1,17 @@ +debian-source-dir-classifications (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debian-source-dir-classifications + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debian-source-dir-classifications (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debian-source-dir-classifications + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-classifications/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-classifications/debian/control new file mode 100644 index 00000000..72fc09f7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-classifications/debian/control @@ -0,0 +1,17 @@ +Source: debian-source-dir-classifications +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: debian-source-dir-classifications +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for d-s-d classifications tags + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-classifications/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-classifications/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-classifications/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-classifications/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-classifications/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-classifications/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-classifications/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-classifications/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-classifications/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-classifications/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-classifications/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-classifications/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-classifications/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-classifications/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-classifications/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-classifications/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-classifications/eval/hints new file mode 100644 index 00000000..a3bdc6ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-classifications/eval/hints @@ -0,0 +1 @@ +debian-source-dir-classifications (source): source-format 3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-custom-compression-settings/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-custom-compression-settings/ORIGIN new file mode 100644 index 00000000..76076b18 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-custom-compression-settings/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/source-dir/debian-source-dir-custom-compression-settings + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-custom-compression-settings/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-custom-compression-settings/debian/changelog new file mode 100644 index 00000000..9749cc8b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-custom-compression-settings/debian/changelog @@ -0,0 +1,17 @@ +debian-source-dir-custom-compression-settings (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debian-source-dir-custom-compression-settings + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debian-source-dir-custom-compression-settings (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debian-source-dir-custom-compression-settings + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-custom-compression-settings/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-custom-compression-settings/debian/control new file mode 100644 index 00000000..3adf02ee --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-custom-compression-settings/debian/control @@ -0,0 +1,17 @@ +Source: debian-source-dir-custom-compression-settings +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: debian-source-dir-custom-compression-settings +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for custom compression settings in debian/source/format + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-custom-compression-settings/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-custom-compression-settings/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-custom-compression-settings/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-custom-compression-settings/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-custom-compression-settings/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-custom-compression-settings/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-custom-compression-settings/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-custom-compression-settings/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-custom-compression-settings/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-custom-compression-settings/debian/source/options b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-custom-compression-settings/debian/source/options new file mode 100644 index 00000000..22a4de9f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-custom-compression-settings/debian/source/options @@ -0,0 +1,2 @@ +compression = xz +compression-level = 9 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-custom-compression-settings/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-custom-compression-settings/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-custom-compression-settings/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-custom-compression-settings/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-custom-compression-settings/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-custom-compression-settings/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-custom-compression-settings/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-custom-compression-settings/eval/hints new file mode 100644 index 00000000..f03bb46e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-custom-compression-settings/eval/hints @@ -0,0 +1,3 @@ +debian-source-dir-custom-compression-settings (source): source-format 3.0 (native) +debian-source-dir-custom-compression-settings (source): custom-compression-in-debian-source-options compression-level = 9 [debian/source/options:2] +debian-source-dir-custom-compression-settings (source): custom-compression-in-debian-source-options compression = xz [debian/source/options:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-general/ORIGIN new file mode 100644 index 00000000..c63b0d81 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/source-dir/debian-source-dir-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-general/debian/changelog new file mode 100644 index 00000000..0abeaf74 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-general/debian/changelog @@ -0,0 +1,17 @@ +debian-source-dir-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: debian-source-dir-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debian-source-dir-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debian-source-dir-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-general/debian/control new file mode 100644 index 00000000..d7776485 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-general/debian/control @@ -0,0 +1,17 @@ +Source: debian-source-dir-general +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: debian-source-dir-general +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: General tests for debian/source/* checks + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-general/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-general/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-general/debian/source/formt b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-general/debian/source/formt new file mode 100644 index 00000000..d3827e75 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-general/debian/source/formt @@ -0,0 +1 @@ +1.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-general/eval/hints new file mode 100644 index 00000000..c9d8043e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-general/eval/hints @@ -0,0 +1,4 @@ +debian-source-dir-general (source): unknown-file-in-debian-source [debian/source/formt] +debian-source-dir-general (source): source-format 1.0 [implicit native] +debian-source-dir-general (source): older-source-format 1.0 +debian-source-dir-general (source): missing-debian-source-format diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/ORIGIN new file mode 100644 index 00000000..644b801c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/an_empty_file b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/an_empty_file new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/debian/changelog new file mode 100644 index 00000000..82a38563 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/debian/changelog @@ -0,0 +1,17 @@ +debian-source-dir-gitpkg-series (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debian-source-dir-gitpkg-series + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debian-source-dir-gitpkg-series (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debian-source-dir-gitpkg-series + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/debian/control new file mode 100644 index 00000000..5e1b4109 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/debian/control @@ -0,0 +1,17 @@ +Source: debian-source-dir-gitpkg-series +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: debian-source-dir-gitpkg-series +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for trivial series file in git-patches-not-exported + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/debian/patches/series b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/debian/patches/series new file mode 100644 index 00000000..94cd91e1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/debian/patches/series @@ -0,0 +1,11 @@ +# some line that ends with quilt-patches-deb-export-hook +# this looks like series file + + # but really it is just a bunch + +# of blank + +# lines + +# and # + # comments diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/debian/source/git-patches b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/debian/source/git-patches new file mode 100644 index 00000000..359925d1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/debian/source/git-patches @@ -0,0 +1,11 @@ +upstream/$UPSTREAM_VERSION..patches/$DEB_VERSION + + + # this is an indented comment + + + + # some more blank lines + + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/eval/hints new file mode 100644 index 00000000..8e9437c6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg-series/eval/hints @@ -0,0 +1,2 @@ +debian-source-dir-gitpkg-series (source): source-format 3.0 (quilt) +debian-source-dir-gitpkg-series (source): git-patches-not-exported [debian/patches/series] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/ORIGIN new file mode 100644 index 00000000..cec33c1a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/debian/changelog new file mode 100644 index 00000000..dad209c5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/debian/changelog @@ -0,0 +1,17 @@ +debian-source-dir-gitpkg (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debian-source-dir-gitpkg + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +debian-source-dir-gitpkg (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: debian-source-dir-gitpkg + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/debian/control new file mode 100644 index 00000000..9c50e180 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/debian/control @@ -0,0 +1,17 @@ +Source: debian-source-dir-gitpkg +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: debian-source-dir-gitpkg +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for false positives in git-patches-not-exported + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/debian/source/git-patches b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/debian/source/git-patches new file mode 100644 index 00000000..be4c03c6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/debian/source/git-patches @@ -0,0 +1,11 @@ +# upstream/$UPSTREAM_VERSION..patches/$DEB_VERSION + + + # this is an indented comment + + + + # some more blank lines + + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/eval/hints new file mode 100644 index 00000000..6212855d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/debian-source-dir-gitpkg/eval/hints @@ -0,0 +1 @@ +debian-source-dir-gitpkg (source): source-format 3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/source-format-1.0/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/source-format-1.0/ORIGIN new file mode 100644 index 00000000..f3adf7df --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/source-format-1.0/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/source-dir/source-format-1.0 + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/source-format-1.0/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/source-format-1.0/debian/changelog new file mode 100644 index 00000000..94b32e39 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/source-format-1.0/debian/changelog @@ -0,0 +1,17 @@ +source-format-1.0 (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-format-1.0 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +source-format-1.0 (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: source-format-1.0 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/source-format-1.0/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/source-format-1.0/debian/control new file mode 100644 index 00000000..fbe9e565 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/source-format-1.0/debian/control @@ -0,0 +1,17 @@ +Source: source-format-1.0 +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: source-format-1.0 +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: General tests for debian/source/* checks + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/source-format-1.0/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/source-format-1.0/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/source-format-1.0/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/source-format-1.0/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/source-format-1.0/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/source-format-1.0/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/source-format-1.0/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/source-format-1.0/debian/source/format new file mode 100644 index 00000000..d3827e75 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/source-format-1.0/debian/source/format @@ -0,0 +1 @@ +1.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/source-format-1.0/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/source-format-1.0/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/source-format-1.0/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/source-format-1.0/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/source-format-1.0/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/source-format-1.0/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/source-format-1.0/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/source-format-1.0/eval/hints new file mode 100644 index 00000000..3fdf38fa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source-dir/source-format-1.0/eval/hints @@ -0,0 +1,2 @@ +source-format-1.0 (source): source-format 1.0 [native] +source-format-1.0 (source): older-source-format 1.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source/include-binaries/non-existing-file/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/source/include-binaries/non-existing-file/ORIGIN new file mode 100644 index 00000000..955be16e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source/include-binaries/non-existing-file/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/source/include-binaries/non-existing-file + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source/include-binaries/non-existing-file/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/source/include-binaries/non-existing-file/debian/changelog new file mode 100644 index 00000000..71b4eb18 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source/include-binaries/non-existing-file/debian/changelog @@ -0,0 +1,17 @@ +non-existing-file (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: non-existing-file + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +non-existing-file (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: non-existing-file + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source/include-binaries/non-existing-file/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/source/include-binaries/non-existing-file/debian/control new file mode 100644 index 00000000..59787adc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source/include-binaries/non-existing-file/debian/control @@ -0,0 +1,17 @@ +Source: non-existing-file +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: non-existing-file +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: An entry in d/source/include-binaries does not exist. + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source/include-binaries/non-existing-file/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/source/include-binaries/non-existing-file/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source/include-binaries/non-existing-file/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source/include-binaries/non-existing-file/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/source/include-binaries/non-existing-file/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source/include-binaries/non-existing-file/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source/include-binaries/non-existing-file/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/source/include-binaries/non-existing-file/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source/include-binaries/non-existing-file/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source/include-binaries/non-existing-file/debian/source/include-binaries b/packages/debmagic/tests/lintian-parity/checks/debian/source/include-binaries/non-existing-file/debian/source/include-binaries new file mode 100644 index 00000000..c14271d1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source/include-binaries/non-existing-file/debian/source/include-binaries @@ -0,0 +1,3 @@ +# the format should tolerate this comment +# and whitespace around the filename + debian/icon.png diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source/include-binaries/non-existing-file/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/source/include-binaries/non-existing-file/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source/include-binaries/non-existing-file/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source/include-binaries/non-existing-file/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/source/include-binaries/non-existing-file/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source/include-binaries/non-existing-file/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/source/include-binaries/non-existing-file/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/source/include-binaries/non-existing-file/eval/hints new file mode 100644 index 00000000..78e2e5da --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/source/include-binaries/non-existing-file/eval/hints @@ -0,0 +1 @@ +non-existing-file (source): unused-entry-in-debian-source-include-binaries debian/icon.png [debian/source/include-binaries:3] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/.arch-inventory b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/.arch-inventory new file mode 100644 index 00000000..db895b7f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/.arch-inventory @@ -0,0 +1 @@ +diff-contains-arch-inventory-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/.be/foo b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/.be/foo new file mode 100644 index 00000000..c64bbe85 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/.be/foo @@ -0,0 +1 @@ +diff-contains-bts-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/.bzr/foo b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/.bzr/foo new file mode 100644 index 00000000..f8270b6b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/.bzr/foo @@ -0,0 +1 @@ +diff-contains-bzr-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/.hg/foo b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/.hg/foo new file mode 100644 index 00000000..5cd5b94f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/.hg/foo @@ -0,0 +1 @@ +diff-contains-hg-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/.hgtags b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/.hgtags new file mode 100644 index 00000000..3187d159 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/.hgtags @@ -0,0 +1 @@ +diff-contains-hg-tags-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/.pc/foo b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/.pc/foo new file mode 100644 index 00000000..b688c751 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/.pc/foo @@ -0,0 +1 @@ +diff-contains-quilt-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/.svn/format b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/.svn/format new file mode 100644 index 00000000..d9d5d1b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/.svn/format @@ -0,0 +1 @@ +diff-contains-svn-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/CMakeCache.txt b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/CMakeCache.txt new file mode 100644 index 00000000..f21f3894 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/CMakeCache.txt @@ -0,0 +1 @@ +diff-contains-cmake-cache-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/CVS/Entries b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/CVS/Entries new file mode 100644 index 00000000..ed6f152a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/CVS/Entries @@ -0,0 +1 @@ +diff-contains-cvs-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/ORIGIN new file mode 100644 index 00000000..2a3d5621 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/substvars/cruft-general-diff + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/debian/changelog new file mode 100644 index 00000000..0ab24e36 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/debian/changelog @@ -0,0 +1,17 @@ +cruft-general-diff (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-general-diff + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +cruft-general-diff (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-general-diff + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/debian/control new file mode 100644 index 00000000..c2d5e985 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/debian/control @@ -0,0 +1,17 @@ +Source: cruft-general-diff +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: cruft-general-diff +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for cruft added in the diff + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/debian/rules new file mode 100755 index 00000000..413418b3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_prep: + dh_prep -X~ -Xrej + +clean: + @echo 'Do nothing' diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/debian/somepackage.substvars b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/debian/somepackage.substvars new file mode 100644 index 00000000..abd3ebeb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/debian/somepackage.substvars @@ -0,0 +1 @@ +misc:Depends= diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/debian/source/format new file mode 100644 index 00000000..d3827e75 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/debian/source/format @@ -0,0 +1 @@ +1.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/debian/substvars b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/debian/substvars new file mode 100644 index 00000000..abd3ebeb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/debian/substvars @@ -0,0 +1 @@ +misc:Depends= diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/eval/hints new file mode 100644 index 00000000..97f50c58 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/eval/hints @@ -0,0 +1,2 @@ +cruft-general-diff (source): source-contains-debian-substvars [debian/substvars] +cruft-general-diff (source): source-contains-debian-substvars [debian/somepackage.substvars] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/foo.r1352 b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/foo.r1352 new file mode 100644 index 00000000..4249927e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/foo.r1352 @@ -0,0 +1 @@ +diff-contains-svn-conflict-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/foo.rej b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/foo.rej new file mode 100644 index 00000000..02ef3beb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/foo.rej @@ -0,0 +1 @@ +diff-contains-patch-failure-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/svk-commit444.tmp b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/svk-commit444.tmp new file mode 100644 index 00000000..3025663f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/svk-commit444.tmp @@ -0,0 +1 @@ +diff-contains-svk-commit-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/svn-commit.tmp b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/svn-commit.tmp new file mode 100644 index 00000000..4a26aa0c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/svn-commit.tmp @@ -0,0 +1 @@ +diff-contains-svn-commit-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/{arch}/foo b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/{arch}/foo new file mode 100644 index 00000000..ca1b833e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-diff/{arch}/foo @@ -0,0 +1 @@ +diff-contains-arch-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/.arch-inventory b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/.arch-inventory new file mode 100644 index 00000000..db895b7f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/.arch-inventory @@ -0,0 +1 @@ +diff-contains-arch-inventory-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/.be/foo b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/.be/foo new file mode 100644 index 00000000..c64bbe85 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/.be/foo @@ -0,0 +1 @@ +diff-contains-bts-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/.bzr/foo b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/.bzr/foo new file mode 100644 index 00000000..f8270b6b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/.bzr/foo @@ -0,0 +1 @@ +diff-contains-bzr-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/.hg/foo b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/.hg/foo new file mode 100644 index 00000000..5cd5b94f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/.hg/foo @@ -0,0 +1 @@ +diff-contains-hg-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/.hgtags b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/.hgtags new file mode 100644 index 00000000..3187d159 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/.hgtags @@ -0,0 +1 @@ +diff-contains-hg-tags-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/.svn/format b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/.svn/format new file mode 100644 index 00000000..d9d5d1b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/.svn/format @@ -0,0 +1 @@ +diff-contains-svn-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/CMakeCache.txt b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/CMakeCache.txt new file mode 100644 index 00000000..f21f3894 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/CMakeCache.txt @@ -0,0 +1 @@ +diff-contains-cmake-cache-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/CVS/Entries b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/CVS/Entries new file mode 100644 index 00000000..ed6f152a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/CVS/Entries @@ -0,0 +1 @@ +diff-contains-cvs-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/ORIGIN new file mode 100644 index 00000000..586b35d9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/substvars/cruft-general-native + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/debian/changelog new file mode 100644 index 00000000..5f416166 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/debian/changelog @@ -0,0 +1,17 @@ +cruft-general-native (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-general-native + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +cruft-general-native (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-general-native + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/debian/control new file mode 100644 index 00000000..a85f3351 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/debian/control @@ -0,0 +1,17 @@ +Source: cruft-general-native +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: cruft-general-native +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for cruft in a native package + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/debian/rules new file mode 100755 index 00000000..413418b3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_prep: + dh_prep -X~ -Xrej + +clean: + @echo 'Do nothing' diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/debian/substvars b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/debian/substvars new file mode 100644 index 00000000..abd3ebeb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/debian/substvars @@ -0,0 +1 @@ +misc:Depends= diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/eval/hints new file mode 100644 index 00000000..f7b0898c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/eval/hints @@ -0,0 +1 @@ +cruft-general-native (source): source-contains-debian-substvars [debian/substvars] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/foo.r1352 b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/foo.r1352 new file mode 100644 index 00000000..4249927e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/foo.r1352 @@ -0,0 +1 @@ +diff-contains-svn-conflict-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/foo.rej b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/foo.rej new file mode 100644 index 00000000..02ef3beb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/foo.rej @@ -0,0 +1 @@ +diff-contains-patch-failure-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/svk-commit444.tmp b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/svk-commit444.tmp new file mode 100644 index 00000000..3025663f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/svk-commit444.tmp @@ -0,0 +1 @@ +diff-contains-svk-commit-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/svn-commit.tmp b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/svn-commit.tmp new file mode 100644 index 00000000..4a26aa0c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/svn-commit.tmp @@ -0,0 +1 @@ +diff-contains-svn-commit-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/{arch}/foo b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/{arch}/foo new file mode 100644 index 00000000..ca1b833e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-native/{arch}/foo @@ -0,0 +1 @@ +diff-contains-arch-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/ORIGIN new file mode 100644 index 00000000..3ab5053d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/substvars/cruft-general-quilt + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/.arch-inventory b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/.arch-inventory new file mode 100644 index 00000000..db895b7f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/.arch-inventory @@ -0,0 +1 @@ +diff-contains-arch-inventory-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/.be/foo b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/.be/foo new file mode 100644 index 00000000..c64bbe85 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/.be/foo @@ -0,0 +1 @@ +diff-contains-bts-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/.bzr/foo b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/.bzr/foo new file mode 100644 index 00000000..f8270b6b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/.bzr/foo @@ -0,0 +1 @@ +diff-contains-bzr-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/.hg/foo b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/.hg/foo new file mode 100644 index 00000000..5cd5b94f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/.hg/foo @@ -0,0 +1 @@ +diff-contains-hg-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/.hgtags b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/.hgtags new file mode 100644 index 00000000..3187d159 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/.hgtags @@ -0,0 +1 @@ +diff-contains-hg-tags-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/.pc/foo b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/.pc/foo new file mode 100644 index 00000000..b688c751 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/.pc/foo @@ -0,0 +1 @@ +diff-contains-quilt-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/.svn/format b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/.svn/format new file mode 100644 index 00000000..d9d5d1b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/.svn/format @@ -0,0 +1 @@ +diff-contains-svn-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/CMakeCache.txt b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/CMakeCache.txt new file mode 100644 index 00000000..f21f3894 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/CMakeCache.txt @@ -0,0 +1 @@ +diff-contains-cmake-cache-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/CVS/Entries b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/CVS/Entries new file mode 100644 index 00000000..ed6f152a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/CVS/Entries @@ -0,0 +1 @@ +diff-contains-cvs-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/README.source b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/README.source new file mode 100644 index 00000000..0bbaa60a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/README.source @@ -0,0 +1 @@ +Some information about the patch system diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/changelog new file mode 100644 index 00000000..fd8cfbee --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/changelog @@ -0,0 +1,17 @@ +cruft-general-quilt (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-general-quilt + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +cruft-general-quilt (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-general-quilt + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/control new file mode 100644 index 00000000..5593c9d8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/control @@ -0,0 +1,17 @@ +Source: cruft-general-quilt +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: cruft-general-quilt +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for cruft added in a 3.0 (quilt) package + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/foo.r1352 b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/foo.r1352 new file mode 100644 index 00000000..4249927e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/foo.r1352 @@ -0,0 +1 @@ +diff-contains-svn-conflict-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/foo.rej b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/foo.rej new file mode 100644 index 00000000..02ef3beb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/foo.rej @@ -0,0 +1 @@ +diff-contains-patch-failure-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/rules new file mode 100755 index 00000000..413418b3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_prep: + dh_prep -X~ -Xrej + +clean: + @echo 'Do nothing' diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/somepackage.substvars b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/somepackage.substvars new file mode 100644 index 00000000..abd3ebeb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/somepackage.substvars @@ -0,0 +1 @@ +misc:Depends= diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/substvars b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/substvars new file mode 100644 index 00000000..abd3ebeb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/substvars @@ -0,0 +1 @@ +misc:Depends= diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/svk-commit444.tmp b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/svk-commit444.tmp new file mode 100644 index 00000000..3025663f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/svk-commit444.tmp @@ -0,0 +1 @@ +diff-contains-svk-commit-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/svn-commit.tmp b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/svn-commit.tmp new file mode 100644 index 00000000..4a26aa0c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/svn-commit.tmp @@ -0,0 +1 @@ +diff-contains-svn-commit-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/{arch}/foo b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/{arch}/foo new file mode 100644 index 00000000..ca1b833e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/debian/{arch}/foo @@ -0,0 +1 @@ +diff-contains-arch-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/eval/hints new file mode 100644 index 00000000..b005f008 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-quilt/eval/hints @@ -0,0 +1,2 @@ +cruft-general-quilt (source): source-contains-debian-substvars [debian/substvars] +cruft-general-quilt (source): source-contains-debian-substvars [debian/somepackage.substvars] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/ORIGIN new file mode 100644 index 00000000..c406f16e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/substvars/cruft-general-wig-pen + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/README b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/README new file mode 100644 index 00000000..e845566c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/README @@ -0,0 +1 @@ +README diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/.arch-inventory b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/.arch-inventory new file mode 100644 index 00000000..db895b7f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/.arch-inventory @@ -0,0 +1 @@ +diff-contains-arch-inventory-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/.be/foo b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/.be/foo new file mode 100644 index 00000000..c64bbe85 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/.be/foo @@ -0,0 +1 @@ +diff-contains-bts-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/.bzr/foo b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/.bzr/foo new file mode 100644 index 00000000..f8270b6b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/.bzr/foo @@ -0,0 +1 @@ +diff-contains-bzr-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/.hg/foo b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/.hg/foo new file mode 100644 index 00000000..5cd5b94f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/.hg/foo @@ -0,0 +1 @@ +diff-contains-hg-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/.hgtags b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/.hgtags new file mode 100644 index 00000000..3187d159 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/.hgtags @@ -0,0 +1 @@ +diff-contains-hg-tags-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/.svn/format b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/.svn/format new file mode 100644 index 00000000..d9d5d1b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/.svn/format @@ -0,0 +1 @@ +diff-contains-svn-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/CMakeCache.txt b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/CMakeCache.txt new file mode 100644 index 00000000..f21f3894 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/CMakeCache.txt @@ -0,0 +1 @@ +diff-contains-cmake-cache-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/CVS/Entries b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/CVS/Entries new file mode 100644 index 00000000..ed6f152a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/CVS/Entries @@ -0,0 +1 @@ +diff-contains-cvs-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/changelog new file mode 100644 index 00000000..a2b9a01d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/changelog @@ -0,0 +1,17 @@ +cruft-general-wig-pen (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-general-wig-pen + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +cruft-general-wig-pen (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-general-wig-pen + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/control new file mode 100644 index 00000000..3831bd21 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/control @@ -0,0 +1,17 @@ +Source: cruft-general-wig-pen +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: cruft-general-wig-pen +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for cruft added in a 2.0 package + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/foo.r1352 b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/foo.r1352 new file mode 100644 index 00000000..4249927e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/foo.r1352 @@ -0,0 +1 @@ +diff-contains-svn-conflict-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/foo.rej b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/foo.rej new file mode 100644 index 00000000..02ef3beb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/foo.rej @@ -0,0 +1 @@ +diff-contains-patch-failure-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/patches/wig-pen b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/patches/wig-pen new file mode 100644 index 00000000..a452b539 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/patches/wig-pen @@ -0,0 +1,5 @@ +--- upstream/README ++++ debian/README +@@ -1 +1 @@ +-README ++README for wig&pen diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/rules new file mode 100755 index 00000000..413418b3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_prep: + dh_prep -X~ -Xrej + +clean: + @echo 'Do nothing' diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/source/format new file mode 100644 index 00000000..cd5ac039 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/source/format @@ -0,0 +1 @@ +2.0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/substvars b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/substvars new file mode 100644 index 00000000..abd3ebeb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/substvars @@ -0,0 +1 @@ +misc:Depends= diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/svk-commit444.tmp b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/svk-commit444.tmp new file mode 100644 index 00000000..3025663f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/svk-commit444.tmp @@ -0,0 +1 @@ +diff-contains-svk-commit-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/svn-commit.tmp b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/svn-commit.tmp new file mode 100644 index 00000000..4a26aa0c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/svn-commit.tmp @@ -0,0 +1 @@ +diff-contains-svn-commit-file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/{arch}/foo b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/{arch}/foo new file mode 100644 index 00000000..ca1b833e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/debian/{arch}/foo @@ -0,0 +1 @@ +diff-contains-arch-control-dir diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/eval/hints new file mode 100644 index 00000000..e1dd7033 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/substvars/cruft-general-wig-pen/eval/hints @@ -0,0 +1 @@ +cruft-general-wig-pen (source): source-contains-debian-substvars [debian/substvars] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/symbols/package-placeholder/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/symbols/package-placeholder/ORIGIN new file mode 100644 index 00000000..faa67f9d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/symbols/package-placeholder/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/symbols/package-placeholder + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/symbols/package-placeholder/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/symbols/package-placeholder/debian/changelog new file mode 100644 index 00000000..69858a0d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/symbols/package-placeholder/debian/changelog @@ -0,0 +1,17 @@ +package-placeholder (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: package-placeholder + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +package-placeholder (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: package-placeholder + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/symbols/package-placeholder/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/symbols/package-placeholder/debian/control new file mode 100644 index 00000000..082521a3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/symbols/package-placeholder/debian/control @@ -0,0 +1,17 @@ +Source: package-placeholder +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: package-placeholder +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Look for PACKAGE placeholder in d/symbols files + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/symbols/package-placeholder/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/symbols/package-placeholder/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/symbols/package-placeholder/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/symbols/package-placeholder/debian/package-placeholder.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/symbols/package-placeholder/debian/package-placeholder.symbols new file mode 100644 index 00000000..c9c913d7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/symbols/package-placeholder/debian/package-placeholder.symbols @@ -0,0 +1,66 @@ +# taken from http://deb.debian.org/debian/pool/main/libd/libdvdread/libdvdread_6.0.1-1.dsc +libdvdread.so.4 libdvdread4 #MINVER# +* Build-Depends-Package: #PACKAGE# + DVDClose@Base 4.1.3 + DVDCloseFile@Base 4.1.3 + DVDDiscID@Base 4.1.3 + DVDFileSeek@Base 4.1.3 + DVDFileSeekForce@Base 4.1.3 + DVDFileSize@Base 4.1.3 + DVDFileStat@Base 4.1.3-4~ + DVDISOVolumeInfo@Base 4.1.3 + DVDOpen@Base 4.1.3 + DVDOpenFile@Base 4.1.3 + DVDOpenStream@Base 5.0.2 + DVDReadBlocks@Base 4.1.3 + DVDReadBytes@Base 4.1.3 + DVDUDFCacheLevel@Base 4.1.3 + DVDUDFVolumeInfo@Base 4.1.3 + UDFFindFile@Base 4.1.3 + UDFGetVolumeIdentifier@Base 4.1.3 + UDFGetVolumeSetIdentifier@Base 4.1.3 +#MISSING: 6.0.0-1# dvdinput_close@Base 4.1.3 +#MISSING: 6.0.0-1# dvdinput_error@Base 4.1.3 +#MISSING: 6.0.0-1# dvdinput_open@Base 4.1.3 +#MISSING: 6.0.0-1# dvdinput_read@Base 4.1.3 +#MISSING: 6.0.0-1# dvdinput_seek@Base 4.1.3 +#MISSING: 6.0.0-1# dvdinput_setup@Base 4.1.3 +#MISSING: 6.0.0-1# dvdinput_title@Base 4.1.3 + dvdread_getbits@Base 4.1.3 + dvdread_getbits_init@Base 4.1.3 + dvdread_print_time@Base 4.1.3 + ifoClose@Base 4.1.3 + ifoFree_C_ADT@Base 4.1.3 + ifoFree_FP_PGC@Base 4.1.3 + ifoFree_PGCIT@Base 4.1.3 + ifoFree_PGCI_UT@Base 4.1.3 + ifoFree_PTL_MAIT@Base 4.1.3 + ifoFree_TITLE_C_ADT@Base 4.1.3 + ifoFree_TITLE_VOBU_ADMAP@Base 4.1.3 + ifoFree_TT_SRPT@Base 4.1.3 + ifoFree_TXTDT_MGI@Base 4.1.3 + ifoFree_VOBU_ADMAP@Base 4.1.3 + ifoFree_VTS_ATRT@Base 4.1.3 + ifoFree_VTS_PTT_SRPT@Base 4.1.3 + ifoFree_VTS_TMAPT@Base 4.1.3 + ifoOpen@Base 4.1.3 + ifoOpenVMGI@Base 4.1.3 + ifoOpenVTSI@Base 4.1.3 + ifoRead_C_ADT@Base 4.1.3 + ifoRead_FP_PGC@Base 4.1.3 + ifoRead_PGCIT@Base 4.1.3 + ifoRead_PGCI_UT@Base 4.1.3 + ifoRead_PTL_MAIT@Base 4.1.3 + ifoRead_TITLE_C_ADT@Base 4.1.3 + ifoRead_TITLE_VOBU_ADMAP@Base 4.1.3 + ifoRead_TT_SRPT@Base 4.1.3 + ifoRead_TXTDT_MGI@Base 4.1.3 + ifoRead_VOBU_ADMAP@Base 4.1.3 + ifoRead_VTS_ATRT@Base 4.1.3 + ifoRead_VTS_PTT_SRPT@Base 4.1.3 + ifoRead_VTS_TMAPT@Base 4.1.3 + ifo_print@Base 4.1.3 + navPrint_DSI@Base 4.1.3 + navPrint_PCI@Base 4.1.3 + navRead_DSI@Base 4.1.3 + navRead_PCI@Base 4.1.3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/symbols/package-placeholder/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/symbols/package-placeholder/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/symbols/package-placeholder/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/symbols/package-placeholder/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/symbols/package-placeholder/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/symbols/package-placeholder/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/symbols/package-placeholder/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/symbols/package-placeholder/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/symbols/package-placeholder/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/symbols/package-placeholder/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/symbols/package-placeholder/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/symbols/package-placeholder/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/symbols/package-placeholder/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/symbols/package-placeholder/eval/hints new file mode 100644 index 00000000..1b8a920f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/symbols/package-placeholder/eval/hints @@ -0,0 +1 @@ +package-placeholder (source): package-placeholder-in-symbols-file [debian/package-placeholder.symbols:3] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-crlf-eols/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-crlf-eols/ORIGIN new file mode 100644 index 00000000..030f9cf8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-crlf-eols/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-crlf-eols/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-crlf-eols/debian/changelog new file mode 100644 index 00000000..49a956da --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-crlf-eols/debian/changelog @@ -0,0 +1,8 @@ +cruft-crlf-eols (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-crlf-eols + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-crlf-eols/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-crlf-eols/debian/control new file mode 100644 index 00000000..103e08db --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-crlf-eols/debian/control @@ -0,0 +1,15 @@ +Source: cruft-crlf-eols +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no + +Package: cruft-crlf-eols +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check that control files with CRLF EOLs are reported + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-crlf-eols/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-crlf-eols/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-crlf-eols/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-crlf-eols/debian/install b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-crlf-eols/debian/install new file mode 100644 index 00000000..47fc6a32 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-crlf-eols/debian/install @@ -0,0 +1 @@ +dummy usr/share/doc/foo/ diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-crlf-eols/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-crlf-eols/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-crlf-eols/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-crlf-eols/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-crlf-eols/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-crlf-eols/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-crlf-eols/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-crlf-eols/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-crlf-eols/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-crlf-eols/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-crlf-eols/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-crlf-eols/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-crlf-eols/dummy b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-crlf-eols/dummy new file mode 100644 index 00000000..5c3118dc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-crlf-eols/dummy @@ -0,0 +1 @@ +dummy file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-crlf-eols/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-crlf-eols/eval/hints new file mode 100644 index 00000000..5e0885f3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-crlf-eols/eval/hints @@ -0,0 +1,22 @@ +cruft-crlf-eols (source): trailing-whitespace [debian/control:9] +cruft-crlf-eols (source): trailing-whitespace [debian/control:8] +cruft-crlf-eols (source): trailing-whitespace [debian/control:7] +cruft-crlf-eols (source): trailing-whitespace [debian/control:6] +cruft-crlf-eols (source): trailing-whitespace [debian/control:5] +cruft-crlf-eols (source): trailing-whitespace [debian/control:4] +cruft-crlf-eols (source): trailing-whitespace [debian/control:3] +cruft-crlf-eols (source): trailing-whitespace [debian/control:2] +cruft-crlf-eols (source): trailing-whitespace [debian/control:1] +cruft-crlf-eols (source): trailing-whitespace [debian/control:15] +cruft-crlf-eols (source): trailing-whitespace [debian/control:14] +cruft-crlf-eols (source): trailing-whitespace [debian/control:13] +cruft-crlf-eols (source): trailing-whitespace [debian/control:12] +cruft-crlf-eols (source): trailing-whitespace [debian/control:11] +cruft-crlf-eols (source): trailing-whitespace [debian/control:10] +cruft-crlf-eols (source): trailing-whitespace [debian/changelog:8] +cruft-crlf-eols (source): trailing-whitespace [debian/changelog:7] +cruft-crlf-eols (source): trailing-whitespace [debian/changelog:6] +cruft-crlf-eols (source): trailing-whitespace [debian/changelog:5] +cruft-crlf-eols (source): trailing-whitespace [debian/changelog:4] +cruft-crlf-eols (source): trailing-whitespace [debian/changelog:3] +cruft-crlf-eols (source): trailing-whitespace [debian/changelog:2] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/ORIGIN new file mode 100644 index 00000000..685a8ff8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/debian/README.source b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/debian/README.source new file mode 100644 index 00000000..11f42a13 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/debian/README.source @@ -0,0 +1,6 @@ +cruft-file-contains-trailing-whitespace for Debian +-------------------------------------------------- + +This line does not contain any trailing whitespace. +This line contains a trailing whitespace character but is still a false-positive as we ignore README.source. + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/debian/changelog new file mode 100644 index 00000000..f9e2ed29 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/debian/changelog @@ -0,0 +1,9 @@ +cruft-file-contains-trailing-whitespace (1.0) unstable; urgency=low + + * This line contains trailing whitespace. + * This line does not contais trailing whitespace. + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/debian/control new file mode 100644 index 00000000..7b08b75e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/debian/control @@ -0,0 +1,17 @@ +Source: cruft-file-contains-trailing-whitespace +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: cruft-file-contains-trailing-whitespace +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for files containing trailing whitespace characters + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/debian/rules new file mode 100755 index 00000000..c19a2718 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh $@ + # The line contains a trailing tab (false-positive) + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/eval/hints new file mode 100644 index 00000000..7953403b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/eval/hints @@ -0,0 +1,4 @@ +cruft-file-contains-trailing-whitespace (source): trailing-whitespace [debian/rules:7] +cruft-file-contains-trailing-whitespace (source): trailing-whitespace [debian/changelog:9] +cruft-file-contains-trailing-whitespace (source): trailing-whitespace [debian/changelog:8] +cruft-file-contains-trailing-whitespace (source): trailing-whitespace [debian/changelog:3] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/rules-without-newline-at-end/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/rules-without-newline-at-end/ORIGIN new file mode 100644 index 00000000..ffbb982d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/rules-without-newline-at-end/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/trailing-whitespace/rules-without-newline-at-end + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/rules-without-newline-at-end/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/rules-without-newline-at-end/debian/changelog new file mode 100644 index 00000000..d57d6efb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/rules-without-newline-at-end/debian/changelog @@ -0,0 +1,17 @@ +rules-without-newline-at-end (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-without-newline-at-end + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +rules-without-newline-at-end (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: rules-without-newline-at-end + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/rules-without-newline-at-end/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/rules-without-newline-at-end/debian/control new file mode 100644 index 00000000..e8efd249 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/rules-without-newline-at-end/debian/control @@ -0,0 +1,17 @@ +Source: rules-without-newline-at-end +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: rules-without-newline-at-end +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: d/rules lacking a newline at the end of file. + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/rules-without-newline-at-end/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/rules-without-newline-at-end/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/rules-without-newline-at-end/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/rules-without-newline-at-end/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/rules-without-newline-at-end/debian/rules new file mode 100755 index 00000000..9a82cb74 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/rules-without-newline-at-end/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/rules-without-newline-at-end/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/rules-without-newline-at-end/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/rules-without-newline-at-end/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/rules-without-newline-at-end/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/rules-without-newline-at-end/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/rules-without-newline-at-end/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/rules-without-newline-at-end/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/rules-without-newline-at-end/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/rules-without-newline-at-end/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/rules-without-newline-at-end/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/rules-without-newline-at-end/eval/hints new file mode 100644 index 00000000..d14a8d4a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/trailing-whitespace/rules-without-newline-at-end/eval/hints @@ -0,0 +1 @@ +rules-without-newline-at-end (source): no-newline-at-end [debian/rules] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/bogus-field/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/bogus-field/ORIGIN new file mode 100644 index 00000000..160224ee --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/bogus-field/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/upstream/metadata/bogus-field + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/bogus-field/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/bogus-field/debian/changelog new file mode 100644 index 00000000..5718a5f4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/bogus-field/debian/changelog @@ -0,0 +1,17 @@ +bogus-field (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: bogus-field + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +bogus-field (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: bogus-field + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/bogus-field/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/bogus-field/debian/control new file mode 100644 index 00000000..8a58ae1e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/bogus-field/debian/control @@ -0,0 +1,17 @@ +Source: bogus-field +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), libyaml-libyaml-perl (>= 0.69) +Homepage: https://lintian.debian.org/ + +Package: bogus-field +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Upstream metadata contains a field named 'Bogus' + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/bogus-field/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/bogus-field/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/bogus-field/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/bogus-field/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/bogus-field/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/bogus-field/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/bogus-field/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/bogus-field/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/bogus-field/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/bogus-field/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/bogus-field/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/bogus-field/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/bogus-field/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/bogus-field/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/bogus-field/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/bogus-field/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/bogus-field/debian/upstream/metadata new file mode 100644 index 00000000..4ffe4772 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/bogus-field/debian/upstream/metadata @@ -0,0 +1,4 @@ +--- +Bogus: This field name is not known. +Repository: Some repo. +Bug-Submit: A bug tracker. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/bogus-field/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/bogus-field/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/bogus-field/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/bogus-field/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/bogus-field/eval/hints new file mode 100644 index 00000000..47a6443c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/bogus-field/eval/hints @@ -0,0 +1,5 @@ +bogus-field (source): upstream-metadata-field-unknown Bogus [debian/upstream/metadata] +bogus-field (source): upstream-metadata-exists [debian/upstream/metadata] +bogus-field (source): upstream-metadata Repository Some repo. [debian/upstream/metadata] +bogus-field (source): upstream-metadata Bug-Submit A bug tracker. [debian/upstream/metadata] +bogus-field (source): upstream-metadata Bogus This field name is not known. [debian/upstream/metadata] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/ORIGIN new file mode 100644 index 00000000..778888d0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/debian/changelog new file mode 100644 index 00000000..4b5e0f79 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/debian/changelog @@ -0,0 +1,17 @@ +cruft-obsolete-upstream-metadata (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-obsolete-upstream-metadata + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +cruft-obsolete-upstream-metadata (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-obsolete-upstream-metadata + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/debian/control new file mode 100644 index 00000000..ee157cee --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/debian/control @@ -0,0 +1,17 @@ +Source: cruft-obsolete-upstream-metadata +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: cruft-obsolete-upstream-metadata +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for obsolete path for debian/upstream/metadata + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/debian/upstream b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/debian/upstream new file mode 100644 index 00000000..ab2fc5dd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/debian/upstream @@ -0,0 +1 @@ +# empty file \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/eval/hints new file mode 100644 index 00000000..91c125c1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/eval/hints @@ -0,0 +1 @@ +cruft-obsolete-upstream-metadata (source): debian-upstream-obsolete-path [debian/upstream] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/fields-present/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/fields-present/ORIGIN new file mode 100644 index 00000000..4318fcae --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/fields-present/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/upstream/metadata/fields-present + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/fields-present/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/fields-present/debian/changelog new file mode 100644 index 00000000..6db3b424 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/fields-present/debian/changelog @@ -0,0 +1,17 @@ +fields-present (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: fields-present + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +fields-present (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: fields-present + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/fields-present/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/fields-present/debian/control new file mode 100644 index 00000000..40246ff8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/fields-present/debian/control @@ -0,0 +1,17 @@ +Source: fields-present +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), libyaml-libyaml-perl (>= 0.69) +Homepage: https://lintian.debian.org/ + +Package: fields-present +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Tests for classification tags on upstream metadata + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/fields-present/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/fields-present/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/fields-present/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/fields-present/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/fields-present/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/fields-present/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/fields-present/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/fields-present/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/fields-present/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/fields-present/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/fields-present/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/fields-present/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/fields-present/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/fields-present/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/fields-present/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/fields-present/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/fields-present/debian/upstream/metadata new file mode 100644 index 00000000..1182684d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/fields-present/debian/upstream/metadata @@ -0,0 +1,7 @@ +--- +Archive: GitHub +Bug-Database: https://github.com/isaacs/node-glob/issues +Contact: https://github.com/isaacs/node-glob/issues +Name: node-glob +Repository: https://github.com/isaacs/node-glob.git +Repository-Browse: https://github.com/isaacs/node-glob diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/fields-present/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/fields-present/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/fields-present/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/fields-present/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/fields-present/eval/hints new file mode 100644 index 00000000..769e5ab8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/fields-present/eval/hints @@ -0,0 +1,7 @@ +fields-present (source): upstream-metadata-exists [debian/upstream/metadata] +fields-present (source): upstream-metadata Repository-Browse https://github.com/isaacs/node-glob [debian/upstream/metadata] +fields-present (source): upstream-metadata Repository https://github.com/isaacs/node-glob.git [debian/upstream/metadata] +fields-present (source): upstream-metadata Name node-glob [debian/upstream/metadata] +fields-present (source): upstream-metadata Contact https://github.com/isaacs/node-glob/issues [debian/upstream/metadata] +fields-present (source): upstream-metadata Bug-Database https://github.com/isaacs/node-glob/issues [debian/upstream/metadata] +fields-present (source): upstream-metadata Archive GitHub [debian/upstream/metadata] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/in-native-source/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/in-native-source/ORIGIN new file mode 100644 index 00000000..681ff34f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/in-native-source/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/upstream/metadata/in-native-source + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/in-native-source/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/in-native-source/debian/changelog new file mode 100644 index 00000000..9287f01b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/in-native-source/debian/changelog @@ -0,0 +1,17 @@ +in-native-source (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: in-native-source + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +in-native-source (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: in-native-source + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/in-native-source/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/in-native-source/debian/control new file mode 100644 index 00000000..759697ac --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/in-native-source/debian/control @@ -0,0 +1,17 @@ +Source: in-native-source +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), libyaml-libyaml-perl (>= 0.69) +Homepage: https://lintian.debian.org/ + +Package: in-native-source +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Tests for d/upstream/metadata in native sources. + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/in-native-source/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/in-native-source/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/in-native-source/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/in-native-source/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/in-native-source/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/in-native-source/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/in-native-source/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/in-native-source/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/in-native-source/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/in-native-source/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/in-native-source/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/in-native-source/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/in-native-source/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/in-native-source/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/in-native-source/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/in-native-source/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/in-native-source/debian/upstream/metadata new file mode 100644 index 00000000..d18240a4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/in-native-source/debian/upstream/metadata @@ -0,0 +1,2 @@ + - Hi, +This is a completely invalid YAML file. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/in-native-source/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/in-native-source/eval/hints new file mode 100644 index 00000000..cabf6456 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/in-native-source/eval/hints @@ -0,0 +1 @@ +in-native-source (source): upstream-metadata-in-native-source [debian/upstream/metadata] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/ORIGIN new file mode 100644 index 00000000..9d393999 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/upstream/metadata/upstream-metadata-invalid-yml + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/debian/changelog new file mode 100644 index 00000000..ed948878 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/debian/changelog @@ -0,0 +1,17 @@ +upstream-metadata-invalid-yml (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: upstream-metadata-invalid-yml + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +upstream-metadata-invalid-yml (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: upstream-metadata-invalid-yml + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/debian/control new file mode 100644 index 00000000..b88bff96 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/debian/control @@ -0,0 +1,17 @@ +Source: upstream-metadata-invalid-yml +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), libyaml-libyaml-perl (>= 0.69) +Homepage: https://lintian.debian.org/ + +Package: upstream-metadata-invalid-yml +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Tests for upstream-metadata being invalid yml + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/debian/upstream/metadata new file mode 100644 index 00000000..d18240a4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/debian/upstream/metadata @@ -0,0 +1,2 @@ + - Hi, +This is a completely invalid YAML file. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/eval/hints new file mode 100644 index 00000000..6e296528 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/eval/hints @@ -0,0 +1,2 @@ +upstream-metadata-invalid-yml (source): upstream-metadata-yaml-invalid did not find expected (at document 2, line 2, column 1) [debian/upstream/metadata] +upstream-metadata-invalid-yml (source): upstream-metadata-exists [debian/upstream/metadata] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-missing/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-missing/ORIGIN new file mode 100644 index 00000000..baa6e8b1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-missing/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/upstream/metadata/upstream-metadata-is-missing + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-missing/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-missing/debian/changelog new file mode 100644 index 00000000..6bbfb26c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-missing/debian/changelog @@ -0,0 +1,17 @@ +upstream-metadata-is-missing (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: upstream-metadata-is-missing + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +upstream-metadata-is-missing (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: upstream-metadata-is-missing + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-missing/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-missing/debian/control new file mode 100644 index 00000000..461990e0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-missing/debian/control @@ -0,0 +1,17 @@ +Source: upstream-metadata-is-missing +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: upstream-metadata-is-missing +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Tests for missing upstream metadata file + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-missing/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-missing/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-missing/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-missing/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-missing/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-missing/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-missing/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-missing/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-missing/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-missing/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-missing/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-missing/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-missing/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-missing/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-missing/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-missing/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-missing/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-missing/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-missing/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-missing/eval/hints new file mode 100644 index 00000000..b2f602f9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-missing/eval/hints @@ -0,0 +1 @@ +upstream-metadata-is-missing (source): upstream-metadata-file-is-missing diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/ORIGIN new file mode 100644 index 00000000..56d3c1bf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/debian/changelog new file mode 100644 index 00000000..a3bdc2d1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/debian/changelog @@ -0,0 +1,17 @@ +upstream-metadata-is-not-a-file (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: upstream-metadata-is-not-a-file + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +upstream-metadata-is-not-a-file (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: upstream-metadata-is-not-a-file + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/debian/control new file mode 100644 index 00000000..18727e72 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/debian/control @@ -0,0 +1,17 @@ +Source: upstream-metadata-is-not-a-file +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: upstream-metadata-is-not-a-file +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Tests for d/upstream/metadata being non-file + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/eval/hints new file mode 100644 index 00000000..ba37c59f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/eval/hints @@ -0,0 +1,2 @@ +upstream-metadata-is-not-a-file (source): upstream-metadata-is-not-a-file [debian/upstream/metadata] +upstream-metadata-is-not-a-file (source): upstream-metadata-exists [debian/upstream/metadata] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/ORIGIN new file mode 100644 index 00000000..e0aaa92b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/debian/changelog new file mode 100644 index 00000000..703e6786 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/debian/changelog @@ -0,0 +1,17 @@ +upstream-metadata-missing-bug-tracking (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: upstream-metadata-missing-bug-tracking + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +upstream-metadata-missing-bug-tracking (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: upstream-metadata-missing-bug-tracking + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/debian/control new file mode 100644 index 00000000..4bb829d9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/debian/control @@ -0,0 +1,17 @@ +Source: upstream-metadata-missing-bug-tracking +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), libyaml-libyaml-perl (>= 0.69) +Homepage: https://lintian.debian.org/ + +Package: upstream-metadata-missing-bug-tracking +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Tests for upstream-metadata missing upstream repo info + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/debian/upstream/metadata new file mode 100644 index 00000000..e740fba4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/debian/upstream/metadata @@ -0,0 +1,5 @@ +Archive: GitHub +Contact: https://github.com/isaacs/node-glob/issues +Name: node-glob +Repository: https://github.com/isaacs/node-glob.git +Repository-Browse: https://github.com/isaacs/node-glob diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/eval/hints new file mode 100644 index 00000000..221dfb4c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/eval/hints @@ -0,0 +1,7 @@ +upstream-metadata-missing-bug-tracking (source): upstream-metadata-missing-bug-tracking [debian/upstream/metadata] +upstream-metadata-missing-bug-tracking (source): upstream-metadata-exists [debian/upstream/metadata] +upstream-metadata-missing-bug-tracking (source): upstream-metadata Repository-Browse https://github.com/isaacs/node-glob [debian/upstream/metadata] +upstream-metadata-missing-bug-tracking (source): upstream-metadata Repository https://github.com/isaacs/node-glob.git [debian/upstream/metadata] +upstream-metadata-missing-bug-tracking (source): upstream-metadata Name node-glob [debian/upstream/metadata] +upstream-metadata-missing-bug-tracking (source): upstream-metadata Contact https://github.com/isaacs/node-glob/issues [debian/upstream/metadata] +upstream-metadata-missing-bug-tracking (source): upstream-metadata Archive GitHub [debian/upstream/metadata] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-repository/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-repository/ORIGIN new file mode 100644 index 00000000..504e0dcd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-repository/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/upstream/metadata/upstream-metadata-missing-repository + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-repository/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-repository/debian/changelog new file mode 100644 index 00000000..575e6f38 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-repository/debian/changelog @@ -0,0 +1,17 @@ +upstream-metadata-missing-repository (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: upstream-metadata-missing-repository + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +upstream-metadata-missing-repository (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: upstream-metadata-missing-repository + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-repository/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-repository/debian/control new file mode 100644 index 00000000..926880db --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-repository/debian/control @@ -0,0 +1,17 @@ +Source: upstream-metadata-missing-repository +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), libyaml-libyaml-perl (>= 0.69) +Homepage: https://lintian.debian.org/ + +Package: upstream-metadata-missing-repository +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Tests for upstream-metadata missing upstream repo info + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-repository/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-repository/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-repository/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-repository/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-repository/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-repository/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-repository/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-repository/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-repository/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-repository/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-repository/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-repository/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-repository/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-repository/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-repository/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-repository/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-repository/debian/upstream/metadata new file mode 100644 index 00000000..131493d5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-repository/debian/upstream/metadata @@ -0,0 +1,6 @@ +Archive: GitHub +Bug-Database: https://github.com/isaacs/node-glob/issues +Contact: https://github.com/isaacs/node-glob/issues +Name: node-glob +Bug-Database: https://github.com/isaacs/node-glob/issues +Bug-Submit: https://github.com/isaacs/node-glob/issues/new diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-repository/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-repository/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-repository/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-repository/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-repository/eval/hints new file mode 100644 index 00000000..595916c3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/upstream-metadata-missing-repository/eval/hints @@ -0,0 +1,7 @@ +upstream-metadata-missing-repository (source): upstream-metadata-missing-repository [debian/upstream/metadata] +upstream-metadata-missing-repository (source): upstream-metadata-exists [debian/upstream/metadata] +upstream-metadata-missing-repository (source): upstream-metadata Name node-glob [debian/upstream/metadata] +upstream-metadata-missing-repository (source): upstream-metadata Contact https://github.com/isaacs/node-glob/issues [debian/upstream/metadata] +upstream-metadata-missing-repository (source): upstream-metadata Bug-Submit https://github.com/isaacs/node-glob/issues/new [debian/upstream/metadata] +upstream-metadata-missing-repository (source): upstream-metadata Bug-Database https://github.com/isaacs/node-glob/issues [debian/upstream/metadata] +upstream-metadata-missing-repository (source): upstream-metadata Archive GitHub [debian/upstream/metadata] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/yaml-sequence/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/yaml-sequence/ORIGIN new file mode 100644 index 00000000..2a3c78d8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/yaml-sequence/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/upstream/metadata/yaml-sequence + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/yaml-sequence/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/yaml-sequence/debian/changelog new file mode 100644 index 00000000..01c78527 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/yaml-sequence/debian/changelog @@ -0,0 +1,17 @@ +yaml-sequence (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: yaml-sequence + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +yaml-sequence (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: yaml-sequence + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/yaml-sequence/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/yaml-sequence/debian/control new file mode 100644 index 00000000..4ca7deb6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/yaml-sequence/debian/control @@ -0,0 +1,17 @@ +Source: yaml-sequence +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), libyaml-libyaml-perl (>= 0.69) +Homepage: https://lintian.debian.org/ + +Package: yaml-sequence +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: File is YAML sequence instead of mapping + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/yaml-sequence/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/yaml-sequence/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/yaml-sequence/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/yaml-sequence/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/yaml-sequence/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/yaml-sequence/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/yaml-sequence/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/yaml-sequence/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/yaml-sequence/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/yaml-sequence/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/yaml-sequence/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/yaml-sequence/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/yaml-sequence/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/yaml-sequence/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/yaml-sequence/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/yaml-sequence/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/yaml-sequence/debian/upstream/metadata new file mode 100644 index 00000000..6e5ed82a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/yaml-sequence/debian/upstream/metadata @@ -0,0 +1,5 @@ +- Name: libpff +- Bug-Database: https://github.com/libyal/libpff/issues +- Changelog: https://github.com/libyal/libpff/blob/master/ChangeLog +- Documentation: https://github.com/libyal/libpff/wiki +- Repository: https://github.com/libyal/libpff diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/yaml-sequence/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/yaml-sequence/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/yaml-sequence/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/yaml-sequence/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/yaml-sequence/eval/hints new file mode 100644 index 00000000..03f33847 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/metadata/yaml-sequence/eval/hints @@ -0,0 +1,2 @@ +yaml-sequence (source): upstream-metadata-not-yaml-mapping [debian/upstream/metadata] +yaml-sequence (source): upstream-metadata-exists [debian/upstream/metadata] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/ORIGIN new file mode 100644 index 00000000..d6bb2942 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/upstream/signing-key/upstream-key-bloated + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/debian/changelog new file mode 100644 index 00000000..610a125d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/debian/changelog @@ -0,0 +1,17 @@ +upstream-key-bloated (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: upstream-key-bloated + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +upstream-key-bloated (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: upstream-key-bloated + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/debian/control new file mode 100644 index 00000000..2495963a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/debian/control @@ -0,0 +1,17 @@ +Source: upstream-key-bloated +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: upstream-key-bloated +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check if public upstream signing key contains extra signatures + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/debian/upstream/signing-key.asc b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/debian/upstream/signing-key.asc new file mode 100644 index 00000000..41c2c56e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/debian/upstream/signing-key.asc @@ -0,0 +1,160 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQINBFkjME4BEACatcbzE9EaIKMmiS3OmcrooZZUI4pGtJcFqCNBOP3qvxUEq9Tk +4XPY8EARDGdwy2rMc12ywoc5FMzNwXiC3RpUNHnNhY+zau18q9CQx8UR02NDFWQq +AwaDSF4WU1GBVBMWgtxfIwAQGl/qOr+aSVtJCnEOTA/YiZPNw/wpA7r2g6EHYcce +a5srr7F15a6OxzDdPXlfoJuoSXMZUHpJIqG0UOo7NPkxPGRoHO2yGPS1DWKy3egG +xm718DwaIWee+mfJrcqT0ZFH4n5po1BJVj+8TcqE4YlkN/z4p0zI/XAxNCR2wGV2 +6cCQ8laEgwG33rPp+N3G/FeJchYTFvL7zDtdYKbBPVeaJh2kROnqbVVN5kZBVEXB +QNbXKuK6/TPiQeI+8anA9WflI19lzkzl29L7hsM9ornk7+wtu9P2hu3eEUgjjBli +Ujisw8s0aTPB5QsMCjSownwZ0ucqj+07nYVsPU2wK8x6A7p6Cg2SCPnjbX8jUb3Z +wyn0yi4SWceW9a+LW6wdGarMGbu+Lm6in8pK93u7mE/D4AskUVz1yLyiNO9WBXPq +GyTocqXKXTutHKhhSwY9CyEw1+SRzXXyHPmRunRULTgZHLOaydK6ekzBOe1Yp9Zk +hLvon6fgOhJTsokv27QCSw8ILbQPGF9qJWFQfYZhT4QCufmPaFgBpJOdewARAQAB +iQJOBB8BCgA4FiEE4c8g3f/kuJ6AJljx4LEYlPZq7JgFAlkjMMkXDIABgOl28UpQ +ikjpyj/pvDciUsoc+WQCBwAACgkQ4LEYlPZq7JiCcw/+NxzyntWMM/b/eIMedzZK +Zyq7Mo6vgFxT57wAloMtLu0WS9oETTH/+/9+fHPmkYxCX1HTNKpdY2KbjiZC/gAY +vJ8iGWredwIls2UyW4fegzRLNvWLZmUBbLg0WaTIQ9JZwa2Rw/q6Z0pe0tfb44oX +lpps0WA/OZCWXYVO2rhOzoiQulqdmHgwdcLA29BnpqBY1R8/LMDsfPLnJu7AFqgM +CQpnjIGRH6ZxF2TNUSdljUbIOultEeIvxtxosF1u0r20mg46aaKDpr0ANiR/Ojaj +YoeHZc39fyubSrhIyQuk4rDisrJod63MJ9x9upAc9H3qz71QjpwpVXPDxereWULO +17qN3hjjZd23CBdRv8HjRKQoFagUnxlrat1t+/yJCENzX6eX8wBs0vVCSmbtbSp7 +y+0BK4fyjDKCdiyKh1TiAnQ1Po/xICGr4Sa6Wohq2TeWXz4VlRnaQeCIwa4Kk6T/ +3VTQbNxn7Uiy9ec8aR+1YMGUBDG/k3s6K1PWLdJtSVgao8MkQYeKcQk/sgGSFPh8 +SkTy7CnSjK/gQP8NC5fFDWpatGpnDr9qsQwzMnUVYWNZQMQ+LJHPnXRyusr3M+Gh +4muVW1wmyjNLhtEYjJJnbv9bVVv2HFVXOWGiXY4hnj01xkHf3885Qq5ORWl1FMnU +lcqUcFsB6a1CCPGxNTJQhgKJAk4EHwEKADgWIQThzyDd/+S4noAmWPHgsRiU9mrs +mAUCWSMwyRcMgAH7+r21QbXclVvZum7bFs9bsSUlxAIHAAAKCRDgsRiU9mrsmK2H +D/9frYP6KRecLNMzLJGe6MB/1DbqIud1/kzd/jHRo3e4Dz8cls29N03HskLE4jTf +BXKAhUmRI52aMCioY/K03rZLaR++/GMIdnF7O4Ks7P203J4/CudmXQvz3Rby22lC +RCp3Wsx2DqFgpc1V5SjmdDxzEs3fwKJ0B8YOMyibyUaLfwaxRfiTsWmRF192WzCM +/B1tmJDLIqwq/xxzxmiqzrxBWq3JIxH1PzrGbWvAE0gfBJHgw/2HHO4PAG9Lj+AV +HHPV/9xhXdbF/KnnKUGtd9lssNleWlc5LeM0ix2pU/QrZx7c+CBW+142jQcZ58X6 +QvHTKBkImI7y3kMCUOs+UbxKnFsRBRduMLvIpXJVXukV3QvRn+9riITPIcviF4ni +F6V2NQ+ONrvMOK2s6VdfgMS7c4Azuyt4SJSEzBhHu+VTVnMZCBiKvZtRL5XX85ZF +DDkN62Bwa+F36lTiOBWOecSQykCyOKcnn0jKrSgDOk08qE7Nzl2SPdlpza0/bk2u +6i8o3mrmdO02OqC9vJum6M4Pn2HHrkPzAtSs11E7ogcZghPxnGCekGQNekHx9DKM +mv8W+SZf4b1KD1EKECeNLZ0QHQMjU3AYBav+Mq9IXIlwFZL85BYLUAWfrCnqf/gV +CTiy9yKdQ4WIr9XR+zywDigAZqJ5PxwBh1+phrkoWUfsLokCTgQfAQoAOBYhBOHP +IN3/5LiegCZY8eCxGJT2auyYBQJZIzDJFwyAATCZEb6pZtBhMFMEVxG05f8VsP2C +AgcAAAoJEOCxGJT2auyYWHAP/jlmSZQI/dnrYTT0ZtZA0k3sCaaOApWmno4Jm1+p +QzxBJyVXC/7em3D/Wb3B4XpQKnkWOGz3XtEf4LNPhrW1n6nLFOLctprGwnlZihBp +tmidEvvFKCa5exv4WOVyat5jLttNJ6o4O0BJHmUJG/wAVSjfWi2KgVXZEnz/wts8 +KFXc06RCgavIATmlC5QqD87U5ezKJdY0HY/A8uT9aBJ3KFdzj5MnZOzr2RJcEtWU +UE1HHxqJS7POQVMUWK/7nABUKjzpQg8Hn7VNom553Lf8yk+OLl0x7+bS/8tZltZ/ +zkIqzUmpPk1QSf5b4JOryJye0ZV60TtbI7juXi2VV41gcHxd7EMkF4PAMtHF/rNM +n/sR4LLXPnQk71zqOScYpMBDQ0FikQ7UuUT35iJAX3u7mWYL0P4h3NBlPmRLg9W3 +k/g5KRBLJ2U9Ba+i3UIRva8tUGz/EluzOCUcSbIEMNkaNyt4ktO3PaIzAzdVdxYk +IWV6NUj92vSBJvXinzIjyXTk9Tjfuf4hLo15C+1c9P0+XkpKzpvW1ycpIUVH9QSZ +afC1e45EXSkD0AV+y6ihJf4PWddgGb3ZeWarcp2QL/ll3XoBdEGfxOQJ1Py2nfIS +HxVrl5AxoEJ9q+4YO5xysAV4f+UFKvS4snJtRztOYBKM0/4pup41u4V8oGWLRUOC +d/GitEdEZWJpYW4gQXJjaGl2ZSBBdXRvbWF0aWMgU2lnbmluZyBLZXkgKDkvc3Ry +ZXRjaCkgPGZ0cG1hc3RlckBkZWJpYW4ub3JnPokCVAQTAQoAPhYhBOHPIN3/5Lie +gCZY8eCxGJT2auyYBQJZIzBOAhsDBQkPCZwABQsJCAcDBRUKCQgLBRYCAwEAAh4B +AheAAAoJEOCxGJT2auyYKFoP/R5ijjBRlLpClTvhk5p1pE/cJbMAHd1Y7x09iSN3 +nT222tx4Zk3wVnP/1puJNkOxW7btMuUNz6Y4DolLpAa71hq3NOsTGz+5PL8ZFBoi +lIN2iOpfzqIFLASM0Pz6X+twV3ZyE1PZmfzLAu8OWm4kt1v3qJVtWN/5dHbjTqMt +vUc28VX1di51zWTs+3b/SDC+KN98i9W64JUiHPcLL6b2Y44fDszDDVVExwtPrPk0 +VU+et4/uWmhcdEIEb91MIEsLAUJIBqcGTZU7Gymxupa3vApT6UUxfNKkVCGDN5dk +zFKkS6p2NEQjtIPNAheBwUfHqSDeN+EW4IuQxHZ92o+XGFMHqU29Vy81sPkGvKkG +EIL12iMpW9hDTbjO/+v695o3tVo/h1b0NSZP3Jk4I3iDBpAcUEYarxoOung2K1fC +QYH7R+7hy3lnRP36s9za6rEbik0c4XRvyYaYq7npGEq4CqhcKgRhZqVcy2Zmymcw +MqR1wLSxEmbREQZfBCFh5zpVC+kmRHfXCmZyAfDwLgGuMDVL7piCW5DqpC04Ks7M +Uj/r1O5hyMEjIzcdATVBMNJmdOPw7d0vqgBUizj0Y/e8RhmY8mkmy1zoI1HU7JfF +eKNnK/I2KYUop0qV0+bEFcu0RiEFVMP5cw4L2QAr1Y39XJNFU3v7IujRZXkxLn+H +6l4HiQJVBBABCAA/FiEE+/q9tUG13JVb2bpu2xbPW7ElJcQFAlkknnUhGmh0dHA6 +Ly9ncGcuZ2FubmVmZi5kZS9wb2xpY3kudHh0AAoJENsWz1uxJSXE0z8P/3wl5xqi +wO8sHcMtPXRoOMGRBGlXN/GWbEuqOxaN4lVko+sqGTineW0nk6bx9zhTFDCXjEpK +da6M8Tc7V/cQoEyrV7btFolrb1KPKl5cVTsxKbLSJO79VgN9CZdrv8xS1VsI6SW/ +7euwZmdjYCnOqs049uAxmeZU3HI/yjaOowhDDHAXRvzzbMTN5Y8aWqE1Sv/ndnb+ +qHDq0Xh6hX0iS+Szx7KIGDLsgPPPjvEfsfmXVhYrWPdB4KXIeOcISehblxxU9FCE +JmArB0txQtW595m/Gn5ntVbiyHhrhNlGYT+6D1Fsw3q1l9kIzj8ro2/yRcZ/JRot +w5j5bMbYatQGoxmaBr9AaHCyUmmQEwfQFqBDnOBrV2XwLlurIX3ZvkQQVy5e4ysp +9K8lAd5X4k3sKOSca9HooIcK8szc48aUijHabzOzU459qrds5iX10q0L5It1FqLp +obg2l3wLWU7XwAP6K7m6LcvSa+2QqJmh72SBLd6xPCQAdwwUgdfzjovxTpdQu+3u +5NX+ud4uc+WP8bEG1oT//H9cQ6ocRKXS9iGYby7LF0ykY1MVBI8KfQ7UyLWe/wZ/ +HlPBT2tFQ+8HoB1ZmtzsukaJcTiDtOcQGrIfgEs+bbw7mFKIDjI8OKZpZRlm+UAy +Vm4jG/OiHoxOcr29mYCUwAzLRpavE+L2/koGiQIzBBABCgAdFiEEgOl28UpQikjp +yj/pvDciUsoc+WQFAlkkgYkACgkQvDciUsoc+WQChQ/7BgfCpOAN2mmrSToaMY5C +UVsxw6GVa68gDJA6A1rFXq3cqI5KIj5lNZ+NQi5a9hUu/Ll0m5TN7bZQ8+wxre1U +GY1EnIUb1MFsL7r43dvYOifwV0jNci7+wfvU7slJWfwRlO+q9pwxseBRnGsxLgnf +p6ZK/VqzjMUBXzAdMxwqacaJITsgHHGqActsuTGlasOafTxSvWDjIM9O8+maOzAq +sTa9EXGQhASuzAnDaaW6L7etM6Icm//7cMz8oVnTPKIrqYsHTypIju5XXqHa6Y1D +jZlFcQe7aFbgyBufe4hNtcUHJxXpJHThmZVjJA0t8ofZ8tPWScRDrphMTPfGzVZS +TPUKn+WbkD7w9H7fjQcaCH6YKoJx3tIYzLuDStS/+SLqF45eJp5Miws7AYJCZ2u6 +vJ/8kDVByVPW4Xlq+nmi2RPG7Ym6NcmjG6FUFNUs4PPPfVn7cdLLcnNNriV8hyOJ +T+NnXISSLo20F9buHMl28YqBb7sXmM71lr4kbjNKi0IWUOb+uZcgzMnJPjegR0hT +GWbN5TmZnQ0lxYU2gr+t9F5DewTfMZMqE70T5eNfSyfr9iCEt8pp6GsjQlFglYZr +30bcoLI8IYvS5VOvHAtWrOe35UgLXT8iB0pdCDcVbdA4ZaUaSR6hH26RZgPu4dRx +9flHYtovRX1rDB9Ujc2d3JuJAhwEEAEIAAYFAlkl7L0ACgkQEbTl/xWw/YJo3BAA +jRFiSZPG8SH2QQ1XWF0RREv/yWO95HkZdTHY/yDNfB94YLVCSqWDfO7QepCE2SUp +4+eBdKUSUk6sICQL5gQ3D6PpSLMPaiJ9QoUi7JU6pT9xlrdFIfwC/zZypsfDQ8Gb +L0xZPuXEurcR6YArCFHxtACKSxcUBqvpb2YL9fOEQqVzq90yWxQYsX+xlOpXAXXe +ITwbjgT0E6izN0ucYthhvBM0nw3Ma+v1C4o590MzAFefKaA8kQ2xrO/NIQVwD4qI +MQh+Cshq7UZXM8LRa3gxaMvglMKeeyFHXPP1V+AKsQ5KmPlzYKFe+Fam85FZOF8i +0OrlYcuJ6ZCSXFY9Yfr4GFrkLNsyWfSdv20JVi5U5LWJj4kArw8vc09zVxnpw5IK +4TNxhg68Pho5/XES4upBQkWAzukwOKUVjzCaZkj9Kbos7MO5D4w9DZjGD5sosob/ +aLPznRqrhGX7KIVeqUDn5gavtIjk6mZBMpdDGi9GQ6ObuHUnDKyf0K4gYQ40NVGD +e1KidJmRoLgdWph2NNP1tuLQcq6dzCdC5Oryu0yCLFXnxHURkIDTT6mKCtJ6rEsk +O+s6+3yOB2FXv+oF1L/rUzv+dZsvKQR7T9odOITuQ/LGs9whGTG0sqpbCjyhCwt7 +2xy95fIpPdQ1Uhzcu9N/XZPRYY5IYR0NUDEUen9QAHWJAhwEEwEKAAYFAlkmhFEA +CgkQdjjQRCuQ0BAjWxAAjIMwo5CFvImdmyiSfDLPezHLFL49FbLGIENr6E0xcAKo +kPj5s3mCZ0dbCV32yrMBBIllHNrJ1dnv3+VQAwJFQNaTKZbej15zUL5RvBxZlaN5 +RNlf/vYD9Llm0fWiwMXpm0ep2ID2T93i1wGyYt1FnlQ58fO2Qye3h1Kp4qAQjDMR +k2jjePqwx06QkC9+R21XK78RezgmtVb9BPTVNnUazzREcq1/mVfratAnlR+Arh63 +80E63Glwc9vNqzkuYA1ilTodzPCXk9vEA2gD31L1gCu3YP0kqe5aHB1R6y1cFvQz +0Il/P4lyMBm3eTWZ09961Eopl0kLMPFFZkGw2ev4OB1wa0IAdugBTpCqc6lx/CY8 +mt/s6mEVxvzI4ljNgKPyyLaBZUOY0gtEgwmpE63njMWmuFxDOls7WuP45WEuRoOB +OJkwtYNNpaghN2K/qWEgLtU76Nq64DGkjFd8xVdEccgmYxquQtrXEKj+2E5G8NOx +tZeH0HrVcOfXHTMNx9UoZRP00VSycctkDwt0NBrDqA+o0Djkdql01YLUFOmOYe+U +Z7vxNZIfQkGr2ynnAiqIchMuoz4/IUBLJ0HKasEf62NYluPrcbh2giTTYKtDkZqA +eFB6lLxyTiZ3vDTE5a9lPrKt/p1JBhW5/S2BHWJjDMDO9ut4a8MWfw84u2ZwNuOJ +AhwEEwEKAAYFAlkmhVkACgkQnW2Pa8hXyQagAxAAvhC1r8xGL31TWdusrNWzh7jD +h1qWOMY/cvWmU5Jj10OG2O9oBa7hhm8g/bj8a3rVPEFPwdzJQNEG1MKinVkRjgTP +ST9QHNuUP2sPtVsq/Y5HxFV8prCKXZ5hiVBLgORpSLF/kUh54dGhiFjycUoTFn0g +MkaNArvkAGWpqjFgeQxW+Y15DHj4c1EwcSIKrcpDMyVqlZD96bbkLL7kTQ4zCMlJ +irezEANgEXUYz0RD4NcWGHaT+GFVJfI+Mq4P17FltpHZyTtWbBmkzvJ4y6tbvxQt +mKpDR4z88nstjCSXDjU4nOZL7Bifoi8ztV4uLzJ00dC6ivFmTCQyCqXCHPMvT3dj +9Byr+cMWBGSfM198/oUh++eYW8dp0wjNtIrnJaqnLICzvBg5OucxzRVa4ZMPPx9+ +4jYjdsNsYg+oiZE5ljW1Ig8CBcCyVjNSUBDrRbb9vp1up/ByC3oxD8Uy3wETc7C7 +AMJ8H+RH/6J+HrE3im0HB22XiR4TtKgOuLQxGVO+aXEhdGdxFdWZUDdulC+feWc8 +acVkRvlIYF2Bfxs1Ecee/BkP7++kWZJ9o9Nl1HEpv+spDoxpzL4VRNF3U84InaCb +wX17GLuVj07bk06ag44ZHmXwM/GSRn4ITwEVSKKoBCcvJGnRROA0n1a5+v7XSMvT +9Q0gJj1rzlA9VNgS7Pi5Ag0EWSMwTgEQAMkD4hfHi8rZYM4I8V+vJp8feW93+Oiq +caVzQygYKs+/dbr9favoHttNxOF8eBMIwkQgQlBIYehcHAnhnhuCP6s16tnM2lF6 +52s4c7DV4Fodo53Q+sqzPth/dH76NOeUAzSj3KPfD9YblrB+J2Z14PP2ObfvO8k/ +SghaCEPZ8geq5DZjTAs1YU5xYlawVJCvoQnb2TKEXbUrMOqAX/ysOwk3DrIo78h1 +HvGShBuHf08gOtv8Fm2pKdkPHzr/QI0/atFoRn793W74n4Qc2mwrDUUQds7oZ1IX +tXeIHlVV8Z13no4qA7FRNL40/vBfKuPFAPZGt17k946L2LL5Lxu43eVFIbW2jAod +tV3NxAYu5JAYIYOawZO0p9OZJdZ8sTg5KOhBfyfO4pFyc/FaOhxv3SVqhRZAuHTe +6OSKLUMcV/7Yrb1hClSXtZcuTEZfaqDksoGg/QDHuYcnAtD7NWEEgEfuL2KYXudw +GIjRQSUUMWv4Fw+BT50f3PHSH+lns/vQXxEaKDiGacKOC+FEHs9jTvWl9+phyzCK +4CfTgZagW6gsvfPc/0fg2a/TaTzj4Y48KbENcBc+x2IwowRZAtSI+LsgH8puKMbQ +7oRRnVdt2LqkWtzBoTcc4r5r4m+eGZ8/qsB1n69bS+MNWZtusaBeaQHGFv4d9rIC +0QOzwZLX5EE1ABEBAAGJBHIEGAEKACYWIQThzyDd/+S4noAmWPHgsRiU9mrsmAUC +WSMwTgIbAgUJDwmcAAJACRDgsRiU9mrsmMF0IAQZAQoAHRYhBBbpCz/fZe3jqn8y +PATucje31FPsBQJZIzBOAAoJEATucje31FPscu8P/0yRsvlQjY0q600VkxD8KciV +lvC7+xyrMBIal1ILjIpPlMeuWWpPE+Ffnry91m1GcAlXTfUf7NhZkqWfsyygqUGy +BJ7ydPox8rA4UXW3J31Em4Lgc0JwUFD/bFqz/iVVYCnaWYcoX/68CwaWRCjt67v3 +3vNCw97t/W40430HsmK+AC6HS6vV09KeYk5fhrORFBNGrZT7Bm7lsWGgaz+7pNGk +GE6k+K3sS6boGga1EGLA6YbaOEaIS6QJtpm4VEleFksj3JHK1TMN/QCnSGdy0/0b +qkF/TDcfqG9c1vCp9knWkCKQmi/nv2ay2v6ZAcICAY7sjibicmBd06uvfU1bhKB7 +nYC/i77l+IGKX5R/WvTrdb+J5qQhODF70Nr6HO6EsI4E4X541GRLgGMZYKbiu0Tb +uo1B7PSOrkddGUwxXjDBXM2ClcgPi8nL1irpleSAu89/B+Y+pr5IshaVmIP4+jCl +GDG18/kPryOFk0ACszjlX7eFMTFPUX0gl7qDRfVE1jKzPxf75gLoeIylYChMd17b +uQo8RsknkcvNgifdL4sRcbxOvhpERONK1MwR88K8C0GqJ61cIRMv8odMMpescww0 +5ECOpE+kl9PJcREnm8SVkclraWcQVEwGOkHtx5BsPqZplUEAIcJNXuvXm9kFkaVS +2SRvQyklI6/NQQZzK8SRwacQAIGFHV3eOtC0rdrnmnh2XCDeEN5iPCvVG723jIc2 +6aDR4a47zr9507TBLUxMPJQ6mB7imsEcWHfR48zARq8jMSj7ahfhIa1ixEksc943 +CxLrjPAWfAnog/2MYJdUw/nBjU4dqb53ssxD/F/c3LB+z/nCEaO2UgH2Kekh0KyV +KgwV0N8XcTB0UmGcH9J2DZ5/ZXRc2XiYWIDoJHs8thGxwsIYXEhYsgBwGu9Kil4t +LzFt4sluY0kvfrDHu+oYfcYBh5V7q6AQYBh8ujjAhKZUmlKtgay6IHkR65m8QI49 +ITdTQW+Y+orphcsdbvCm4IhXPgykLySouskwr7RuhPka0hKwDUt+0MHbBmAhfYnF +JC5o23tmgAq8l2WZbp6/uFZ+4E9UmvAI0RvQM/B3AxQBOCBOryGeaBwkJcsACm8V +ADWm+/OWK78kuval45wGQl9+TqqjRuwA9ESEUMgZnc33rVPM3h6gR8Rv/M77AjyM +88rGBLCWr7wNY4e3U34tH8jMFOMy9vN6l3kOR5/EFoXJJGehzE+xCyyeicY2HsJ5 +t5R/R6w23vgNqf6eBRQuDtym2rSuuiaCnvKEF3S9ng+phmm/eZadG7xOjERRPqqt +TP+zge55Q1B+P1HmllKlR6YLFyRuKOO1ZOVh4Ae2MS4oZybMQsTifjjiQ/8W8KJq +k5Bh +=3qWJ +-----END PGP PUBLIC KEY BLOCK----- diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/eval/hints new file mode 100644 index 00000000..9c5238ea --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-bloated/eval/hints @@ -0,0 +1 @@ +upstream-key-bloated (source): public-upstream-key-not-minimal has 5 extra signature(s) for keyid E0B11894F66AEC98 [debian/upstream/signing-key.asc] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/ORIGIN new file mode 100644 index 00000000..c874b6bc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/upstream/signing-key/upstream-key-empty + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/debian/changelog new file mode 100644 index 00000000..0da515a2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/debian/changelog @@ -0,0 +1,17 @@ +upstream-key-empty (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: upstream-key-empty + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +upstream-key-empty (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: upstream-key-empty + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/debian/control new file mode 100644 index 00000000..6f7e1653 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/debian/control @@ -0,0 +1,17 @@ +Source: upstream-key-empty +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: upstream-key-empty +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test with an empty public upstream signing key (requires source format 3.0) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/debian/upstream/signing-key.asc b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/debian/upstream/signing-key.asc new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/eval/hints new file mode 100644 index 00000000..b39ccf7d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-empty/eval/hints @@ -0,0 +1 @@ +upstream-key-empty (source): public-upstream-key-unusable cannot be processed [debian/upstream/signing-key.asc] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/ORIGIN new file mode 100644 index 00000000..5055fb5f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/upstream/signing-key/upstream-key-minimal + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/debian/changelog new file mode 100644 index 00000000..e76011ca --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/debian/changelog @@ -0,0 +1,17 @@ +upstream-key-minimal (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: upstream-key-minimal + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +upstream-key-minimal (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: upstream-key-minimal + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/debian/control new file mode 100644 index 00000000..684cd95f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/debian/control @@ -0,0 +1,17 @@ +Source: upstream-key-minimal +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: upstream-key-minimal +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test with a minimal public upstream signing key (false positive) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/debian/upstream/signing-key.asc b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/debian/upstream/signing-key.asc new file mode 100644 index 00000000..25cdc6af --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/debian/upstream/signing-key.asc @@ -0,0 +1,101 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQINBFkjME4BEACatcbzE9EaIKMmiS3OmcrooZZUI4pGtJcFqCNBOP3qvxUEq9Tk +4XPY8EARDGdwy2rMc12ywoc5FMzNwXiC3RpUNHnNhY+zau18q9CQx8UR02NDFWQq +AwaDSF4WU1GBVBMWgtxfIwAQGl/qOr+aSVtJCnEOTA/YiZPNw/wpA7r2g6EHYcce +a5srr7F15a6OxzDdPXlfoJuoSXMZUHpJIqG0UOo7NPkxPGRoHO2yGPS1DWKy3egG +xm718DwaIWee+mfJrcqT0ZFH4n5po1BJVj+8TcqE4YlkN/z4p0zI/XAxNCR2wGV2 +6cCQ8laEgwG33rPp+N3G/FeJchYTFvL7zDtdYKbBPVeaJh2kROnqbVVN5kZBVEXB +QNbXKuK6/TPiQeI+8anA9WflI19lzkzl29L7hsM9ornk7+wtu9P2hu3eEUgjjBli +Ujisw8s0aTPB5QsMCjSownwZ0ucqj+07nYVsPU2wK8x6A7p6Cg2SCPnjbX8jUb3Z +wyn0yi4SWceW9a+LW6wdGarMGbu+Lm6in8pK93u7mE/D4AskUVz1yLyiNO9WBXPq +GyTocqXKXTutHKhhSwY9CyEw1+SRzXXyHPmRunRULTgZHLOaydK6ekzBOe1Yp9Zk +hLvon6fgOhJTsokv27QCSw8ILbQPGF9qJWFQfYZhT4QCufmPaFgBpJOdewARAQAB +iQJOBB8BCgA4FiEE4c8g3f/kuJ6AJljx4LEYlPZq7JgFAlkjMMkXDIABgOl28UpQ +ikjpyj/pvDciUsoc+WQCBwAACgkQ4LEYlPZq7JiCcw/+NxzyntWMM/b/eIMedzZK +Zyq7Mo6vgFxT57wAloMtLu0WS9oETTH/+/9+fHPmkYxCX1HTNKpdY2KbjiZC/gAY +vJ8iGWredwIls2UyW4fegzRLNvWLZmUBbLg0WaTIQ9JZwa2Rw/q6Z0pe0tfb44oX +lpps0WA/OZCWXYVO2rhOzoiQulqdmHgwdcLA29BnpqBY1R8/LMDsfPLnJu7AFqgM +CQpnjIGRH6ZxF2TNUSdljUbIOultEeIvxtxosF1u0r20mg46aaKDpr0ANiR/Ojaj +YoeHZc39fyubSrhIyQuk4rDisrJod63MJ9x9upAc9H3qz71QjpwpVXPDxereWULO +17qN3hjjZd23CBdRv8HjRKQoFagUnxlrat1t+/yJCENzX6eX8wBs0vVCSmbtbSp7 +y+0BK4fyjDKCdiyKh1TiAnQ1Po/xICGr4Sa6Wohq2TeWXz4VlRnaQeCIwa4Kk6T/ +3VTQbNxn7Uiy9ec8aR+1YMGUBDG/k3s6K1PWLdJtSVgao8MkQYeKcQk/sgGSFPh8 +SkTy7CnSjK/gQP8NC5fFDWpatGpnDr9qsQwzMnUVYWNZQMQ+LJHPnXRyusr3M+Gh +4muVW1wmyjNLhtEYjJJnbv9bVVv2HFVXOWGiXY4hnj01xkHf3885Qq5ORWl1FMnU +lcqUcFsB6a1CCPGxNTJQhgKJAk4EHwEKADgWIQThzyDd/+S4noAmWPHgsRiU9mrs +mAUCWSMwyRcMgAH7+r21QbXclVvZum7bFs9bsSUlxAIHAAAKCRDgsRiU9mrsmK2H +D/9frYP6KRecLNMzLJGe6MB/1DbqIud1/kzd/jHRo3e4Dz8cls29N03HskLE4jTf +BXKAhUmRI52aMCioY/K03rZLaR++/GMIdnF7O4Ks7P203J4/CudmXQvz3Rby22lC +RCp3Wsx2DqFgpc1V5SjmdDxzEs3fwKJ0B8YOMyibyUaLfwaxRfiTsWmRF192WzCM +/B1tmJDLIqwq/xxzxmiqzrxBWq3JIxH1PzrGbWvAE0gfBJHgw/2HHO4PAG9Lj+AV +HHPV/9xhXdbF/KnnKUGtd9lssNleWlc5LeM0ix2pU/QrZx7c+CBW+142jQcZ58X6 +QvHTKBkImI7y3kMCUOs+UbxKnFsRBRduMLvIpXJVXukV3QvRn+9riITPIcviF4ni +F6V2NQ+ONrvMOK2s6VdfgMS7c4Azuyt4SJSEzBhHu+VTVnMZCBiKvZtRL5XX85ZF +DDkN62Bwa+F36lTiOBWOecSQykCyOKcnn0jKrSgDOk08qE7Nzl2SPdlpza0/bk2u +6i8o3mrmdO02OqC9vJum6M4Pn2HHrkPzAtSs11E7ogcZghPxnGCekGQNekHx9DKM +mv8W+SZf4b1KD1EKECeNLZ0QHQMjU3AYBav+Mq9IXIlwFZL85BYLUAWfrCnqf/gV +CTiy9yKdQ4WIr9XR+zywDigAZqJ5PxwBh1+phrkoWUfsLokCTgQfAQoAOBYhBOHP +IN3/5LiegCZY8eCxGJT2auyYBQJZIzDJFwyAATCZEb6pZtBhMFMEVxG05f8VsP2C +AgcAAAoJEOCxGJT2auyYWHAP/jlmSZQI/dnrYTT0ZtZA0k3sCaaOApWmno4Jm1+p +QzxBJyVXC/7em3D/Wb3B4XpQKnkWOGz3XtEf4LNPhrW1n6nLFOLctprGwnlZihBp +tmidEvvFKCa5exv4WOVyat5jLttNJ6o4O0BJHmUJG/wAVSjfWi2KgVXZEnz/wts8 +KFXc06RCgavIATmlC5QqD87U5ezKJdY0HY/A8uT9aBJ3KFdzj5MnZOzr2RJcEtWU +UE1HHxqJS7POQVMUWK/7nABUKjzpQg8Hn7VNom553Lf8yk+OLl0x7+bS/8tZltZ/ +zkIqzUmpPk1QSf5b4JOryJye0ZV60TtbI7juXi2VV41gcHxd7EMkF4PAMtHF/rNM +n/sR4LLXPnQk71zqOScYpMBDQ0FikQ7UuUT35iJAX3u7mWYL0P4h3NBlPmRLg9W3 +k/g5KRBLJ2U9Ba+i3UIRva8tUGz/EluzOCUcSbIEMNkaNyt4ktO3PaIzAzdVdxYk +IWV6NUj92vSBJvXinzIjyXTk9Tjfuf4hLo15C+1c9P0+XkpKzpvW1ycpIUVH9QSZ +afC1e45EXSkD0AV+y6ihJf4PWddgGb3ZeWarcp2QL/ll3XoBdEGfxOQJ1Py2nfIS +HxVrl5AxoEJ9q+4YO5xysAV4f+UFKvS4snJtRztOYBKM0/4pup41u4V8oGWLRUOC +d/GitEdEZWJpYW4gQXJjaGl2ZSBBdXRvbWF0aWMgU2lnbmluZyBLZXkgKDkvc3Ry +ZXRjaCkgPGZ0cG1hc3RlckBkZWJpYW4ub3JnPokCVAQTAQoAPhYhBOHPIN3/5Lie +gCZY8eCxGJT2auyYBQJZIzBOAhsDBQkPCZwABQsJCAcDBRUKCQgLBRYCAwEAAh4B +AheAAAoJEOCxGJT2auyYKFoP/R5ijjBRlLpClTvhk5p1pE/cJbMAHd1Y7x09iSN3 +nT222tx4Zk3wVnP/1puJNkOxW7btMuUNz6Y4DolLpAa71hq3NOsTGz+5PL8ZFBoi +lIN2iOpfzqIFLASM0Pz6X+twV3ZyE1PZmfzLAu8OWm4kt1v3qJVtWN/5dHbjTqMt +vUc28VX1di51zWTs+3b/SDC+KN98i9W64JUiHPcLL6b2Y44fDszDDVVExwtPrPk0 +VU+et4/uWmhcdEIEb91MIEsLAUJIBqcGTZU7Gymxupa3vApT6UUxfNKkVCGDN5dk +zFKkS6p2NEQjtIPNAheBwUfHqSDeN+EW4IuQxHZ92o+XGFMHqU29Vy81sPkGvKkG +EIL12iMpW9hDTbjO/+v695o3tVo/h1b0NSZP3Jk4I3iDBpAcUEYarxoOung2K1fC +QYH7R+7hy3lnRP36s9za6rEbik0c4XRvyYaYq7npGEq4CqhcKgRhZqVcy2Zmymcw +MqR1wLSxEmbREQZfBCFh5zpVC+kmRHfXCmZyAfDwLgGuMDVL7piCW5DqpC04Ks7M +Uj/r1O5hyMEjIzcdATVBMNJmdOPw7d0vqgBUizj0Y/e8RhmY8mkmy1zoI1HU7JfF +eKNnK/I2KYUop0qV0+bEFcu0RiEFVMP5cw4L2QAr1Y39XJNFU3v7IujRZXkxLn+H +6l4HuQINBFkjME4BEADJA+IXx4vK2WDOCPFfryafH3lvd/joqnGlc0MoGCrPv3W6 +/X2r6B7bTcThfHgTCMJEIEJQSGHoXBwJ4Z4bgj+rNerZzNpReudrOHOw1eBaHaOd +0PrKsz7Yf3R++jTnlAM0o9yj3w/WG5awfidmdeDz9jm37zvJP0oIWghD2fIHquQ2 +Y0wLNWFOcWJWsFSQr6EJ29kyhF21KzDqgF/8rDsJNw6yKO/IdR7xkoQbh39PIDrb +/BZtqSnZDx86/0CNP2rRaEZ+/d1u+J+EHNpsKw1FEHbO6GdSF7V3iB5VVfGdd56O +KgOxUTS+NP7wXyrjxQD2Rrde5PeOi9iy+S8buN3lRSG1towKHbVdzcQGLuSQGCGD +msGTtKfTmSXWfLE4OSjoQX8nzuKRcnPxWjocb90laoUWQLh03ujkii1DHFf+2K29 +YQpUl7WXLkxGX2qg5LKBoP0Ax7mHJwLQ+zVhBIBH7i9imF7ncBiI0UElFDFr+BcP +gU+dH9zx0h/pZ7P70F8RGig4hmnCjgvhRB7PY071pffqYcswiuAn04GWoFuoLL3z +3P9H4Nmv02k84+GOPCmxDXAXPsdiMKMEWQLUiPi7IB/KbijG0O6EUZ1Xbdi6pFrc +waE3HOK+a+JvnhmfP6rAdZ+vW0vjDVmbbrGgXmkBxhb+HfayAtEDs8GS1+RBNQAR +AQABiQRyBBgBCgAmFiEE4c8g3f/kuJ6AJljx4LEYlPZq7JgFAlkjME4CGwIFCQ8J +nAACQAkQ4LEYlPZq7JjBdCAEGQEKAB0WIQQW6Qs/32Xt46p/MjwE7nI3t9RT7AUC +WSMwTgAKCRAE7nI3t9RT7HLvD/9MkbL5UI2NKutNFZMQ/CnIlZbwu/scqzASGpdS +C4yKT5THrllqTxPhX568vdZtRnAJV031H+zYWZKln7MsoKlBsgSe8nT6MfKwOFF1 +tyd9RJuC4HNCcFBQ/2xas/4lVWAp2lmHKF/+vAsGlkQo7eu7997zQsPe7f1uNON9 +B7JivgAuh0ur1dPSnmJOX4azkRQTRq2U+wZu5bFhoGs/u6TRpBhOpPit7Eum6BoG +tRBiwOmG2jhGiEukCbaZuFRJXhZLI9yRytUzDf0Ap0hnctP9G6pBf0w3H6hvXNbw +qfZJ1pAikJov579mstr+mQHCAgGO7I4m4nJgXdOrr31NW4Sge52Av4u+5fiBil+U +f1r063W/ieakITgxe9Da+hzuhLCOBOF+eNRkS4BjGWCm4rtE27qNQez0jq5HXRlM +MV4wwVzNgpXID4vJy9Yq6ZXkgLvPfwfmPqa+SLIWlZiD+PowpRgxtfP5D68jhZNA +ArM45V+3hTExT1F9IJe6g0X1RNYysz8X++YC6HiMpWAoTHde27kKPEbJJ5HLzYIn +3S+LEXG8Tr4aRETjStTMEfPCvAtBqietXCETL/KHTDKXrHMMNORAjqRPpJfTyXER +J5vElZHJa2lnEFRMBjpB7ceQbD6maZVBACHCTV7r15vZBZGlUtkkb0MpJSOvzUEG +cyvEkcGnEACBhR1d3jrQtK3a55p4dlwg3hDeYjwr1Ru9t4yHNumg0eGuO86/edO0 +wS1MTDyUOpge4prBHFh30ePMwEavIzEo+2oX4SGtYsRJLHPeNwsS64zwFnwJ6IP9 +jGCXVMP5wY1OHam+d7LMQ/xf3Nywfs/5whGjtlIB9inpIdCslSoMFdDfF3EwdFJh +nB/Sdg2ef2V0XNl4mFiA6CR7PLYRscLCGFxIWLIAcBrvSopeLS8xbeLJbmNJL36w +x7vqGH3GAYeVe6ugEGAYfLo4wISmVJpSrYGsuiB5EeuZvECOPSE3U0FvmPqK6YXL +HW7wpuCIVz4MpC8kqLrJMK+0boT5GtISsA1LftDB2wZgIX2JxSQuaNt7ZoAKvJdl +mW6ev7hWfuBPVJrwCNEb0DPwdwMUATggTq8hnmgcJCXLAApvFQA1pvvzliu/JLr2 +peOcBkJffk6qo0bsAPREhFDIGZ3N961TzN4eoEfEb/zO+wI8jPPKxgSwlq+8DWOH +t1N+LR/IzBTjMvbzepd5DkefxBaFySRnocxPsQssnonGNh7CebeUf0esNt74Dan+ +ngUULg7cptq0rromgp7yhBd0vZ4PqYZpv3mWnRu8ToxEUT6qrUz/s4HueUNQfj9R +5pZSpUemCxckbijjtWTlYeAHtjEuKGcmzELE4n444kP/FvCiapOQYQ== +=Gbbb +-----END PGP PUBLIC KEY BLOCK----- diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-minimal/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/ORIGIN new file mode 100644 index 00000000..e5c23243 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/upstream/signing-key/upstream-key-multiple-locations + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/debian/changelog new file mode 100644 index 00000000..5920e16e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/debian/changelog @@ -0,0 +1,17 @@ +upstream-key-multiple-locations (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: upstream-key-multiple-locations + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +upstream-key-multiple-locations (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: upstream-key-multiple-locations + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/debian/control new file mode 100644 index 00000000..73540902 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/debian/control @@ -0,0 +1,17 @@ +Source: upstream-key-multiple-locations +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: upstream-key-multiple-locations +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check if upstream signing keys are present in multiple locations + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/debian/upstream-signing-key.pgp b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/debian/upstream-signing-key.pgp new file mode 100644 index 00000000..d83f52c4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/debian/upstream-signing-key.pgp @@ -0,0 +1,52 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQINBFpEMFgBEADNYEVhITIZ/rVECuLWxDJUk4rV+v6IfJCxJzuXRfqbjkdLNsCD +P83FOdvcxNQSrWPdSCgV1tDeDc18pNmfWDnu90zrLRipR1u7ln/ajTpx0RI7tHaO +SCIJfo42iw7firz9IoegqZaH8LKCh63EaXxLD98MgRA9fcBTEaBSD+Wxh8yYL/5b +bjdUu2FNNEi8f0POBAB3XInu80mqkEeVYPijd2T8Tc5xaxD90OBuuNGSiqKrJ+lB +9TSxwr5E/9N+6fnCjrR4FVkZtyTELAdZm4CpQN26tinVolG1gDpMz5B27471oXPY +9K92/UzTRllwuZ09pdBwpd4gu9mTXMLwOJ/S/+LJeSfCmby7QZiM/61NpS5EyaYg +h+m8YyTUtulFqpWd2HxttXz0ii5C01LKUrNPqlQrxmfrACJ1tHvcngVQm4wyqMHq +Uw5LYJ8FM7eS3JPeHpHqFGpY1VKx3nZAZGx+1As1ClvT7Og1KyuVY59w8qNaeJ8C +eA9XrwGVbMm9PiTP+fyBykMaYpf5aGucH+GeBtkvmpyOyXqf7zrOqyRvY0QaMgt1 +n3jXcD7AZKHCp0wY6LYVa/sKqrDJtxoloBA6kV2Ui3kClOWmlfvm+i1Ecg7vCG8d +QrJtZxo1Wu54dIr+g0qMFjlBA69OFYRXPzoaWFW1BKtNAYFoej9vW/f+0wARAQAB +tDtMaW50aWFuIFRlc3QgVXBzdHJlYW0gS2V5IChXb3JraW5nLCBObyBFeHBpcmF0 +aW9uLCBNaW5pbWFsKYkCTgQTAQoAOBYhBPr6VG+KNaSTu27AqFtc4nOV5lb+BQJa +RDBYAhsDBQsJCAcDBRUKCQgLBRYDAgEAAh4BAheAAAoJEFtc4nOV5lb+B3kQAMMm +umaOq12REmLdKWMN7GOsxzV6fTF5xBjTgKfY9DCBeNV7tSuJGpGT9MaxRD5Yu/1p +PDMGC9TkDxOEULBucmp7M//3FCuSnGQFBcObHNXY9FmLQ5MZJ32QUi8KLNIcDjuF +AKMEYJ5AT50pBsGyLVGXL27HWndNV7jMeIX64gIN5chPKMHqCn0g/wTTaPY/kkEs +MYirGmBQ83cIAv/1nywtIPeBnj+02Vu3B1hJIZYgmDQZwjZdd7HTxsVW0LAZEXs5 +gtWArfHO3zNKy6WkVE+xhNgZuVO3EyV46JW0bQ2RC7yY70/qFxX71co6p2+VaZgf +198QtRddq9cKaSe68BnZesIp9YnT3xJVYeL6IrrMYNIZxlslL4/b+gKU3epHyFes +tQP1tqkhnmC+Bxds6kx0ngPVfTfWM4Ruaeot51BuenZu82S1B3FB5B0qruCNyKre +nl53nPaNkOERPOF654AXoIODTgnyaocCaQTPztOYm52X8u9qogf9wf1eEA9EZIBI +WSbn3eCohN6qWvsdC0MMRDu0HB4S1QUyyOceNflXePg6SPvJSPHuOG/5DShcN6ah +mgVMH44ecAWsh/8Uj1+Z39Ea07nfE3lCU/WR+DXJb56WaQChXN7AKITrNRd/Q61X +jqrB6jWRSeVBKDidsFwI7oALdSgONE/ZEy+M4j76uQINBFpEMFgBEADCWJECQ6K1 +HgH7OwX7eY8ggEdCOYI/cTGx9rfzdqx67tc7fsF63BrO+nTHylcwXi9IAs695zvp +miCnCu1EUVjfM+nD52kocVEhzFc/lcCq6d9ac7H9ItJgf3Qc2HpwcqvsNUTWPDMU +VjQ8ciZ57qq601kIjVPuHjKRY96K9iHxUeVGh2n74JLYZL5IKO08WtQgPmPVLFDX +X2iZXnZdW/X4xTYB+/+V/D1LyUIP3X7CzBNzJuYjP3vGDH3h4ulLWnDSmxKs6Aep +a0sKu6+YD14/xXOi+buc0m6ghP7WePl9gYi6XePLdVPeLC9aiDi1tCWEVbbsinhw +ODxLwndXCGUc+AVySdUrUMuRchNRI6Z5PW/a/RsuVmyORg1RSuFGLeJQZj1pAw6x +WjxgioqoqydECIx4gCwGO/0GNZCfe5n11vuMEZ7SKbnrf5d58EQXOgV+yZumRKkz +OmdKICjql6w5CealrvP/si2kfD3oVwqBeuM0aM8HmWTfrdESWrd8xqAxBlcDsIun +mpsJ6obGN2mOaMFmOljukdzDFgMJMIrcS4UcGNzyQWUbz6JOSfPq96RkrTVsXMKy +40Ygtwe63PS9lXGT2ojmiV193UrGJqEUjuAL79KXWkxTRFxvFwck9qK5RAX2F1GQ +4ELDAFSKr8t6IpiYiTXaA3OTJfxJMK191QARAQABiQI2BBgBCgAgFiEE+vpUb4o1 +pJO7bsCoW1zic5XmVv4FAlpEMFgCGwwACgkQW1zic5XmVv4VEA//dOFj60ktKKsl +CgRdtnuo9Sdd7IjShic67qoT0gFZRiMATaryM4ifjAcl03rxzGk5MOsltHFJr5h+ +RmaudKhCyksd1nQ2dBpFgPHyxVTS5/k+wMelP9kPailqiGUA735SP5mO/28YOT8v +Xa4rwnTn6s9Ga7+lMN4I7LKRo47uGG89Og381tHSkW8DjFuLTme3TQDysG2MGlSY +vTPJmF7xPCuG3s8J5RIrVwWbN0orWen9YWT1923+0CAZG8M+7AFxU5xxCFIBRKMw +2tw/ovjtE9czuT743LMPlUJRc1pveYjVhLY9xUMQsPO6j41pdIL2X7txFjQqzjFl +hpIJviupVWlV0vSS0Q7nAtvLTsjhXSyQriKqmfdsdcxXBz7LGRxEi5l/9zuW5GMy +kD5ikQ05li6wkBdQYLS3ZBYkrj94LpNEqNZE3sfX33Yc5cpE2Bc4Ga+MxYxQwrfz +sNNSp8jdf2FyFvlvRkO8UUgsW5PPOuwthb05bx7dQGfKvqySpd0JLrhxw8G8odJh +PGzl0ig4F8xEitMc0lms5yzQGvtpEvSYLUs+4EJaf/XN9nRS+4e+GciTmp9XUM/5 +EtKOKXVuhHyaizqfpF4VR0Tbg65HHE3zLJMr7XTUGC0Zr+bj0n/V177R0XgptY7Y +jr6SfdNikIDjGYa+yuN6KGQsriza1aA= +=CYsi +-----END PGP PUBLIC KEY BLOCK----- diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/debian/upstream/signing-key.asc b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/debian/upstream/signing-key.asc new file mode 100644 index 00000000..d83f52c4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/debian/upstream/signing-key.asc @@ -0,0 +1,52 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQINBFpEMFgBEADNYEVhITIZ/rVECuLWxDJUk4rV+v6IfJCxJzuXRfqbjkdLNsCD +P83FOdvcxNQSrWPdSCgV1tDeDc18pNmfWDnu90zrLRipR1u7ln/ajTpx0RI7tHaO +SCIJfo42iw7firz9IoegqZaH8LKCh63EaXxLD98MgRA9fcBTEaBSD+Wxh8yYL/5b +bjdUu2FNNEi8f0POBAB3XInu80mqkEeVYPijd2T8Tc5xaxD90OBuuNGSiqKrJ+lB +9TSxwr5E/9N+6fnCjrR4FVkZtyTELAdZm4CpQN26tinVolG1gDpMz5B27471oXPY +9K92/UzTRllwuZ09pdBwpd4gu9mTXMLwOJ/S/+LJeSfCmby7QZiM/61NpS5EyaYg +h+m8YyTUtulFqpWd2HxttXz0ii5C01LKUrNPqlQrxmfrACJ1tHvcngVQm4wyqMHq +Uw5LYJ8FM7eS3JPeHpHqFGpY1VKx3nZAZGx+1As1ClvT7Og1KyuVY59w8qNaeJ8C +eA9XrwGVbMm9PiTP+fyBykMaYpf5aGucH+GeBtkvmpyOyXqf7zrOqyRvY0QaMgt1 +n3jXcD7AZKHCp0wY6LYVa/sKqrDJtxoloBA6kV2Ui3kClOWmlfvm+i1Ecg7vCG8d +QrJtZxo1Wu54dIr+g0qMFjlBA69OFYRXPzoaWFW1BKtNAYFoej9vW/f+0wARAQAB +tDtMaW50aWFuIFRlc3QgVXBzdHJlYW0gS2V5IChXb3JraW5nLCBObyBFeHBpcmF0 +aW9uLCBNaW5pbWFsKYkCTgQTAQoAOBYhBPr6VG+KNaSTu27AqFtc4nOV5lb+BQJa +RDBYAhsDBQsJCAcDBRUKCQgLBRYDAgEAAh4BAheAAAoJEFtc4nOV5lb+B3kQAMMm +umaOq12REmLdKWMN7GOsxzV6fTF5xBjTgKfY9DCBeNV7tSuJGpGT9MaxRD5Yu/1p +PDMGC9TkDxOEULBucmp7M//3FCuSnGQFBcObHNXY9FmLQ5MZJ32QUi8KLNIcDjuF +AKMEYJ5AT50pBsGyLVGXL27HWndNV7jMeIX64gIN5chPKMHqCn0g/wTTaPY/kkEs +MYirGmBQ83cIAv/1nywtIPeBnj+02Vu3B1hJIZYgmDQZwjZdd7HTxsVW0LAZEXs5 +gtWArfHO3zNKy6WkVE+xhNgZuVO3EyV46JW0bQ2RC7yY70/qFxX71co6p2+VaZgf +198QtRddq9cKaSe68BnZesIp9YnT3xJVYeL6IrrMYNIZxlslL4/b+gKU3epHyFes +tQP1tqkhnmC+Bxds6kx0ngPVfTfWM4Ruaeot51BuenZu82S1B3FB5B0qruCNyKre +nl53nPaNkOERPOF654AXoIODTgnyaocCaQTPztOYm52X8u9qogf9wf1eEA9EZIBI +WSbn3eCohN6qWvsdC0MMRDu0HB4S1QUyyOceNflXePg6SPvJSPHuOG/5DShcN6ah +mgVMH44ecAWsh/8Uj1+Z39Ea07nfE3lCU/WR+DXJb56WaQChXN7AKITrNRd/Q61X +jqrB6jWRSeVBKDidsFwI7oALdSgONE/ZEy+M4j76uQINBFpEMFgBEADCWJECQ6K1 +HgH7OwX7eY8ggEdCOYI/cTGx9rfzdqx67tc7fsF63BrO+nTHylcwXi9IAs695zvp +miCnCu1EUVjfM+nD52kocVEhzFc/lcCq6d9ac7H9ItJgf3Qc2HpwcqvsNUTWPDMU +VjQ8ciZ57qq601kIjVPuHjKRY96K9iHxUeVGh2n74JLYZL5IKO08WtQgPmPVLFDX +X2iZXnZdW/X4xTYB+/+V/D1LyUIP3X7CzBNzJuYjP3vGDH3h4ulLWnDSmxKs6Aep +a0sKu6+YD14/xXOi+buc0m6ghP7WePl9gYi6XePLdVPeLC9aiDi1tCWEVbbsinhw +ODxLwndXCGUc+AVySdUrUMuRchNRI6Z5PW/a/RsuVmyORg1RSuFGLeJQZj1pAw6x +WjxgioqoqydECIx4gCwGO/0GNZCfe5n11vuMEZ7SKbnrf5d58EQXOgV+yZumRKkz +OmdKICjql6w5CealrvP/si2kfD3oVwqBeuM0aM8HmWTfrdESWrd8xqAxBlcDsIun +mpsJ6obGN2mOaMFmOljukdzDFgMJMIrcS4UcGNzyQWUbz6JOSfPq96RkrTVsXMKy +40Ygtwe63PS9lXGT2ojmiV193UrGJqEUjuAL79KXWkxTRFxvFwck9qK5RAX2F1GQ +4ELDAFSKr8t6IpiYiTXaA3OTJfxJMK191QARAQABiQI2BBgBCgAgFiEE+vpUb4o1 +pJO7bsCoW1zic5XmVv4FAlpEMFgCGwwACgkQW1zic5XmVv4VEA//dOFj60ktKKsl +CgRdtnuo9Sdd7IjShic67qoT0gFZRiMATaryM4ifjAcl03rxzGk5MOsltHFJr5h+ +RmaudKhCyksd1nQ2dBpFgPHyxVTS5/k+wMelP9kPailqiGUA735SP5mO/28YOT8v +Xa4rwnTn6s9Ga7+lMN4I7LKRo47uGG89Og381tHSkW8DjFuLTme3TQDysG2MGlSY +vTPJmF7xPCuG3s8J5RIrVwWbN0orWen9YWT1923+0CAZG8M+7AFxU5xxCFIBRKMw +2tw/ovjtE9czuT743LMPlUJRc1pveYjVhLY9xUMQsPO6j41pdIL2X7txFjQqzjFl +hpIJviupVWlV0vSS0Q7nAtvLTsjhXSyQriKqmfdsdcxXBz7LGRxEi5l/9zuW5GMy +kD5ikQ05li6wkBdQYLS3ZBYkrj94LpNEqNZE3sfX33Yc5cpE2Bc4Ga+MxYxQwrfz +sNNSp8jdf2FyFvlvRkO8UUgsW5PPOuwthb05bx7dQGfKvqySpd0JLrhxw8G8odJh +PGzl0ig4F8xEitMc0lms5yzQGvtpEvSYLUs+4EJaf/XN9nRS+4e+GciTmp9XUM/5 +EtKOKXVuhHyaizqfpF4VR0Tbg65HHE3zLJMr7XTUGC0Zr+bj0n/V177R0XgptY7Y +jr6SfdNikIDjGYa+yuN6KGQsriza1aA= +=CYsi +-----END PGP PUBLIC KEY BLOCK----- diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/debian/watch new file mode 100644 index 00000000..b3a617d1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/debian/watch @@ -0,0 +1,5 @@ +Version: 5 + +Pgp-Sig-Url-Mangle: s/project-$1\.tar\.gz/project-$1\.tar\.gz\.asc/ +Source: https://www.example.com/dist/ +Matching-Pattern: dh7-test\.([\d.]+)\.tar\.gz diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/eval/hints new file mode 100644 index 00000000..f6e6e54f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-multiple-locations/eval/hints @@ -0,0 +1 @@ +upstream-key-multiple-locations (source): public-upstream-keys-in-multiple-locations upstream-signing-key.pgp upstream/signing-key.asc diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-native/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-native/ORIGIN new file mode 100644 index 00000000..6d10c158 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-native/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/upstream/signing-key/upstream-key-native + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-native/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-native/debian/changelog new file mode 100644 index 00000000..503c8aab --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-native/debian/changelog @@ -0,0 +1,17 @@ +upstream-key-native (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: upstream-key-native + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +upstream-key-native (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: upstream-key-native + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-native/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-native/debian/control new file mode 100644 index 00000000..d62a592b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-native/debian/control @@ -0,0 +1,17 @@ +Source: upstream-key-native +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: upstream-key-native +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for public upstream signing key in native package + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-native/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-native/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-native/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-native/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-native/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-native/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-native/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-native/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-native/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-native/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-native/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-native/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-native/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-native/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-native/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-native/debian/upstream/signing-key.asc b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-native/debian/upstream/signing-key.asc new file mode 100644 index 00000000..41c2c56e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-native/debian/upstream/signing-key.asc @@ -0,0 +1,160 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQINBFkjME4BEACatcbzE9EaIKMmiS3OmcrooZZUI4pGtJcFqCNBOP3qvxUEq9Tk +4XPY8EARDGdwy2rMc12ywoc5FMzNwXiC3RpUNHnNhY+zau18q9CQx8UR02NDFWQq +AwaDSF4WU1GBVBMWgtxfIwAQGl/qOr+aSVtJCnEOTA/YiZPNw/wpA7r2g6EHYcce +a5srr7F15a6OxzDdPXlfoJuoSXMZUHpJIqG0UOo7NPkxPGRoHO2yGPS1DWKy3egG +xm718DwaIWee+mfJrcqT0ZFH4n5po1BJVj+8TcqE4YlkN/z4p0zI/XAxNCR2wGV2 +6cCQ8laEgwG33rPp+N3G/FeJchYTFvL7zDtdYKbBPVeaJh2kROnqbVVN5kZBVEXB +QNbXKuK6/TPiQeI+8anA9WflI19lzkzl29L7hsM9ornk7+wtu9P2hu3eEUgjjBli +Ujisw8s0aTPB5QsMCjSownwZ0ucqj+07nYVsPU2wK8x6A7p6Cg2SCPnjbX8jUb3Z +wyn0yi4SWceW9a+LW6wdGarMGbu+Lm6in8pK93u7mE/D4AskUVz1yLyiNO9WBXPq +GyTocqXKXTutHKhhSwY9CyEw1+SRzXXyHPmRunRULTgZHLOaydK6ekzBOe1Yp9Zk +hLvon6fgOhJTsokv27QCSw8ILbQPGF9qJWFQfYZhT4QCufmPaFgBpJOdewARAQAB +iQJOBB8BCgA4FiEE4c8g3f/kuJ6AJljx4LEYlPZq7JgFAlkjMMkXDIABgOl28UpQ +ikjpyj/pvDciUsoc+WQCBwAACgkQ4LEYlPZq7JiCcw/+NxzyntWMM/b/eIMedzZK +Zyq7Mo6vgFxT57wAloMtLu0WS9oETTH/+/9+fHPmkYxCX1HTNKpdY2KbjiZC/gAY +vJ8iGWredwIls2UyW4fegzRLNvWLZmUBbLg0WaTIQ9JZwa2Rw/q6Z0pe0tfb44oX +lpps0WA/OZCWXYVO2rhOzoiQulqdmHgwdcLA29BnpqBY1R8/LMDsfPLnJu7AFqgM +CQpnjIGRH6ZxF2TNUSdljUbIOultEeIvxtxosF1u0r20mg46aaKDpr0ANiR/Ojaj +YoeHZc39fyubSrhIyQuk4rDisrJod63MJ9x9upAc9H3qz71QjpwpVXPDxereWULO +17qN3hjjZd23CBdRv8HjRKQoFagUnxlrat1t+/yJCENzX6eX8wBs0vVCSmbtbSp7 +y+0BK4fyjDKCdiyKh1TiAnQ1Po/xICGr4Sa6Wohq2TeWXz4VlRnaQeCIwa4Kk6T/ +3VTQbNxn7Uiy9ec8aR+1YMGUBDG/k3s6K1PWLdJtSVgao8MkQYeKcQk/sgGSFPh8 +SkTy7CnSjK/gQP8NC5fFDWpatGpnDr9qsQwzMnUVYWNZQMQ+LJHPnXRyusr3M+Gh +4muVW1wmyjNLhtEYjJJnbv9bVVv2HFVXOWGiXY4hnj01xkHf3885Qq5ORWl1FMnU +lcqUcFsB6a1CCPGxNTJQhgKJAk4EHwEKADgWIQThzyDd/+S4noAmWPHgsRiU9mrs +mAUCWSMwyRcMgAH7+r21QbXclVvZum7bFs9bsSUlxAIHAAAKCRDgsRiU9mrsmK2H +D/9frYP6KRecLNMzLJGe6MB/1DbqIud1/kzd/jHRo3e4Dz8cls29N03HskLE4jTf +BXKAhUmRI52aMCioY/K03rZLaR++/GMIdnF7O4Ks7P203J4/CudmXQvz3Rby22lC +RCp3Wsx2DqFgpc1V5SjmdDxzEs3fwKJ0B8YOMyibyUaLfwaxRfiTsWmRF192WzCM +/B1tmJDLIqwq/xxzxmiqzrxBWq3JIxH1PzrGbWvAE0gfBJHgw/2HHO4PAG9Lj+AV +HHPV/9xhXdbF/KnnKUGtd9lssNleWlc5LeM0ix2pU/QrZx7c+CBW+142jQcZ58X6 +QvHTKBkImI7y3kMCUOs+UbxKnFsRBRduMLvIpXJVXukV3QvRn+9riITPIcviF4ni +F6V2NQ+ONrvMOK2s6VdfgMS7c4Azuyt4SJSEzBhHu+VTVnMZCBiKvZtRL5XX85ZF +DDkN62Bwa+F36lTiOBWOecSQykCyOKcnn0jKrSgDOk08qE7Nzl2SPdlpza0/bk2u +6i8o3mrmdO02OqC9vJum6M4Pn2HHrkPzAtSs11E7ogcZghPxnGCekGQNekHx9DKM +mv8W+SZf4b1KD1EKECeNLZ0QHQMjU3AYBav+Mq9IXIlwFZL85BYLUAWfrCnqf/gV +CTiy9yKdQ4WIr9XR+zywDigAZqJ5PxwBh1+phrkoWUfsLokCTgQfAQoAOBYhBOHP +IN3/5LiegCZY8eCxGJT2auyYBQJZIzDJFwyAATCZEb6pZtBhMFMEVxG05f8VsP2C +AgcAAAoJEOCxGJT2auyYWHAP/jlmSZQI/dnrYTT0ZtZA0k3sCaaOApWmno4Jm1+p +QzxBJyVXC/7em3D/Wb3B4XpQKnkWOGz3XtEf4LNPhrW1n6nLFOLctprGwnlZihBp +tmidEvvFKCa5exv4WOVyat5jLttNJ6o4O0BJHmUJG/wAVSjfWi2KgVXZEnz/wts8 +KFXc06RCgavIATmlC5QqD87U5ezKJdY0HY/A8uT9aBJ3KFdzj5MnZOzr2RJcEtWU +UE1HHxqJS7POQVMUWK/7nABUKjzpQg8Hn7VNom553Lf8yk+OLl0x7+bS/8tZltZ/ +zkIqzUmpPk1QSf5b4JOryJye0ZV60TtbI7juXi2VV41gcHxd7EMkF4PAMtHF/rNM +n/sR4LLXPnQk71zqOScYpMBDQ0FikQ7UuUT35iJAX3u7mWYL0P4h3NBlPmRLg9W3 +k/g5KRBLJ2U9Ba+i3UIRva8tUGz/EluzOCUcSbIEMNkaNyt4ktO3PaIzAzdVdxYk +IWV6NUj92vSBJvXinzIjyXTk9Tjfuf4hLo15C+1c9P0+XkpKzpvW1ycpIUVH9QSZ +afC1e45EXSkD0AV+y6ihJf4PWddgGb3ZeWarcp2QL/ll3XoBdEGfxOQJ1Py2nfIS +HxVrl5AxoEJ9q+4YO5xysAV4f+UFKvS4snJtRztOYBKM0/4pup41u4V8oGWLRUOC +d/GitEdEZWJpYW4gQXJjaGl2ZSBBdXRvbWF0aWMgU2lnbmluZyBLZXkgKDkvc3Ry +ZXRjaCkgPGZ0cG1hc3RlckBkZWJpYW4ub3JnPokCVAQTAQoAPhYhBOHPIN3/5Lie +gCZY8eCxGJT2auyYBQJZIzBOAhsDBQkPCZwABQsJCAcDBRUKCQgLBRYCAwEAAh4B +AheAAAoJEOCxGJT2auyYKFoP/R5ijjBRlLpClTvhk5p1pE/cJbMAHd1Y7x09iSN3 +nT222tx4Zk3wVnP/1puJNkOxW7btMuUNz6Y4DolLpAa71hq3NOsTGz+5PL8ZFBoi +lIN2iOpfzqIFLASM0Pz6X+twV3ZyE1PZmfzLAu8OWm4kt1v3qJVtWN/5dHbjTqMt +vUc28VX1di51zWTs+3b/SDC+KN98i9W64JUiHPcLL6b2Y44fDszDDVVExwtPrPk0 +VU+et4/uWmhcdEIEb91MIEsLAUJIBqcGTZU7Gymxupa3vApT6UUxfNKkVCGDN5dk +zFKkS6p2NEQjtIPNAheBwUfHqSDeN+EW4IuQxHZ92o+XGFMHqU29Vy81sPkGvKkG +EIL12iMpW9hDTbjO/+v695o3tVo/h1b0NSZP3Jk4I3iDBpAcUEYarxoOung2K1fC +QYH7R+7hy3lnRP36s9za6rEbik0c4XRvyYaYq7npGEq4CqhcKgRhZqVcy2Zmymcw +MqR1wLSxEmbREQZfBCFh5zpVC+kmRHfXCmZyAfDwLgGuMDVL7piCW5DqpC04Ks7M +Uj/r1O5hyMEjIzcdATVBMNJmdOPw7d0vqgBUizj0Y/e8RhmY8mkmy1zoI1HU7JfF +eKNnK/I2KYUop0qV0+bEFcu0RiEFVMP5cw4L2QAr1Y39XJNFU3v7IujRZXkxLn+H +6l4HiQJVBBABCAA/FiEE+/q9tUG13JVb2bpu2xbPW7ElJcQFAlkknnUhGmh0dHA6 +Ly9ncGcuZ2FubmVmZi5kZS9wb2xpY3kudHh0AAoJENsWz1uxJSXE0z8P/3wl5xqi +wO8sHcMtPXRoOMGRBGlXN/GWbEuqOxaN4lVko+sqGTineW0nk6bx9zhTFDCXjEpK +da6M8Tc7V/cQoEyrV7btFolrb1KPKl5cVTsxKbLSJO79VgN9CZdrv8xS1VsI6SW/ +7euwZmdjYCnOqs049uAxmeZU3HI/yjaOowhDDHAXRvzzbMTN5Y8aWqE1Sv/ndnb+ +qHDq0Xh6hX0iS+Szx7KIGDLsgPPPjvEfsfmXVhYrWPdB4KXIeOcISehblxxU9FCE +JmArB0txQtW595m/Gn5ntVbiyHhrhNlGYT+6D1Fsw3q1l9kIzj8ro2/yRcZ/JRot +w5j5bMbYatQGoxmaBr9AaHCyUmmQEwfQFqBDnOBrV2XwLlurIX3ZvkQQVy5e4ysp +9K8lAd5X4k3sKOSca9HooIcK8szc48aUijHabzOzU459qrds5iX10q0L5It1FqLp +obg2l3wLWU7XwAP6K7m6LcvSa+2QqJmh72SBLd6xPCQAdwwUgdfzjovxTpdQu+3u +5NX+ud4uc+WP8bEG1oT//H9cQ6ocRKXS9iGYby7LF0ykY1MVBI8KfQ7UyLWe/wZ/ +HlPBT2tFQ+8HoB1ZmtzsukaJcTiDtOcQGrIfgEs+bbw7mFKIDjI8OKZpZRlm+UAy +Vm4jG/OiHoxOcr29mYCUwAzLRpavE+L2/koGiQIzBBABCgAdFiEEgOl28UpQikjp +yj/pvDciUsoc+WQFAlkkgYkACgkQvDciUsoc+WQChQ/7BgfCpOAN2mmrSToaMY5C +UVsxw6GVa68gDJA6A1rFXq3cqI5KIj5lNZ+NQi5a9hUu/Ll0m5TN7bZQ8+wxre1U +GY1EnIUb1MFsL7r43dvYOifwV0jNci7+wfvU7slJWfwRlO+q9pwxseBRnGsxLgnf +p6ZK/VqzjMUBXzAdMxwqacaJITsgHHGqActsuTGlasOafTxSvWDjIM9O8+maOzAq +sTa9EXGQhASuzAnDaaW6L7etM6Icm//7cMz8oVnTPKIrqYsHTypIju5XXqHa6Y1D +jZlFcQe7aFbgyBufe4hNtcUHJxXpJHThmZVjJA0t8ofZ8tPWScRDrphMTPfGzVZS +TPUKn+WbkD7w9H7fjQcaCH6YKoJx3tIYzLuDStS/+SLqF45eJp5Miws7AYJCZ2u6 +vJ/8kDVByVPW4Xlq+nmi2RPG7Ym6NcmjG6FUFNUs4PPPfVn7cdLLcnNNriV8hyOJ +T+NnXISSLo20F9buHMl28YqBb7sXmM71lr4kbjNKi0IWUOb+uZcgzMnJPjegR0hT +GWbN5TmZnQ0lxYU2gr+t9F5DewTfMZMqE70T5eNfSyfr9iCEt8pp6GsjQlFglYZr +30bcoLI8IYvS5VOvHAtWrOe35UgLXT8iB0pdCDcVbdA4ZaUaSR6hH26RZgPu4dRx +9flHYtovRX1rDB9Ujc2d3JuJAhwEEAEIAAYFAlkl7L0ACgkQEbTl/xWw/YJo3BAA +jRFiSZPG8SH2QQ1XWF0RREv/yWO95HkZdTHY/yDNfB94YLVCSqWDfO7QepCE2SUp +4+eBdKUSUk6sICQL5gQ3D6PpSLMPaiJ9QoUi7JU6pT9xlrdFIfwC/zZypsfDQ8Gb +L0xZPuXEurcR6YArCFHxtACKSxcUBqvpb2YL9fOEQqVzq90yWxQYsX+xlOpXAXXe +ITwbjgT0E6izN0ucYthhvBM0nw3Ma+v1C4o590MzAFefKaA8kQ2xrO/NIQVwD4qI +MQh+Cshq7UZXM8LRa3gxaMvglMKeeyFHXPP1V+AKsQ5KmPlzYKFe+Fam85FZOF8i +0OrlYcuJ6ZCSXFY9Yfr4GFrkLNsyWfSdv20JVi5U5LWJj4kArw8vc09zVxnpw5IK +4TNxhg68Pho5/XES4upBQkWAzukwOKUVjzCaZkj9Kbos7MO5D4w9DZjGD5sosob/ +aLPznRqrhGX7KIVeqUDn5gavtIjk6mZBMpdDGi9GQ6ObuHUnDKyf0K4gYQ40NVGD +e1KidJmRoLgdWph2NNP1tuLQcq6dzCdC5Oryu0yCLFXnxHURkIDTT6mKCtJ6rEsk +O+s6+3yOB2FXv+oF1L/rUzv+dZsvKQR7T9odOITuQ/LGs9whGTG0sqpbCjyhCwt7 +2xy95fIpPdQ1Uhzcu9N/XZPRYY5IYR0NUDEUen9QAHWJAhwEEwEKAAYFAlkmhFEA +CgkQdjjQRCuQ0BAjWxAAjIMwo5CFvImdmyiSfDLPezHLFL49FbLGIENr6E0xcAKo +kPj5s3mCZ0dbCV32yrMBBIllHNrJ1dnv3+VQAwJFQNaTKZbej15zUL5RvBxZlaN5 +RNlf/vYD9Llm0fWiwMXpm0ep2ID2T93i1wGyYt1FnlQ58fO2Qye3h1Kp4qAQjDMR +k2jjePqwx06QkC9+R21XK78RezgmtVb9BPTVNnUazzREcq1/mVfratAnlR+Arh63 +80E63Glwc9vNqzkuYA1ilTodzPCXk9vEA2gD31L1gCu3YP0kqe5aHB1R6y1cFvQz +0Il/P4lyMBm3eTWZ09961Eopl0kLMPFFZkGw2ev4OB1wa0IAdugBTpCqc6lx/CY8 +mt/s6mEVxvzI4ljNgKPyyLaBZUOY0gtEgwmpE63njMWmuFxDOls7WuP45WEuRoOB +OJkwtYNNpaghN2K/qWEgLtU76Nq64DGkjFd8xVdEccgmYxquQtrXEKj+2E5G8NOx +tZeH0HrVcOfXHTMNx9UoZRP00VSycctkDwt0NBrDqA+o0Djkdql01YLUFOmOYe+U +Z7vxNZIfQkGr2ynnAiqIchMuoz4/IUBLJ0HKasEf62NYluPrcbh2giTTYKtDkZqA +eFB6lLxyTiZ3vDTE5a9lPrKt/p1JBhW5/S2BHWJjDMDO9ut4a8MWfw84u2ZwNuOJ +AhwEEwEKAAYFAlkmhVkACgkQnW2Pa8hXyQagAxAAvhC1r8xGL31TWdusrNWzh7jD +h1qWOMY/cvWmU5Jj10OG2O9oBa7hhm8g/bj8a3rVPEFPwdzJQNEG1MKinVkRjgTP +ST9QHNuUP2sPtVsq/Y5HxFV8prCKXZ5hiVBLgORpSLF/kUh54dGhiFjycUoTFn0g +MkaNArvkAGWpqjFgeQxW+Y15DHj4c1EwcSIKrcpDMyVqlZD96bbkLL7kTQ4zCMlJ +irezEANgEXUYz0RD4NcWGHaT+GFVJfI+Mq4P17FltpHZyTtWbBmkzvJ4y6tbvxQt +mKpDR4z88nstjCSXDjU4nOZL7Bifoi8ztV4uLzJ00dC6ivFmTCQyCqXCHPMvT3dj +9Byr+cMWBGSfM198/oUh++eYW8dp0wjNtIrnJaqnLICzvBg5OucxzRVa4ZMPPx9+ +4jYjdsNsYg+oiZE5ljW1Ig8CBcCyVjNSUBDrRbb9vp1up/ByC3oxD8Uy3wETc7C7 +AMJ8H+RH/6J+HrE3im0HB22XiR4TtKgOuLQxGVO+aXEhdGdxFdWZUDdulC+feWc8 +acVkRvlIYF2Bfxs1Ecee/BkP7++kWZJ9o9Nl1HEpv+spDoxpzL4VRNF3U84InaCb +wX17GLuVj07bk06ag44ZHmXwM/GSRn4ITwEVSKKoBCcvJGnRROA0n1a5+v7XSMvT +9Q0gJj1rzlA9VNgS7Pi5Ag0EWSMwTgEQAMkD4hfHi8rZYM4I8V+vJp8feW93+Oiq +caVzQygYKs+/dbr9favoHttNxOF8eBMIwkQgQlBIYehcHAnhnhuCP6s16tnM2lF6 +52s4c7DV4Fodo53Q+sqzPth/dH76NOeUAzSj3KPfD9YblrB+J2Z14PP2ObfvO8k/ +SghaCEPZ8geq5DZjTAs1YU5xYlawVJCvoQnb2TKEXbUrMOqAX/ysOwk3DrIo78h1 +HvGShBuHf08gOtv8Fm2pKdkPHzr/QI0/atFoRn793W74n4Qc2mwrDUUQds7oZ1IX +tXeIHlVV8Z13no4qA7FRNL40/vBfKuPFAPZGt17k946L2LL5Lxu43eVFIbW2jAod +tV3NxAYu5JAYIYOawZO0p9OZJdZ8sTg5KOhBfyfO4pFyc/FaOhxv3SVqhRZAuHTe +6OSKLUMcV/7Yrb1hClSXtZcuTEZfaqDksoGg/QDHuYcnAtD7NWEEgEfuL2KYXudw +GIjRQSUUMWv4Fw+BT50f3PHSH+lns/vQXxEaKDiGacKOC+FEHs9jTvWl9+phyzCK +4CfTgZagW6gsvfPc/0fg2a/TaTzj4Y48KbENcBc+x2IwowRZAtSI+LsgH8puKMbQ +7oRRnVdt2LqkWtzBoTcc4r5r4m+eGZ8/qsB1n69bS+MNWZtusaBeaQHGFv4d9rIC +0QOzwZLX5EE1ABEBAAGJBHIEGAEKACYWIQThzyDd/+S4noAmWPHgsRiU9mrsmAUC +WSMwTgIbAgUJDwmcAAJACRDgsRiU9mrsmMF0IAQZAQoAHRYhBBbpCz/fZe3jqn8y +PATucje31FPsBQJZIzBOAAoJEATucje31FPscu8P/0yRsvlQjY0q600VkxD8KciV +lvC7+xyrMBIal1ILjIpPlMeuWWpPE+Ffnry91m1GcAlXTfUf7NhZkqWfsyygqUGy +BJ7ydPox8rA4UXW3J31Em4Lgc0JwUFD/bFqz/iVVYCnaWYcoX/68CwaWRCjt67v3 +3vNCw97t/W40430HsmK+AC6HS6vV09KeYk5fhrORFBNGrZT7Bm7lsWGgaz+7pNGk +GE6k+K3sS6boGga1EGLA6YbaOEaIS6QJtpm4VEleFksj3JHK1TMN/QCnSGdy0/0b +qkF/TDcfqG9c1vCp9knWkCKQmi/nv2ay2v6ZAcICAY7sjibicmBd06uvfU1bhKB7 +nYC/i77l+IGKX5R/WvTrdb+J5qQhODF70Nr6HO6EsI4E4X541GRLgGMZYKbiu0Tb +uo1B7PSOrkddGUwxXjDBXM2ClcgPi8nL1irpleSAu89/B+Y+pr5IshaVmIP4+jCl +GDG18/kPryOFk0ACszjlX7eFMTFPUX0gl7qDRfVE1jKzPxf75gLoeIylYChMd17b +uQo8RsknkcvNgifdL4sRcbxOvhpERONK1MwR88K8C0GqJ61cIRMv8odMMpescww0 +5ECOpE+kl9PJcREnm8SVkclraWcQVEwGOkHtx5BsPqZplUEAIcJNXuvXm9kFkaVS +2SRvQyklI6/NQQZzK8SRwacQAIGFHV3eOtC0rdrnmnh2XCDeEN5iPCvVG723jIc2 +6aDR4a47zr9507TBLUxMPJQ6mB7imsEcWHfR48zARq8jMSj7ahfhIa1ixEksc943 +CxLrjPAWfAnog/2MYJdUw/nBjU4dqb53ssxD/F/c3LB+z/nCEaO2UgH2Kekh0KyV +KgwV0N8XcTB0UmGcH9J2DZ5/ZXRc2XiYWIDoJHs8thGxwsIYXEhYsgBwGu9Kil4t +LzFt4sluY0kvfrDHu+oYfcYBh5V7q6AQYBh8ujjAhKZUmlKtgay6IHkR65m8QI49 +ITdTQW+Y+orphcsdbvCm4IhXPgykLySouskwr7RuhPka0hKwDUt+0MHbBmAhfYnF +JC5o23tmgAq8l2WZbp6/uFZ+4E9UmvAI0RvQM/B3AxQBOCBOryGeaBwkJcsACm8V +ADWm+/OWK78kuval45wGQl9+TqqjRuwA9ESEUMgZnc33rVPM3h6gR8Rv/M77AjyM +88rGBLCWr7wNY4e3U34tH8jMFOMy9vN6l3kOR5/EFoXJJGehzE+xCyyeicY2HsJ5 +t5R/R6w23vgNqf6eBRQuDtym2rSuuiaCnvKEF3S9ng+phmm/eZadG7xOjERRPqqt +TP+zge55Q1B+P1HmllKlR6YLFyRuKOO1ZOVh4Ae2MS4oZybMQsTifjjiQ/8W8KJq +k5Bh +=3qWJ +-----END PGP PUBLIC KEY BLOCK----- diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-native/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-native/eval/hints new file mode 100644 index 00000000..fababb0c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-native/eval/hints @@ -0,0 +1 @@ +upstream-key-native (source): public-upstream-key-in-native-package [debian/upstream/signing-key.asc] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/ORIGIN new file mode 100644 index 00000000..210a79ab --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/upstream/signing-key/upstream-key-nonsense + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/debian/changelog new file mode 100644 index 00000000..f208f88f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/debian/changelog @@ -0,0 +1,17 @@ +upstream-key-nonsense (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: upstream-key-nonsense + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +upstream-key-nonsense (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: upstream-key-nonsense + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/debian/control new file mode 100644 index 00000000..347a8e2b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/debian/control @@ -0,0 +1,17 @@ +Source: upstream-key-nonsense +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: upstream-key-nonsense +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for nonsense data in public upstream signing key + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/debian/upstream/signing-key.asc b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/debian/upstream/signing-key.asc new file mode 100644 index 00000000..e311b556 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/debian/upstream/signing-key.asc @@ -0,0 +1 @@ +Testing an empty file would require source format 3.0 (quilt). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/eval/hints new file mode 100644 index 00000000..5bc79f7e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-key-nonsense/eval/hints @@ -0,0 +1 @@ +upstream-key-nonsense (source): public-upstream-key-unusable cannot be processed [debian/upstream/signing-key.asc] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/ORIGIN new file mode 100644 index 00000000..f8da5427 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/upstream/signing-key/upstream-keyring + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/debian/changelog new file mode 100644 index 00000000..a04c8ffc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/debian/changelog @@ -0,0 +1,17 @@ +upstream-keyring (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: upstream-keyring + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +upstream-keyring (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: upstream-keyring + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/debian/control new file mode 100644 index 00000000..cc9faf55 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/debian/control @@ -0,0 +1,17 @@ +Source: upstream-keyring +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: upstream-keyring +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test with a keyring (false positive, from inkscape) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/debian/upstream/signing-key.asc b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/debian/upstream/signing-key.asc new file mode 100644 index 00000000..b79208fb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/debian/upstream/signing-key.asc @@ -0,0 +1,153 @@ +pub dsa1024 2006-05-25 [SC] + A0AEA075AC8398E93CFC6F45D70B095F855781BA +uid [ unknown] Aaron C Spike +sub elg2048 2006-05-25 [E] + 75FE92B054BE8CCB6556FE630B755C0230DF8115 + +pub dsa1024 2000-03-22 [SC] + 9FA3C49C23C9D1BC2E3019751FFF4BA917063E6D +uid [ unknown] Kees Cook +uid [ unknown] Kees Cook +uid [ unknown] Kees Cook +uid [ unknown] Kees Cook +uid [ unknown] Kees Cook +uid [ unknown] Kees Cook +sub elg4096 2000-03-22 [E] + EF1A71F45F7588F7EFACC36653B02EBC76E6CE33 + +pub dsa1024 2006-09-06 [SC] + C7223EBE4EF66513B892598911A30156E0E67611 +uid [ unknown] Bryce Harrington +uid [ unknown] Bryce Harrington +uid [ unknown] Bryce Harrington +uid [ unknown] Bryce Harrington +uid [ unknown] Bryce Harrington +uid [ unknown] Bryce Harrington +sub elg2048 2006-09-06 [E] + 90778E96D30DA29C45CC28920813D5E325D309EB + +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQGiBER12zgRBADBv4KbzMWnE5jwJlCK0aauc6NHsY9xiip6vMUmuyaU9O/DOKEx +DqiEixZzxggV3lBsYf4QjaTNZ7+Gkb1IV9zCG7YzmBbMRI12TT+sZRdfCArC0IV2 +N3XAlCLuibXpb/rBloWfJUJsh4SSnS+GNYutLtRqbS/gDLZ6U57w+yM5LwCg5vZA +M/JhaYA7y3aX91JkHKwxy40D/RwT8yo6RzckIs2+wSXSYEegPbvResOYV1kOXTi5 +qZ6afqHhyVtBRVVsQocEg/QIscAJu3ja/NiUAFCSKYN1iZCulGdcfLCfGIgJihSN +6TFh7vUyBB+lGPCnax9MsdttsUaLfQeikWIsHxCBQUTwHLl4elOG7TPSFwELB/JX +oZPvA/401Kv4bZvB9GLBzNfNLMdF3lrM+d0YH5R9k0WPV3XKShKz9H+vLEWGqxYB +dJpK7jdhC7TK+L9V1hv4UhpOz9++K1O681HvkodCi1TxfIEKW1bA7tsNsM+Ggz0Z +6BwqSCffc/ZysSL0L9GstNLMrtmnIdb+oQTtnR9XTVmAeD3H3bQfQWFyb24gQyBT +cGlrZSA8YWFyb25AZWtpcHMub3JnPohgBBMRAgAgBQJEdds4AhsDBgsJCAcDAgQV +AggDBBYCAwECHgECF4AACgkQ1wsJX4VXgbqdMgCfY0tcC/sffk1QXFqwh6ELk8Kx +JQgAnitcjtlGWPWobbLmwztmAr7VlldruQINBER120sQCACv0SkI1OCjgYgW+8MF +z3PALT7rP2J6IGEbIO95fg8H73apgPzx/ZM5bKY83mMbu3hN3SoFyhBY3yXA9qHE +nC/W3Wm54yDvTOgVRjW/LiuBGcLJvQruB0Eu2WF5XEjcUi+vl+iZpEtNGc3enrVB +tk0l4NXAONANWznX7ZlJx4IHhRNz4bHWsGrI1F5sA41bt1bRm2CE9GJrFcLnkjDp +x1OEciBgP9x5M0pKfKL8DMtrAq0XsppP+Gg9OS4YF7UTDDDWKzqQnJAitseH/JQs +soxsDOqxz6uY4GltnkV5inqAFVlVSxTG3JpxF3Rlsx2GqoOseEVssFUxTIFoBpYs +TJpTAAMGB/oCLhuHGWnGa3OMHxBBGGX8nOPr9snglEHk2P/Kox6MRSAOU1BW6nVN +LeN1jMldPH9Vd15FUHokCfydGuCPohx5daaA+vEp9qHM4g4fEGPgop+SZr8VMgNq +yQUjUhU1rQOro/jyNXiQ7nICG7+QyDjeDZNfgWR/sHruHmWuoSEavx2zgxseNE5s +pWICwdFltDXvvi9HWDDmPkCJHkhRlMaAaEwldM9z0M3AO6dXKK/1nKGGa4VqNL6f +qDIfKTTpp5vuM/GUBE3d7fEuEfgi27YvdzQJa17SK1vrnpUaZ5+Bdt7DP5oFE9pB +Tadkd4oCfglQQTEkOzYxVx4H6W/0XhjsiEkEGBECAAkFAkR120sCGwwACgkQ1wsJ +X4VXgbrWNQCgt+WswdAQXAmJbuSTHNEvMgIuXyUAoLQnXJqYx2DOTY2i28thyeYM +WS96mQGiBDjYWfMRBACN8F0N8tsW3zwhUpykfC62UdPJsu3zuqnipHWlPyMb7WYb +NeR2EXpNxh5DKyI4kXHZL+7I6wrSYroHcw3biIrEy00oNNjyYZTwetSB/GMfISz0 +PNG1TMKL1dLrG146vmZp9vfoU2tJcCCB7Ir5hsKva7ddndvQdQYsvdS3cHJzjwCg +pZPqPpzTpBnWZt/TA84LnjZ2Xt0D/36lHbAPDH92HjYeeclZjy7z3abrJYCxoc+U +PBIu6/rAqYkE17S9kjkkiLb5JdF5lMJgSYu8Kf1QSCkc/II1CGJYfGqnKo3YGLIS +rqrVzQob47tOMFjUYZ9UEb569m8rmgnl3RmPmZ9wCT+RY0U3XNeYx5ukfn/fJLt6 +A8b9Cqx5A/9rZLrnsSTL3bYuAHMn9FEwj1cetJvqi11L0MhQy4WBz293BUtR2X5S +/lKzRfY+mNzSMe6NEEd5sD1QgJTUdC3wIJJeK9qMqyqK56Cmge3E7m4l/5QdI8uZ +sqFuNCsGfpJPaSQ8yjJ2sAX+g8TjEMYZ9Cwkrod7sSagMrO4cV0no7QZS2VlcyBD +b29rIDxrZWVzQG9zZGwub3JnPohJBDARAgAJBQJFca8BAh0gAAoJEB//S6kXBj5t +uQYAn3X9zRGDua4OAPFS4qiNh09y7pItAJ0eQs5NHNFB/gBqZwEV7RCcUAelfbQb +S2VlcyBDb29rIDxjb29rQGNwb2ludC5uZXQ+iEkEMBECAAkFAkUQGNkCHSAACgkQ +H/9LqRcGPm2l1wCcDdjlXHGJzM4lrSyzUXyjxEwIvD4AoIv3oSyyfNoxTPTF3QTd +vhVrfm6GtBtLZWVzIENvb2sgPGtlZXNAZGViaWFuLm9yZz6IYQQTEQIAIQUCR6Eg +DQIbAwcLCQgHAwIBBBUCCAMEFgIDAQIeAQIXgAAKCRAf/0upFwY+bUNgAJ9RM+r7 +ZCl0xHjYqMkX9yF4NOjzrACdED6Y7Xohf5rpcSVxTkSFl3oSX5m0G0tlZXMgQ29v +ayA8a2Vlc0BrZXJuZWwub3JnPohgBBMRAgAgAhsDAh4BAheABQJFtXy4BgsJCAcD +AgQVAggDBBYCAwEACgkQH/9LqRcGPm3hcwCbBu1Wdux1iWFrxhV2E6mpjvjbt6EA +nRHaGYEH2BuMCJjq0AE2cWqPCHjQtBtLZWVzIENvb2sgPGtlZXNAdWJ1bnR1LmNv +bT6IYAQTEQIAIAIbAwIeAQIXgAUCRbV8uAYLCQgHAwIEFQIIAwQWAgMBAAoJEB// +S6kXBj5tK68AoIhUwpdkaNHz/ecNJPv6ZuPnzcHVAJ0f4p4HSXqjIM4w2123e5Kw +PyiQIbQcS2VlcyBDb29rIDxrZWVzQG91dGZsdXgubmV0PohjBBMRAgAjAhsDAh4B +AheAAhkBBQJFtXyzBgsJCAcDAgQVAggDBBYCAwEACgkQH/9LqRcGPm2t9QCbBBgv +K8umgFnfFM3gHSWXcchf/U8AnjgRSagInpCzDsriwz/7kRk6CZjRtB5LZWVzIENv +b2sgPGtlZXNAY2Fub25pY2FsLmNvbT6IYAQTEQIAIAIbAwIeAQIXgAUCRbV8uAYL +CQgHAwIEFQIIAwQWAgMBAAoJEB//S6kXBj5tlA4An1TrHtj4+NspE3AS3hhR3LzP +Y1Y/AJ9sF22Ytoz+RTuDnV+6b62E6kIe47QjS2VlcyBDb29rIDxrZWVzLmNvb2tA +Y2Fub25pY2FsLmNvbT6IYQQTEQIAIQUCR/QWgAIbAwcLCQgHAwIBBBUCCAMEFgID +AQIeAQIXgAAKCRAf/0upFwY+baOTAJ0XMfD87j/R/LyaF/p84mtYM/mUXACfd7KQ +Hty/NNRHZm65IGUiQpCMPVi0J0Nvcm5lbGl1cyBDb29rIChLZWVzKSA8Y29va0Bj +cG9pbnQubmV0PohJBDARAgAJBQJE64y0Ah0gAAoJEB//S6kXBj5tvXAAn3QUzyP3 +bopVytVzU2t5ATvFbDvSAJ9Kb7OYDI+d6Ym/kjRNVxyAMqfkcLQoQ29ybmVsaXVz +IENvb2sgKEtlZXMpIDxrZWVzQG91dGZsdXgubmV0PohJBDARAgAJBQJGAUI9Ah0g +AAoJEB//S6kXBj5tdt0An28ib9AYfoa6TRteVRn22k/sBykvAKCh9X7U/NspQC61 +kcH+6yf/FszC3LkEDQQ42FvaEBAAkofDOJKr1mgLU+0NM5M0z33uN3LFX3vC+ON+ +vY5SAwvt1WqCvUgocByb0npfdqtu8VGD0QZ+m9Lp1yXyYjDoSgMmBachbordxHHW +b7asqmHrOkPWX6AvrITRhMOfvQ1zDKlLa19kLMUANhYXRH3JjsiZAhQ++xcEZqes +JtgmKdpcX0vX3TuVV8wSBJFG0tKgLZPkEnYtUDRiBp7RrqYruNCctVzCxr4n26cY +V0saMvwHhHpmHP8qwJQf2++eWPG/lm/wMzatThEgkKqXGj1rHU+uzKBrxc2pQDi/ +Pz12vg9H86pO51E0xPXthH6hazwWix7Tx1Q0mig4pbrHLuHgV0A6CtlJIPclWlsY +9jO67XiUGVw+ypR3QwPyUVZuCmRv3w+FroajxQ+VM/hlKhikDb7ylhQ0UCo3nym7 +mRTbEC5O+3mahTr4X7TadaX3GOjceMLzaOF4sbo9pFusK3lXOoehZO5Ob6VIbyTw +T5M2qsjwLqLn7pmIN84tpQvlVaEFKyNyR9C+uCdB1ZkdOtUxOee8MOMxS3I06ZVv +pRbFfUAr3Y/SzgapIGsDqHf9HKP5mMw9zDTWJwtUcAVtQELfM4JZ9F1tGd8G9ebH +n1esy/Fb1c3upyhkLBBHdmI/dHnJ0hzt8SoSgsrORtq0DVL/fGpqDkeykkmOi4+t +XS315Q8AAwUP/37nvk/tvV/IH43RY1DHQ+7DFhWpNzGfUDIEORoQeCGqpw6pJm1B +Wvm3WDFuoXrrlOPvR5xQDEANbuBAejcC4MaPX+DHHdo6+uM2nkpYbIKFQ2GS6mg2 +GNUTqTBQX8Z/1BTE0NzcO/cANZA1kZeV7i6UXTpR7w3oNdPYk1OHWtDMCx97brCf +IFD+5UuTeJiNRuOe+OiNZGsRL6/BtowDjKTdhsgotE3ZsgL+IyW8bMdowc7F56fD +3SRL63SAu3yjfk7/ryZZIArCYusrkEV52OyEniCa42sCafONQ3WWIGXOVb3Wc62n +AMOSFcbOE+BqvnmGlJ9vxRZ1GCB1is4lJb/8Wr2oq0aDH3sQoontF5W7nzWD041u +rgsFMKLol8NH2waWXcnwbBcAcChk8duxGMEx0w1D8ldpTqVzIVgeIe8I2axlEnvq +Vta9oR4uiCtinApD3yTrZRez9O2PwjEY5iZTe1WyiSGi+U0Tiz1ZIawhojOCxJWC +ggB0Zs9n2FaCb5Cs7BMRzCdibeI1XoFqiL8YxY1cWkwcBTALSWpUy9FYOITPMSji +x/Svlew+8VTrGZ+aKDXmEoXMbUfcPkRIbk7TWq0YrTTCYkikLviXczkrvBl1b5qw +rhEF18dCl89N2kqUyDNJ4SuOeNELMhcGtARKY0OHtu3vSuC5Yr8woTN7iEYEGBEC +AAYFAkW2eZgACgkQH/9LqRcGPm2CBgCglD0MerQ+cfQ734FX0hd89L8+XBcAn3Ab +83GBmoy4K0aF4Jp5Nwlgo59DmQGiBET+XhERBADlUYa7VXfPl3y9uCBUMniYdE4F +KLAobrREyiveLf+2mTf435YLde0gcx9ZS/EZUq+4rn4uv6AsKmw/f/N/VWGC4KL6 +0uyp7zJjUNed2KKBk3sk57IGpHwRqzXQwk8wVMOuhyyv207cmUadGVtL4GPKUCOY +p+C0hnSs3Jq0fZJ9lwCg5xDxfg3g++HUm8Gu2D/SYR4pFWED/2J4fkdPRQhxnfmv +UxphqKf24aDngDwXYLkKlywYGs52J8iOwTQ/DRIruKepqrh66gb06QwnMQe9R5mJ +qncoi87m2jlKzUdJ5WV4JRmXc4QVu9vRySK9j6e1O2mJeRrYvkf5rDBCHXvOoXET +6VSHZI//1OJJ5OMiIApERFdT+a5TA/4u82BHdLFerbK23ML0aWOpTc/kMbOwLjF7 +rFF3iJ4Pbhv0gS2wWx/1oqbFZGdTS5XVGiWf/+/rZpN8SeC5Q8cJ1EYqSHyo/eA+ +mI+C6ylqyyODmZ42OQr142xjt6MFj5uBMq3QQGYytZ65ustDfnE/qP6hNJGtE9Lw +6NVGd6oG37QjQnJ5Y2UgSGFycmluZ3RvbiA8YnJ5Y2VAdWJ1bnR1LmNvbT6IYAQT +EQIAIAIbAwYLCQgHAwIEFQIIAwQWAgMBAh4BAheABQJUwED9AAoJEBGjAVbg5nYR +YHkAoN8LIA4RjqX6TtK87+V+5aOSggk1AKC6T20Lo9yte4Q6uXXJWGPNVydG8bQm +QnJ5Y2UgSGFycmluZ3RvbiA8YnJ5Y2VAY2Fub25pY2FsLmNvbT6IYAQTEQIAIAIb +AwYLCQgHAwIEFQIIAwQWAgMBAh4BAheABQJUwED9AAoJEBGjAVbg5nYRNDQAoKJ3 +TMTZS3nK+gtYCosXcO4JFYxRAKDdOzV2Hn+dwors+2n3X91Ol3BNArQoQnJ5Y2Ug +SGFycmluZ3RvbiA8YnJ5Y2VAb3NnLnNhbXN1bmcuY29tPohiBBMRAgAiAhsDBgsJ +CAcDAgYVCAIJCgsEFgIDAQIeAQIXgAUCVMBA/QAKCRARowFW4OZ2Ed2iAJ4s0EVg +9+vuE3wAmeHGZazsvRnakACg0VP0/JUmDDvgm7vOfg5Ex/v82nC0LEJyeWNlIEhh +cnJpbmd0b24gPGJyeWNlQGJyeWNlaGFycmluZ3Rvbi5vcmc+iGAEExECACACGwMG +CwkIBwMCBBUCCAMEFgIDAQIeAQIXgAUCVMBA/QAKCRARowFW4OZ2EfLRAKC/HqDc +a42tb3lyPxjEJv17tpFxSQCdHJeu88EIYaC5HZHUbG9ZaFoUuwi0LkJyeWNlIEhh +cnJpbmd0b24gPGJyeWNlLmhhcnJpbmd0b25AdWJ1bnR1LmNvbT6IYAQTEQIAIAIb +AwYLCQgHAwIEFQIIAwQWAgMBAh4BAheABQJUwED6AAoJEBGjAVbg5nYRHEcAnRlu +XGX7z2CeQHVccOjXPEx3DhbuAKC3BOql6z4e/oHnuPcrmm+cDVwvn7QxQnJ5Y2Ug +SGFycmluZ3RvbiA8YnJ5Y2UuaGFycmluZ3RvbkBjYW5vbmljYWwuY29tPohgBBMR +AgAgAhsDBgsJCAcDAgQVAggDBBYCAwECHgECF4AFAlTAQP0ACgkQEaMBVuDmdhHg +7wCgghXeewn/DeBZh3g0EstNcdSDDU4Anif0Ud+4cdTFS4jWWPJrs/gaPFbDuQIN +BET+XiQQCADT0bmOAoaZ/3Y7cpvc221+V7Yq1YtUw1QNUgkaku5I+5ee54oIvMrE +WbADQRd1TqtKjsTS8v1kYFqHC965uhHgXAMHCb6hlN+AzVXsgl/iqQI3knqHAtx5 +1Buqd/PF1t6grELRhGH39ElzkK2D9E1e8Ag6XdWY/jCx/tRypc2HrUJoNsdUFrj8 ++VDOYa9Xi1XSzQdRPbWbdzXiIxtA5iY4i8mS3B3wItl1eyzD5UFQzgWK5FLFjfhm +6/DEpVqlyu1mp+2I7InKz4HW64l0Rkzn5EC7UxUn/chGDWQTtfiyjeia4ANcUC8J +x5C4NOKXPzXN8anWV3S0oJZh+pGRaUKTAAMFB/9YkEg13DveEPPg8+bqUXtN9YU+ +Ogxcvcyou8I5bzRMxlpJkG3aEsrpAB7mS9D3kpImUa5QA8Y9QoEl4CLxbGIDJIyK +Nm93OhZrO+A0h8uCTHK45clmqg3UdUKqnXr5V48zIvs56lrpTnlJ3PqNSl2ErDYt +T7fgODyXAyLPNpCGsz2otYfJ4ne1aYf7i/7gI+UTXpavDUsM90FrX+sydnjbZIi0 +t6HNpmO9sb9o82QjF+hMr28YntWS0LUvOdUmWNnUyrDtZ2fnTzxoOYl0/8hxE+vU +wcw3vk6+CtNEw4r+VkuKKpZgrP7BIyD8m2dGJn5cfRe8LCP2TIkYh7WBoKQxiEkE +GBECAAkFAkT+XiQCGwwACgkQEaMBVuDmdhHXAgCg1DelVwB3NVuI4X3w4QAijqlg +3vsAn13J6LbSbWkCE1GwkJfoF9GzWqNd +=L+CY +-----END PGP PUBLIC KEY BLOCK----- diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/upstream/signing-key/upstream-keyring/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-install/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-install/ORIGIN new file mode 100644 index 00000000..e73151f8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-install/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/variables/build-multiarch-in-install + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-install/debian/a-file b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-install/debian/a-file new file mode 100644 index 00000000..c40b9f10 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-install/debian/a-file @@ -0,0 +1 @@ +MEANINGFUL CONTENTS diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-install/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-install/debian/changelog new file mode 100644 index 00000000..62f03e74 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-install/debian/changelog @@ -0,0 +1,17 @@ +build-multiarch-in-install (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: build-multiarch-in-install + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +build-multiarch-in-install (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: build-multiarch-in-install + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-install/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-install/debian/control new file mode 100644 index 00000000..8325b3b8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-install/debian/control @@ -0,0 +1,17 @@ +Source: build-multiarch-in-install +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: build-multiarch-in-install +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Uses DEB_BUILD_MULTIARCH in d/install + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-install/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-install/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-install/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-install/debian/install b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-install/debian/install new file mode 100644 index 00000000..8a623972 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-install/debian/install @@ -0,0 +1 @@ +a-file usr/lib/$(DEB_BUILD_MULTIARCH)/ diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-install/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-install/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-install/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-install/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-install/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-install/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-install/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-install/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-install/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-install/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-install/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-install/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-install/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-install/eval/hints new file mode 100644 index 00000000..5ea29b97 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-install/eval/hints @@ -0,0 +1 @@ +build-multiarch-in-install (source): illegal-variable DEB_BUILD_MULTIARCH [debian/install] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-links/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-links/ORIGIN new file mode 100644 index 00000000..259b819a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-links/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/variables/build-multiarch-in-links + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-links/debian/a-file b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-links/debian/a-file new file mode 100644 index 00000000..c40b9f10 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-links/debian/a-file @@ -0,0 +1 @@ +MEANINGFUL CONTENTS diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-links/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-links/debian/changelog new file mode 100644 index 00000000..2ed57faa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-links/debian/changelog @@ -0,0 +1,17 @@ +build-multiarch-in-links (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: build-multiarch-in-links + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +build-multiarch-in-links (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: build-multiarch-in-links + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-links/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-links/debian/control new file mode 100644 index 00000000..af215c01 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-links/debian/control @@ -0,0 +1,17 @@ +Source: build-multiarch-in-links +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: build-multiarch-in-links +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Uses DEB_BUILD_MULTIARCH in d/links + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-links/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-links/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-links/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-links/debian/links b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-links/debian/links new file mode 100644 index 00000000..4f759a68 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-links/debian/links @@ -0,0 +1 @@ +/usr/lib/$(DEB_BUILD_MULTIARCH)/target /usr/lib/$(DEB_BUILD_MULTIARCH)/not-working diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-links/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-links/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-links/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-links/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-links/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-links/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-links/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-links/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-links/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-links/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-links/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-links/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-links/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-links/eval/hints new file mode 100644 index 00000000..d843c89a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/variables/build-multiarch-in-links/eval/hints @@ -0,0 +1 @@ +build-multiarch-in-links (source): illegal-variable DEB_BUILD_MULTIARCH [debian/links] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/INSTALL b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/INSTALL new file mode 100644 index 00000000..3b50ea95 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/INSTALL @@ -0,0 +1,176 @@ +Basic Installation +================== + + These are generic installation instructions. + + The `configure' shell script attempts to guess correct values for +various system-dependent variables used during compilation. It uses +those values to create a `Makefile' in each directory of the package. +It may also create one or more `.h' files containing system-dependent +definitions. Finally, it creates a shell script `config.status' that +you can run in the future to recreate the current configuration, a file +`config.cache' that saves the results of its tests to speed up +reconfiguring, and a file `config.log' containing compiler output +(useful mainly for debugging `configure'). + + If you need to do unusual things to compile the package, please try +to figure out how `configure' could check whether to do them, and mail +diffs or instructions to the address given in the `README' so they can +be considered for the next release. If at some point `config.cache' +contains results you don't want to keep, you may remove or edit it. + + The file `configure.in' is used to create `configure' by a program +called `autoconf'. You only need `configure.in' if you want to change +it or regenerate `configure' using a newer version of `autoconf'. + +The simplest way to compile this package is: + + 1. `cd' to the directory containing the package's source code and type + `./configure' to configure the package for your system. If you're + using `csh' on an old version of System V, you might need to type + `sh ./configure' instead to prevent `csh' from trying to execute + `configure' itself. + + Running `configure' takes a while. While running, it prints some + messages telling which features it is checking for. + + 2. Type `make' to compile the package. + + 3. Optionally, type `make check' to run any self-tests that come with + the package. + + 4. Type `make install' to install the programs and any data files and + documentation. + + 5. You can remove the program binaries and object files from the + source code directory by typing `make clean'. To also remove the + files that `configure' created (so you can compile the package for + a different kind of computer), type `make distclean'. There is + also a `make maintainer-clean' target, but that is intended mainly + for the package's developers. If you use it, you may have to get + all sorts of other programs in order to regenerate files that came + with the distribution. + +Compilers and Options +===================== + + Some systems require unusual options for compilation or linking that +the `configure' script does not know about. You can give `configure' +initial values for variables by setting them in the environment. Using +a Bourne-compatible shell, you can do that on the command line like +this: + CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure + +Or on systems that have the `env' program, you can do it like this: + env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure + +Compiling For Multiple Architectures +==================================== + + You can compile the package for more than one kind of computer at the +same time, by placing the object files for each architecture in their +own directory. To do this, you must use a version of `make' that +supports the `VPATH' variable, such as GNU `make'. `cd' to the +directory where you want the object files and executables to go and run +the `configure' script. `configure' automatically checks for the +source code in the directory that `configure' is in and in `..'. + + If you have to use a `make' that does not supports the `VPATH' +variable, you have to compile the package for one architecture at a time +in the source code directory. After you have installed the package for +one architecture, use `make distclean' before reconfiguring for another +architecture. + +Installation Names +================== + + By default, `make install' will install the package's files in +`/usr/local/bin', `/usr/local/man', etc. You can specify an +installation prefix other than `/usr/local' by giving `configure' the +option `--prefix=PATH'. + + You can specify separate installation prefixes for +architecture-specific files and architecture-independent files. If you +give `configure' the option `--exec-prefix=PATH', the package will use +PATH as the prefix for installing programs and libraries. +Documentation and other data files will still use the regular prefix. + + If the package supports it, you can cause programs to be installed +with an extra prefix or suffix on their names by giving `configure' the +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. + +Optional Features +================= + + Some packages pay attention to `--enable-FEATURE' options to +`configure', where FEATURE indicates an optional part of the package. +They may also pay attention to `--with-PACKAGE' options, where PACKAGE +is something like `gnu-as' or `x' (for the X Window System). The +`README' should mention any `--enable-' and `--with-' options that the +package recognizes. + + For packages that use the X Window System, `configure' can usually +find the X include and library files automatically, but if it doesn't, +you can use the `configure' options `--x-includes=DIR' and +`--x-libraries=DIR' to specify their locations. + +Specifying the System Type +========================== + + There may be some features `configure' can not figure out +automatically, but needs to determine by the type of host the package +will run on. Usually `configure' can figure that out, but if it prints +a message saying it can not guess the host type, give it the +`--host=TYPE' option. TYPE can either be a short name for the system +type, such as `sun4', or a canonical name with three fields: + CPU-COMPANY-SYSTEM + +See the file `config.sub' for the possible values of each field. If +`config.sub' isn't included in this package, then this package doesn't +need to know the host type. + + If you are building compiler tools for cross-compiling, you can also +use the `--target=TYPE' option to select the type of system they will +produce code for and the `--build=TYPE' option to select the type of +system on which you are compiling the package. + +Sharing Defaults +================ + + If you want to set default values for `configure' scripts to share, +you can create a site shell script called `config.site' that gives +default values for variables like `CC', `cache_file', and `prefix'. +`configure' looks for `PREFIX/share/config.site' if it exists, then +`PREFIX/etc/config.site' if it exists. Or, you can set the +`CONFIG_SITE' environment variable to the location of the site script. +A warning: not all `configure' scripts look for a site script. + +Operation Controls +================== + + `configure' recognizes the following options to control how it +operates. + +`--cache-file=FILE' + Use and save the results of the tests in FILE instead of + `./config.cache'. Set FILE to `/dev/null' to disable caching, for + debugging `configure'. + +`--help' + Print a summary of the options to `configure', and exit. + +`--quiet' +`--silent' +`-q' + Do not print messages saying which checks are being made. + +`--srcdir=DIR' + Look for the package's source code in directory DIR. Usually + `configure' can determine that directory automatically. + +`--version' + Print the version of Autoconf used to generate the `configure' + script, and exit. + +`configure' also accepts some other, not widely useful, options. + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/Makefile new file mode 100644 index 00000000..da1dc555 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/Makefile @@ -0,0 +1,12 @@ +all: hello hello-static + +hello: hello.c + gcc hello.c -o hello + +hello-static: hello.c + gcc -static hello.c -o hello-static + +clean: + rm -f hello hello-static + +distclean: clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/ORIGIN new file mode 100644 index 00000000..586d70dc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/version-substvars/legacy-binary + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/NEWS.Debian b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/NEWS.Debian new file mode 100644 index 00000000..29f561c4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/NEWS.Debian @@ -0,0 +1,12 @@ +binary (4-1.1) UNRELEASED; urgency=high + + This is a Debian NEWS entry that isn't encoded properly in UTF-8: . + It also has a usefull speling error. + + -- Russ Allbery Sun, 14 Oct 2007 17:11:36 -0700 + +binary (1) unstable; urgency=low + + This is another entry but this one isn't syntactically valid. + + -- Russ Allbery 2007-10-14 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/README.Debian b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/README.Debian new file mode 100644 index 00000000..94bcc0ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/README.Debian @@ -0,0 +1,5 @@ +this is a binary package to test lintian's handling of bins. +Check handling of D-Bus and dbus (neither of which should produce +warnings). + + -- Russ Allbery , Wed, 6 Feb 2008 18:35:11 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/changelog new file mode 100644 index 00000000..35b8c0bf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/changelog @@ -0,0 +1,47 @@ +binary (4-1.1) unstable; urgency=low + + * I'm doing an comaintainer-upload, acknowledging a NMU, but with a version + number which suggests I'm doing a NMU myself. + + Lintian-maintainers: Please don't update this changelog, otherwise you'll + probably break the checks/nmu checks. + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 01:49:42 +0200 + +binary (4-1) unstable; urgency=low + + * Weird version number for the new check for accidents with native + packaging. + * Date was fixed by BR and this test was put on changelog-file-strange-date + due to dpkg bug, see #794674. + + -- Marc 'HE' Brockschmidt Thu, 15 Apr 2004 23:33:51 +0200 + +binary (4) unstable; urgency=low + + * Add big file to /usr/share to trigger the big-usr-share check + + -- Jeroen van Wolffelaar Fri, 27 Feb 2004 10:15:59 +0100 + +binary (3) unstable; urgency=unlimited + + * Add some bogus menu entries using su-to-root in a bogus way + + -- Jeroen van Wolffelaar Thu, 12 Feb 2004 20:11:22 +0100 + +binary (2) unstable; urgency=low + + * Added an INSTALL document which policy 6.3 suggests not to do + + -- Sean 'Shaleh' Perry Tue, 30 Jan 2001 15:23:59 -0800 + +binary (1) unstable; urgency=low + + * hello.c added + * hello-static is same as hello, but compiled statically + * added a menu entry which lacks a Section + * added a postinst + * postinst calls suidregister which is no longer policy compliant + + -- Sean 'Shaleh' Perry Wed, 10 Jan 2001 08:55:34 -0800 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/conffiles b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/conffiles new file mode 100644 index 00000000..d1a08433 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/conffiles @@ -0,0 +1 @@ +/etc/menu-methods/lintian diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/control new file mode 100644 index 00000000..c797357b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/control @@ -0,0 +1,42 @@ +Source: binary +Section: misc +Priority: optional +Maintainer: Lintian Maintainers +Uploaders: Co-maintainer one , Jeroen van Wolffelaar , Co-maintainer three +Standards-Version: 3.2.1 +Homepage: http://lintian.debian.org/ +Vcs-Svn: http://svn.wolffelaar.nl/lintian/trunk +XS-Vcs-Browser: http://svn.wolffelaar.nl/lintian/trunk +XS-Dm-Upload-Allowed: yes + +Package: binary +Architecture: any +Pre-Depends: ${shlibs:Depends}, xorg, binary-data (= ${source:Version}), libssl0.9.8 +Homepage: +Vcs-Svn: http://svn.wolffelaar.nl/lintian/trunk +Description: test handling of binary files + Regression test for lintian's handling of binary files for debian. This + is checked for picky spelling errors. + . + This package list [ subversion | gconf ] should not be flagged as a spelling + mistake. The spelling correction for dont should be correct. + . + Homepage: http://lintian.debian.org/ + +Package: binary-data +Architecture: all +Depends: binary (= ${source:Version}), libssl-not-openssl, + libssl0.9.8 | or-something-else +Description: test handling of binary relationships + Regression test for lintian's checking of package relationships between + arch:any and arch:all packages. + . + This mention of subversion should be flagged as a spelling mistake. + +#Package: binary-comment +#Architecture: space-almonds +#Depends: * +#Depends: * +#Description: test comment support +# Yes, comments are actually allowed in debian/control, so none of the +# above should produce errors. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/copyright new file mode 100644 index 00000000..1d6806de --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/copyright @@ -0,0 +1,15 @@ +hello.c is released under public domain. This is distributed in the hope that +it will be useful, but without any warranty; without even the implied warranty +of merchantability or fitness for a particular purpose. + +A reference to /usr/share/common-licenses/GPL-2 to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +Test for old FSF address: + +Free Software Foundation, Inc., 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. + +Test for deprecated ntionl ncoding. + +Improper capitalization of linux or debian isn't caught here. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/doc-base b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/doc-base new file mode 100644 index 00000000..7e5b38f2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/doc-base @@ -0,0 +1,41 @@ +Document: binary!docs +Title: Broken debian binary doc-base control file +Author: Russ Allbery +Abstract: This control file exercises various tests of doc-base control + files, including several things that aren't tested yet. The third and + fourth one has trailing whitespace. + . + This section has a speling error and bad character. + . + The above separator was fine. +Section: Non/Existant +Unknown: Some field + + + +Format: debiandoc-sgML +Files: /usr/share/doc/binary/binary.sgml.gz +Unknown: Some field + +Format: ESP +Index: /usr/share/doc/binary/binary.txt + +Index: /usr/share/doc/binary/html/index.html + /usr/share/doc/binary/html/ch1.html + /usr/share/doc/binary/html/ch4.html + + +Format: HTML +Index: /usr/share/doc/binary/html/index.html +Files: /usr/share/doc/binary/html/ch?.h*l + /usr/share/doc/binary/hml/*.html + +Format: inFO +Files: /usr/share/info/binary.info.gz + +Format: HTML +Index: /usr/share/doc/binary/html/index.html +Files: /usr/share/doc/binary/html/ch5.html + /usr/share/doc/binary/html/ch6.html + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/goodbye.desktop b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/goodbye.desktop new file mode 100644 index 00000000..f6ce8e3f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/goodbye.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Name:Goodbye +# Name=Goodbye +Comment=Say hello! +SpecialTag=This doesn't exist! +Exec=goodbye +icon=hello +Terminal=true +Type=Application +Categories=WeirdStuff;Screensaver; +Encoding=ISO-10646-1 +[Other Entry] +Name=Goodbye diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/hello.desktop b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/hello.desktop new file mode 100644 index 00000000..f7954685 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/hello.desktop @@ -0,0 +1,14 @@ +# some random comment + +# [Foo Bar] +[KDE Desktop Entry] +Name=Hello +Name[en_US]=Hello +Comment=Say hello! +Exec=kdesu hello +Icon=hello +Terminal=true +Type=Application +Categories=GNOME;GTK;System;Applet;X-Foo;Settings; +Encoding=UTF-8 +OnlyShowIn=GNOME; diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/menu b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/menu new file mode 100644 index 00000000..e8972f4f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/menu @@ -0,0 +1,26 @@ +?package(binary):needs=text title="Hello World" command="/usr/bin/hello" +?package(binary):needs=text section="Applications/System" title="Run cfdisk (0)" command="/usr/bin/su-to-root cfdisk" +?package(binary):needs="text" section="Applications/System/Hardware" title="Run cfdisk (1)" command="sux -p cfdisk" +?package(binary):needs="x11" section="Window Managers" title="Run xfdisk" command="/usr/sbin/su-to-root -c xfdisk" +?package(binary):needs="wm" section="Applications/System/Administration" title="Run fdisk-wm" command="su-to-root -c hello" +?package(binary):section="Apps/Games" title="I'm not root!" command="su-to-root -c imnothere" +?package(binary):needs="text" section="Apps/System" title="I'm not here!" command="/imnothere" +?package(binary,other-binary):\ + needs="text"\ + section="Applications/Shells"\ + title="more than one required"\ + command="other-bin -s omething" +?package(binary):needs="wmmodule" section="WindowManagers/Modules" title="somemodule" command="ModuleCmd" +?package(binary):needs="wmmodule" section="FVWM Modules" title="somemodule" command="ModuleCmd" +?package(binary):needs="text" section="Applications/System/Administration" title="I'm not in /usr/bin!" command="iminusrbin" +?package(binary):needs="text"\ + section="Applications/System/Administration"\ + title="I'm not root!" command="su-to-root -c imnothere" +?package(binary):needs="text" section="Applications/System/Administration"\ + title="Run cfdisk (0)" command="cfdisk" +?package(binary):needs="text" section="Applications/System/Administration" title="Hello World" command="/usr/bin/hello" +?package(binary):needs="wm" section="FVWM Modules" title="Fake Module" command="hello" +?package(binary):needs="fvwmmodule" section="Window Maker" title="Fake Module"\ + command="hello" +?package(binary):needs="x11" section="Applications/System/Hardware" title="Run xfdisk" command="su-to-root -c 'xfdisk -f'" +?package(binary):needs="text" section="Applications/System/Administration" title="foo" command="sh /path/to/foo" diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/menu-method b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/menu-method new file mode 100644 index 00000000..9f07bd73 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/menu-method @@ -0,0 +1,22 @@ +#!/usr/bin/install-menu + +# -*- mode: shell-script; -*- +#I need menu-1! +# + +!include notmenu.h + +compat="menu-2" + +outputencoding="UTF-8"; +outputlanguage="C"; + +x11 = AppEntry("false"); +text = AppEntry("true"); + +startmenu = ""; +endmenu = ""; +submenutitle = ""; +rootprefix = "/var/lib/lintian/menu"; +userprefix = ".local/share/lintian/menu"; + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/postinst new file mode 100644 index 00000000..29e18619 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/postinst @@ -0,0 +1,6 @@ +#! /bin/bash -e + +if [ $1 eq 'configure' ] +then + suidregister hello-static root root 4755 +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/rules new file mode 100755 index 00000000..a962ea92 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/rules @@ -0,0 +1,92 @@ +#!/usr/bin/make -f + +tmp=debian/tmp + +# This reference to $(PWD) should not cause an error but the one below +# should. +build-arch: + make + echo $(PWD) + +build: build-arch + +clean: + make -i clean + [ ! -f debian/files ] || rm -f debian/files + [ ! -f debian/substvars ] || rm -f debian/substvars + [ ! -d debian/tmp ] || rm -rf debian/tmp + [ ! -d debian/binary ] || rm -rf debian/binary + [ ! -d debian/binary-data ] || rm -rf debian/binary-data + +binary-arch: build + install -d $(tmp)/usr/bin + install -d $(tmp)/boot/hello + install -m 755 hello $(tmp)/usr/bin + touch $(tmp)/usr/bin/iminusrbin + chmod 755 $(tmp)/usr/bin/iminusrbin + install -m 755 hello-static $(tmp)/usr/bin + strip $(tmp)/usr/bin/hello-static + install -m 755 hello-static $(tmp)/usr/bin/hello.static + strip --remove-section=.comment --remove-section=.note $(tmp)/usr/bin/hello.static + ln $(tmp)/usr/bin/hello.static $(tmp)/usr/bin/static-hello + install -m 755 hello-static $(tmp)/boot/hello + strip --remove-section=.comment --remove-section=.note $(tmp)/boot/hello/hello-static + install -d $(tmp)/usr/share/doc/binary + install -m 644 INSTALL $(tmp)/usr/share/doc/binary + install -d $(tmp)/usr/share/doc/binary/html + echo '' > $(tmp)/usr/share/doc/binary/html/index.html + echo '' > $(tmp)/usr/share/doc/binary/html/ch1.html + ln -s ../html/./ch1.html $(tmp)/usr/share/doc/binary/html/ch2.html + ln -s /usr/share/doc/binary/htm/ch1.html $(tmp)/usr/share/doc/binary/html/ch3.html + echo '' > $(tmp)/usr/share/doc/binary/html/ch5.html + ln $(tmp)/usr/share/doc/binary/html/ch5.html \ + $(tmp)/usr/share/doc/binary/html/ch6.html + install -d $(tmp)/usr/share/menu + install -d $(tmp)/usr/lib/menu + install -d $(tmp)/usr/share/binary + install -m 644 debian/menu $(tmp)/usr/share/menu/binary + install -m 644 debian/menu $(tmp)/usr/lib/menu/binary + install -d $(tmp)/etc/menu-methods + install -m 755 debian/menu-method $(tmp)/etc/menu-methods/lintian + install -d $(tmp)/usr/share/doc-base + install -m 644 debian/doc-base $(tmp)/usr/share/doc-base/binary + touch '$(tmp)/usr/share/doc-base/space ' + install -m 644 debian/README.Debian $(tmp)/usr/share/doc/binary + install -m 644 debian/NEWS.Debian $(tmp)/usr/share/doc/binary + gzip -n -9 $(tmp)/usr/share/doc/binary/NEWS.Debian + install -m 644 debian/copyright $(tmp)/usr/share/doc/binary + install -m 644 debian/changelog $(tmp)/usr/share/doc/binary + #gzip -n -9 $(tmp)/usr/share/doc/binary/changelog + install -d $(tmp)/DEBIAN + install -m 755 debian/postinst $(tmp)/DEBIAN + install -m 644 debian/conffiles $(tmp)/DEBIAN + + install -d $(tmp)/usr/share/applications + install -m 644 debian/hello.desktop \ + $(tmp)/usr/share/applications/hello.desktop + install -m 755 debian/goodbye.desktop \ + $(tmp)/usr/share/applications/goodbye.desktop + + # should be ok... + echo boe > $(tmp)/usr/bar + ln $(tmp)/usr/bar $(tmp)/usr/foo + # but this isn't + echo boe > $(tmp)/usr/bar2 + ln $(tmp)/usr/bar2 $(tmp)/usr/share/baz + + dd if=/dev/zero of=$(tmp)/usr/share/binary/largefile bs=1024 count=4000 + + install -d debian/binary-data/DEBIAN + install -d debian/binary-data/usr/share/doc + ln -s binary debian/binary-data/usr/share/doc/binary-data + + dpkg-shlibdeps $(tmp)/usr/bin/hello + dpkg-gencontrol -pbinary -isp + dpkg-gencontrol -pbinary-data -Pdebian/binary-data -isp + + dpkg --build debian/tmp .. + dpkg --build debian/binary-data .. + +binary: binary-arch + +.PHONY: build-arch build binary-arch binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/templates b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/templates new file mode 100644 index 00000000..3d928614 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/templates @@ -0,0 +1,16 @@ +# The debconf templates defined here are the sort that you'd use if +# providing a wordlist and an ispell dictionary for the language +# "perl". This shouldn't trigger warnings about not using debconf-po. + +Template: shared/packages-ispell +Type: text +Description: + +Template: shared/packages-wordlist +Type: text +Description: + +Template: miscfiles/languages +Type: text +Default: perl (Pathologically Eclectic Rubbish Lister) +Description: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/eval/hints new file mode 100644 index 00000000..516ffb8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/eval/hints @@ -0,0 +1 @@ +binary (source): not-binnmuable-all-depends-any binary-data -> binary diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/hello.c b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/hello.c new file mode 100644 index 00000000..2fb04e17 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-binary/hello.c @@ -0,0 +1,8 @@ +#include +#include + +int main(int argc, char *argv[]) { + + printf("Hello, World!\n"); + exit(0); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/ORIGIN new file mode 100644 index 00000000..2714139c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/version-substvars/legacy-etcfiles + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/debian/README.Debian b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/debian/README.Debian new file mode 100644 index 00000000..e289bfb2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/debian/README.Debian @@ -0,0 +1,5 @@ +this is a package to test lintian's handling of files in /etc. +Also, there's a random mention of /usr/doc here to prompt a warning. +But /usr/documentation doesn't. + + -- Russ Allbery , Mon, 18 Feb 2008 16:40:55 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/debian/changelog new file mode 100644 index 00000000..4f047b64 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/debian/changelog @@ -0,0 +1,7 @@ +etcfiles (1) unstable; urgency=low + + * Acknowledge NMU (Closes: #123456). + * initial setup + + -- Lintian Maintainers Fri, 21 Sep 2001 11:56:02 -0700 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/debian/conffiles b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/debian/conffiles new file mode 100644 index 00000000..76032b78 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/debian/conffiles @@ -0,0 +1,5 @@ +/etc/proper +/var/lib/foo +/etc/cron.daily/cronfile-normal +/etc/cron.daily/.cronfile-begins-with-fullstop +/etc/cron.daily/cronfile-contains.fullstop diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/debian/conffiles.only b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/debian/conffiles.only new file mode 100644 index 00000000..a4b38954 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/debian/conffiles.only @@ -0,0 +1,2 @@ +/etc/etcfiles/foo +/etc/etcfiles/bar diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/debian/control new file mode 100644 index 00000000..f3dbda7f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/debian/control @@ -0,0 +1,20 @@ +Source: etcfiles +Section: misc +Priority: optional +Maintainer: Lintian Maintainers +Standards-Version: 3.5.0 + +Package: etcfiles +Architecture: any +Depends: ${shlibs:Depends} +Description: test handling of files in /etc + Regression test for lintian's handling of files in /etc. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: only-etcfiles +Architecture: all +Depends: etcfiles (= ${source:Version}) +Description: test handling of conffile-only package diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/debian/rules new file mode 100755 index 00000000..97ff09fc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/debian/rules @@ -0,0 +1,64 @@ +#!/usr/bin/make -f + +tmp=debian/tmp +tmponly=debian/only-etcfiles + +clean: + rm -f debian/files debian/substvars + rm -rf debian/tmp + rm -rf debian/only-etcfiles + +build: +build-arch: +build-indep: +binary-indep: + install -d $(tmp)/etc + install -m 644 proper $(tmp)/etc + install -m 644 improper $(tmp)/etc + mkdir $(tmp)/etc/cron.daily + touch $(tmp)/etc/cron.daily/cronfile-normal + touch $(tmp)/etc/cron.daily/.cronfile-begins-with-fullstop + touch $(tmp)/etc/cron.daily/cronfile-contains.fullstop + ln $(tmp)/etc/improper $(tmp)/etc/improper-link + install -d $(tmp)/usr/share/doc/etcfiles + install -d $(tmp)/var/lib + install -m 644 proper $(tmp)/var/lib/foo + install -m 644 debian/README.Debian $(tmp)/usr/share/doc/etcfiles + install -m 644 debian/changelog $(tmp)/usr/share/doc/etcfiles + #gzip -9 $(tmp)/usr/share/doc/etcfiles/changelog + install -d $(tmp)/DEBIAN + install -m 644 debian/conffiles $(tmp)/DEBIAN + + echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/cronfile-normal' \ + > debian/tmp/DEBIAN/md5sums + echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/.cronfile-begins-with-fullstop' \ + >> debian/tmp/DEBIAN/md5sums + echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/cronfile-contains.fullstop' \ + >> debian/tmp/DEBIAN/md5sums + echo '05c72cacce994208128b7d081116b04a ./etc/proper' \ + >> debian/tmp/DEBIAN/md5sums + echo 'ab371382468880299e5ebd05921764ce etc/improper' \ + >> debian/tmp/DEBIAN/md5sums + echo 'ab371382468880299e5ebd05921764ce usr/bin/foo' \ + >> debian/tmp/DEBIAN/md5sums + echo 'this is a malformed line' \ + >> debian/tmp/DEBIAN/md5sums + echo '56fb27e455dd86d8801f1ecd3a4cee49 usr/share/doc/etcfiles/README.Debian' \ + >> debian/tmp/DEBIAN/md5sums + + install -d $(tmponly)/etc/etcfiles + touch $(tmponly)/etc/etcfiles/foo + touch $(tmponly)/etc/etcfiles/bar + install -d $(tmponly)/usr/share/doc + cd $(tmponly)/usr/share/doc && ln -s etcfiles only-etcfiles + install -d $(tmponly)/DEBIAN + install -m 644 debian/conffiles.only $(tmponly)/DEBIAN/conffiles + + dpkg-gencontrol -isp -petcfiles + dpkg-gencontrol -isp -ponly-etcfiles -P$(tmponly) + dpkg --build $(tmp) .. + dpkg --build $(tmponly) .. + +binary: binary-indep + +.PHONY: binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/eval/hints new file mode 100644 index 00000000..939340bc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/eval/hints @@ -0,0 +1 @@ +etcfiles (source): not-binnmuable-all-depends-any only-etcfiles -> etcfiles diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/improper b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/improper new file mode 100644 index 00000000..23656f41 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/improper @@ -0,0 +1,2 @@ +[config] + var = value \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/proper b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/proper new file mode 100644 index 00000000..f3dc68bf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-etcfiles/proper @@ -0,0 +1,2 @@ +# i am a config file +foo = var \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/Makefile b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/Makefile new file mode 100644 index 00000000..657dc2ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/Makefile @@ -0,0 +1,55 @@ +# This is the correct way to build a lib + +CC=gcc +CFLAGS=-g -Wall -Winline -O2 +LDFLAGS=-Wl,--no-as-needed + +OBJS=baz.o extra.o +SHOBJS=baz.sho extra.sho +NOPICOBJS = $(SHOBJS) + +all: libbaz1.a libbaz2.a libbaz1.so.1.0.3b libbaz2.so libbaz3.so.1.0.3b \ + libbaz.so + +libbaz2.so: libbaz2.so.1.0 + ln -sf $^ $@ +libbaz2.so.1.0: libbaz2.so.1.0.3b + ln -sf $^ $@ + +# Oops, forget the soname altogether +libbaz1.so.1.0.3b: $(NOPICOBJS) + $(CC) $(LDFLAGS) -o $@ -shared $^ -lc + +libbaz2.so.1.0.3b: $(SHOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz2.so.1.0 $^ -lc + +# Non-PIC. We can't test this on all architectures +libbaz3.so.1.0.3b: $(NOPICOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz3.so.1 $^ -lc + +# Non-versioned SONAME. +libbaz.so: $(SHOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz.so $^ -lc + +#%.o-noreentrant: %.c +# $(CC) $(LDFLAGS) $(CFLAGS) -o $@ -c $< + +%.sho: %.c + $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -fPIC -o $@ -c $< + +%.o: %.c + $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -o $@ -c $< + +libbaz2.a: $(OBJS) + ar cq $@ $(OBJS) + strip --strip-unneeded --remove-section=.comment \ + --remove-section=-note $@ + ranlib $@ + +# The pic one in the .a (wrong), no archive table +libbaz1.a: $(SHOBJS) + ar cqS $@ $^ + strip --strip-unneeded --remove-section=.comment \ + --remove-section=-note $@ +clean: + rm -f *.a *.o *.so* *.sho diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/ORIGIN new file mode 100644 index 00000000..e7ee4057 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/version-substvars/legacy-libbaz + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/baz.c b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/baz.c new file mode 100644 index 00000000..4d5fc458 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/baz.c @@ -0,0 +1,6 @@ +#include + +double pw(double p) +{ + return exp(p); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/changelog new file mode 100644 index 00000000..44c0a832 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/changelog @@ -0,0 +1,6 @@ +libbaz (1-1) unstable; urgency=low + + * Initial setup + + -- Sean 'Shaleh' Perry Tue, 30 Jan 2001 15:23:59 -0800 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/compat new file mode 100644 index 00000000..b1bd38b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/compat @@ -0,0 +1 @@ +13 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/control new file mode 100644 index 00000000..15066870 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/control @@ -0,0 +1,58 @@ +Source: libbaz +Section: libs +Priority: optional +Maintainer: Lintian Maintainer +Build-depends: debhelper (>=4) +Standards-Version: 3.2.1 + +Package: libbaz1 +Architecture: any +Provides: libbaz +Description: test handling of library packages + Regression test for lintian's handling of libraries. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz1-dev +Architecture: any +Depends: libbaz1 (= ${source:Version}), perlapi-5.8.8 +Description: development package + Regression test for lintian's handling of libraries (dev). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2 +Architecture: any +Depends: ${shlibs:Depends}, libssl0.9.8 +Description: test handling of library packages (good) + Regression test for lintian's handling of libraries (good). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2-dev +Architecture: any +Depends: ${shlibs:Depends}, libbaz2 (= ${source:Version}) +Description: development package (good) + Regression test for lintian's handling of libraries (dev good). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2-dbg +Architecture: any +Depends: libbaz2 (= ${binary:Version}) +Priority: optional +Description: debugging package + Regression test for lintian's handling of libraries (debug). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/copyright new file mode 100644 index 00000000..a874c878 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/copyright @@ -0,0 +1,8 @@ +This package is released under public domain. This is distributed in the hope +that it will be useful, but without any warranty; without even the implied +warranty of merchantability or fitness for a particular purpose. + +A reference to /usr/share/common-licenses/GPL-2 to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +However, this has an OpenSSL exception. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/dev.postinst b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/dev.postinst new file mode 100644 index 00000000..683e3cc5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/dev.postinst @@ -0,0 +1,4 @@ +#!/bin/sh -e + +$PKG=libbaz1-dev + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/dev.prerm b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/dev.prerm new file mode 100644 index 00000000..683e3cc5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/dev.prerm @@ -0,0 +1,4 @@ +#!/bin/sh -e + +$PKG=libbaz1-dev + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/lib.postinst b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/lib.postinst new file mode 100644 index 00000000..ec0b98ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/lib.postinst @@ -0,0 +1,10 @@ +#!/bin/sh -e + +$PKG=libbaz1 + +if [ "$1" = "configure" ]; then + if [ -d /usr/doc -a ! -e /usr/doc/$PKG -a -d /usr/share/doc/$PKG ] +; then + ln -sf ../share/doc/$PKG /usr/doc/$PKG + fi +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/lib.prerm b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/lib.prerm new file mode 100644 index 00000000..50e37c3b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/lib.prerm @@ -0,0 +1,7 @@ +#!/bin/sh -e + +$PKG=libbaz1 + +if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/$PKG ]; then + rm -f /usr/doc/$PKG +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/lib.shlibs b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/lib.shlibs new file mode 100644 index 00000000..b88e2882 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/lib.shlibs @@ -0,0 +1,8 @@ +libdoesntexist2 1.0 libbaz1 +libdoesntexist2 1.0 libbaz1 +libbaz2 1.1 libbaz +libbaz3 1 libbaz1 (>> 1-1) +libbaz4 1 libbaz1 (= 1-1) +libbaz5 1 libbaz2 +udeb: libdoesntexist2 1.0 libbaz2 +udeb: libdoesntexist2 1.0 libbaz2 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/lib.symbols b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/lib.symbols new file mode 100644 index 00000000..72f9d8ab --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/lib.symbols @@ -0,0 +1,3 @@ +libbaz.so.2 libbaz1 #MINVER# + pw 1-1 + foo 1.1-1 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/rules new file mode 100755 index 00000000..fa99bc8a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/rules @@ -0,0 +1,121 @@ +#!/usr/bin/make -f + +lib_tmp=debian/tmp-lib +dev_tmp=debian/tmp-dev + +LIB=libbaz1 +DEV=libbaz1-dev + +VENDORARCH := $(shell perl -MConfig -wE'say substr($$Config{vendorarch},1)') + +build-arch: + $(MAKE) + +build-indep: + +build: build-arch build-indep + +clean: + $(MAKE) clean + dh_clean -plibbaz2 -plibbaz2-dev + rm -f debian/files debian/substvars + rm -rf $(lib_tmp) $(dev_tmp) + +# Now the correct libbaz2-dev package +binary-correct: + install -d debian/libbaz2-dev/usr/lib + cp -a libbaz2.a libbaz2.so debian/libbaz2-dev/usr/lib + # usually, I'd also include some .h files to /usr/include + + # Now the correct libbaz2 package + install -d debian/libbaz2/usr/lib + cp -a libbaz2.so.* debian/libbaz2/usr/lib + chmod a-x debian/libbaz2/usr/lib/* + + # General stuff that is tested in other testsets: + dh_installdocs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_compress -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + + # Mess up the libbaz2 changelog files to test the symlink handling. + ln -s /usr/share/doc/lintian/changelog.gz \ + debian/libbaz2/usr/share/doc/libbaz2/changelog.gz + install -m 644 debian/changelog \ + debian/libbaz2-dev/usr/share/doc/libbaz2-dev/foo + ln -s foo debian/libbaz2-dev/usr/share/doc/libbaz2-dev/changelog + + # Okay, if either line is omitted, it should be noted + dh_strip --dbg-package=libbaz2-dbg -plibbaz2 -plibbaz2-dev + dh_makeshlibs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_shlibdeps -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + + # and again, regular packaging stuff + dh_installdeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + echo udeb: libbaz2 1.0 libbaz2 >> debian/libbaz2/DEBIAN/shlibs + dh_gencontrol -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_builddeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + +# and the incorrect one +binary-arch: build-arch binary-correct + # first, the lib package + install -d $(lib_tmp)/usr/lib + # resp. no soname (check), wrong soname (check), and no-pic (check) + cp -a libbaz1.so.1.0* $(lib_tmp)/usr/lib + cp -a libbaz2.so.1.0.3b $(lib_tmp)/usr/lib/libfoo2.so.1.0.3b + install -m644 libbaz3.so.1.0.3b $(lib_tmp)/usr/lib/libbaz3.so.1.0.3b + # let's include the .a in the non-dev too (TODO) + # Also, libbaz1.a hasn't a symbol table (TODO) + cp -a *.a $(lib_tmp)/usr/lib + # And a wrong .so symlink (wrong, only in -dev, TODO) + ln -s libfoo3.so.0.9 $(lib_tmp)/usr/lib/libfoo3.so + # And a wrong .so.X symlink (wrong, should point to a real existing + # shlib, TODO) + ln -s libfoo.so.0.9.1 $(lib_tmp)/usr/lib/libfoo.so.0.9 + # And a plain .so (wrong, TODO) + touch $(lib_tmp)/usr/lib/libbar2.so + # And a non-versioned SONAME. + install -m644 libbaz.so $(lib_tmp)/usr/lib/libbaz.so + strip --remove-section=.comment --strip-unneeded $(lib_tmp)/usr/lib/libbaz.so + # Pretend to be a Perl module to test a lack of Perl dependencies. + install -d $(lib_tmp)/$(VENDORARCH)/auto/Foo + install -m 644 libbaz2.so.1.0.3b $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + strip $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + + install -d $(lib_tmp)/usr/share/doc/$(LIB) + install -m 644 debian/copyright $(lib_tmp)/usr/share/doc/$(LIB) + install -m 644 debian/changelog $(lib_tmp)/usr/share/doc/$(LIB) + gzip -n -9 $(lib_tmp)/usr/share/doc/$(LIB)/changelog + install -d $(lib_tmp)/DEBIAN + install -m 755 debian/lib.postinst $(lib_tmp)/DEBIAN/postinst + install -m 755 debian/lib.prerm $(lib_tmp)/DEBIAN/prerm + touch $(lib_tmp)/usr/share/doc/README.Debian + #dpkg-shlibdeps $(lib_tmp)/usr/lib/libbaz.so.1.0 + install -m 755 debian/lib.shlibs $(lib_tmp)/DEBIAN/shlibs + install -m 755 debian/lib.symbols $(lib_tmp)/DEBIAN/symbols + dpkg-gencontrol -isp -p$(LIB) -P$(lib_tmp) + dpkg --build $(lib_tmp) .. + + # now the -dev package + install -d $(dev_tmp)/usr/include + install -d $(lib_tmp)/usr/lib + # let's also install the .so at the same time... (wrong, TODO) + cp -a *.a *.so.* $(lib_tmp)/usr/lib + # and fuck up permission (TODO) + chmod a+x $(lib_tmp)/usr/lib/*.a + # Pretend to be a Perl module to test a lack of Perl dependencies. + install -d $(dev_tmp)/$(VENDORARCH)/auto/Foo + install -m 644 libbaz2.so.1.0.3b $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + strip $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + install -d $(dev_tmp)/usr/share/doc + ln -s $(LIB) $(dev_tmp)/usr/share/doc/$(DEV) + install -d $(dev_tmp)/DEBIAN + install -m 755 debian/dev.postinst $(dev_tmp)/DEBIAN/postinst + install -m 755 debian/dev.prerm $(dev_tmp)/DEBIAN/prerm + dpkg-gencontrol -isp -p$(DEV) -P$(dev_tmp) + dpkg --build $(dev_tmp) .. + + +binary: binary-arch + +# The mention of binary-indep here should be sufficient to suppress the +# warning that it's not present. +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/source.lintian-overrides b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/source.lintian-overrides new file mode 100644 index 00000000..6008d271 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/source.lintian-overrides @@ -0,0 +1 @@ +libbaz source: maintainer-script-lacks-debhelper-token diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/eval/hints new file mode 100644 index 00000000..81c169a1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/eval/hints @@ -0,0 +1,2 @@ +libbaz (source): not-binnmuable-any-depends-any libbaz2-dev -> libbaz2 +libbaz (source): not-binnmuable-any-depends-any libbaz1-dev -> libbaz1 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/extra.c b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/legacy-libbaz/extra.c new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-general/ORIGIN new file mode 100644 index 00000000..3f875867 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/version-substvars/version-substvars-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-general/debian/changelog new file mode 100644 index 00000000..9adb7e19 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-general/debian/changelog @@ -0,0 +1,17 @@ +version-substvars-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: version-substvars-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +version-substvars-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: version-substvars-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-general/debian/control new file mode 100644 index 00000000..3e209f17 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-general/debian/control @@ -0,0 +1,62 @@ +Source: version-substvars-general +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no + +Package: program-bin +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, + program-data (= ${binary:Version}), + program-data-extra (= ${source:Version}) +Provides: + provided-package (= ${binary:Version}), + provided-package-2 (= ${binary:Version}) +Description: Test of substvars + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + + +Package: program-data +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, + foreign-pkg:any (= ${source:Version}) +Suggests: provided-package (= ${binary:Version}) +Replaces: other-foreign-pkg:any (<< ${binary:Version}) +Recommends: another-foreign-pkg-${suffix}:any (= ${source:Version}) +Description: Test of substvars - data + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + Data package. + +Package: program-utils +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, + program-bin:any (= ${source:Version}), + program-data (>= ${binary:Version}) +Description: Test of substvars - extra utils + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + Extra utils. + +Package: program-data-extra +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, + program-bin:any (= ${binary:Version}), +Description: Test of substvars - extra data + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + Extra-Data package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-general/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-general/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-general/eval/hints new file mode 100644 index 00000000..7fd76e6d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-general/eval/hints @@ -0,0 +1,6 @@ +version-substvars-general (source): version-substvar-for-external-package Replaces ${binary:Version} program-data -> other-foreign-pkg [debian/control:29] +version-substvars-general (source): version-substvar-for-external-package Depends ${source:Version} program-data -> foreign-pkg [debian/control:26] +version-substvars-general (source): not-binnmuable-any-depends-any program-utils -> program-bin +version-substvars-general (source): not-binnmuable-any-depends-all program-utils -> program-data +version-substvars-general (source): not-binnmuable-any-depends-all program-bin -> program-data +version-substvars-general (source): not-binnmuable-all-depends-any program-data-extra -> program-bin diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-obsolete/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-obsolete/ORIGIN new file mode 100644 index 00000000..6e4dfd79 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-obsolete/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/version-substvars/version-substvars-obsolete + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-obsolete/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-obsolete/debian/changelog new file mode 100644 index 00000000..eb3aaa4a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-obsolete/debian/changelog @@ -0,0 +1,17 @@ +version-substvars-obsolete (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: version-substvars-obsolete + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +version-substvars-obsolete (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: version-substvars-obsolete + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-obsolete/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-obsolete/debian/control new file mode 100644 index 00000000..f8908316 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-obsolete/debian/control @@ -0,0 +1,57 @@ +Source: version-substvars-obsolete +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), dpkg (<< 1.17.2) +Rules-Requires-Root: no + +Package: program-bin +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, + program-data (= ${binary:Version}), + program-data-extra (= ${source:Version}) +Description: Test of substvars + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + + +Package: program-data +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, + foreign-pkg:any (= ${Source-Version}) +Replaces: other-foreign-pkg:any (<< ${binary:Version}) +Description: Test of substvars - data + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + Data package. + +Package: program-utils +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, + program-bin:any (= ${source:Version}), + program-data (>= ${binary:Version}) +Description: Test of substvars - extra utils + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + Extra utils. + +Package: program-data-extra +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, + program-bin:any (= ${binary:Version}), +Description: Test of substvars - extra data + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + Extra-Data package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-obsolete/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-obsolete/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-obsolete/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-obsolete/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-obsolete/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-obsolete/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-obsolete/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-obsolete/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-obsolete/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-obsolete/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-obsolete/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-obsolete/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-obsolete/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-obsolete/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-obsolete/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-obsolete/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-obsolete/eval/hints new file mode 100644 index 00000000..11240985 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/version-substvars/version-substvars-obsolete/eval/hints @@ -0,0 +1,7 @@ +version-substvars-obsolete (source): version-substvar-for-external-package program-data -> other-foreign-pkg +version-substvars-obsolete (source): version-substvar-for-external-package program-data -> foreign-pkg +version-substvars-obsolete (source): substvar-source-version-is-deprecated program-data +version-substvars-obsolete (source): not-binnmuable-any-depends-any program-utils -> program-bin +version-substvars-obsolete (source): not-binnmuable-any-depends-all program-utils -> program-data +version-substvars-obsolete (source): not-binnmuable-any-depends-all program-bin -> program-data +version-substvars-obsolete (source): not-binnmuable-all-depends-any program-data-extra -> program-bin diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/ORIGIN new file mode 100644 index 00000000..b61f88d5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/watch/changes-upstream-signature-missing + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/debian/changelog new file mode 100644 index 00000000..15bc4e24 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/debian/changelog @@ -0,0 +1,17 @@ +changes-upstream-signature-missing (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: changes-upstream-signature-missing + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changes-upstream-signature-missing (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: changes-upstream-signature-missing + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/debian/control new file mode 100644 index 00000000..cad6a10d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/debian/control @@ -0,0 +1,17 @@ +Source: changes-upstream-signature-missing +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), dpkg (>= 1.18.5) +Homepage: https://lintian.debian.org/ + +Package: changes-upstream-signature-missing +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: No upstream signature included but package contains a signing key + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/debian/upstream/signing-key.asc b/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/debian/upstream/signing-key.asc new file mode 100644 index 00000000..bd03c4eb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/debian/upstream/signing-key.asc @@ -0,0 +1 @@ +Too lazy to fake this file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/eval/hints new file mode 100644 index 00000000..a1301ce7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/changes-upstream-signature-missing/eval/hints @@ -0,0 +1,2 @@ +changes-upstream-signature-missing (source): debian-watch-does-not-check-openpgp-signature [debian/watch] +changes-upstream-signature-missing (source): debian-watch-could-verify-download debian/upstream/signing-key.asc [debian/watch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/filenamemangle/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/watch/filenamemangle/ORIGIN new file mode 100644 index 00000000..7ec58f90 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/filenamemangle/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/watch/filenamemangle + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/filenamemangle/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/watch/filenamemangle/debian/changelog new file mode 100644 index 00000000..5d69f532 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/filenamemangle/debian/changelog @@ -0,0 +1,17 @@ +filenamemangle (1.0+ds-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: filenamemangle + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +filenamemangle (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: filenamemangle + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/filenamemangle/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/filenamemangle/debian/control new file mode 100644 index 00000000..6dcc5a1f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/filenamemangle/debian/control @@ -0,0 +1,17 @@ +Source: filenamemangle +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: filenamemangle +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Option filenamemangle in d/watch + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/filenamemangle/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/watch/filenamemangle/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/filenamemangle/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/filenamemangle/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/watch/filenamemangle/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/filenamemangle/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/filenamemangle/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/watch/filenamemangle/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/filenamemangle/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/filenamemangle/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/filenamemangle/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/filenamemangle/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/filenamemangle/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/watch/filenamemangle/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/filenamemangle/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/filenamemangle/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/watch/filenamemangle/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/filenamemangle/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/filenamemangle/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/watch/filenamemangle/debian/watch new file mode 100644 index 00000000..8c37f5a2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/filenamemangle/debian/watch @@ -0,0 +1,8 @@ +Version: 5 + +# This is test for filemangle along with other fields for repacking +Source: https://codeberg.org/dnkl/foot/releases +Matching-Pattern: .*/releases/tag/(\d\S+) +Download-Url-Mangle: s/\/releases\/tag\/(\d\S+)$/\/archive\/$1\.tar\.gz/ +Dversion-Mangle: auto +Filename-Mangle: s/.+\/tag\/(\d\S+)$/foot-$1\.tar\.gz/ diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/filenamemangle/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/watch/filenamemangle/eval/hints new file mode 100644 index 00000000..24ad63b4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/filenamemangle/eval/hints @@ -0,0 +1 @@ +filenamemangle (source): debian-watch-does-not-check-openpgp-signature [debian/watch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-foo++/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-foo++/ORIGIN new file mode 100644 index 00000000..9690c351 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-foo++/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/watch/legacy-foo++ + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-foo++/debian/README.Debian b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-foo++/debian/README.Debian new file mode 100644 index 00000000..87bfcdf7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-foo++/debian/README.Debian @@ -0,0 +1,7 @@ +foo++ for Debian +---------------- + +This should trigger a warning, as i use a fake mail address. + + -- Marc 'HE' Brockschmidt , Wed, 14 Apr 2004 01:44:18 +0200 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-foo++/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-foo++/debian/changelog new file mode 100644 index 00000000..e1637f75 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-foo++/debian/changelog @@ -0,0 +1,31 @@ +foo++ (5) unstable; urgency=low + + * Add a fake README.Debian to trigger a warning. + * This should trigger + debian-changelog-file-contains-debmake-default-email-address. + + -- Marc 'HE' Brockschmidt Wed, 14 Apr 2003 01:35:47 +0200 + +foo++ (4) unstable; urgency=low + + * This changelog now includes a ISO-8859-1 character: '' + + -- Frank Lichtenheld Fri, 5 Mar 2004 13:41:39 +0100 + +foo++ (3) unstable; urgency=low + + * Set maintainers + uploaders incorrectly + + -- Jeroen van Wolffelaar Fri, 5 Mar 2004 04:20:24 +0100 + +foo++ (2) unstable; urgency=low + + * Added a foo++-helper package to try and catch even more ++ bugs. + + -- Sean 'Shaleh' Perry Sat, 10 Feb 2001 23:16:17 -0800 + +foo++ (1) unstable; urgency=low + + * Initial version + + -- Sean 'Shaleh' Perry Thu, 16 Nov 2000 09:11:40 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-foo++/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-foo++/debian/control new file mode 100644 index 00000000..44d0c250 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-foo++/debian/control @@ -0,0 +1,29 @@ +Source: foo++ +Section: misc +Priority: optional +Maintainer: Lintian Maintainer +Uploaders: Marc 'HE' Brockschmidt , Jeroen van Wolffelaar , + Frank +Standards-Version: 3.1.1 +XS-Dm-Upload-Allowed: no + +Package: foo++ +Architecture: all +Build-Depends: test +Depends: test, libssl0.9.7 +Description: see how lintian reacts to plus signs in the package name + Regression test to see if lintian tests work on a package with plus signs in + its name. + . + This description uses only UTF-8 high bytes chars. + +Package: foo++-helper +Architecture: all +Depends: test, foo++ +Description: see how lintian reacts to plus signs in the package name + Regression test to see if lintian tests work on a package with plus signs in + its name. This has /usr/share/doc links to foo++ to trigger even more checks. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-foo++/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-foo++/debian/copyright new file mode 100644 index 00000000..e2d6d93e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-foo++/debian/copyright @@ -0,0 +1,7 @@ +A reference to /usr/share/common-licenses/GPL to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +However, there is also a reference to /usr/share/common-licenses/LGPL, so +who knows what bits actually depend on libssl. + +Copr. 2007 Somebody. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-foo++/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-foo++/debian/rules new file mode 100755 index 00000000..63bb4dbe --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-foo++/debian/rules @@ -0,0 +1,36 @@ +#!/usr/bin/make -f + +foo=foo++ +helper=foo++-helper + +build-arch: + +build-indep: + +build: build-arch build-indep + +binary-arch: + +binary-indep: + install -d debian/$(foo)/DEBIAN + install -d debian/$(foo)/usr/share/doc/$(foo) + install -m 644 debian/changelog \ + debian/$(foo)/usr/share/doc/$(foo)/changelog + gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/changelog + install -m 644 debian/README.Debian \ + debian/$(foo)/usr/share/doc/$(foo)/README.Debian + gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/README.Debian + dpkg-gencontrol -isp -p$(foo) -Pdebian/$(foo) + dpkg --build debian/$(foo) .. + + install -d debian/$(helper)/DEBIAN + install -d debian/$(helper)/usr/share/doc/ + ln -sf $(foo) debian/$(helper)/usr/share/doc/$(helper) + dpkg-gencontrol -isp -p$(helper) -Pdebian/$(helper) + dpkg --build debian/$(helper) .. + +binary: binary-arch binary-indep + +clean: + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-foo++/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-foo++/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-foo++/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-foo++/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-foo++/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-foo++/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-foo++/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-foo++/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-foo++/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-foo++/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-foo++/debian/watch new file mode 100644 index 00000000..26f9a3c1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-foo++/debian/watch @@ -0,0 +1,6 @@ +# A comment \ +version=0 + +# uscan does not interpret the backslash above, it is just part of the comment + +http://domain.tld/file-(.*)\.tar\.gz diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-foo++/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-foo++/eval/hints new file mode 100644 index 00000000..9d470ce3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-foo++/eval/hints @@ -0,0 +1 @@ +foo++ (source): debian-watch-line-invalid version=0 [debian/watch:1] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/ORIGIN new file mode 100644 index 00000000..4532137d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/watch/legacy-maintainer-scripts + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/changelog new file mode 100644 index 00000000..a0c6dc5a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/changelog @@ -0,0 +1,57 @@ +maintainer-scripts (7+dfsg-0.1) unstable; urgency=low + + * Doing an upload for QA but I fail to give it a correct version number, + have some uploaders, and also fail to mention it... Bad me ;) + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 02:05:29 +0200 + +maintainer-scripts (6.1) unstable; urgency=low + + * I made this entry on my local PC, oops ;) + + -- Jeroen van Wolffelaar Sat, 21 Feb 2004 18:29:37 +0100 + +maintainer-scripts (6) unstable; urgency=low + + * added ldconfig calls to postrm to check test the postrm tests + from shared-libs + + -- Frank Lichtenheld Sat, 21 Feb 2004 18:29:36 +0100 + +maintainer-scripts (5) unstable; urgency=low + + * added bash style arrays to postinst, this one is for you Torsten (-: + + -- Sean 'Shaleh' Perry Fri, 30 Mar 2001 23:27:06 -0800 + +maintainer-scripts (4) unstable; urgency=low + + * added a here document to the prerm, along with two more bashisms + * made postrm a bash script to check that bash scripts are not searched + + -- Sean 'Shaleh' Perry Mon, 26 Feb 2001 13:02:57 -0800 + +maintainer-scripts (3) unstable; urgency=low + + * Added check for '.' called as '. foo || bar', lintian 1.11.15 failed this + thinking the '||' was a argument. + * also added an invalid call to '. foo bar' + * postinst now has a space between the #! and /bin/sh to test the interpreter + checking code. + + -- Sean 'Shaleh' Perry Tue, 9 Jan 2001 23:06:25 -0800 + +maintainer-scripts (2) unstable; urgency=low + + * Fix location of changelog. + * prerm and postrm do 'update-alternatives --remove'; should only complain + about postrm. + + -- Colin Watson Fri, 29 Dec 2000 06:01:24 +0000 + +maintainer-scripts (1) unstable; urgency=low + + * Initial version + * postinst and prerm set the usr/doc symlink + + -- Sean 'Shaleh' Perry Thu, 16 Nov 2000 09:11:40 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/control new file mode 100644 index 00000000..4661ce0e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/control @@ -0,0 +1,18 @@ +Source: maintainer-scripts +Section: misc +Priority: optional +Maintainer: QA group +Uploaders: Anyone but Jeroen +Build-Depends: debhelper-compat (= 14), dash (>= 0.5.10.2) +Standards-Version: 3.1.1 +Rules-Requires-Root: binary-targets +XS-Dm-Upload-Allowed: Yes + +Package: maintainer-scripts +Architecture: all +Depends: test +Description: test lintian's maintainer script checks + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/postinst new file mode 100644 index 00000000..e56ed3bf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/postinst @@ -0,0 +1,181 @@ +#! /bin/sh -e + +if [ "$1" = "configure" ]; then + if [ -d /usr/doc -a ! -e /usr/doc/maintainer-scripts -a -d /usr/share/doc/maintainer-scripts ]; then + ln -sf ../share/doc/maintainer-scripts /usr/doc/maintainer-scripts + fi +fi + +# valid +. /usr/share/lintian/shell || exit 0 +. /usr/share/lintian/shell >/dev/null +. /usr/share/lintian/shell 2>/dev/null +. /usr/share/lintian/shell /dev/null +update-rc.d $FOO defaults +update-rc.d foo remove + +# valid +FOO=/tmp +FOO=/var/tmp +: ${FOO:=/tmp} +FOO=`mktemp /tmp/scripts.XXXXXX` +rm "$FOO" +FOO=`tempfile -n/tmp/scripts.tmp` +mkdir /var/tmp/scripts +FOO="/tmp/false.positive.XXXXXX" +# invalid +echo foo >>/tmp/scripts.tmp +rm /tmp/scripts.tmp +rmdir /var/tmp/scripts + +# invalid, maintainer-script-hides-init-failure +invoke-rc.d foo start || exit 0 + +# The right way to invoke an rc script +if which invoke-rc.d >/dev/null 2>&1; then + invoke-rc.d package start +else + /etc/init.d/package start +fi + +# Example ucf invocation. +ucf /usr/share/foo/configuration /etc/foo.conf + +# Calling gconftool directly. +gconftool-2 --makefile-install-rule foo.schema + +# Calling gconf-schemas with no dependency. +gconf-schemas --register foo.schema + +# Calling update-xmlcatalog with no dependency. +update-xmlcatalog --add --type system --id "/usr/share/sgml/dtd/foo" \ + --package maintainer-scripts --root + +# Maintainer scripts shouldn't touch /var/lib/dpkg/status. This is the old +# recipe from the dpkg wiki that should be replaced with dpkg-query. +sed -n -e \"/^Conffiles:/,/^[^ ]/{\\\\' /etc/conffile'{s/.* //;p}}\" \ + /var/lib/dpkg/status + +# Don't modify these files. +echo 'broken 6714/tcp' >> /etc/services +cp /nonexistent /etc/protocols +mv /usr/share/doc/rpc /etc/rpc + +# But this is okay. +cp /etc/protocols /etc/protocols.new + +# This is also wrong. +echo 'broken' > /etc/inetd.conf +cp /etc/inetd.conf.new /etc/inetd.conf + +# But this is fine. +cp /etc/inetd.conf /srv/chroot/etc/inetd.conf + +# Deprecated +install-sgmlcatalog --install package +install-sgmlcatalog --remove package + +# This too is a heredoc. +some-program > /etc/config-file <<'EOF' +echo "All of the array is: ${H[@]}" +EOF + +# But this isn't. +cat '</dev/null; then + ucf --purge /etc/foo.conf +fi + +# This isn't allowed. +rm /tmp/foo /dev/device +rm /dev/device1 + +# But this is okay. +rm /tmp/foo > /dev/null + +# Not allowed here even with remove. +install-sgmlcatalog --remove package diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/preinst b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/preinst new file mode 100644 index 00000000..60589785 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/preinst @@ -0,0 +1,18 @@ +#!/bin/sh + +update-rc.d foo remove +update-rc.d bar defaults + +# Obsolete dpkg assertions. +dpkg --assert-support-predepends || exit 1 +dpkg --assert-working-epoch || exit 1 +dpkg --assert-long-filenames || exit 1 +dpkg --assert-multi-conrep || exit 1 + +/bin/grep -E --mmap "^Package: foo$" /var/lib/dpkg/status + +# continuation lines +update-alternatives --install /usr/bin/fakeroot fakeroot \ + /usr/bin/fakeroot-ng 5 \ + --slave /usr/share/man/man1/fakeroot.1.gz \ + fakeroot.1.gz /usr/share/man/man1/fakeroot-ng.1.gz diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/prerm b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/prerm new file mode 100644 index 00000000..076ecafb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/prerm @@ -0,0 +1,188 @@ +#!/bin/sh + +if [ "$1" != "upgrade" ]; then + update-alternatives --remove dummy /usr/bin/dummy-alternative +fi + +if ([ "$1" = "upgrade" ] || [ "$1" = "remove" ]) && [ -L /usr/doc/maintainer-scripts ]; the +n + rm -f /usr/doc/maintainer-scripts +fi + +cat </dev/null +} + +source $FOO + +trap "echo hi" EXIT HUP 3 + +if [[ "$2" = "purge" ]]; then + kill -HUP $$ +fi + +#this is ok though +if test -n $(echo foo | perl -pe 's/[[:space:]]//go'); then + echo 1 +fi + +update-rc.d foo remove + +# More false positives for bashism checks. None of these are errors. +echo "$line" | grep -q '{fonts/map,}/{\$progname,pdftex,dvips,}//' +echo "$line" | grep -q "${fonts},${foo}" +echo '$[1+2]' +printf "foo |& bar" +perl -e "print q( kill -HUP $? )" + +# Still catch disallowed expansions in double-quotes, though. +echo "${line:3:1}" + +# The wrong way to run an init script (no invoke-rc.d). +/etc/init.d/package stop + +# This is the only install-sgmlcatalog call that's allowed. +install-sgmlcatalog --quiet --remove package + +# More bashisms checks + +read -x foo +read -x +read -r foo +read foo +read + +echo "a\\b" +echo 'a\nb' + +echo "${UID}" +echo "$EUID" +echo "$SHLVL" +echo "$DIRSTACK" +echo "$SECONDS" +echo "$BASH" +echo "$BASH_FOO" +echo "$SHELLOPTS" +echo "$PIPESTATUS" + +bar="$(cut '-d|' -f2 <<< "$foo")" + +VAR=1 +VAR+=a + +echos() { + echo -n -e "bar" + echo -e -n "bar" + echo -en "bar" + echo -ne "bar" + echo "bar" + echo "echo -e foo" +} + +ech.os() { + echo foo >& 2 + echo foo >&bar + echo foo >& bar +} + +echoes() { + echo "abc\nxyz" + echo 'xyz\rabc' + echo foo\cbar + + echo -e "abc\nxyz" + echo -net 'xyz\rabc' + echo -e foo\cbar +} + +foobar.() { + suspend x + suspended x + caller x + complete x + compgen x + declare -a foo +} + +.foobar() { + typeset -x bar + disown 1 + builtin foo + set -B + alias -p + unalias -a +} + +IFS="()" + +ulimit +shopt +type -v bar +time ls +dirs +diff <(tac a) <(tac b) + +pushd + +local foo=bar +local -x foo + +popd + +readonly -f + +echo bar > /dev/tcp +export x +export -x x +export -p x + +sh -x +sh -D +sh --foo +sh +O + +# Brace expansion checks +echo {a,b} +echo {abc},{bcd} + +foobar() +{ + # This is a function +} + + foo.bar() +( + # This is a function with a bad name +) + +foobar@() +{ + # As is this +} + +# This is ok +read -r foo +# but these aren't +read -r +read -p "Would you like to restart the service?" foo bar +read --fish + +set -e + +source "$BAR" +source '$BAR' +source ~/bar +source a diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/rules new file mode 100755 index 00000000..5fcef009 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/rules @@ -0,0 +1,35 @@ +#!/usr/bin/make -f + +build-arch: + +build-indep: + +build: build-arch build-indep + +binary-arch: + +binary-indep: + install -d debian/tmp/DEBIAN + install -m 0755 debian/preinst debian/tmp/DEBIAN + install -m 0755 debian/postinst debian/tmp/DEBIAN + install -m 0755 debian/prerm debian/tmp/DEBIAN + install -m 0755 debian/postrm debian/tmp/DEBIAN + install -m 0644 debian/triggers debian/tmp/DEBIAN + install -d debian/tmp/usr/share/doc/maintainer-scripts + install -m 0644 debian/changelog \ + debian/tmp/usr/share/doc/maintainer-scripts/changelog + gzip -n -9 debian/tmp/usr/share/doc/maintainer-scripts/changelog + dpkg-gencontrol -isp + dpkg --build debian/tmp .. + +binary: binary-arch binary-indep + +# Make sure we see dh_clean even in a rule clean depends on. Not the point of +# this test suite, but a convenient place to put it. +clean: clean1 clean2 clean3 +clean1: +clean2: + dh_clean +clean3: + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/triggers b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/triggers new file mode 100644 index 00000000..f6270949 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/triggers @@ -0,0 +1,4 @@ +# Example triggers file +activate foo + +interest bar diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/watch new file mode 100644 index 00000000..4733b643 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/debian/watch @@ -0,0 +1,11 @@ +# A whitespace is fine for uscan: + version=4 + +# Following line should not be matched: +#opts=uversionmangle=s/$/+debian/,dversionmangle=s/foo/bar/ \ +# Following one is incorrect, there's a missing backslash at the end +opts=uversionmangle=s/$/+dfsg/,dversionmangle=s/foo/bar/ + +# 'active' is useless here, but it works anyway +options=active \ +http://domain.tld/foo-(.+)\.tar\.gz diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/eval/hints new file mode 100644 index 00000000..900fab65 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-maintainer-scripts/eval/hints @@ -0,0 +1,4 @@ +maintainer-scripts (source): debian-watch-uses-insecure-uri http://domain.tld/foo-(.+)\.tar\.gz [debian/watch:11] +maintainer-scripts (source): debian-watch-not-mangling-version opts=uversionmangle=s/$/+dfsg/,dversionmangle=s/foo/bar/ [debian/watch:7] +maintainer-scripts (source): debian-watch-not-mangling-version options=active http://domain.tld/foo-(.+)\.tar\.gz [debian/watch:11] +maintainer-scripts (source): debian-watch-does-not-check-openpgp-signature [debian/watch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/ORIGIN new file mode 100644 index 00000000..f2d75334 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/watch/legacy-scripts + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/csh-foo b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/csh-foo new file mode 100644 index 00000000..eaf47a15 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/csh-foo @@ -0,0 +1,2 @@ +#! /bin/csh + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/changelog new file mode 100644 index 00000000..9c6bc545 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/changelog @@ -0,0 +1,41 @@ +scripts (6ds-1ubuntu0.5.10.1) unstable; urgency=low + + * I'm also not able to write my name. + * Added a script in /etc/Xsession.d + * Bizarre version number courtesy of + https://wiki.ubuntu.com/SecurityUpdateProcedures#Prepare + + -- Mark 'HE' Brokschmitt Thu, 23 Jun 2005 14:32:39 +0200 + +scripts (5-1) unstable; urgency=low + + * I'm making a typo in my own name... And I want lintian to warn me about + it. + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 02:26:34 +0200 + +scripts (4-1) unstable; urgency=low + + * Add new example to check that not executable files with a shebang line + called *in don't trigger the script-not-executable warning. + + -- Marc 'HE' Brockschmidt Wed, 14 Apr 2004 19:44:04 +0200 + +scripts (3-3) unstable; urgency=low + + * Add suidperlfoo and some code in debian/rules to + check the new suidperl checks + + -- Frank Lichtenheld Wed, 31 Mar 2004 21:06:20 +0000 + +scripts (2-1) unstable; urgency=low + + * Add tkfoo script for tk checkings + + -- Lintian Maintainers Sat, 21 Feb 2004 17:13:36 +0100 + +scripts (1-0) unstable; urgency=low + + * Initial version + + -- Lintian Maintainers Sat, 10 Feb 2001 15:37:31 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/control new file mode 100644 index 00000000..e172d446 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/control @@ -0,0 +1,15 @@ +Source: scripts +Section: interpreters +Priority: optional +Maintainer: Lintian Maintainers +Uploaders: Jeroen van Wolfelaar , Marc 'HE' Brockschmidt +Standards-Version: 3.2.1 + +Package: scripts +Architecture: all +Depends: test, ruby1.8, build-essential, libssl0.9.7, php7.0-cli +Recommends: tk8.4 | wish +Description: test lintian's script file checks + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/copyright new file mode 100644 index 00000000..ad8a119e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/copyright @@ -0,0 +1,5 @@ +This file contains the phrase "under the same terms as Perl itself" to +trigger warnings about not having common-licenses references. + +This file contains the phrase "public domain" which should suppress +warnings about no copyright date. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/postinst new file mode 100644 index 00000000..7c5baf1f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/postinst @@ -0,0 +1,14 @@ +#!/bin/sh + +if [ -x "/etc/init.d/lsb-broken" ] ; then + update-rc.d lsb-broken defaults >/dev/null +fi +if [ -x "/etc/init.d/no-lsb" ] ; then + update-rc.d no-lsb defaults >/dev/null +fi +if [ -x "/etc/init.d/skeleton" ] ; then + update-rc.d skeleton defaults >/dev/null +fi +if [ -x "/etc/init.d/lsb-other" ] ; then + update-rc.d lsb-other defaults >/dev/null +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/postrm b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/postrm new file mode 100644 index 00000000..8fa75a25 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/postrm @@ -0,0 +1,9 @@ +#!/bin/sh -e + +if [ "$1" = purge ] ; then + update-rc.d lsb-broken remove >/dev/null + update-rc.d no-lsb remove >/dev/null + update-rc.d skeleton remove >/dev/null + update-rc.d lsb-other remove >/dev/null + update-rc.d lsb-other remove >/dev/null +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/preinst b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/preinst new file mode 100644 index 00000000..07995570 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/preinst @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e +set -x + +# +# Some comments here +# + +# This serves as an example of an "empty" script, so +# please do not add any real code here, thank you :) + +#DEBHELPER# + +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/rules new file mode 100755 index 00000000..0b3bf4f5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/rules @@ -0,0 +1,102 @@ +#!/usr/bin/make -f + +tmp=debian/tmp + +build-arch: + echo "Hi, in an arch: all package, I am a bug!" + +build-indep: + +build: build-arch build-indep + +binary-arch: + echo "Hi, in an arch: all package, I am a bug!" + +binary-indep: + install -d $(tmp)/usr/bin/ + install -d $(tmp)/etc/X11/Xsession.d/ + install -d $(tmp)/etc/init.d/ + install -d $(tmp)/etc/csh/login.d/ + install -d $(tmp)/etc/fish.d/ + install -d $(tmp)/usr/share/scripts/ + install -d $(tmp)/usr/share/doc/scripts/ + install -d $(tmp)/usr/lib/cgi-bin + install -d $(tmp)/DEBIAN + + install -m 755 csh-foo $(tmp)/etc/csh/login.d/ + install -m 755 envfoo $(tmp)/usr/bin/ + install -m 755 fish-foo $(tmp)/etc/fish.d/ + install -m 755 jruby-broken $(tmp)/usr/bin/ + install -m 755 perlfoo $(tmp)/usr/bin/ + install -m 755 rubyfoo $(tmp)/usr/bin/ +# This doesn't use "env" but should also trigger script-in-usr-share-doc + install -m 755 rubyfoo $(tmp)/usr/share/doc/scripts/ + install -m 755 make-foo $(tmp)/usr/bin/ + install -m 755 lefty-foo $(tmp)/usr/bin/ + install -m 4751 perlfoo $(tmp)/usr/bin/suidperlfoo2 + install -m 755 sh-broken $(tmp)/usr/bin/ + install -m 4555 suidperlfoo $(tmp)/usr/bin/ + install -m 755 tkfoo $(tmp)/usr/bin/ + install -m 755 wishfoo $(tmp)/usr/bin/ + install -m 644 xsession-test $(tmp)/etc/X11/Xsession.d/ + +# Permissions here aren't part of what's being tested, but let us exercise +# some other errors. + install -m 755 perl-bizarre-1 $(tmp)/usr/bin/ + install -m 750 perl-bizarre-2 $(tmp)/usr/bin/ + install -m 754 perl-bizarre-3 $(tmp)/usr/bin/ + install -m 705 guile-bizarre $(tmp)/usr/bin/ + +# First one should produce a warning; second one shouldn't. + + install -m 644 init-skeleton $(tmp)/etc/init.d/skeleton + install -m 755 init-no-lsb $(tmp)/etc/init.d/no-lsb + install -m 755 init-lsb-broken $(tmp)/etc/init.d/lsb-broken + install -m 755 init-lsb-other $(tmp)/etc/init.d/lsb-other + + install -m 755 phpfoo $(tmp)/usr/share/scripts/ + sed 's/php$$/php7.0/' phpfoo > $(tmp)/usr/share/scripts/php7.0foo + chmod 755 $(tmp)/usr/share/scripts/php7.0foo + + install -m 755 phpenvfoo $(tmp)/usr/share/scripts/ + sed 's/php$$/php7.0/' phpenvfoo > $(tmp)/usr/share/scripts/php7.0envfoo + chmod 755 $(tmp)/usr/share/scripts/php7.0envfoo + + echo "#!/usr/bin/perl" >> $(tmp)/usr/share/scripts/foobar.in + chmod 644 $(tmp)/usr/share/scripts/foobar.in + + touch $(tmp)/usr/share/scripts/mono.exe + chmod 755 $(tmp)/usr/share/scripts/mono.exe + + echo "#!/bin/sh" > $(tmp)/usr/share/scripts/foo\$$bar + chmod 755 $(tmp)/usr/share/scripts/foo\$$bar + + echo "#!/bin/sh" > $(tmp)/usr/lib/cgi-bin/cgi-script + chmod 755 $(tmp)/usr/lib/cgi-bin/cgi-script + + echo "#!/bin/sh" > $(tmp)/usr/bin/test.sh + chmod 755 $(tmp)/usr/bin/test.sh + + + dh_testroot # dummy to test missing debhelper dependency + + + install -m 644 debian/changelog $(tmp)/usr/share/doc/scripts/changelog.Debian + gzip -n -9 $(tmp)/usr/share/doc/scripts/changelog.Debian + install -m 644 debian/copyright $(tmp)/usr/share/doc/scripts/copyright + + install -m 644 debian/scripts.conffiles $(tmp)/DEBIAN/conffiles + install -m 755 debian/preinst $(tmp)/DEBIAN/preinst + install -m 755 debian/postinst $(tmp)/DEBIAN/postinst + install -m 755 debian/postrm $(tmp)/DEBIAN/postrm + touch $(tmp)/DEBIAN/prerm + chmod 755 $(tmp)/DEBIAN/prerm + dpkg-gencontrol -isp + dpkg --build $(tmp) .. + +binary: binary-arch binary-indep + +clean: + rm -rf debian/files $(tmp) debian/substvars + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/scripts.conffiles b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/scripts.conffiles new file mode 100644 index 00000000..01a371a6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/scripts.conffiles @@ -0,0 +1,6 @@ +/etc/init.d/lsb-broken +/etc/init.d/lsb-other +/etc/init.d/no-lsb +/etc/X11/Xsession.d/xsession-test +/etc/csh/login.d/csh-foo +/etc/fish.d/fish-foo diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/watch new file mode 100644 index 00000000..dba58153 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/debian/watch @@ -0,0 +1,8 @@ +# watch file with upstream version mangling + +version=2 +opts="uversionmangle=s/$/ds/" \ +http://qa.debian.org/watch/sf.php?project=foo scripts\.([\d.]+)\.tar\.gz debian uupdate + +version=3 +http://ftp.sf.net/foo/foo_bar(.+)\.Z 5 uupdate \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/envfoo b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/envfoo new file mode 100755 index 00000000..e005037f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/envfoo @@ -0,0 +1,4 @@ +#! /bin/env python + +if __name__ == '__main__': + print 'Hi there' diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/eval/hints new file mode 100644 index 00000000..eb22aa33 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/eval/hints @@ -0,0 +1,7 @@ +scripts (source): debian-watch-uses-insecure-uri http://qa.debian.org/watch/sf.php?project=foo [debian/watch:5] +scripts (source): debian-watch-uses-insecure-uri http://ftp.sf.net/foo/foo_bar(.+)\.Z [debian/watch:8] +scripts (source): debian-watch-mangles-debian-version-improperly opts="uversionmangle=s/$/ds/" http://qa.debian.org/watch/sf.php?project=foo scripts\.([\d.]+)\.tar\.gz debian uupdate [debian/watch:5] +scripts (source): debian-watch-lacks-sourceforge-redirector http://ftp.sf.net/foo/foo_bar(.+)\.Z 5 uupdate [debian/watch:8] +scripts (source): debian-watch-file-uses-deprecated-sf-redirector-method http://qa.debian.org/watch/sf.php?project=foo scripts\.([\d.]+)\.tar\.gz debian uupdate [debian/watch:5] +scripts (source): debian-watch-file-specifies-old-upstream-version 5 [debian/watch] +scripts (source): debian-watch-does-not-check-openpgp-signature [debian/watch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/fish-foo b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/fish-foo new file mode 100644 index 00000000..7f59139a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/fish-foo @@ -0,0 +1,2 @@ +#! /usr/bin/fish + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/guile-bizarre b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/guile-bizarre new file mode 100644 index 00000000..70e2c745 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/guile-bizarre @@ -0,0 +1,6 @@ +#! /bin/sh +# -*- scheme -*- +exec guile -s $0 $* +# Seen in the wild as build-guile-gtk in libguilegtk-1.2-dev (0.31-5.1) +# Tests script_is_evil_and_wrong +!# diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/init-lsb-broken b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/init-lsb-broken new file mode 100644 index 00000000..e4dfa92b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/init-lsb-broken @@ -0,0 +1,34 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: bad-lsb +# Required-Start: $local_fs $remote_fs +# Required-Stop: +# Default-Start: 1 2 3 4 5 +# Default-Stop: S 0 1 6 X +# Short-Description: Example Lintian initscript +# but this can't be continued +# Description: An example of a bad LSB section in an init script. +# This continuation is allowed (with spaces). +# This one is too (with tabs). +# X-Debian-Foo: Some unknown but valid keyword. +# Foo: Some invalid keyword. + +# Whoops, no terminating line. + +# And then we have this duplicate section. +### BEGIN INIT INFO +# Required-Start: This one doesn't count. +### END INIT INFO + +# Hey, look at all of those missing actions! But stop isn't missing. +case "$1" in + start|stop) + echo "Blah" + ;; + *) + echo "Usage: foo start" >&2 + exit 3 + ;; +esac + +: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/init-lsb-other b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/init-lsb-other new file mode 100644 index 00000000..adb47959 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/init-lsb-other @@ -0,0 +1,22 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: lsb-other +# Required-Start: $local_fs $remote_fs +# Required-Stop: $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Description: This is another LSB script test, which has a missing +# Short-Description. +### END INIT INFO + +case "$1" in + start|stop|restart|reload|force-reload) + echo "Blah" + ;; + *) + echo "Usage: foo start" >&2 + exit 3 + ;; +esac + +: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/init-no-lsb b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/init-no-lsb new file mode 100644 index 00000000..6b994dd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/init-no-lsb @@ -0,0 +1,17 @@ +#! /bin/sh +# No LSB section, but otherwise okay. (Well, the messages are bad, but we +# don't check that yet.) + +case "$1" in + start) + echo "Blah starting" + ;; + stop) + echo "Blah stopping" + ;; + restart|force-reload) + echo "Blah restarting" + ;; +esac + +: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/init-skeleton b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/init-skeleton new file mode 100644 index 00000000..c868508f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/init-skeleton @@ -0,0 +1,150 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: skeleton +# Required-Start: $local_fs $remote_fs +# Required-Stop: $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: S 0 1 6 +# Short-Description: Example Lintian initscript +# Description: This file should be used to construct scripts to be +# placed in /etc/init.d. +### END INIT INFO + +# Do NOT "set -e" + +# PATH should only include /usr/* if it runs after the mountnfs.sh script +PATH=/usr/sbin:/usr/bin:/sbin:/bin +DESC="Description of the service" +NAME=daemonexecutablename +DAEMON=/usr/sbin/$NAME +DAEMON_ARGS="--options args" +PIDFILE=/var/run/$NAME.pid +SCRIPTNAME=/etc/init.d/$NAME + +# Exit if the package is not installed +[ -x "$DAEMON" ] || exit 0 + +# Read configuration variable file if it is present +[ -r /etc/default/$NAME ] && . /etc/default/$NAME + +# Load the VERBOSE setting and other rcS variables +[ -f /etc/default/rcS ] && . /etc/default/rcS + +# Define LSB log_* functions. +# Depend on lsb-base (>= 3.0-6) to ensure that this file is present. +. /lib/lsb/init-functions + +# +# Function that starts the daemon/service +# +do_start() +{ + # Return + # 0 if daemon has been started + # 1 if daemon was already running + # 2 if daemon could not be started + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ + || return 1 + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ + $DAEMON_ARGS \ + || return 2 + # Add code here, if necessary, that waits for the process to be ready + # to handle requests from services started subsequently which depend + # on this one. As a last resort, sleep for some time. +} + +# +# Function that stops the daemon/service +# +do_stop() +{ + # Return + # 0 if daemon has been stopped + # 1 if daemon was already stopped + # 2 if daemon could not be stopped + # other if a failure occurred + start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME + RETVAL="$?" + [ "$RETVAL" = 2 ] && return 2 + # Wait for children to finish too if this is a daemon that forks + # and if the daemon is only ever run from this initscript. + # If the above conditions are not satisfied then add some other code + # that waits for the process to drop all resources that could be + # needed by services started subsequently. A last resort is to + # sleep for some time. + start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON + [ "$?" = 2 ] && return 2 + # Many daemons don't delete their pidfiles when they exit. + rm -f $PIDFILE + return "$RETVAL" +} + +# +# Function that sends a SIGHUP to the daemon/service +# +do_reload() { + # + # If the daemon can reload its configuration without + # restarting (for example, when it is sent a SIGHUP), + # then implement that here. + # + start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME + return 0 +} + +case "$1" in + start) + [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" + do_start + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + stop) + [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" + do_stop + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + #reload|force-reload) + # + # If do_reload() is not implemented then leave this commented out + # and leave 'force-reload' as an alias for 'restart'. + # + #log_daemon_msg "Reloading $DESC" "$NAME" + #do_reload + #log_end_msg $? + #;; + restart|force-reload) + # + # If the "reload" option is implemented then remove the + # 'force-reload' alias + # + log_daemon_msg "Restarting $DESC" "$NAME" + do_stop + case "$?" in + 0|1) + do_start + case "$?" in + 0) log_end_msg 0 ;; + 1) log_end_msg 1 ;; # Old process is still running + *) log_end_msg 1 ;; # Failed to start + esac + ;; + *) + # Failed to stop + log_end_msg 1 + ;; + esac + ;; + *) + #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 + exit 3 + ;; +esac + +: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/jruby-broken b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/jruby-broken new file mode 100644 index 00000000..56f574df --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/jruby-broken @@ -0,0 +1,2 @@ +#!/usr/bin/jruby +# There's no non-versioned jruby, so this should be an error. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/lefty-foo b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/lefty-foo new file mode 100644 index 00000000..52c003ed --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/lefty-foo @@ -0,0 +1,2 @@ +#!/usr/local/bin/lefty + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/make-foo b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/make-foo new file mode 100644 index 00000000..6b787b50 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/make-foo @@ -0,0 +1,3 @@ +#!/usr/bin/make + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/perl-bizarre-1 b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/perl-bizarre-1 new file mode 100644 index 00000000..fc632c85 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/perl-bizarre-1 @@ -0,0 +1,11 @@ +#! /bin/sh +eval '(exit $?0)' && eval 'PERL_BADLANG=x;export PERL_BADLANG;: \ +;exec perl -x -S -- "$0" ${1+"$@"};#'if 0; +eval 'setenv PERL_BADLANG x;exec perl -x -S -- "$0" $argv:q;#'.q+ +#!perl -w +package Htex::a2ping; $0=~/(.*)/s;unshift@INC,'.';do($1);die$@if$@;__END__+if !1; +# This Perl script was generated by JustLib2 at Wed Apr 23 09:14:13 2003. +# Don't touch/remove any lines above; http://www.inf.bme.hu/~pts/justlib + +# The above was actually seen in the wild and stresses the +# script_is_evil_and_wrong test. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/perl-bizarre-2 b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/perl-bizarre-2 new file mode 100644 index 00000000..afd9cfe5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/perl-bizarre-2 @@ -0,0 +1,7 @@ +#!/bin/sh +eval 'exec /usr/bin/perl -wS $0 ${1+"$@"}' + if $running_under_some_shell; + +# I'm someone following perlrun except without using the Perl #! line. +# Now something to choke bash. +while (<>) { if (/%#/) { print } } diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/perl-bizarre-3 b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/perl-bizarre-3 new file mode 100644 index 00000000..44baf75e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/perl-bizarre-3 @@ -0,0 +1,6 @@ +eval '(exit $?0)' && eval 'exec perl -wS $0 ${1+"$@"}' +& eval 'exec /usr/bin/perl -wS $0 $argv:q' + if $running_under_some_shell; + +# More utterly bizarreness from perlrun. This one even doesn't work if +# there's a valid #! line on the first line. I don't understand why.... diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/perlfoo b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/perlfoo new file mode 100644 index 00000000..5b27ed0b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/perlfoo @@ -0,0 +1,3 @@ +#! /usr/bin/perl + +print "Hello, World!"; diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/phpenvfoo b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/phpenvfoo new file mode 100644 index 00000000..cbbfb2eb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/phpenvfoo @@ -0,0 +1,7 @@ +#!/usr/bin/env php + + +Dumb PHP script + + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/phpfoo b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/phpfoo new file mode 100644 index 00000000..e0595e65 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/phpfoo @@ -0,0 +1,7 @@ +#!/usr/bin/php + + +Dumb PHP script + + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/rubyfoo b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/rubyfoo new file mode 100644 index 00000000..80246058 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/rubyfoo @@ -0,0 +1,4 @@ +#!/bin/ruby1.8 + +# Ok, that example is really pathetic, but until we have +# some better code in checks/scripts, it will do diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/sh-broken b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/sh-broken new file mode 100644 index 00000000..7b790744 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/sh-broken @@ -0,0 +1,2 @@ +#!/bin/sh +if fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/suidperlfoo b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/suidperlfoo new file mode 100644 index 00000000..bcbc471d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/suidperlfoo @@ -0,0 +1,3 @@ +#! /usr/bin/suidperl + +print "Hello, World!"; diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/tkfoo b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/tkfoo new file mode 100755 index 00000000..533595a5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/tkfoo @@ -0,0 +1,31 @@ +#!/bin/sh +# +# Insane amount of empty lines and comments + +# +# +# +# + +# +# + +# +# +# + +# +# + +# +# This line makes the next one a comment in Tcl \ +exec wish "$0" -- ${1+"$@"} + +# lintian should not check the following for syntax +# if it detects the line above correctly +# Code snippet taken from eTkTab + +if { [array names prefs keybindings] != "" } { + # Read in the file + array set unparsed_bindings [ read_settings_file $prefs(keybindings)] +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/wishfoo b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/wishfoo new file mode 100644 index 00000000..035c9ad1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/wishfoo @@ -0,0 +1,4 @@ +#!/usr/bin/wish +# +# This is not actually a wish script, here to force a test of wish +# dependencies. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/xsession-test b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/xsession-test new file mode 100644 index 00000000..ca49d729 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/legacy-scripts/xsession-test @@ -0,0 +1,3 @@ +#!/bin/sh + +echo "Foo." diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/repack-indicator-in-debian-revision/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/watch/repack-indicator-in-debian-revision/ORIGIN new file mode 100644 index 00000000..4968d2b0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/repack-indicator-in-debian-revision/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/watch/repack-indicator-in-debian-revision + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/repack-indicator-in-debian-revision/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/watch/repack-indicator-in-debian-revision/debian/changelog new file mode 100644 index 00000000..73041f19 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/repack-indicator-in-debian-revision/debian/changelog @@ -0,0 +1,17 @@ +repack-indicator-in-debian-revision (1-debian1) unstable; urgency=low + + * Lintian Test Suite. + * Test: repack-indicator-in-debian-revision + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +repack-indicator-in-debian-revision (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: repack-indicator-in-debian-revision + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/repack-indicator-in-debian-revision/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/repack-indicator-in-debian-revision/debian/control new file mode 100644 index 00000000..300686c0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/repack-indicator-in-debian-revision/debian/control @@ -0,0 +1,17 @@ +Source: repack-indicator-in-debian-revision +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: repack-indicator-in-debian-revision +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Avoid false positives in Devuan (#931846) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/repack-indicator-in-debian-revision/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/watch/repack-indicator-in-debian-revision/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/repack-indicator-in-debian-revision/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/repack-indicator-in-debian-revision/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/watch/repack-indicator-in-debian-revision/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/repack-indicator-in-debian-revision/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/repack-indicator-in-debian-revision/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/watch/repack-indicator-in-debian-revision/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/repack-indicator-in-debian-revision/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/repack-indicator-in-debian-revision/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/repack-indicator-in-debian-revision/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/repack-indicator-in-debian-revision/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/repack-indicator-in-debian-revision/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/watch/repack-indicator-in-debian-revision/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/repack-indicator-in-debian-revision/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/repack-indicator-in-debian-revision/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/watch/repack-indicator-in-debian-revision/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/repack-indicator-in-debian-revision/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/repack-indicator-in-debian-revision/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/watch/repack-indicator-in-debian-revision/debian/watch new file mode 100644 index 00000000..6cc9db48 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/repack-indicator-in-debian-revision/debian/watch @@ -0,0 +1,11 @@ +# watch file with no version mangling, even though there's a dfsg in the +# package version number. + +version=2 +https://www.example.com/dist/ dh7-test\.([\d.]+)\.tar\.gz debian uupdate + +# version mangling is not needed in this case: +https://www.example.com/dist/ dh7-test\.([\d.]+)\.tar\.gz 0.24 uupdate + +# version mangling *is* needed in this case: +https://www.example.com/dist/ dh7-test\.([\d.]+)\.tar\.gz diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/repack-indicator-in-debian-revision/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/watch/repack-indicator-in-debian-revision/eval/hints new file mode 100644 index 00000000..e7587109 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/repack-indicator-in-debian-revision/eval/hints @@ -0,0 +1 @@ +repack-indicator-in-debian-revision (source): debian-watch-does-not-check-openpgp-signature [debian/watch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/comments-only/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/comments-only/ORIGIN new file mode 100644 index 00000000..e646f7b9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/comments-only/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/watch/standard/comments-only + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/comments-only/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/comments-only/debian/changelog new file mode 100644 index 00000000..6ac8cb5b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/comments-only/debian/changelog @@ -0,0 +1,17 @@ +comments-only (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: comments-only + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +comments-only (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: comments-only + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/comments-only/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/comments-only/debian/control new file mode 100644 index 00000000..15840c4a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/comments-only/debian/control @@ -0,0 +1,17 @@ +Source: comments-only +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: comments-only +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Only comments in watch file (false positive) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/comments-only/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/comments-only/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/comments-only/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/comments-only/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/comments-only/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/comments-only/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/comments-only/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/comments-only/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/comments-only/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/comments-only/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/comments-only/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/comments-only/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/comments-only/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/comments-only/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/comments-only/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/comments-only/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/comments-only/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/comments-only/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/comments-only/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/comments-only/debian/watch new file mode 100644 index 00000000..b0c64af3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/comments-only/debian/watch @@ -0,0 +1,2 @@ +# explanation for why this file is empty +# presumably similar to the file that gave rise to Bug#965385 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/comments-only/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/comments-only/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/comments-only/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-foo++/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-foo++/ORIGIN new file mode 100644 index 00000000..1cd4908f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-foo++/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/watch/standard/legacy-foo++ + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-foo++/debian/README.Debian b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-foo++/debian/README.Debian new file mode 100644 index 00000000..87bfcdf7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-foo++/debian/README.Debian @@ -0,0 +1,7 @@ +foo++ for Debian +---------------- + +This should trigger a warning, as i use a fake mail address. + + -- Marc 'HE' Brockschmidt , Wed, 14 Apr 2004 01:44:18 +0200 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-foo++/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-foo++/debian/changelog new file mode 100644 index 00000000..e1637f75 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-foo++/debian/changelog @@ -0,0 +1,31 @@ +foo++ (5) unstable; urgency=low + + * Add a fake README.Debian to trigger a warning. + * This should trigger + debian-changelog-file-contains-debmake-default-email-address. + + -- Marc 'HE' Brockschmidt Wed, 14 Apr 2003 01:35:47 +0200 + +foo++ (4) unstable; urgency=low + + * This changelog now includes a ISO-8859-1 character: '' + + -- Frank Lichtenheld Fri, 5 Mar 2004 13:41:39 +0100 + +foo++ (3) unstable; urgency=low + + * Set maintainers + uploaders incorrectly + + -- Jeroen van Wolffelaar Fri, 5 Mar 2004 04:20:24 +0100 + +foo++ (2) unstable; urgency=low + + * Added a foo++-helper package to try and catch even more ++ bugs. + + -- Sean 'Shaleh' Perry Sat, 10 Feb 2001 23:16:17 -0800 + +foo++ (1) unstable; urgency=low + + * Initial version + + -- Sean 'Shaleh' Perry Thu, 16 Nov 2000 09:11:40 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-foo++/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-foo++/debian/control new file mode 100644 index 00000000..c8fc80ea --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-foo++/debian/control @@ -0,0 +1,29 @@ +Source: foo++ +Section: misc +Priority: optional +Maintainer: Lintian Maintainer +Uploaders: Marc 'HE' Brockschmidt , Jeroen van Wolffelaar , + Frank , +Standards-Version: 3.1.1 +XS-Dm-Upload-Allowed: no + +Package: foo++ +Architecture: all +Build-Depends: test +Depends: test, libssl0.9.7 +Description: see how lintian reacts to plus signs in the package name + Regression test to see if lintian tests work on a package with plus signs in + its name. + . + This description uses only UTF-8 high bytes chars. + +Package: foo++-helper +Architecture: all +Depends: test, foo++ +Description: see how lintian reacts to plus signs in the package name + Regression test to see if lintian tests work on a package with plus signs in + its name. This has /usr/share/doc links to foo++ to trigger even more checks. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-foo++/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-foo++/debian/copyright new file mode 100644 index 00000000..e2d6d93e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-foo++/debian/copyright @@ -0,0 +1,7 @@ +A reference to /usr/share/common-licenses/GPL to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +However, there is also a reference to /usr/share/common-licenses/LGPL, so +who knows what bits actually depend on libssl. + +Copr. 2007 Somebody. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-foo++/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-foo++/debian/rules new file mode 100755 index 00000000..63bb4dbe --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-foo++/debian/rules @@ -0,0 +1,36 @@ +#!/usr/bin/make -f + +foo=foo++ +helper=foo++-helper + +build-arch: + +build-indep: + +build: build-arch build-indep + +binary-arch: + +binary-indep: + install -d debian/$(foo)/DEBIAN + install -d debian/$(foo)/usr/share/doc/$(foo) + install -m 644 debian/changelog \ + debian/$(foo)/usr/share/doc/$(foo)/changelog + gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/changelog + install -m 644 debian/README.Debian \ + debian/$(foo)/usr/share/doc/$(foo)/README.Debian + gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/README.Debian + dpkg-gencontrol -isp -p$(foo) -Pdebian/$(foo) + dpkg --build debian/$(foo) .. + + install -d debian/$(helper)/DEBIAN + install -d debian/$(helper)/usr/share/doc/ + ln -sf $(foo) debian/$(helper)/usr/share/doc/$(helper) + dpkg-gencontrol -isp -p$(helper) -Pdebian/$(helper) + dpkg --build debian/$(helper) .. + +binary: binary-arch binary-indep + +clean: + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-foo++/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-foo++/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-foo++/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-foo++/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-foo++/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-foo++/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-foo++/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-foo++/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-foo++/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-foo++/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-foo++/debian/watch new file mode 100644 index 00000000..26f9a3c1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-foo++/debian/watch @@ -0,0 +1,6 @@ +# A comment \ +version=0 + +# uscan does not interpret the backslash above, it is just part of the comment + +http://domain.tld/file-(.*)\.tar\.gz diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-foo++/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-foo++/eval/hints new file mode 100644 index 00000000..6322360c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-foo++/eval/hints @@ -0,0 +1 @@ +foo++ (source): unknown-debian-watch-file-standard 0 [debian/watch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/ORIGIN new file mode 100644 index 00000000..bce783a4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/watch/standard/legacy-scripts + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/csh-foo b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/csh-foo new file mode 100644 index 00000000..eaf47a15 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/csh-foo @@ -0,0 +1,2 @@ +#! /bin/csh + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/changelog new file mode 100644 index 00000000..9c6bc545 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/changelog @@ -0,0 +1,41 @@ +scripts (6ds-1ubuntu0.5.10.1) unstable; urgency=low + + * I'm also not able to write my name. + * Added a script in /etc/Xsession.d + * Bizarre version number courtesy of + https://wiki.ubuntu.com/SecurityUpdateProcedures#Prepare + + -- Mark 'HE' Brokschmitt Thu, 23 Jun 2005 14:32:39 +0200 + +scripts (5-1) unstable; urgency=low + + * I'm making a typo in my own name... And I want lintian to warn me about + it. + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 02:26:34 +0200 + +scripts (4-1) unstable; urgency=low + + * Add new example to check that not executable files with a shebang line + called *in don't trigger the script-not-executable warning. + + -- Marc 'HE' Brockschmidt Wed, 14 Apr 2004 19:44:04 +0200 + +scripts (3-3) unstable; urgency=low + + * Add suidperlfoo and some code in debian/rules to + check the new suidperl checks + + -- Frank Lichtenheld Wed, 31 Mar 2004 21:06:20 +0000 + +scripts (2-1) unstable; urgency=low + + * Add tkfoo script for tk checkings + + -- Lintian Maintainers Sat, 21 Feb 2004 17:13:36 +0100 + +scripts (1-0) unstable; urgency=low + + * Initial version + + -- Lintian Maintainers Sat, 10 Feb 2001 15:37:31 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/control new file mode 100644 index 00000000..e172d446 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/control @@ -0,0 +1,15 @@ +Source: scripts +Section: interpreters +Priority: optional +Maintainer: Lintian Maintainers +Uploaders: Jeroen van Wolfelaar , Marc 'HE' Brockschmidt +Standards-Version: 3.2.1 + +Package: scripts +Architecture: all +Depends: test, ruby1.8, build-essential, libssl0.9.7, php7.0-cli +Recommends: tk8.4 | wish +Description: test lintian's script file checks + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/copyright new file mode 100644 index 00000000..ad8a119e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/copyright @@ -0,0 +1,5 @@ +This file contains the phrase "under the same terms as Perl itself" to +trigger warnings about not having common-licenses references. + +This file contains the phrase "public domain" which should suppress +warnings about no copyright date. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/postinst new file mode 100644 index 00000000..7c5baf1f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/postinst @@ -0,0 +1,14 @@ +#!/bin/sh + +if [ -x "/etc/init.d/lsb-broken" ] ; then + update-rc.d lsb-broken defaults >/dev/null +fi +if [ -x "/etc/init.d/no-lsb" ] ; then + update-rc.d no-lsb defaults >/dev/null +fi +if [ -x "/etc/init.d/skeleton" ] ; then + update-rc.d skeleton defaults >/dev/null +fi +if [ -x "/etc/init.d/lsb-other" ] ; then + update-rc.d lsb-other defaults >/dev/null +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/postrm b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/postrm new file mode 100644 index 00000000..8fa75a25 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/postrm @@ -0,0 +1,9 @@ +#!/bin/sh -e + +if [ "$1" = purge ] ; then + update-rc.d lsb-broken remove >/dev/null + update-rc.d no-lsb remove >/dev/null + update-rc.d skeleton remove >/dev/null + update-rc.d lsb-other remove >/dev/null + update-rc.d lsb-other remove >/dev/null +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/preinst b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/preinst new file mode 100644 index 00000000..07995570 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/preinst @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e +set -x + +# +# Some comments here +# + +# This serves as an example of an "empty" script, so +# please do not add any real code here, thank you :) + +#DEBHELPER# + +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/rules new file mode 100755 index 00000000..0b3bf4f5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/rules @@ -0,0 +1,102 @@ +#!/usr/bin/make -f + +tmp=debian/tmp + +build-arch: + echo "Hi, in an arch: all package, I am a bug!" + +build-indep: + +build: build-arch build-indep + +binary-arch: + echo "Hi, in an arch: all package, I am a bug!" + +binary-indep: + install -d $(tmp)/usr/bin/ + install -d $(tmp)/etc/X11/Xsession.d/ + install -d $(tmp)/etc/init.d/ + install -d $(tmp)/etc/csh/login.d/ + install -d $(tmp)/etc/fish.d/ + install -d $(tmp)/usr/share/scripts/ + install -d $(tmp)/usr/share/doc/scripts/ + install -d $(tmp)/usr/lib/cgi-bin + install -d $(tmp)/DEBIAN + + install -m 755 csh-foo $(tmp)/etc/csh/login.d/ + install -m 755 envfoo $(tmp)/usr/bin/ + install -m 755 fish-foo $(tmp)/etc/fish.d/ + install -m 755 jruby-broken $(tmp)/usr/bin/ + install -m 755 perlfoo $(tmp)/usr/bin/ + install -m 755 rubyfoo $(tmp)/usr/bin/ +# This doesn't use "env" but should also trigger script-in-usr-share-doc + install -m 755 rubyfoo $(tmp)/usr/share/doc/scripts/ + install -m 755 make-foo $(tmp)/usr/bin/ + install -m 755 lefty-foo $(tmp)/usr/bin/ + install -m 4751 perlfoo $(tmp)/usr/bin/suidperlfoo2 + install -m 755 sh-broken $(tmp)/usr/bin/ + install -m 4555 suidperlfoo $(tmp)/usr/bin/ + install -m 755 tkfoo $(tmp)/usr/bin/ + install -m 755 wishfoo $(tmp)/usr/bin/ + install -m 644 xsession-test $(tmp)/etc/X11/Xsession.d/ + +# Permissions here aren't part of what's being tested, but let us exercise +# some other errors. + install -m 755 perl-bizarre-1 $(tmp)/usr/bin/ + install -m 750 perl-bizarre-2 $(tmp)/usr/bin/ + install -m 754 perl-bizarre-3 $(tmp)/usr/bin/ + install -m 705 guile-bizarre $(tmp)/usr/bin/ + +# First one should produce a warning; second one shouldn't. + + install -m 644 init-skeleton $(tmp)/etc/init.d/skeleton + install -m 755 init-no-lsb $(tmp)/etc/init.d/no-lsb + install -m 755 init-lsb-broken $(tmp)/etc/init.d/lsb-broken + install -m 755 init-lsb-other $(tmp)/etc/init.d/lsb-other + + install -m 755 phpfoo $(tmp)/usr/share/scripts/ + sed 's/php$$/php7.0/' phpfoo > $(tmp)/usr/share/scripts/php7.0foo + chmod 755 $(tmp)/usr/share/scripts/php7.0foo + + install -m 755 phpenvfoo $(tmp)/usr/share/scripts/ + sed 's/php$$/php7.0/' phpenvfoo > $(tmp)/usr/share/scripts/php7.0envfoo + chmod 755 $(tmp)/usr/share/scripts/php7.0envfoo + + echo "#!/usr/bin/perl" >> $(tmp)/usr/share/scripts/foobar.in + chmod 644 $(tmp)/usr/share/scripts/foobar.in + + touch $(tmp)/usr/share/scripts/mono.exe + chmod 755 $(tmp)/usr/share/scripts/mono.exe + + echo "#!/bin/sh" > $(tmp)/usr/share/scripts/foo\$$bar + chmod 755 $(tmp)/usr/share/scripts/foo\$$bar + + echo "#!/bin/sh" > $(tmp)/usr/lib/cgi-bin/cgi-script + chmod 755 $(tmp)/usr/lib/cgi-bin/cgi-script + + echo "#!/bin/sh" > $(tmp)/usr/bin/test.sh + chmod 755 $(tmp)/usr/bin/test.sh + + + dh_testroot # dummy to test missing debhelper dependency + + + install -m 644 debian/changelog $(tmp)/usr/share/doc/scripts/changelog.Debian + gzip -n -9 $(tmp)/usr/share/doc/scripts/changelog.Debian + install -m 644 debian/copyright $(tmp)/usr/share/doc/scripts/copyright + + install -m 644 debian/scripts.conffiles $(tmp)/DEBIAN/conffiles + install -m 755 debian/preinst $(tmp)/DEBIAN/preinst + install -m 755 debian/postinst $(tmp)/DEBIAN/postinst + install -m 755 debian/postrm $(tmp)/DEBIAN/postrm + touch $(tmp)/DEBIAN/prerm + chmod 755 $(tmp)/DEBIAN/prerm + dpkg-gencontrol -isp + dpkg --build $(tmp) .. + +binary: binary-arch binary-indep + +clean: + rm -rf debian/files $(tmp) debian/substvars + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/scripts.conffiles b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/scripts.conffiles new file mode 100644 index 00000000..01a371a6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/scripts.conffiles @@ -0,0 +1,6 @@ +/etc/init.d/lsb-broken +/etc/init.d/lsb-other +/etc/init.d/no-lsb +/etc/X11/Xsession.d/xsession-test +/etc/csh/login.d/csh-foo +/etc/fish.d/fish-foo diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/watch new file mode 100644 index 00000000..dba58153 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/debian/watch @@ -0,0 +1,8 @@ +# watch file with upstream version mangling + +version=2 +opts="uversionmangle=s/$/ds/" \ +http://qa.debian.org/watch/sf.php?project=foo scripts\.([\d.]+)\.tar\.gz debian uupdate + +version=3 +http://ftp.sf.net/foo/foo_bar(.+)\.Z 5 uupdate \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/envfoo b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/envfoo new file mode 100755 index 00000000..e005037f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/envfoo @@ -0,0 +1,4 @@ +#! /bin/env python + +if __name__ == '__main__': + print 'Hi there' diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/eval/hints new file mode 100644 index 00000000..1075801f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/eval/hints @@ -0,0 +1,3 @@ +scripts (source): obsolete-debian-watch-file-standard 3 [debian/watch] +scripts (source): multiple-debian-watch-file-standards 2 3 [debian/watch] +scripts (source): debian-watch-file-standard 3 [debian/watch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/fish-foo b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/fish-foo new file mode 100644 index 00000000..7f59139a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/fish-foo @@ -0,0 +1,2 @@ +#! /usr/bin/fish + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/guile-bizarre b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/guile-bizarre new file mode 100644 index 00000000..70e2c745 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/guile-bizarre @@ -0,0 +1,6 @@ +#! /bin/sh +# -*- scheme -*- +exec guile -s $0 $* +# Seen in the wild as build-guile-gtk in libguilegtk-1.2-dev (0.31-5.1) +# Tests script_is_evil_and_wrong +!# diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/init-lsb-broken b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/init-lsb-broken new file mode 100644 index 00000000..e4dfa92b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/init-lsb-broken @@ -0,0 +1,34 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: bad-lsb +# Required-Start: $local_fs $remote_fs +# Required-Stop: +# Default-Start: 1 2 3 4 5 +# Default-Stop: S 0 1 6 X +# Short-Description: Example Lintian initscript +# but this can't be continued +# Description: An example of a bad LSB section in an init script. +# This continuation is allowed (with spaces). +# This one is too (with tabs). +# X-Debian-Foo: Some unknown but valid keyword. +# Foo: Some invalid keyword. + +# Whoops, no terminating line. + +# And then we have this duplicate section. +### BEGIN INIT INFO +# Required-Start: This one doesn't count. +### END INIT INFO + +# Hey, look at all of those missing actions! But stop isn't missing. +case "$1" in + start|stop) + echo "Blah" + ;; + *) + echo "Usage: foo start" >&2 + exit 3 + ;; +esac + +: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/init-lsb-other b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/init-lsb-other new file mode 100644 index 00000000..adb47959 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/init-lsb-other @@ -0,0 +1,22 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: lsb-other +# Required-Start: $local_fs $remote_fs +# Required-Stop: $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Description: This is another LSB script test, which has a missing +# Short-Description. +### END INIT INFO + +case "$1" in + start|stop|restart|reload|force-reload) + echo "Blah" + ;; + *) + echo "Usage: foo start" >&2 + exit 3 + ;; +esac + +: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/init-no-lsb b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/init-no-lsb new file mode 100644 index 00000000..6b994dd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/init-no-lsb @@ -0,0 +1,17 @@ +#! /bin/sh +# No LSB section, but otherwise okay. (Well, the messages are bad, but we +# don't check that yet.) + +case "$1" in + start) + echo "Blah starting" + ;; + stop) + echo "Blah stopping" + ;; + restart|force-reload) + echo "Blah restarting" + ;; +esac + +: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/init-skeleton b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/init-skeleton new file mode 100644 index 00000000..c868508f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/init-skeleton @@ -0,0 +1,150 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: skeleton +# Required-Start: $local_fs $remote_fs +# Required-Stop: $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: S 0 1 6 +# Short-Description: Example Lintian initscript +# Description: This file should be used to construct scripts to be +# placed in /etc/init.d. +### END INIT INFO + +# Do NOT "set -e" + +# PATH should only include /usr/* if it runs after the mountnfs.sh script +PATH=/usr/sbin:/usr/bin:/sbin:/bin +DESC="Description of the service" +NAME=daemonexecutablename +DAEMON=/usr/sbin/$NAME +DAEMON_ARGS="--options args" +PIDFILE=/var/run/$NAME.pid +SCRIPTNAME=/etc/init.d/$NAME + +# Exit if the package is not installed +[ -x "$DAEMON" ] || exit 0 + +# Read configuration variable file if it is present +[ -r /etc/default/$NAME ] && . /etc/default/$NAME + +# Load the VERBOSE setting and other rcS variables +[ -f /etc/default/rcS ] && . /etc/default/rcS + +# Define LSB log_* functions. +# Depend on lsb-base (>= 3.0-6) to ensure that this file is present. +. /lib/lsb/init-functions + +# +# Function that starts the daemon/service +# +do_start() +{ + # Return + # 0 if daemon has been started + # 1 if daemon was already running + # 2 if daemon could not be started + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ + || return 1 + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ + $DAEMON_ARGS \ + || return 2 + # Add code here, if necessary, that waits for the process to be ready + # to handle requests from services started subsequently which depend + # on this one. As a last resort, sleep for some time. +} + +# +# Function that stops the daemon/service +# +do_stop() +{ + # Return + # 0 if daemon has been stopped + # 1 if daemon was already stopped + # 2 if daemon could not be stopped + # other if a failure occurred + start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME + RETVAL="$?" + [ "$RETVAL" = 2 ] && return 2 + # Wait for children to finish too if this is a daemon that forks + # and if the daemon is only ever run from this initscript. + # If the above conditions are not satisfied then add some other code + # that waits for the process to drop all resources that could be + # needed by services started subsequently. A last resort is to + # sleep for some time. + start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON + [ "$?" = 2 ] && return 2 + # Many daemons don't delete their pidfiles when they exit. + rm -f $PIDFILE + return "$RETVAL" +} + +# +# Function that sends a SIGHUP to the daemon/service +# +do_reload() { + # + # If the daemon can reload its configuration without + # restarting (for example, when it is sent a SIGHUP), + # then implement that here. + # + start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME + return 0 +} + +case "$1" in + start) + [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" + do_start + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + stop) + [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" + do_stop + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + #reload|force-reload) + # + # If do_reload() is not implemented then leave this commented out + # and leave 'force-reload' as an alias for 'restart'. + # + #log_daemon_msg "Reloading $DESC" "$NAME" + #do_reload + #log_end_msg $? + #;; + restart|force-reload) + # + # If the "reload" option is implemented then remove the + # 'force-reload' alias + # + log_daemon_msg "Restarting $DESC" "$NAME" + do_stop + case "$?" in + 0|1) + do_start + case "$?" in + 0) log_end_msg 0 ;; + 1) log_end_msg 1 ;; # Old process is still running + *) log_end_msg 1 ;; # Failed to start + esac + ;; + *) + # Failed to stop + log_end_msg 1 + ;; + esac + ;; + *) + #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 + exit 3 + ;; +esac + +: diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/jruby-broken b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/jruby-broken new file mode 100644 index 00000000..56f574df --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/jruby-broken @@ -0,0 +1,2 @@ +#!/usr/bin/jruby +# There's no non-versioned jruby, so this should be an error. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/lefty-foo b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/lefty-foo new file mode 100644 index 00000000..52c003ed --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/lefty-foo @@ -0,0 +1,2 @@ +#!/usr/local/bin/lefty + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/make-foo b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/make-foo new file mode 100644 index 00000000..6b787b50 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/make-foo @@ -0,0 +1,3 @@ +#!/usr/bin/make + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/perl-bizarre-1 b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/perl-bizarre-1 new file mode 100644 index 00000000..fc632c85 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/perl-bizarre-1 @@ -0,0 +1,11 @@ +#! /bin/sh +eval '(exit $?0)' && eval 'PERL_BADLANG=x;export PERL_BADLANG;: \ +;exec perl -x -S -- "$0" ${1+"$@"};#'if 0; +eval 'setenv PERL_BADLANG x;exec perl -x -S -- "$0" $argv:q;#'.q+ +#!perl -w +package Htex::a2ping; $0=~/(.*)/s;unshift@INC,'.';do($1);die$@if$@;__END__+if !1; +# This Perl script was generated by JustLib2 at Wed Apr 23 09:14:13 2003. +# Don't touch/remove any lines above; http://www.inf.bme.hu/~pts/justlib + +# The above was actually seen in the wild and stresses the +# script_is_evil_and_wrong test. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/perl-bizarre-2 b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/perl-bizarre-2 new file mode 100644 index 00000000..afd9cfe5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/perl-bizarre-2 @@ -0,0 +1,7 @@ +#!/bin/sh +eval 'exec /usr/bin/perl -wS $0 ${1+"$@"}' + if $running_under_some_shell; + +# I'm someone following perlrun except without using the Perl #! line. +# Now something to choke bash. +while (<>) { if (/%#/) { print } } diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/perl-bizarre-3 b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/perl-bizarre-3 new file mode 100644 index 00000000..44baf75e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/perl-bizarre-3 @@ -0,0 +1,6 @@ +eval '(exit $?0)' && eval 'exec perl -wS $0 ${1+"$@"}' +& eval 'exec /usr/bin/perl -wS $0 $argv:q' + if $running_under_some_shell; + +# More utterly bizarreness from perlrun. This one even doesn't work if +# there's a valid #! line on the first line. I don't understand why.... diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/perlfoo b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/perlfoo new file mode 100644 index 00000000..5b27ed0b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/perlfoo @@ -0,0 +1,3 @@ +#! /usr/bin/perl + +print "Hello, World!"; diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/phpenvfoo b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/phpenvfoo new file mode 100644 index 00000000..cbbfb2eb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/phpenvfoo @@ -0,0 +1,7 @@ +#!/usr/bin/env php + + +Dumb PHP script + + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/phpfoo b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/phpfoo new file mode 100644 index 00000000..e0595e65 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/phpfoo @@ -0,0 +1,7 @@ +#!/usr/bin/php + + +Dumb PHP script + + + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/rubyfoo b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/rubyfoo new file mode 100644 index 00000000..80246058 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/rubyfoo @@ -0,0 +1,4 @@ +#!/bin/ruby1.8 + +# Ok, that example is really pathetic, but until we have +# some better code in checks/scripts, it will do diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/sh-broken b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/sh-broken new file mode 100644 index 00000000..7b790744 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/sh-broken @@ -0,0 +1,2 @@ +#!/bin/sh +if fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/suidperlfoo b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/suidperlfoo new file mode 100644 index 00000000..bcbc471d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/suidperlfoo @@ -0,0 +1,3 @@ +#! /usr/bin/suidperl + +print "Hello, World!"; diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/tkfoo b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/tkfoo new file mode 100755 index 00000000..533595a5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/tkfoo @@ -0,0 +1,31 @@ +#!/bin/sh +# +# Insane amount of empty lines and comments + +# +# +# +# + +# +# + +# +# +# + +# +# + +# +# This line makes the next one a comment in Tcl \ +exec wish "$0" -- ${1+"$@"} + +# lintian should not check the following for syntax +# if it detects the line above correctly +# Code snippet taken from eTkTab + +if { [array names prefs keybindings] != "" } { + # Read in the file + array set unparsed_bindings [ read_settings_file $prefs(keybindings)] +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/wishfoo b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/wishfoo new file mode 100644 index 00000000..035c9ad1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/wishfoo @@ -0,0 +1,4 @@ +#!/usr/bin/wish +# +# This is not actually a wish script, here to force a test of wish +# dependencies. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/xsession-test b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/xsession-test new file mode 100644 index 00000000..ca49d729 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/legacy-scripts/xsession-test @@ -0,0 +1,3 @@ +#!/bin/sh + +echo "Foo." diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/no-version/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/no-version/ORIGIN new file mode 100644 index 00000000..c7c416d4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/no-version/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/watch/standard/no-version + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/no-version/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/no-version/debian/changelog new file mode 100644 index 00000000..95282eb2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/no-version/debian/changelog @@ -0,0 +1,17 @@ +no-version (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: no-version + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +no-version (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: no-version + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/no-version/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/no-version/debian/control new file mode 100644 index 00000000..81602e24 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/no-version/debian/control @@ -0,0 +1,17 @@ +Source: no-version +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: no-version +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Watch file with no version + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/no-version/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/no-version/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/no-version/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/no-version/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/no-version/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/no-version/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/no-version/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/no-version/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/no-version/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/no-version/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/no-version/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/no-version/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/no-version/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/no-version/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/no-version/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/no-version/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/no-version/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/no-version/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/no-version/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/no-version/debian/watch new file mode 100644 index 00000000..4d3b5029 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/no-version/debian/watch @@ -0,0 +1 @@ +http://www.example.com/dist/ dh7-test\.([\d.]+)\.tar\.gz debian uupdate diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/no-version/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/no-version/eval/hints new file mode 100644 index 00000000..b3051e0e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/no-version/eval/hints @@ -0,0 +1 @@ +no-version (source): missing-debian-watch-file-standard [debian/watch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-1/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-1/ORIGIN new file mode 100644 index 00000000..48e29687 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-1/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/watch/standard/version-1 + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-1/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-1/debian/changelog new file mode 100644 index 00000000..d135410e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-1/debian/changelog @@ -0,0 +1,17 @@ +version-1 (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: version-1 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +version-1 (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: version-1 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-1/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-1/debian/control new file mode 100644 index 00000000..84eec050 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-1/debian/control @@ -0,0 +1,17 @@ +Source: version-1 +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: version-1 +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Watch file of version 1 + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-1/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-1/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-1/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-1/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-1/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-1/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-1/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-1/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-1/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-1/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-1/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-1/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-1/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-1/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-1/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-1/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-1/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-1/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-1/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-1/debian/watch new file mode 100644 index 00000000..8cd5a87e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-1/debian/watch @@ -0,0 +1,2 @@ +version=1 +http://www.example.com/dist/ dh7-test\.([\d.]+)\.tar\.gz debian uupdate diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-1/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-1/eval/hints new file mode 100644 index 00000000..6d27d249 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-1/eval/hints @@ -0,0 +1 @@ +version-1 (source): unknown-debian-watch-file-standard 1 [debian/watch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-2/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-2/ORIGIN new file mode 100644 index 00000000..f7fcc20b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-2/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/watch/standard/version-2 + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-2/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-2/debian/changelog new file mode 100644 index 00000000..46d940d1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-2/debian/changelog @@ -0,0 +1,17 @@ +version-2 (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: version-2 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +version-2 (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: version-2 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-2/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-2/debian/control new file mode 100644 index 00000000..998cfbb4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-2/debian/control @@ -0,0 +1,17 @@ +Source: version-2 +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: version-2 +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Watch file of version 2 + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-2/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-2/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-2/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-2/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-2/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-2/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-2/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-2/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-2/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-2/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-2/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-2/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-2/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-2/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-2/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-2/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-2/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-2/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-2/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-2/debian/watch new file mode 100644 index 00000000..a201846b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-2/debian/watch @@ -0,0 +1,2 @@ +version=2 +http://www.example.com/dist/ dh7-test\.([\d.]+)\.tar\.gz debian uupdate diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-2/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-2/eval/hints new file mode 100644 index 00000000..fd0f1412 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-2/eval/hints @@ -0,0 +1,2 @@ +version-2 (source): obsolete-debian-watch-file-standard 2 [debian/watch] +version-2 (source): debian-watch-file-standard 2 [debian/watch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-3/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-3/ORIGIN new file mode 100644 index 00000000..7f8b2531 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-3/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/watch/standard/version-3 + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-3/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-3/debian/changelog new file mode 100644 index 00000000..8a501775 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-3/debian/changelog @@ -0,0 +1,17 @@ +version-3 (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: version-3 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +version-3 (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: version-3 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-3/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-3/debian/control new file mode 100644 index 00000000..00e97313 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-3/debian/control @@ -0,0 +1,17 @@ +Source: version-3 +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: version-3 +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Watch file of version 3 + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-3/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-3/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-3/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-3/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-3/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-3/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-3/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-3/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-3/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-3/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-3/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-3/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-3/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-3/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-3/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-3/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-3/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-3/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-3/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-3/debian/watch new file mode 100644 index 00000000..5750c6f1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-3/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://www.example.com/dist/ dh7-test\.([\d.]+)\.tar\.gz debian uupdate diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-3/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-3/eval/hints new file mode 100644 index 00000000..0887ff51 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-3/eval/hints @@ -0,0 +1,2 @@ +version-3 (source): obsolete-debian-watch-file-standard 3 [debian/watch] +version-3 (source): debian-watch-file-standard 3 [debian/watch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-4/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-4/ORIGIN new file mode 100644 index 00000000..90912d70 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-4/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/watch/standard/version-4 + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-4/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-4/debian/changelog new file mode 100644 index 00000000..a36ca113 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-4/debian/changelog @@ -0,0 +1,17 @@ +version-4 (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: version-4 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +version-4 (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: version-4 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-4/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-4/debian/control new file mode 100644 index 00000000..97942634 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-4/debian/control @@ -0,0 +1,17 @@ +Source: version-4 +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: version-4 +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Watch file of version 4 + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-4/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-4/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-4/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-4/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-4/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-4/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-4/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-4/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-4/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-4/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-4/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-4/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-4/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-4/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-4/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-4/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-4/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-4/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-4/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-4/debian/watch new file mode 100644 index 00000000..259bb883 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-4/debian/watch @@ -0,0 +1,2 @@ +version=4 +http://www.example.com/dist/ dh7-test\.([\d.]+)\.tar\.gz debian uupdate diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-4/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-4/eval/hints new file mode 100644 index 00000000..a25c0a31 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-4/eval/hints @@ -0,0 +1,2 @@ +version-4 (source): older-debian-watch-file-standard 4 [debian/watch] +version-4 (source): debian-watch-file-standard 4 [debian/watch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-5/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-5/ORIGIN new file mode 100644 index 00000000..aa90b047 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-5/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/watch/standard/version-5 + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-5/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-5/debian/changelog new file mode 100644 index 00000000..4e30d987 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-5/debian/changelog @@ -0,0 +1,17 @@ +version-5 (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: version-5 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +version-5 (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: version-5 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-5/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-5/debian/control new file mode 100644 index 00000000..fb6efc4d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-5/debian/control @@ -0,0 +1,17 @@ +Source: version-5 +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: version-5 +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Watch file of version 5 + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-5/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-5/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-5/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-5/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-5/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-5/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-5/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-5/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-5/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-5/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-5/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-5/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-5/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-5/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-5/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-5/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-5/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-5/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-5/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-5/debian/watch new file mode 100644 index 00000000..47cf3f3b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-5/debian/watch @@ -0,0 +1,4 @@ +Version: 5 + +Source: http://www.example.com/dist/ dh7-test\.([\d.]+)\.tar\.gz debian uupdate +Matching-Version: .*@ANY_VERSION@ diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-5/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-5/eval/hints new file mode 100644 index 00000000..e0a37972 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-5/eval/hints @@ -0,0 +1 @@ +version-5 (source): debian-watch-file-standard 5 [debian/watch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-6/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-6/ORIGIN new file mode 100644 index 00000000..e8279cec --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-6/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/watch/standard/version-6 + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-6/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-6/debian/changelog new file mode 100644 index 00000000..88cd9ea9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-6/debian/changelog @@ -0,0 +1,17 @@ +version-6 (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: version-6 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +version-6 (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: version-6 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-6/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-6/debian/control new file mode 100644 index 00000000..25a82921 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-6/debian/control @@ -0,0 +1,17 @@ +Source: version-6 +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: version-6 +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Watch file of version 6 + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-6/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-6/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-6/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-6/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-6/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-6/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-6/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-6/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-6/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-6/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-6/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-6/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-6/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-6/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-6/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-6/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-6/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-6/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-6/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-6/debian/watch new file mode 100644 index 00000000..cff45954 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-6/debian/watch @@ -0,0 +1,4 @@ +Version: 6 + +Source: http://www.example.com/dist/ dh7-test\.([\d.]+)\.tar\.gz debian uupdate +Matching-Version: .*@ANY_VERSION@ diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-6/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-6/eval/hints new file mode 100644 index 00000000..5cb313d9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/version-6/eval/hints @@ -0,0 +1 @@ +version-6 (source): unknown-debian-watch-file-standard 6 [debian/watch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/ORIGIN new file mode 100644 index 00000000..3f23025f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/watch/standard/watch-file-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/debian/changelog new file mode 100644 index 00000000..fa5274f9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/debian/changelog @@ -0,0 +1,14 @@ +watch-file-general (2.0.ds1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: watch-file-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +watch-file-general (1.0-1) unstable; urgency=low + + * Provoke debian-watch-file-specifies-old-upstream-version. + + -- Debian Lintian Maintainers Thu, 01 Jan 2009 08:34:20 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/debian/control new file mode 100644 index 00000000..2c6fe1db --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/debian/control @@ -0,0 +1,17 @@ +Source: watch-file-general +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: watch-file-general +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: General watch file checks + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/debian/upstream/signing-key.asc b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/debian/upstream/signing-key.asc new file mode 100644 index 00000000..d83f52c4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/debian/upstream/signing-key.asc @@ -0,0 +1,52 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQINBFpEMFgBEADNYEVhITIZ/rVECuLWxDJUk4rV+v6IfJCxJzuXRfqbjkdLNsCD +P83FOdvcxNQSrWPdSCgV1tDeDc18pNmfWDnu90zrLRipR1u7ln/ajTpx0RI7tHaO +SCIJfo42iw7firz9IoegqZaH8LKCh63EaXxLD98MgRA9fcBTEaBSD+Wxh8yYL/5b +bjdUu2FNNEi8f0POBAB3XInu80mqkEeVYPijd2T8Tc5xaxD90OBuuNGSiqKrJ+lB +9TSxwr5E/9N+6fnCjrR4FVkZtyTELAdZm4CpQN26tinVolG1gDpMz5B27471oXPY +9K92/UzTRllwuZ09pdBwpd4gu9mTXMLwOJ/S/+LJeSfCmby7QZiM/61NpS5EyaYg +h+m8YyTUtulFqpWd2HxttXz0ii5C01LKUrNPqlQrxmfrACJ1tHvcngVQm4wyqMHq +Uw5LYJ8FM7eS3JPeHpHqFGpY1VKx3nZAZGx+1As1ClvT7Og1KyuVY59w8qNaeJ8C +eA9XrwGVbMm9PiTP+fyBykMaYpf5aGucH+GeBtkvmpyOyXqf7zrOqyRvY0QaMgt1 +n3jXcD7AZKHCp0wY6LYVa/sKqrDJtxoloBA6kV2Ui3kClOWmlfvm+i1Ecg7vCG8d +QrJtZxo1Wu54dIr+g0qMFjlBA69OFYRXPzoaWFW1BKtNAYFoej9vW/f+0wARAQAB +tDtMaW50aWFuIFRlc3QgVXBzdHJlYW0gS2V5IChXb3JraW5nLCBObyBFeHBpcmF0 +aW9uLCBNaW5pbWFsKYkCTgQTAQoAOBYhBPr6VG+KNaSTu27AqFtc4nOV5lb+BQJa +RDBYAhsDBQsJCAcDBRUKCQgLBRYDAgEAAh4BAheAAAoJEFtc4nOV5lb+B3kQAMMm +umaOq12REmLdKWMN7GOsxzV6fTF5xBjTgKfY9DCBeNV7tSuJGpGT9MaxRD5Yu/1p +PDMGC9TkDxOEULBucmp7M//3FCuSnGQFBcObHNXY9FmLQ5MZJ32QUi8KLNIcDjuF +AKMEYJ5AT50pBsGyLVGXL27HWndNV7jMeIX64gIN5chPKMHqCn0g/wTTaPY/kkEs +MYirGmBQ83cIAv/1nywtIPeBnj+02Vu3B1hJIZYgmDQZwjZdd7HTxsVW0LAZEXs5 +gtWArfHO3zNKy6WkVE+xhNgZuVO3EyV46JW0bQ2RC7yY70/qFxX71co6p2+VaZgf +198QtRddq9cKaSe68BnZesIp9YnT3xJVYeL6IrrMYNIZxlslL4/b+gKU3epHyFes +tQP1tqkhnmC+Bxds6kx0ngPVfTfWM4Ruaeot51BuenZu82S1B3FB5B0qruCNyKre +nl53nPaNkOERPOF654AXoIODTgnyaocCaQTPztOYm52X8u9qogf9wf1eEA9EZIBI +WSbn3eCohN6qWvsdC0MMRDu0HB4S1QUyyOceNflXePg6SPvJSPHuOG/5DShcN6ah +mgVMH44ecAWsh/8Uj1+Z39Ea07nfE3lCU/WR+DXJb56WaQChXN7AKITrNRd/Q61X +jqrB6jWRSeVBKDidsFwI7oALdSgONE/ZEy+M4j76uQINBFpEMFgBEADCWJECQ6K1 +HgH7OwX7eY8ggEdCOYI/cTGx9rfzdqx67tc7fsF63BrO+nTHylcwXi9IAs695zvp +miCnCu1EUVjfM+nD52kocVEhzFc/lcCq6d9ac7H9ItJgf3Qc2HpwcqvsNUTWPDMU +VjQ8ciZ57qq601kIjVPuHjKRY96K9iHxUeVGh2n74JLYZL5IKO08WtQgPmPVLFDX +X2iZXnZdW/X4xTYB+/+V/D1LyUIP3X7CzBNzJuYjP3vGDH3h4ulLWnDSmxKs6Aep +a0sKu6+YD14/xXOi+buc0m6ghP7WePl9gYi6XePLdVPeLC9aiDi1tCWEVbbsinhw +ODxLwndXCGUc+AVySdUrUMuRchNRI6Z5PW/a/RsuVmyORg1RSuFGLeJQZj1pAw6x +WjxgioqoqydECIx4gCwGO/0GNZCfe5n11vuMEZ7SKbnrf5d58EQXOgV+yZumRKkz +OmdKICjql6w5CealrvP/si2kfD3oVwqBeuM0aM8HmWTfrdESWrd8xqAxBlcDsIun +mpsJ6obGN2mOaMFmOljukdzDFgMJMIrcS4UcGNzyQWUbz6JOSfPq96RkrTVsXMKy +40Ygtwe63PS9lXGT2ojmiV193UrGJqEUjuAL79KXWkxTRFxvFwck9qK5RAX2F1GQ +4ELDAFSKr8t6IpiYiTXaA3OTJfxJMK191QARAQABiQI2BBgBCgAgFiEE+vpUb4o1 +pJO7bsCoW1zic5XmVv4FAlpEMFgCGwwACgkQW1zic5XmVv4VEA//dOFj60ktKKsl +CgRdtnuo9Sdd7IjShic67qoT0gFZRiMATaryM4ifjAcl03rxzGk5MOsltHFJr5h+ +RmaudKhCyksd1nQ2dBpFgPHyxVTS5/k+wMelP9kPailqiGUA735SP5mO/28YOT8v +Xa4rwnTn6s9Ga7+lMN4I7LKRo47uGG89Og381tHSkW8DjFuLTme3TQDysG2MGlSY +vTPJmF7xPCuG3s8J5RIrVwWbN0orWen9YWT1923+0CAZG8M+7AFxU5xxCFIBRKMw +2tw/ovjtE9czuT743LMPlUJRc1pveYjVhLY9xUMQsPO6j41pdIL2X7txFjQqzjFl +hpIJviupVWlV0vSS0Q7nAtvLTsjhXSyQriKqmfdsdcxXBz7LGRxEi5l/9zuW5GMy +kD5ikQ05li6wkBdQYLS3ZBYkrj94LpNEqNZE3sfX33Yc5cpE2Bc4Ga+MxYxQwrfz +sNNSp8jdf2FyFvlvRkO8UUgsW5PPOuwthb05bx7dQGfKvqySpd0JLrhxw8G8odJh +PGzl0ig4F8xEitMc0lms5yzQGvtpEvSYLUs+4EJaf/XN9nRS+4e+GciTmp9XUM/5 +EtKOKXVuhHyaizqfpF4VR0Tbg65HHE3zLJMr7XTUGC0Zr+bj0n/V177R0XgptY7Y +jr6SfdNikIDjGYa+yuN6KGQsriza1aA= +=CYsi +-----END PGP PUBLIC KEY BLOCK----- diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/debian/watch new file mode 100644 index 00000000..dc196dde --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/debian/watch @@ -0,0 +1,32 @@ +# watch file with upstream version mangling + +version=2 +opts="uversionmangle=s/$/ds/" \ +http://qa.debian.org/watch/sf.php?project=foo scripts\.([\d.]+)\.tar\.gz debian uupdate + +version=3 +http://ftp.sf.net/foo/foo_bar(.+)\.Z 5 uupdate + +# Test additional Sourceforge patterns. (See Bug#510398) +ftp://upload.sourceforge.net/pub/sourceforge/s/so/soprano/ \ + soprano-(.*)\.tar\.bz2 +http://sourceforge.net/project/showfiles.php?group_id=100501 \ + .*/octaviz/octaviz-([\d\.]+).tar.gz.* +http://sourceforge.net/projects/synce/files http://downloads.sourceforge.net/.+/kcemirror-(.+).tar.gz.* + +# Unknown version number. +version=42 + +# Specifies the same version number as the package. +https://example.com/ foo([\d.]+)\.tar\.gz 2.0.ds1-1 uupdate + +# Deprecated githubredir +http://githubredir.debian.net/github/username/project /(.*).tar.gz + +# without any pgpsigurlmangle + +http://insecure.com /(.*).tar.gz +https://secure.com /(.*).tar.gz + +# False positive for debian-watch-uses-insecure-uri +http://sf.net/uses/redirector-([^-]+)\.tar\.gz diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/eval/hints new file mode 100644 index 00000000..6e8825b1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/standard/watch-file-general/eval/hints @@ -0,0 +1,4 @@ +watch-file-general (source): unknown-debian-watch-file-standard 42 [debian/watch] +watch-file-general (source): obsolete-debian-watch-file-standard 3 [debian/watch] +watch-file-general (source): multiple-debian-watch-file-standards 2 3 42 [debian/watch] +watch-file-general (source): debian-watch-file-standard 3 [debian/watch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/two-upstream-components/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/watch/two-upstream-components/ORIGIN new file mode 100644 index 00000000..15280b6b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/two-upstream-components/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/watch/two-upstream-components + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/two-upstream-components/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/watch/two-upstream-components/debian/changelog new file mode 100644 index 00000000..9b403419 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/two-upstream-components/debian/changelog @@ -0,0 +1,17 @@ +two-upstream-components (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: two-upstream-components + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +two-upstream-components (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: two-upstream-components + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/two-upstream-components/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/two-upstream-components/debian/control new file mode 100644 index 00000000..8c18e9ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/two-upstream-components/debian/control @@ -0,0 +1,17 @@ +Source: two-upstream-components +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: two-upstream-components +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Contains a watch file with 2 components + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/two-upstream-components/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/watch/two-upstream-components/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/two-upstream-components/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/two-upstream-components/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/watch/two-upstream-components/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/two-upstream-components/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/two-upstream-components/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/watch/two-upstream-components/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/two-upstream-components/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/two-upstream-components/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/two-upstream-components/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/two-upstream-components/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/two-upstream-components/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/watch/two-upstream-components/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/two-upstream-components/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/two-upstream-components/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/watch/two-upstream-components/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/two-upstream-components/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/two-upstream-components/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/watch/two-upstream-components/debian/watch new file mode 100644 index 00000000..ae00c129 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/two-upstream-components/debian/watch @@ -0,0 +1,6 @@ +version=4 +https://www.kernel.org/pub/linux/utils/raid/mdadm/mdadm-([.[:digit:]]+).tar.gz + +opts="component=x1" https://github.com/a/x1/tags archives/v?([\d\-]+)\.tar\.gz + +opts="component=x2" https://github.com/a/x2 archives/v?([\d\-]+)\.tar\.gz diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/two-upstream-components/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/watch/two-upstream-components/eval/hints new file mode 100644 index 00000000..d7b3f594 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/two-upstream-components/eval/hints @@ -0,0 +1,3 @@ +two-upstream-components (source): debian-watch-upstream-component https://github.com/a/x2 x2 [debian/watch:6] +two-upstream-components (source): debian-watch-upstream-component https://github.com/a/x1/tags x1 [debian/watch:4] +two-upstream-components (source): debian-watch-does-not-check-openpgp-signature [debian/watch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/ORIGIN new file mode 100644 index 00000000..43f2bfea --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/watch/watch-file-bug-765995 + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/debian/changelog new file mode 100644 index 00000000..31c0669c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/debian/changelog @@ -0,0 +1,17 @@ +watch-file-bug-765995 (2.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: watch-file-bug-765995 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +watch-file-bug-765995 (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: watch-file-bug-765995 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/debian/control new file mode 100644 index 00000000..64995abc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/debian/control @@ -0,0 +1,17 @@ +Source: watch-file-bug-765995 +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: watch-file-bug-765995 +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Watch file that caused undef warning + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/debian/upstream/signing-key.asc b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/debian/upstream/signing-key.asc new file mode 100644 index 00000000..bd03c4eb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/debian/upstream/signing-key.asc @@ -0,0 +1 @@ +Too lazy to fake this file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/debian/watch new file mode 100644 index 00000000..6f30e203 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/debian/watch @@ -0,0 +1,4 @@ +version=3 +# Trailing whitespace and missing continuation backslash intentional! +opts=pgpsigurlmangle=s/$/.asc/ +https://www.example.com/Downloads/code-(.+)code\.zip diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/eval/hints new file mode 100644 index 00000000..93efc33f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-bug-765995/eval/hints @@ -0,0 +1,3 @@ +watch-file-bug-765995 (source): debian-watch-line-invalid opts=pgpsigurlmangle=s/$/.asc/ [debian/watch:3] +watch-file-bug-765995 (source): debian-watch-does-not-check-openpgp-signature [debian/watch] +watch-file-bug-765995 (source): debian-watch-could-verify-download debian/upstream/signing-key.asc [debian/watch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/ORIGIN new file mode 100644 index 00000000..7b9fefd2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/watch/watch-file-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/debian/changelog new file mode 100644 index 00000000..fa5274f9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/debian/changelog @@ -0,0 +1,14 @@ +watch-file-general (2.0.ds1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: watch-file-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +watch-file-general (1.0-1) unstable; urgency=low + + * Provoke debian-watch-file-specifies-old-upstream-version. + + -- Debian Lintian Maintainers Thu, 01 Jan 2009 08:34:20 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/debian/control new file mode 100644 index 00000000..2c6fe1db --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/debian/control @@ -0,0 +1,17 @@ +Source: watch-file-general +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: watch-file-general +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: General watch file checks + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/debian/upstream/signing-key.asc b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/debian/upstream/signing-key.asc new file mode 100644 index 00000000..d83f52c4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/debian/upstream/signing-key.asc @@ -0,0 +1,52 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQINBFpEMFgBEADNYEVhITIZ/rVECuLWxDJUk4rV+v6IfJCxJzuXRfqbjkdLNsCD +P83FOdvcxNQSrWPdSCgV1tDeDc18pNmfWDnu90zrLRipR1u7ln/ajTpx0RI7tHaO +SCIJfo42iw7firz9IoegqZaH8LKCh63EaXxLD98MgRA9fcBTEaBSD+Wxh8yYL/5b +bjdUu2FNNEi8f0POBAB3XInu80mqkEeVYPijd2T8Tc5xaxD90OBuuNGSiqKrJ+lB +9TSxwr5E/9N+6fnCjrR4FVkZtyTELAdZm4CpQN26tinVolG1gDpMz5B27471oXPY +9K92/UzTRllwuZ09pdBwpd4gu9mTXMLwOJ/S/+LJeSfCmby7QZiM/61NpS5EyaYg +h+m8YyTUtulFqpWd2HxttXz0ii5C01LKUrNPqlQrxmfrACJ1tHvcngVQm4wyqMHq +Uw5LYJ8FM7eS3JPeHpHqFGpY1VKx3nZAZGx+1As1ClvT7Og1KyuVY59w8qNaeJ8C +eA9XrwGVbMm9PiTP+fyBykMaYpf5aGucH+GeBtkvmpyOyXqf7zrOqyRvY0QaMgt1 +n3jXcD7AZKHCp0wY6LYVa/sKqrDJtxoloBA6kV2Ui3kClOWmlfvm+i1Ecg7vCG8d +QrJtZxo1Wu54dIr+g0qMFjlBA69OFYRXPzoaWFW1BKtNAYFoej9vW/f+0wARAQAB +tDtMaW50aWFuIFRlc3QgVXBzdHJlYW0gS2V5IChXb3JraW5nLCBObyBFeHBpcmF0 +aW9uLCBNaW5pbWFsKYkCTgQTAQoAOBYhBPr6VG+KNaSTu27AqFtc4nOV5lb+BQJa +RDBYAhsDBQsJCAcDBRUKCQgLBRYDAgEAAh4BAheAAAoJEFtc4nOV5lb+B3kQAMMm +umaOq12REmLdKWMN7GOsxzV6fTF5xBjTgKfY9DCBeNV7tSuJGpGT9MaxRD5Yu/1p +PDMGC9TkDxOEULBucmp7M//3FCuSnGQFBcObHNXY9FmLQ5MZJ32QUi8KLNIcDjuF +AKMEYJ5AT50pBsGyLVGXL27HWndNV7jMeIX64gIN5chPKMHqCn0g/wTTaPY/kkEs +MYirGmBQ83cIAv/1nywtIPeBnj+02Vu3B1hJIZYgmDQZwjZdd7HTxsVW0LAZEXs5 +gtWArfHO3zNKy6WkVE+xhNgZuVO3EyV46JW0bQ2RC7yY70/qFxX71co6p2+VaZgf +198QtRddq9cKaSe68BnZesIp9YnT3xJVYeL6IrrMYNIZxlslL4/b+gKU3epHyFes +tQP1tqkhnmC+Bxds6kx0ngPVfTfWM4Ruaeot51BuenZu82S1B3FB5B0qruCNyKre +nl53nPaNkOERPOF654AXoIODTgnyaocCaQTPztOYm52X8u9qogf9wf1eEA9EZIBI +WSbn3eCohN6qWvsdC0MMRDu0HB4S1QUyyOceNflXePg6SPvJSPHuOG/5DShcN6ah +mgVMH44ecAWsh/8Uj1+Z39Ea07nfE3lCU/WR+DXJb56WaQChXN7AKITrNRd/Q61X +jqrB6jWRSeVBKDidsFwI7oALdSgONE/ZEy+M4j76uQINBFpEMFgBEADCWJECQ6K1 +HgH7OwX7eY8ggEdCOYI/cTGx9rfzdqx67tc7fsF63BrO+nTHylcwXi9IAs695zvp +miCnCu1EUVjfM+nD52kocVEhzFc/lcCq6d9ac7H9ItJgf3Qc2HpwcqvsNUTWPDMU +VjQ8ciZ57qq601kIjVPuHjKRY96K9iHxUeVGh2n74JLYZL5IKO08WtQgPmPVLFDX +X2iZXnZdW/X4xTYB+/+V/D1LyUIP3X7CzBNzJuYjP3vGDH3h4ulLWnDSmxKs6Aep +a0sKu6+YD14/xXOi+buc0m6ghP7WePl9gYi6XePLdVPeLC9aiDi1tCWEVbbsinhw +ODxLwndXCGUc+AVySdUrUMuRchNRI6Z5PW/a/RsuVmyORg1RSuFGLeJQZj1pAw6x +WjxgioqoqydECIx4gCwGO/0GNZCfe5n11vuMEZ7SKbnrf5d58EQXOgV+yZumRKkz +OmdKICjql6w5CealrvP/si2kfD3oVwqBeuM0aM8HmWTfrdESWrd8xqAxBlcDsIun +mpsJ6obGN2mOaMFmOljukdzDFgMJMIrcS4UcGNzyQWUbz6JOSfPq96RkrTVsXMKy +40Ygtwe63PS9lXGT2ojmiV193UrGJqEUjuAL79KXWkxTRFxvFwck9qK5RAX2F1GQ +4ELDAFSKr8t6IpiYiTXaA3OTJfxJMK191QARAQABiQI2BBgBCgAgFiEE+vpUb4o1 +pJO7bsCoW1zic5XmVv4FAlpEMFgCGwwACgkQW1zic5XmVv4VEA//dOFj60ktKKsl +CgRdtnuo9Sdd7IjShic67qoT0gFZRiMATaryM4ifjAcl03rxzGk5MOsltHFJr5h+ +RmaudKhCyksd1nQ2dBpFgPHyxVTS5/k+wMelP9kPailqiGUA735SP5mO/28YOT8v +Xa4rwnTn6s9Ga7+lMN4I7LKRo47uGG89Og381tHSkW8DjFuLTme3TQDysG2MGlSY +vTPJmF7xPCuG3s8J5RIrVwWbN0orWen9YWT1923+0CAZG8M+7AFxU5xxCFIBRKMw +2tw/ovjtE9czuT743LMPlUJRc1pveYjVhLY9xUMQsPO6j41pdIL2X7txFjQqzjFl +hpIJviupVWlV0vSS0Q7nAtvLTsjhXSyQriKqmfdsdcxXBz7LGRxEi5l/9zuW5GMy +kD5ikQ05li6wkBdQYLS3ZBYkrj94LpNEqNZE3sfX33Yc5cpE2Bc4Ga+MxYxQwrfz +sNNSp8jdf2FyFvlvRkO8UUgsW5PPOuwthb05bx7dQGfKvqySpd0JLrhxw8G8odJh +PGzl0ig4F8xEitMc0lms5yzQGvtpEvSYLUs+4EJaf/XN9nRS+4e+GciTmp9XUM/5 +EtKOKXVuhHyaizqfpF4VR0Tbg65HHE3zLJMr7XTUGC0Zr+bj0n/V177R0XgptY7Y +jr6SfdNikIDjGYa+yuN6KGQsriza1aA= +=CYsi +-----END PGP PUBLIC KEY BLOCK----- diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/debian/watch new file mode 100644 index 00000000..dc196dde --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/debian/watch @@ -0,0 +1,32 @@ +# watch file with upstream version mangling + +version=2 +opts="uversionmangle=s/$/ds/" \ +http://qa.debian.org/watch/sf.php?project=foo scripts\.([\d.]+)\.tar\.gz debian uupdate + +version=3 +http://ftp.sf.net/foo/foo_bar(.+)\.Z 5 uupdate + +# Test additional Sourceforge patterns. (See Bug#510398) +ftp://upload.sourceforge.net/pub/sourceforge/s/so/soprano/ \ + soprano-(.*)\.tar\.bz2 +http://sourceforge.net/project/showfiles.php?group_id=100501 \ + .*/octaviz/octaviz-([\d\.]+).tar.gz.* +http://sourceforge.net/projects/synce/files http://downloads.sourceforge.net/.+/kcemirror-(.+).tar.gz.* + +# Unknown version number. +version=42 + +# Specifies the same version number as the package. +https://example.com/ foo([\d.]+)\.tar\.gz 2.0.ds1-1 uupdate + +# Deprecated githubredir +http://githubredir.debian.net/github/username/project /(.*).tar.gz + +# without any pgpsigurlmangle + +http://insecure.com /(.*).tar.gz +https://secure.com /(.*).tar.gz + +# False positive for debian-watch-uses-insecure-uri +http://sf.net/uses/redirector-([^-]+)\.tar\.gz diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/eval/hints new file mode 100644 index 00000000..7383a4c5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-general/eval/hints @@ -0,0 +1,24 @@ +watch-file-general (source): debian-watch-uses-insecure-uri http://sourceforge.net/projects/synce/files [debian/watch:15] +watch-file-general (source): debian-watch-uses-insecure-uri http://sourceforge.net/project/showfiles.php?group_id=100501 [debian/watch:14] +watch-file-general (source): debian-watch-uses-insecure-uri http://qa.debian.org/watch/sf.php?project=foo [debian/watch:5] +watch-file-general (source): debian-watch-uses-insecure-uri http://insecure.com [debian/watch:28] +watch-file-general (source): debian-watch-uses-insecure-uri http://githubredir.debian.net/github/username/project [debian/watch:24] +watch-file-general (source): debian-watch-uses-insecure-uri http://ftp.sf.net/foo/foo_bar(.+)\.Z [debian/watch:8] +watch-file-general (source): debian-watch-uses-insecure-uri ftp://upload.sourceforge.net/pub/sourceforge/s/so/soprano/ [debian/watch:12] +watch-file-general (source): debian-watch-not-mangling-version https://secure.com /(.*).tar.gz [debian/watch:29] +watch-file-general (source): debian-watch-not-mangling-version http://sourceforge.net/projects/synce/files http://downloads.sourceforge.net/.+/kcemirror-(.+).tar.gz.* [debian/watch:15] +watch-file-general (source): debian-watch-not-mangling-version http://sourceforge.net/project/showfiles.php?group_id=100501 .*/octaviz/octaviz-([\d\.]+).tar.gz.* [debian/watch:14] +watch-file-general (source): debian-watch-not-mangling-version http://sf.net/uses/redirector-([^-]+)\.tar\.gz [debian/watch:32] +watch-file-general (source): debian-watch-not-mangling-version http://insecure.com /(.*).tar.gz [debian/watch:28] +watch-file-general (source): debian-watch-not-mangling-version http://githubredir.debian.net/github/username/project /(.*).tar.gz [debian/watch:24] +watch-file-general (source): debian-watch-not-mangling-version ftp://upload.sourceforge.net/pub/sourceforge/s/so/soprano/ soprano-(.*)\.tar\.bz2 [debian/watch:12] +watch-file-general (source): debian-watch-mangles-debian-version-improperly opts="uversionmangle=s/$/ds/" http://qa.debian.org/watch/sf.php?project=foo scripts\.([\d.]+)\.tar\.gz debian uupdate [debian/watch:5] +watch-file-general (source): debian-watch-lacks-sourceforge-redirector http://sourceforge.net/projects/synce/files http://downloads.sourceforge.net/.+/kcemirror-(.+).tar.gz.* [debian/watch:15] +watch-file-general (source): debian-watch-lacks-sourceforge-redirector http://sourceforge.net/project/showfiles.php?group_id=100501 .*/octaviz/octaviz-([\d\.]+).tar.gz.* [debian/watch:14] +watch-file-general (source): debian-watch-lacks-sourceforge-redirector http://ftp.sf.net/foo/foo_bar(.+)\.Z 5 uupdate [debian/watch:8] +watch-file-general (source): debian-watch-lacks-sourceforge-redirector ftp://upload.sourceforge.net/pub/sourceforge/s/so/soprano/ soprano-(.*)\.tar\.bz2 [debian/watch:12] +watch-file-general (source): debian-watch-file-uses-deprecated-sf-redirector-method http://qa.debian.org/watch/sf.php?project=foo scripts\.([\d.]+)\.tar\.gz debian uupdate [debian/watch:5] +watch-file-general (source): debian-watch-file-uses-deprecated-githubredir http://githubredir.debian.net/github/username/project /(.*).tar.gz [debian/watch:24] +watch-file-general (source): debian-watch-file-specifies-wrong-upstream-version 2.0.ds1-1 [debian/watch] +watch-file-general (source): debian-watch-does-not-check-openpgp-signature [debian/watch] +watch-file-general (source): debian-watch-could-verify-download debian/upstream/signing-key.asc [debian/watch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/ORIGIN new file mode 100644 index 00000000..e0d540f0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/watch/watch-file-malformed-version + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/debian/changelog new file mode 100644 index 00000000..82ff18b9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/debian/changelog @@ -0,0 +1,14 @@ +watch-file-malformed-version (2.0.ds1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: watch-file-malformed-version + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +watch-file-malformed-version (1.0-1) unstable; urgency=low + + * Provoke debian-watch-file-specifies-old-upstream-version. + + -- Debian Lintian Maintainers Thu, 01 Jan 2009 08:34:20 -0800 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/debian/control new file mode 100644 index 00000000..b0e408f9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/debian/control @@ -0,0 +1,17 @@ +Source: watch-file-malformed-version +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: watch-file-malformed-version +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: General watch file checks + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/debian/upstream/signing-key.asc b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/debian/upstream/signing-key.asc new file mode 100644 index 00000000..d83f52c4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/debian/upstream/signing-key.asc @@ -0,0 +1,52 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQINBFpEMFgBEADNYEVhITIZ/rVECuLWxDJUk4rV+v6IfJCxJzuXRfqbjkdLNsCD +P83FOdvcxNQSrWPdSCgV1tDeDc18pNmfWDnu90zrLRipR1u7ln/ajTpx0RI7tHaO +SCIJfo42iw7firz9IoegqZaH8LKCh63EaXxLD98MgRA9fcBTEaBSD+Wxh8yYL/5b +bjdUu2FNNEi8f0POBAB3XInu80mqkEeVYPijd2T8Tc5xaxD90OBuuNGSiqKrJ+lB +9TSxwr5E/9N+6fnCjrR4FVkZtyTELAdZm4CpQN26tinVolG1gDpMz5B27471oXPY +9K92/UzTRllwuZ09pdBwpd4gu9mTXMLwOJ/S/+LJeSfCmby7QZiM/61NpS5EyaYg +h+m8YyTUtulFqpWd2HxttXz0ii5C01LKUrNPqlQrxmfrACJ1tHvcngVQm4wyqMHq +Uw5LYJ8FM7eS3JPeHpHqFGpY1VKx3nZAZGx+1As1ClvT7Og1KyuVY59w8qNaeJ8C +eA9XrwGVbMm9PiTP+fyBykMaYpf5aGucH+GeBtkvmpyOyXqf7zrOqyRvY0QaMgt1 +n3jXcD7AZKHCp0wY6LYVa/sKqrDJtxoloBA6kV2Ui3kClOWmlfvm+i1Ecg7vCG8d +QrJtZxo1Wu54dIr+g0qMFjlBA69OFYRXPzoaWFW1BKtNAYFoej9vW/f+0wARAQAB +tDtMaW50aWFuIFRlc3QgVXBzdHJlYW0gS2V5IChXb3JraW5nLCBObyBFeHBpcmF0 +aW9uLCBNaW5pbWFsKYkCTgQTAQoAOBYhBPr6VG+KNaSTu27AqFtc4nOV5lb+BQJa +RDBYAhsDBQsJCAcDBRUKCQgLBRYDAgEAAh4BAheAAAoJEFtc4nOV5lb+B3kQAMMm +umaOq12REmLdKWMN7GOsxzV6fTF5xBjTgKfY9DCBeNV7tSuJGpGT9MaxRD5Yu/1p +PDMGC9TkDxOEULBucmp7M//3FCuSnGQFBcObHNXY9FmLQ5MZJ32QUi8KLNIcDjuF +AKMEYJ5AT50pBsGyLVGXL27HWndNV7jMeIX64gIN5chPKMHqCn0g/wTTaPY/kkEs +MYirGmBQ83cIAv/1nywtIPeBnj+02Vu3B1hJIZYgmDQZwjZdd7HTxsVW0LAZEXs5 +gtWArfHO3zNKy6WkVE+xhNgZuVO3EyV46JW0bQ2RC7yY70/qFxX71co6p2+VaZgf +198QtRddq9cKaSe68BnZesIp9YnT3xJVYeL6IrrMYNIZxlslL4/b+gKU3epHyFes +tQP1tqkhnmC+Bxds6kx0ngPVfTfWM4Ruaeot51BuenZu82S1B3FB5B0qruCNyKre +nl53nPaNkOERPOF654AXoIODTgnyaocCaQTPztOYm52X8u9qogf9wf1eEA9EZIBI +WSbn3eCohN6qWvsdC0MMRDu0HB4S1QUyyOceNflXePg6SPvJSPHuOG/5DShcN6ah +mgVMH44ecAWsh/8Uj1+Z39Ea07nfE3lCU/WR+DXJb56WaQChXN7AKITrNRd/Q61X +jqrB6jWRSeVBKDidsFwI7oALdSgONE/ZEy+M4j76uQINBFpEMFgBEADCWJECQ6K1 +HgH7OwX7eY8ggEdCOYI/cTGx9rfzdqx67tc7fsF63BrO+nTHylcwXi9IAs695zvp +miCnCu1EUVjfM+nD52kocVEhzFc/lcCq6d9ac7H9ItJgf3Qc2HpwcqvsNUTWPDMU +VjQ8ciZ57qq601kIjVPuHjKRY96K9iHxUeVGh2n74JLYZL5IKO08WtQgPmPVLFDX +X2iZXnZdW/X4xTYB+/+V/D1LyUIP3X7CzBNzJuYjP3vGDH3h4ulLWnDSmxKs6Aep +a0sKu6+YD14/xXOi+buc0m6ghP7WePl9gYi6XePLdVPeLC9aiDi1tCWEVbbsinhw +ODxLwndXCGUc+AVySdUrUMuRchNRI6Z5PW/a/RsuVmyORg1RSuFGLeJQZj1pAw6x +WjxgioqoqydECIx4gCwGO/0GNZCfe5n11vuMEZ7SKbnrf5d58EQXOgV+yZumRKkz +OmdKICjql6w5CealrvP/si2kfD3oVwqBeuM0aM8HmWTfrdESWrd8xqAxBlcDsIun +mpsJ6obGN2mOaMFmOljukdzDFgMJMIrcS4UcGNzyQWUbz6JOSfPq96RkrTVsXMKy +40Ygtwe63PS9lXGT2ojmiV193UrGJqEUjuAL79KXWkxTRFxvFwck9qK5RAX2F1GQ +4ELDAFSKr8t6IpiYiTXaA3OTJfxJMK191QARAQABiQI2BBgBCgAgFiEE+vpUb4o1 +pJO7bsCoW1zic5XmVv4FAlpEMFgCGwwACgkQW1zic5XmVv4VEA//dOFj60ktKKsl +CgRdtnuo9Sdd7IjShic67qoT0gFZRiMATaryM4ifjAcl03rxzGk5MOsltHFJr5h+ +RmaudKhCyksd1nQ2dBpFgPHyxVTS5/k+wMelP9kPailqiGUA735SP5mO/28YOT8v +Xa4rwnTn6s9Ga7+lMN4I7LKRo47uGG89Og381tHSkW8DjFuLTme3TQDysG2MGlSY +vTPJmF7xPCuG3s8J5RIrVwWbN0orWen9YWT1923+0CAZG8M+7AFxU5xxCFIBRKMw +2tw/ovjtE9czuT743LMPlUJRc1pveYjVhLY9xUMQsPO6j41pdIL2X7txFjQqzjFl +hpIJviupVWlV0vSS0Q7nAtvLTsjhXSyQriKqmfdsdcxXBz7LGRxEi5l/9zuW5GMy +kD5ikQ05li6wkBdQYLS3ZBYkrj94LpNEqNZE3sfX33Yc5cpE2Bc4Ga+MxYxQwrfz +sNNSp8jdf2FyFvlvRkO8UUgsW5PPOuwthb05bx7dQGfKvqySpd0JLrhxw8G8odJh +PGzl0ig4F8xEitMc0lms5yzQGvtpEvSYLUs+4EJaf/XN9nRS+4e+GciTmp9XUM/5 +EtKOKXVuhHyaizqfpF4VR0Tbg65HHE3zLJMr7XTUGC0Zr+bj0n/V177R0XgptY7Y +jr6SfdNikIDjGYa+yuN6KGQsriza1aA= +=CYsi +-----END PGP PUBLIC KEY BLOCK----- diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/debian/watch new file mode 100644 index 00000000..ff06c5b8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/debian/watch @@ -0,0 +1,5 @@ +# watch file with upstream version mangling + +Version: 4 +Source: https://ftp.sf.net/foo/foo_bar(.+)\.Z 5 +Matching-Pattern: @ANY_VERSION@ diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/eval/hints new file mode 100644 index 00000000..5607acf0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-malformed-version/eval/hints @@ -0,0 +1,5 @@ +watch-file-malformed-version (source): debian-watch-not-mangling-version Matching-Pattern: @ANY_VERSION@ [debian/watch:5] +watch-file-malformed-version (source): debian-watch-line-invalid Version: 4 [debian/watch:1] +watch-file-malformed-version (source): debian-watch-lacks-sourceforge-redirector Source: https://ftp.sf.net/foo/foo_bar(.+)\.Z 5 [debian/watch:4] +watch-file-malformed-version (source): debian-watch-does-not-check-openpgp-signature [debian/watch] +watch-file-malformed-version (source): debian-watch-could-verify-download debian/upstream/signing-key.asc [debian/watch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-old-upstream-version/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-old-upstream-version/ORIGIN new file mode 100644 index 00000000..b81d0dd5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-old-upstream-version/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/watch/watch-file-old-upstream-version + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-old-upstream-version/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-old-upstream-version/debian/changelog new file mode 100644 index 00000000..db1cfa29 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-old-upstream-version/debian/changelog @@ -0,0 +1,14 @@ +watch-file-old-upstream-version (2.0-1) unstable; urgency=low + + * New upstream release. + * Lintian Test Suite. + * Test: watch-file-old-upstream-version + * We forgot to update the watch file, lalala. + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +watch-file-old-upstream-version (1.0-1) unstable; urgency=low + + * An earlier non-native version. + + -- Debian Lintian Maintainers Tue, 1 Jan 2008 22:45:57 +0000 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-old-upstream-version/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-old-upstream-version/debian/control new file mode 100644 index 00000000..ebdc385f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-old-upstream-version/debian/control @@ -0,0 +1,17 @@ +Source: watch-file-old-upstream-version +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: watch-file-old-upstream-version +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Watch file with old upstream version + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-old-upstream-version/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-old-upstream-version/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-old-upstream-version/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-old-upstream-version/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-old-upstream-version/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-old-upstream-version/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-old-upstream-version/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-old-upstream-version/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-old-upstream-version/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-old-upstream-version/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-old-upstream-version/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-old-upstream-version/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-old-upstream-version/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-old-upstream-version/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-old-upstream-version/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-old-upstream-version/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-old-upstream-version/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-old-upstream-version/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-old-upstream-version/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-old-upstream-version/debian/watch new file mode 100644 index 00000000..ebaecbde --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-old-upstream-version/debian/watch @@ -0,0 +1,3 @@ +version=3 + +https://www.example.com/dist/ dh7-test\.([\d.]+)\.tar\.gz 1.0 uupdate diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-old-upstream-version/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-old-upstream-version/eval/hints new file mode 100644 index 00000000..7cdf746d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-old-upstream-version/eval/hints @@ -0,0 +1,2 @@ +watch-file-old-upstream-version (source): debian-watch-file-specifies-old-upstream-version 1.0 [debian/watch] +watch-file-old-upstream-version (source): debian-watch-does-not-check-openpgp-signature [debian/watch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/ORIGIN new file mode 100644 index 00000000..8fe82708 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/watch/watch-file-pgpmode-next + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/debian/changelog new file mode 100644 index 00000000..5f96076e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/debian/changelog @@ -0,0 +1,17 @@ +watch-file-pgpmode-next (2.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: watch-file-pgpmode-next + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +watch-file-pgpmode-next (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: watch-file-pgpmode-next + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/debian/control new file mode 100644 index 00000000..2ee64201 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/debian/control @@ -0,0 +1,17 @@ +Source: watch-file-pgpmode-next +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: watch-file-pgpmode-next +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Watch file with pgpmode=next + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/debian/upstream/signing-key.asc b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/debian/upstream/signing-key.asc new file mode 100644 index 00000000..bd03c4eb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/debian/upstream/signing-key.asc @@ -0,0 +1 @@ +Too lazy to fake this file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/debian/watch new file mode 100644 index 00000000..139bc402 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/debian/watch @@ -0,0 +1,5 @@ +version=4 +opts="pgpmode=next" https://alioth.debian.org/frs/?group_id=30928 \ + (?:.*)/@PACKAGE@@ANY_VERSION@@ARCHIVE_EXT@ debian +opts="pgpmode=previous" https://alioth.debian.org/frs/?group_id=30928 \ + (?:.*)/@PACKAGE@@ANY_VERSION@@SIGNATURE_EXT@ previous diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-next/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-none/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-none/ORIGIN new file mode 100644 index 00000000..4c922b2b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-none/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/watch/watch-file-pgpmode-none + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-none/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-none/debian/changelog new file mode 100644 index 00000000..a79d73c9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-none/debian/changelog @@ -0,0 +1,17 @@ +watch-file-pgpmode-none (2.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: watch-file-pgpmode-none + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +watch-file-pgpmode-none (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: watch-file-pgpmode-none + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-none/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-none/debian/control new file mode 100644 index 00000000..25cbaaec --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-none/debian/control @@ -0,0 +1,17 @@ +Source: watch-file-pgpmode-none +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: watch-file-pgpmode-none +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Watch file with pgpmode=none + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-none/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-none/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-none/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-none/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-none/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-none/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-none/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-none/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-none/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-none/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-none/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-none/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-none/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-none/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-none/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-none/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-none/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-none/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-none/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-none/debian/watch new file mode 100644 index 00000000..190a7c5b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-none/debian/watch @@ -0,0 +1,3 @@ +version=4 +opts="pgpmode=none" https://alioth.debian.org/frs/?group_id=30928 \ + (?:.*)/@PACKAGE@@ANY_VERSION@@ARCHIVE_EXT@ debian diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-none/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-none/eval/hints new file mode 100644 index 00000000..da03c493 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pgpmode-none/eval/hints @@ -0,0 +1 @@ +watch-file-pgpmode-none (source): debian-watch-does-not-check-openpgp-signature [debian/watch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-prerelease/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-prerelease/ORIGIN new file mode 100644 index 00000000..959025e9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-prerelease/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/watch/watch-file-prerelease + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-prerelease/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-prerelease/debian/changelog new file mode 100644 index 00000000..b2af9088 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-prerelease/debian/changelog @@ -0,0 +1,17 @@ +watch-file-prerelease (1~rc1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: watch-file-prerelease + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +watch-file-prerelease (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: watch-file-prerelease + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-prerelease/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-prerelease/debian/control new file mode 100644 index 00000000..0c7668d9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-prerelease/debian/control @@ -0,0 +1,17 @@ +Source: watch-file-prerelease +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: watch-file-prerelease +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check mangling tags for upstream prereleases + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-prerelease/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-prerelease/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-prerelease/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-prerelease/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-prerelease/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-prerelease/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-prerelease/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-prerelease/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-prerelease/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-prerelease/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-prerelease/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-prerelease/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-prerelease/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-prerelease/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-prerelease/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-prerelease/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-prerelease/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-prerelease/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-prerelease/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-prerelease/debian/watch new file mode 100644 index 00000000..8038deb0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-prerelease/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts=dversionmangle=s/~rc/-rc/ \ + https://www.example.com/software/foo/ .*/foo-([^-]+)\.tar\.gz diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-prerelease/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-prerelease/eval/hints new file mode 100644 index 00000000..9f86dc65 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-prerelease/eval/hints @@ -0,0 +1,2 @@ +watch-file-prerelease (source): debian-watch-mangles-upstream-version-improperly opts=dversionmangle=s/~rc/-rc/ https://www.example.com/software/foo/ .*/foo-([^-]+)\.tar\.gz [debian/watch:3] +watch-file-prerelease (source): debian-watch-does-not-check-openpgp-signature [debian/watch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pubkey-missing/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pubkey-missing/ORIGIN new file mode 100644 index 00000000..ffae00c5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pubkey-missing/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/watch/watch-file-pubkey-missing + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pubkey-missing/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pubkey-missing/debian/changelog new file mode 100644 index 00000000..2e5d80f9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pubkey-missing/debian/changelog @@ -0,0 +1,17 @@ +watch-file-pubkey-missing (1+dfsg-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: watch-file-pubkey-missing + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +watch-file-pubkey-missing (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: watch-file-pubkey-missing + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pubkey-missing/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pubkey-missing/debian/control new file mode 100644 index 00000000..9019cdc9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pubkey-missing/debian/control @@ -0,0 +1,17 @@ +Source: watch-file-pubkey-missing +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: watch-file-pubkey-missing +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Watch file if verify signature should check d/upstream/signing-key.{pgp,asc} + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pubkey-missing/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pubkey-missing/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pubkey-missing/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pubkey-missing/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pubkey-missing/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pubkey-missing/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pubkey-missing/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pubkey-missing/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pubkey-missing/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pubkey-missing/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pubkey-missing/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pubkey-missing/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pubkey-missing/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pubkey-missing/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pubkey-missing/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pubkey-missing/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pubkey-missing/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pubkey-missing/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pubkey-missing/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pubkey-missing/debian/watch new file mode 100644 index 00000000..7ac78bc3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pubkey-missing/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts="uversionmangle=s/-/./,dversionmangle=s/\.dfsg\d+$//,pgpsigurlmangle=s/$/.asc/" \ +ftp://ftp.imagemagick.org/pub/ImageMagick/ ImageMagick-(.*)\.tar\.xz diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pubkey-missing/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pubkey-missing/eval/hints new file mode 100644 index 00000000..a7ae5610 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-pubkey-missing/eval/hints @@ -0,0 +1,2 @@ +watch-file-pubkey-missing (source): debian-watch-uses-insecure-uri ftp://ftp.imagemagick.org/pub/ImageMagick/ [debian/watch:3] +watch-file-pubkey-missing (source): debian-watch-file-pubkey-file-is-missing [debian/watch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle-unrel/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle-unrel/ORIGIN new file mode 100644 index 00000000..b20735f0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle-unrel/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/watch/watch-file-should-mangle-unrel + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle-unrel/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle-unrel/debian/changelog new file mode 100644 index 00000000..498946da --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle-unrel/debian/changelog @@ -0,0 +1,17 @@ +watch-file-should-mangle-unrel (1+dfsg-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: watch-file-should-mangle-unrel + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +watch-file-should-mangle-unrel (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: watch-file-should-mangle-unrel + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle-unrel/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle-unrel/debian/control new file mode 100644 index 00000000..9eff3d17 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle-unrel/debian/control @@ -0,0 +1,17 @@ +Source: watch-file-should-mangle-unrel +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: watch-file-should-mangle-unrel +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Watch file should mangle version (false-positive) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle-unrel/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle-unrel/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle-unrel/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle-unrel/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle-unrel/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle-unrel/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle-unrel/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle-unrel/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle-unrel/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle-unrel/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle-unrel/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle-unrel/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle-unrel/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle-unrel/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle-unrel/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle-unrel/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle-unrel/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle-unrel/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle-unrel/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle-unrel/debian/watch new file mode 100644 index 00000000..9104ee4c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle-unrel/debian/watch @@ -0,0 +1,4 @@ +version=4 +opts="uversionmangle=s/.pre/~pre/,dversionmangle=s/@DEB_EXT@//,repacksuffix=+ds1" \ + https://github.com/user/project/tags \ + (?:.*?/)project@ANr_VERSION@\.tar\.gz diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle-unrel/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle-unrel/eval/hints new file mode 100644 index 00000000..e5e98dc1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle-unrel/eval/hints @@ -0,0 +1 @@ +watch-file-should-mangle-unrel (source): debian-watch-does-not-check-openpgp-signature [debian/watch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle/ORIGIN new file mode 100644 index 00000000..03743a7a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/watch/watch-file-should-mangle + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle/debian/changelog new file mode 100644 index 00000000..678aa283 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle/debian/changelog @@ -0,0 +1,17 @@ +watch-file-should-mangle (1+dfsg-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: watch-file-should-mangle + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +watch-file-should-mangle (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: watch-file-should-mangle + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle/debian/control new file mode 100644 index 00000000..9c127786 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle/debian/control @@ -0,0 +1,17 @@ +Source: watch-file-should-mangle +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: watch-file-should-mangle +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Watch file should mangle version + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle/debian/watch new file mode 100644 index 00000000..6cc9db48 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle/debian/watch @@ -0,0 +1,11 @@ +# watch file with no version mangling, even though there's a dfsg in the +# package version number. + +version=2 +https://www.example.com/dist/ dh7-test\.([\d.]+)\.tar\.gz debian uupdate + +# version mangling is not needed in this case: +https://www.example.com/dist/ dh7-test\.([\d.]+)\.tar\.gz 0.24 uupdate + +# version mangling *is* needed in this case: +https://www.example.com/dist/ dh7-test\.([\d.]+)\.tar\.gz diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle/eval/hints new file mode 100644 index 00000000..ed53e0f7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-should-mangle/eval/hints @@ -0,0 +1,3 @@ +watch-file-should-mangle (source): debian-watch-not-mangling-version https://www.example.com/dist/ dh7-test\.([\d.]+)\.tar\.gz debian uupdate [debian/watch:5] +watch-file-should-mangle (source): debian-watch-not-mangling-version https://www.example.com/dist/ dh7-test\.([\d.]+)\.tar\.gz [debian/watch:11] +watch-file-should-mangle (source): debian-watch-does-not-check-openpgp-signature [debian/watch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-template/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-template/ORIGIN new file mode 100644 index 00000000..e2c16e27 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-template/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/watch/watch-file-template + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-template/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-template/debian/changelog new file mode 100644 index 00000000..96d08664 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-template/debian/changelog @@ -0,0 +1,17 @@ +watch-file-template (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: watch-file-template + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +watch-file-template (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: watch-file-template + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-template/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-template/debian/control new file mode 100644 index 00000000..0400c2a6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-template/debian/control @@ -0,0 +1,17 @@ +Source: watch-file-template +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: watch-file-template +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for dh_make(1) templates + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-template/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-template/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-template/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-template/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-template/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-template/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-template/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-template/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-template/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-template/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-template/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-template/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-template/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-template/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-template/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-template/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-template/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-template/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-template/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-template/debian/watch new file mode 100644 index 00000000..fdbc5368 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-template/debian/watch @@ -0,0 +1,3 @@ +version=3 +# Example watch control file for uscan +http://www.example.com/software/foo/ .*/-([^-]+)\.tar\.gz diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-template/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-template/eval/hints new file mode 100644 index 00000000..b0dd19dc --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-template/eval/hints @@ -0,0 +1,3 @@ +watch-file-template (source): debian-watch-uses-insecure-uri http://www.example.com/software/foo/ [debian/watch:3] +watch-file-template (source): debian-watch-does-not-check-openpgp-signature [debian/watch] +watch-file-template (source): debian-watch-contains-dh_make-template Example watch control file for uscan [debian/watch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-uses-cran-template/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-uses-cran-template/ORIGIN new file mode 100644 index 00000000..f1972fcf --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-uses-cran-template/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debian/watch/watch-file-uses-cran-template + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-uses-cran-template/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-uses-cran-template/debian/changelog new file mode 100644 index 00000000..d8f6c12e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-uses-cran-template/debian/changelog @@ -0,0 +1,17 @@ +watch-file-uses-cran-template (1.0+dfsg-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: watch-file-uses-cran-template + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +watch-file-uses-cran-template (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: watch-file-uses-cran-template + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-uses-cran-template/debian/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-uses-cran-template/debian/control new file mode 100644 index 00000000..20c6263d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-uses-cran-template/debian/control @@ -0,0 +1,17 @@ +Source: watch-file-uses-cran-template +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: watch-file-uses-cran-template +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Package should not emit "debian-watch-not-mangling-version" for CRAN or Bioconductor uscan templates + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-uses-cran-template/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-uses-cran-template/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-uses-cran-template/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-uses-cran-template/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-uses-cran-template/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-uses-cran-template/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-uses-cran-template/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-uses-cran-template/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-uses-cran-template/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-uses-cran-template/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-uses-cran-template/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-uses-cran-template/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-uses-cran-template/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-uses-cran-template/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-uses-cran-template/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-uses-cran-template/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-uses-cran-template/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-uses-cran-template/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-uses-cran-template/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-uses-cran-template/debian/watch new file mode 100644 index 00000000..c23744c8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-uses-cran-template/debian/watch @@ -0,0 +1,5 @@ +Version: 5 + +Template: CRAN +Source: https://salsa.debian.org/foo/bar +Matching-Pattern: refs/tags/@ANY_VERSION@ diff --git a/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-uses-cran-template/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-uses-cran-template/eval/hints new file mode 100644 index 00000000..c0abf466 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debian/watch/watch-file-uses-cran-template/eval/hints @@ -0,0 +1 @@ +watch-file-uses-cran-template (source): debian-watch-does-not-check-openpgp-signature [debian/watch] diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/automatic/changes-files-package-builds-dbg-and-dbgsym-variants/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/changes-files-package-builds-dbg-and-dbgsym-variants/ORIGIN new file mode 100644 index 00000000..fe31fdc8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/changes-files-package-builds-dbg-and-dbgsym-variants/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debug/automatic/changes-files-package-builds-dbg-and-dbgsym-variants + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/automatic/changes-files-package-builds-dbg-and-dbgsym-variants/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/changes-files-package-builds-dbg-and-dbgsym-variants/debian/changelog new file mode 100644 index 00000000..c237d34d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/changes-files-package-builds-dbg-and-dbgsym-variants/debian/changelog @@ -0,0 +1,17 @@ +changes-files-package-builds-dbg-and-dbgsym-variants (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: changes-files-package-builds-dbg-and-dbgsym-variants + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changes-files-package-builds-dbg-and-dbgsym-variants (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: changes-files-package-builds-dbg-and-dbgsym-variants + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/automatic/changes-files-package-builds-dbg-and-dbgsym-variants/debian/control b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/changes-files-package-builds-dbg-and-dbgsym-variants/debian/control new file mode 100644 index 00000000..c04c2e63 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/changes-files-package-builds-dbg-and-dbgsym-variants/debian/control @@ -0,0 +1,36 @@ +Source: changes-files-package-builds-dbg-and-dbgsym-variants +Section: devel +Priority: optional +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no + +Package: changes-files-package-builds-dbg-and-dbgsym-variants +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Package builds -dbg and -dbgsym + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: changes-files-package-builds-dbg-and-dbgsym-variants-dbg +Section: debug +Architecture: all +Depends: changes-files-package-builds-dbg-and-dbgsym-variants, ${shlibs:Depends}, ${misc:Depends} +Description: Manual dbg package + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It + may be an empty package. + +Package: changes-files-package-builds-dbg-and-dbgsym-variants-dbgsym +Section: debug +Architecture: all +Depends: changes-files-package-builds-dbg-and-dbgsym-variants, ${shlibs:Depends}, ${misc:Depends} +Description: Manual dbgsym package + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + even be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/automatic/changes-files-package-builds-dbg-and-dbgsym-variants/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/changes-files-package-builds-dbg-and-dbgsym-variants/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/changes-files-package-builds-dbg-and-dbgsym-variants/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/automatic/changes-files-package-builds-dbg-and-dbgsym-variants/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/changes-files-package-builds-dbg-and-dbgsym-variants/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/changes-files-package-builds-dbg-and-dbgsym-variants/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/automatic/changes-files-package-builds-dbg-and-dbgsym-variants/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/changes-files-package-builds-dbg-and-dbgsym-variants/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/changes-files-package-builds-dbg-and-dbgsym-variants/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/automatic/changes-files-package-builds-dbg-and-dbgsym-variants/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/changes-files-package-builds-dbg-and-dbgsym-variants/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/changes-files-package-builds-dbg-and-dbgsym-variants/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/automatic/changes-files-package-builds-dbg-and-dbgsym-variants/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/changes-files-package-builds-dbg-and-dbgsym-variants/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/changes-files-package-builds-dbg-and-dbgsym-variants/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/automatic/changes-files-package-builds-dbg-and-dbgsym-variants/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/changes-files-package-builds-dbg-and-dbgsym-variants/eval/hints new file mode 100644 index 00000000..390db6fb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/changes-files-package-builds-dbg-and-dbgsym-variants/eval/hints @@ -0,0 +1 @@ +changes-files-package-builds-dbg-and-dbgsym-variants (source): debian-control-has-dbgsym-package (in section for changes-files-package-builds-dbg-and-dbgsym-variants-dbgsym) Package [debian/control:28] diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/automatic/control-file-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/control-file-general/ORIGIN new file mode 100644 index 00000000..3db0114c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/control-file-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debug/automatic/control-file-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/automatic/control-file-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/control-file-general/debian/changelog new file mode 100644 index 00000000..266376c7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/control-file-general/debian/changelog @@ -0,0 +1,17 @@ +control-file-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +control-file-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/automatic/control-file-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/control-file-general/debian/control new file mode 100644 index 00000000..0d48933e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/control-file-general/debian/control @@ -0,0 +1,118 @@ +Source: control-file-general +Priority: optional +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), + fiddle [amd64 powerpc mips mipsel hppa s390], + faddle + (>> + 2) [ + sparc i386 amd64 + ] +Build-Depends-Indep: perl (> 5.8) +Rules-Requires-Root: no +XS-Vcs-Svn: https://svn.example.com/control-file-general/trunk +#Vcs-Git: git://git.debian.org/collab-maint/.git +#Vcs-Browser: http://git.debian.org/?p=collab-maint/.git;a=summary + +Package: control-file-general +Section: devel +Maintainer: Debian Lintian Maintainers +Build-Conflicts: foo +Architecture: all +Pre-depends: ${misc:Pre-depends}, multiarch-support +Depends: control-file-general, foo, baz, ${shlibs:Depends} ${some:Depends}, ${misc:Depends} +Recommends: foo, bar, no-match${lintian:Foo}, match${lintian:Match}, no-match${lintian:Bar}-foo +Suggests: bar | baz, no-match${lintian:Bar}, match${lintian:Match} +Description: Various problems with debian/control + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-1 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Breaks: libsqlite3-0 (< 3.6.12) +Description: Various problems with debian/control + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-2 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Various problems with debian/control (two) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-3 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, foo (>= 1), + baz (<< 2), + fizz (= 2.0), gcc-${pv:gcc} ${reqv:gcc} +Description: Various problems with debian/control (three) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-4 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, foo | + bar (>= 1), baz +Description: Various problems with debian/control (four) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-5 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Description: Various problems with debian/control + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-dbgsym +Section: debug +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Description: dbg-sym + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-dbg +Section: debug +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Description: debug + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-udeb +Section: debian-installer +Package-Type: udeb +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Various problems with debian/control (udeb) + udeb tests. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/automatic/control-file-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/control-file-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/control-file-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/automatic/control-file-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/control-file-general/debian/rules new file mode 100644 index 00000000..f5db4bbb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/control-file-general/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_gencontrol: + echo 'pv:gcc=4.3' >> debian/substvars + echo 'reqv:gcc=(>= 4.3-1)' >> debian/substvars + dh_gencontrol diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/automatic/control-file-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/control-file-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/control-file-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/automatic/control-file-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/control-file-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/control-file-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/automatic/control-file-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/control-file-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/control-file-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/automatic/control-file-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/control-file-general/eval/hints new file mode 100644 index 00000000..87c29110 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/automatic/control-file-general/eval/hints @@ -0,0 +1 @@ +control-file-general (source): debian-control-has-dbgsym-package (in section for control-file-general-dbgsym) Package [debian/control:87] diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/changes-files-package-builds-dbg-and-dbgsym-variants/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/changes-files-package-builds-dbg-and-dbgsym-variants/ORIGIN new file mode 100644 index 00000000..ebe8a847 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/changes-files-package-builds-dbg-and-dbgsym-variants/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debug/obsolete/changes-files-package-builds-dbg-and-dbgsym-variants + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/changes-files-package-builds-dbg-and-dbgsym-variants/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/changes-files-package-builds-dbg-and-dbgsym-variants/debian/changelog new file mode 100644 index 00000000..c237d34d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/changes-files-package-builds-dbg-and-dbgsym-variants/debian/changelog @@ -0,0 +1,17 @@ +changes-files-package-builds-dbg-and-dbgsym-variants (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: changes-files-package-builds-dbg-and-dbgsym-variants + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +changes-files-package-builds-dbg-and-dbgsym-variants (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: changes-files-package-builds-dbg-and-dbgsym-variants + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/changes-files-package-builds-dbg-and-dbgsym-variants/debian/control b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/changes-files-package-builds-dbg-and-dbgsym-variants/debian/control new file mode 100644 index 00000000..c04c2e63 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/changes-files-package-builds-dbg-and-dbgsym-variants/debian/control @@ -0,0 +1,36 @@ +Source: changes-files-package-builds-dbg-and-dbgsym-variants +Section: devel +Priority: optional +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no + +Package: changes-files-package-builds-dbg-and-dbgsym-variants +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Package builds -dbg and -dbgsym + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: changes-files-package-builds-dbg-and-dbgsym-variants-dbg +Section: debug +Architecture: all +Depends: changes-files-package-builds-dbg-and-dbgsym-variants, ${shlibs:Depends}, ${misc:Depends} +Description: Manual dbg package + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It + may be an empty package. + +Package: changes-files-package-builds-dbg-and-dbgsym-variants-dbgsym +Section: debug +Architecture: all +Depends: changes-files-package-builds-dbg-and-dbgsym-variants, ${shlibs:Depends}, ${misc:Depends} +Description: Manual dbgsym package + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + even be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/changes-files-package-builds-dbg-and-dbgsym-variants/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/changes-files-package-builds-dbg-and-dbgsym-variants/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/changes-files-package-builds-dbg-and-dbgsym-variants/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/changes-files-package-builds-dbg-and-dbgsym-variants/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/changes-files-package-builds-dbg-and-dbgsym-variants/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/changes-files-package-builds-dbg-and-dbgsym-variants/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/changes-files-package-builds-dbg-and-dbgsym-variants/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/changes-files-package-builds-dbg-and-dbgsym-variants/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/changes-files-package-builds-dbg-and-dbgsym-variants/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/changes-files-package-builds-dbg-and-dbgsym-variants/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/changes-files-package-builds-dbg-and-dbgsym-variants/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/changes-files-package-builds-dbg-and-dbgsym-variants/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/changes-files-package-builds-dbg-and-dbgsym-variants/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/changes-files-package-builds-dbg-and-dbgsym-variants/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/changes-files-package-builds-dbg-and-dbgsym-variants/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/changes-files-package-builds-dbg-and-dbgsym-variants/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/changes-files-package-builds-dbg-and-dbgsym-variants/eval/hints new file mode 100644 index 00000000..c424ec06 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/changes-files-package-builds-dbg-and-dbgsym-variants/eval/hints @@ -0,0 +1 @@ +changes-files-package-builds-dbg-and-dbgsym-variants (source): debian-control-has-obsolete-dbg-package (in section for changes-files-package-builds-dbg-and-dbgsym-variants-dbg) Package [debian/control:18] diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/control-file-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/control-file-general/ORIGIN new file mode 100644 index 00000000..5db95f21 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/control-file-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debug/obsolete/control-file-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/control-file-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/control-file-general/debian/changelog new file mode 100644 index 00000000..266376c7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/control-file-general/debian/changelog @@ -0,0 +1,17 @@ +control-file-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +control-file-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: control-file-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/control-file-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/control-file-general/debian/control new file mode 100644 index 00000000..0d48933e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/control-file-general/debian/control @@ -0,0 +1,118 @@ +Source: control-file-general +Priority: optional +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14), + fiddle [amd64 powerpc mips mipsel hppa s390], + faddle + (>> + 2) [ + sparc i386 amd64 + ] +Build-Depends-Indep: perl (> 5.8) +Rules-Requires-Root: no +XS-Vcs-Svn: https://svn.example.com/control-file-general/trunk +#Vcs-Git: git://git.debian.org/collab-maint/.git +#Vcs-Browser: http://git.debian.org/?p=collab-maint/.git;a=summary + +Package: control-file-general +Section: devel +Maintainer: Debian Lintian Maintainers +Build-Conflicts: foo +Architecture: all +Pre-depends: ${misc:Pre-depends}, multiarch-support +Depends: control-file-general, foo, baz, ${shlibs:Depends} ${some:Depends}, ${misc:Depends} +Recommends: foo, bar, no-match${lintian:Foo}, match${lintian:Match}, no-match${lintian:Bar}-foo +Suggests: bar | baz, no-match${lintian:Bar}, match${lintian:Match} +Description: Various problems with debian/control + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-1 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Breaks: libsqlite3-0 (< 3.6.12) +Description: Various problems with debian/control + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-2 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Various problems with debian/control (two) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-3 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, foo (>= 1), + baz (<< 2), + fizz (= 2.0), gcc-${pv:gcc} ${reqv:gcc} +Description: Various problems with debian/control (three) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-4 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, foo | + bar (>= 1), baz +Description: Various problems with debian/control (four) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-5 +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Description: Various problems with debian/control + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-dbgsym +Section: debug +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Description: dbg-sym + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-dbg +Section: debug +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Description: debug + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: control-file-general-udeb +Section: debian-installer +Package-Type: udeb +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Various problems with debian/control (udeb) + udeb tests. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/control-file-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/control-file-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/control-file-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/control-file-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/control-file-general/debian/rules new file mode 100644 index 00000000..f5db4bbb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/control-file-general/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_gencontrol: + echo 'pv:gcc=4.3' >> debian/substvars + echo 'reqv:gcc=(>= 4.3-1)' >> debian/substvars + dh_gencontrol diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/control-file-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/control-file-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/control-file-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/control-file-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/control-file-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/control-file-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/control-file-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/control-file-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/control-file-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/control-file-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/control-file-general/eval/hints new file mode 100644 index 00000000..f9f2b8c0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/control-file-general/eval/hints @@ -0,0 +1 @@ +control-file-general (source): debian-control-has-obsolete-dbg-package (in section for control-file-general-dbg) Package [debian/control:97] diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/fields-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/fields-general/ORIGIN new file mode 100644 index 00000000..eb993b84 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/fields-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debug/obsolete/fields-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/fields-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/fields-general/debian/changelog new file mode 100644 index 00000000..f5abce06 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/fields-general/debian/changelog @@ -0,0 +1,17 @@ +fields-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: fields-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +fields-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: fields-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/fields-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/fields-general/debian/control new file mode 100644 index 00000000..2dfeac92 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/fields-general/debian/control @@ -0,0 +1,46 @@ +Source: fields-general +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no +Homepage: http://lintian.debian.org/ + +Package: fields-general +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for tags related to minor field issues + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. +# Whoops, typo +Homepage: ttp://lintian.debian.org/ + +Package: fields-general-dbg +Section: debug +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for tags related to minor field issues (dbg) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + The debug package (dbg)g. +# ... and some unneeded <> +Homepage: + +Package: fields-general-debug +Section: debug +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test for tags related to minor field issues (debug) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + The debug package (debug). + diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/fields-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/fields-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/fields-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/fields-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/fields-general/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/fields-general/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/fields-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/fields-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/fields-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/fields-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/fields-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/fields-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/fields-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/fields-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/fields-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/fields-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/fields-general/eval/hints new file mode 100644 index 00000000..d52577d6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/fields-general/eval/hints @@ -0,0 +1 @@ +fields-general (source): debian-control-has-obsolete-dbg-package (in section for fields-general-dbg) Package [debian/control:21] diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/Makefile b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/Makefile new file mode 100644 index 00000000..657dc2ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/Makefile @@ -0,0 +1,55 @@ +# This is the correct way to build a lib + +CC=gcc +CFLAGS=-g -Wall -Winline -O2 +LDFLAGS=-Wl,--no-as-needed + +OBJS=baz.o extra.o +SHOBJS=baz.sho extra.sho +NOPICOBJS = $(SHOBJS) + +all: libbaz1.a libbaz2.a libbaz1.so.1.0.3b libbaz2.so libbaz3.so.1.0.3b \ + libbaz.so + +libbaz2.so: libbaz2.so.1.0 + ln -sf $^ $@ +libbaz2.so.1.0: libbaz2.so.1.0.3b + ln -sf $^ $@ + +# Oops, forget the soname altogether +libbaz1.so.1.0.3b: $(NOPICOBJS) + $(CC) $(LDFLAGS) -o $@ -shared $^ -lc + +libbaz2.so.1.0.3b: $(SHOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz2.so.1.0 $^ -lc + +# Non-PIC. We can't test this on all architectures +libbaz3.so.1.0.3b: $(NOPICOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz3.so.1 $^ -lc + +# Non-versioned SONAME. +libbaz.so: $(SHOBJS) + $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz.so $^ -lc + +#%.o-noreentrant: %.c +# $(CC) $(LDFLAGS) $(CFLAGS) -o $@ -c $< + +%.sho: %.c + $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -fPIC -o $@ -c $< + +%.o: %.c + $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -o $@ -c $< + +libbaz2.a: $(OBJS) + ar cq $@ $(OBJS) + strip --strip-unneeded --remove-section=.comment \ + --remove-section=-note $@ + ranlib $@ + +# The pic one in the .a (wrong), no archive table +libbaz1.a: $(SHOBJS) + ar cqS $@ $^ + strip --strip-unneeded --remove-section=.comment \ + --remove-section=-note $@ +clean: + rm -f *.a *.o *.so* *.sho diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/ORIGIN new file mode 100644 index 00000000..6e9ec4c5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/debug/obsolete/legacy-libbaz + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/baz.c b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/baz.c new file mode 100644 index 00000000..4d5fc458 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/baz.c @@ -0,0 +1,6 @@ +#include + +double pw(double p) +{ + return exp(p); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/changelog new file mode 100644 index 00000000..44c0a832 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/changelog @@ -0,0 +1,6 @@ +libbaz (1-1) unstable; urgency=low + + * Initial setup + + -- Sean 'Shaleh' Perry Tue, 30 Jan 2001 15:23:59 -0800 + diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/compat b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/compat new file mode 100644 index 00000000..b1bd38b6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/compat @@ -0,0 +1 @@ +13 diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/control b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/control new file mode 100644 index 00000000..15066870 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/control @@ -0,0 +1,58 @@ +Source: libbaz +Section: libs +Priority: optional +Maintainer: Lintian Maintainer +Build-depends: debhelper (>=4) +Standards-Version: 3.2.1 + +Package: libbaz1 +Architecture: any +Provides: libbaz +Description: test handling of library packages + Regression test for lintian's handling of libraries. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz1-dev +Architecture: any +Depends: libbaz1 (= ${source:Version}), perlapi-5.8.8 +Description: development package + Regression test for lintian's handling of libraries (dev). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2 +Architecture: any +Depends: ${shlibs:Depends}, libssl0.9.8 +Description: test handling of library packages (good) + Regression test for lintian's handling of libraries (good). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2-dev +Architecture: any +Depends: ${shlibs:Depends}, libbaz2 (= ${source:Version}) +Description: development package (good) + Regression test for lintian's handling of libraries (dev good). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: libbaz2-dbg +Architecture: any +Depends: libbaz2 (= ${binary:Version}) +Priority: optional +Description: debugging package + Regression test for lintian's handling of libraries (debug). + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/copyright new file mode 100644 index 00000000..a874c878 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/copyright @@ -0,0 +1,8 @@ +This package is released under public domain. This is distributed in the hope +that it will be useful, but without any warranty; without even the implied +warranty of merchantability or fitness for a particular purpose. + +A reference to /usr/share/common-licenses/GPL-2 to make it look like this +package is under the GPL and trigger the OpenSSL warning. + +However, this has an OpenSSL exception. diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/dev.postinst b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/dev.postinst new file mode 100644 index 00000000..683e3cc5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/dev.postinst @@ -0,0 +1,4 @@ +#!/bin/sh -e + +$PKG=libbaz1-dev + diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/dev.prerm b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/dev.prerm new file mode 100644 index 00000000..683e3cc5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/dev.prerm @@ -0,0 +1,4 @@ +#!/bin/sh -e + +$PKG=libbaz1-dev + diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/lib.postinst b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/lib.postinst new file mode 100644 index 00000000..ec0b98ad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/lib.postinst @@ -0,0 +1,10 @@ +#!/bin/sh -e + +$PKG=libbaz1 + +if [ "$1" = "configure" ]; then + if [ -d /usr/doc -a ! -e /usr/doc/$PKG -a -d /usr/share/doc/$PKG ] +; then + ln -sf ../share/doc/$PKG /usr/doc/$PKG + fi +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/lib.prerm b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/lib.prerm new file mode 100644 index 00000000..50e37c3b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/lib.prerm @@ -0,0 +1,7 @@ +#!/bin/sh -e + +$PKG=libbaz1 + +if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/$PKG ]; then + rm -f /usr/doc/$PKG +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/lib.shlibs b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/lib.shlibs new file mode 100644 index 00000000..b88e2882 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/lib.shlibs @@ -0,0 +1,8 @@ +libdoesntexist2 1.0 libbaz1 +libdoesntexist2 1.0 libbaz1 +libbaz2 1.1 libbaz +libbaz3 1 libbaz1 (>> 1-1) +libbaz4 1 libbaz1 (= 1-1) +libbaz5 1 libbaz2 +udeb: libdoesntexist2 1.0 libbaz2 +udeb: libdoesntexist2 1.0 libbaz2 diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/lib.symbols b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/lib.symbols new file mode 100644 index 00000000..72f9d8ab --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/lib.symbols @@ -0,0 +1,3 @@ +libbaz.so.2 libbaz1 #MINVER# + pw 1-1 + foo 1.1-1 diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/rules b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/rules new file mode 100755 index 00000000..fa99bc8a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/rules @@ -0,0 +1,121 @@ +#!/usr/bin/make -f + +lib_tmp=debian/tmp-lib +dev_tmp=debian/tmp-dev + +LIB=libbaz1 +DEV=libbaz1-dev + +VENDORARCH := $(shell perl -MConfig -wE'say substr($$Config{vendorarch},1)') + +build-arch: + $(MAKE) + +build-indep: + +build: build-arch build-indep + +clean: + $(MAKE) clean + dh_clean -plibbaz2 -plibbaz2-dev + rm -f debian/files debian/substvars + rm -rf $(lib_tmp) $(dev_tmp) + +# Now the correct libbaz2-dev package +binary-correct: + install -d debian/libbaz2-dev/usr/lib + cp -a libbaz2.a libbaz2.so debian/libbaz2-dev/usr/lib + # usually, I'd also include some .h files to /usr/include + + # Now the correct libbaz2 package + install -d debian/libbaz2/usr/lib + cp -a libbaz2.so.* debian/libbaz2/usr/lib + chmod a-x debian/libbaz2/usr/lib/* + + # General stuff that is tested in other testsets: + dh_installdocs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_compress -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + + # Mess up the libbaz2 changelog files to test the symlink handling. + ln -s /usr/share/doc/lintian/changelog.gz \ + debian/libbaz2/usr/share/doc/libbaz2/changelog.gz + install -m 644 debian/changelog \ + debian/libbaz2-dev/usr/share/doc/libbaz2-dev/foo + ln -s foo debian/libbaz2-dev/usr/share/doc/libbaz2-dev/changelog + + # Okay, if either line is omitted, it should be noted + dh_strip --dbg-package=libbaz2-dbg -plibbaz2 -plibbaz2-dev + dh_makeshlibs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_shlibdeps -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + + # and again, regular packaging stuff + dh_installdeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + echo udeb: libbaz2 1.0 libbaz2 >> debian/libbaz2/DEBIAN/shlibs + dh_gencontrol -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + dh_builddeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg + +# and the incorrect one +binary-arch: build-arch binary-correct + # first, the lib package + install -d $(lib_tmp)/usr/lib + # resp. no soname (check), wrong soname (check), and no-pic (check) + cp -a libbaz1.so.1.0* $(lib_tmp)/usr/lib + cp -a libbaz2.so.1.0.3b $(lib_tmp)/usr/lib/libfoo2.so.1.0.3b + install -m644 libbaz3.so.1.0.3b $(lib_tmp)/usr/lib/libbaz3.so.1.0.3b + # let's include the .a in the non-dev too (TODO) + # Also, libbaz1.a hasn't a symbol table (TODO) + cp -a *.a $(lib_tmp)/usr/lib + # And a wrong .so symlink (wrong, only in -dev, TODO) + ln -s libfoo3.so.0.9 $(lib_tmp)/usr/lib/libfoo3.so + # And a wrong .so.X symlink (wrong, should point to a real existing + # shlib, TODO) + ln -s libfoo.so.0.9.1 $(lib_tmp)/usr/lib/libfoo.so.0.9 + # And a plain .so (wrong, TODO) + touch $(lib_tmp)/usr/lib/libbar2.so + # And a non-versioned SONAME. + install -m644 libbaz.so $(lib_tmp)/usr/lib/libbaz.so + strip --remove-section=.comment --strip-unneeded $(lib_tmp)/usr/lib/libbaz.so + # Pretend to be a Perl module to test a lack of Perl dependencies. + install -d $(lib_tmp)/$(VENDORARCH)/auto/Foo + install -m 644 libbaz2.so.1.0.3b $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + strip $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + + install -d $(lib_tmp)/usr/share/doc/$(LIB) + install -m 644 debian/copyright $(lib_tmp)/usr/share/doc/$(LIB) + install -m 644 debian/changelog $(lib_tmp)/usr/share/doc/$(LIB) + gzip -n -9 $(lib_tmp)/usr/share/doc/$(LIB)/changelog + install -d $(lib_tmp)/DEBIAN + install -m 755 debian/lib.postinst $(lib_tmp)/DEBIAN/postinst + install -m 755 debian/lib.prerm $(lib_tmp)/DEBIAN/prerm + touch $(lib_tmp)/usr/share/doc/README.Debian + #dpkg-shlibdeps $(lib_tmp)/usr/lib/libbaz.so.1.0 + install -m 755 debian/lib.shlibs $(lib_tmp)/DEBIAN/shlibs + install -m 755 debian/lib.symbols $(lib_tmp)/DEBIAN/symbols + dpkg-gencontrol -isp -p$(LIB) -P$(lib_tmp) + dpkg --build $(lib_tmp) .. + + # now the -dev package + install -d $(dev_tmp)/usr/include + install -d $(lib_tmp)/usr/lib + # let's also install the .so at the same time... (wrong, TODO) + cp -a *.a *.so.* $(lib_tmp)/usr/lib + # and fuck up permission (TODO) + chmod a+x $(lib_tmp)/usr/lib/*.a + # Pretend to be a Perl module to test a lack of Perl dependencies. + install -d $(dev_tmp)/$(VENDORARCH)/auto/Foo + install -m 644 libbaz2.so.1.0.3b $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + strip $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so + install -d $(dev_tmp)/usr/share/doc + ln -s $(LIB) $(dev_tmp)/usr/share/doc/$(DEV) + install -d $(dev_tmp)/DEBIAN + install -m 755 debian/dev.postinst $(dev_tmp)/DEBIAN/postinst + install -m 755 debian/dev.prerm $(dev_tmp)/DEBIAN/prerm + dpkg-gencontrol -isp -p$(DEV) -P$(dev_tmp) + dpkg --build $(dev_tmp) .. + + +binary: binary-arch + +# The mention of binary-indep here should be sufficient to suppress the +# warning that it's not present. +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/source.lintian-overrides b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/source.lintian-overrides new file mode 100644 index 00000000..6008d271 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/source.lintian-overrides @@ -0,0 +1 @@ +libbaz source: maintainer-script-lacks-debhelper-token diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/watch b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/eval/hints b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/eval/hints new file mode 100644 index 00000000..306ecd50 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/eval/hints @@ -0,0 +1 @@ +libbaz (source): debian-control-has-obsolete-dbg-package (in section for libbaz2-dbg) Package [debian/control:48] diff --git a/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/extra.c b/packages/debmagic/tests/lintian-parity/checks/debug/obsolete/legacy-libbaz/extra.c new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/ORIGIN new file mode 100644 index 00000000..44fc7ef3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/desktop/dbus/dbus-policy + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/debian/changelog new file mode 100644 index 00000000..400b58a7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/debian/changelog @@ -0,0 +1,17 @@ +dbus-policy (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: dbus-policy + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +dbus-policy (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: dbus-policy + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/debian/control b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/debian/control new file mode 100644 index 00000000..a9c6b180 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/debian/control @@ -0,0 +1,17 @@ +Source: dbus-policy +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: dbus-policy +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: test deprecated D-Bus policies + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/debian/install b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/debian/install new file mode 100644 index 00000000..a75e2371 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/debian/install @@ -0,0 +1,2 @@ +etc +usr diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/debian/rules b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/etc/dbus-1/system.d/send-destination.conf b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/etc/dbus-1/system.d/send-destination.conf new file mode 100644 index 00000000..ae052ffd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/etc/dbus-1/system.d/send-destination.conf @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/eval/hints b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/eval/hints new file mode 100644 index 00000000..60660677 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/eval/hints @@ -0,0 +1,9 @@ +dbus-policy (binary): dbus-policy-without-send-destination [etc/dbus-1/system.d/send-destination.conf:2] +dbus-policy (binary): dbus-policy-without-send-destination [etc/dbus-1/system.d/send-destination.conf:5] +dbus-policy (binary): dbus-policy-without-send-destination [etc/dbus-1/system.d/send-destination.conf:4] +dbus-policy (binary): dbus-policy-without-send-destination [etc/dbus-1/system.d/send-destination.conf:3] +dbus-policy (binary): dbus-policy-excessively-broad [etc/dbus-1/system.d/send-destination.conf:5] +dbus-policy (binary): dbus-policy-excessively-broad [etc/dbus-1/system.d/send-destination.conf:4] +dbus-policy (binary): dbus-policy-in-etc [etc/dbus-1/system.d/send-destination.conf] +dbus-policy (binary): dbus-policy-at-console [usr/share/dbus-1/system.d/at-console.conf:3] +dbus-policy (binary): dbus-policy-at-console [usr/share/dbus-1/system.d/at-console.conf:4] diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/usr/share/dbus-1/system.d/at-console.conf b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/usr/share/dbus-1/system.d/at-console.conf new file mode 100644 index 00000000..8c47adb9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-policy/usr/share/dbus-1/system.d/at-console.conf @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/ORIGIN new file mode 100644 index 00000000..1976c026 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/desktop/dbus/dbus-services + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/debian/changelog new file mode 100644 index 00000000..18a718de --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/debian/changelog @@ -0,0 +1,17 @@ +dbus-services (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: dbus-services + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +dbus-services (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: dbus-services + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/debian/control b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/debian/control new file mode 100644 index 00000000..8ea056ae --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/debian/control @@ -0,0 +1,17 @@ +Source: dbus-services +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: dbus-services +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: test D-Bus .service files + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/debian/install b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/debian/install new file mode 100644 index 00000000..73752c9a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/debian/install @@ -0,0 +1 @@ +usr diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/debian/rules b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/eval/hints b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/eval/hints new file mode 100644 index 00000000..1f45b324 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/eval/hints @@ -0,0 +1,2 @@ +dbus-services (binary): dbus-system-service-wrong-name better: com.example.SystemDaemon1.service [usr/share/dbus-1/system-services/this-name-cannot-work.service] +dbus-services (binary): dbus-session-service-wrong-name better: org.gtk.vfs.Daemon.service [usr/share/dbus-1/services/gvfs-daemon.service] diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/usr/share/dbus-1/services/gvfs-daemon.service b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/usr/share/dbus-1/services/gvfs-daemon.service new file mode 100644 index 00000000..1a8607d6 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/usr/share/dbus-1/services/gvfs-daemon.service @@ -0,0 +1,3 @@ +[D-BUS Service] +Name=org.gtk.vfs.Daemon +Exec=/usr/lib/gvfs/gvfsd diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/usr/share/dbus-1/services/org.mpris.MediaPlayer2.mpd.service b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/usr/share/dbus-1/services/org.mpris.MediaPlayer2.mpd.service new file mode 100644 index 00000000..3f14f4ab --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/usr/share/dbus-1/services/org.mpris.MediaPlayer2.mpd.service @@ -0,0 +1,3 @@ +[D-BUS Service] +Name=org.mpris.MediaPlayer2.mpd +Exec=/usr/bin/mpDris2 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/usr/share/dbus-1/system-services/org.freedesktop.PolicyKit1.service b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/usr/share/dbus-1/system-services/org.freedesktop.PolicyKit1.service new file mode 100644 index 00000000..51d1f948 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/usr/share/dbus-1/system-services/org.freedesktop.PolicyKit1.service @@ -0,0 +1,5 @@ +[D-BUS Service] +Name=org.freedesktop.PolicyKit1 +Exec=/usr/lib/policykit-1/polkitd --no-debug +User=root +SystemdService=polkitd.service diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/usr/share/dbus-1/system-services/this-name-cannot-work.service b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/usr/share/dbus-1/system-services/this-name-cannot-work.service new file mode 100644 index 00000000..e87a5bb2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/dbus/dbus-services/usr/share/dbus-1/system-services/this-name-cannot-work.service @@ -0,0 +1,4 @@ +[D-BUS Service] +Name=com.example.SystemDaemon1 +Exec=/usr/sbin/example-system-daemon +User=nobody diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/ORIGIN new file mode 100644 index 00000000..51c224d8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/desktop/gnome/files-foo-in-bar + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/bar b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/bar new file mode 100644 index 00000000..980a0d5f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/bar @@ -0,0 +1 @@ +Hello World! diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/bar.pod b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/bar.pod new file mode 100644 index 00000000..4144a364 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/bar.pod @@ -0,0 +1,18 @@ + +=head1 NAME + +bar - does stuff + +=head1 SYNOPSIS + +bar + +=head1 DESCRIPTION + +Does nothing. + +=head1 AUTHOR + +Niels Thykier + +=cut diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/debian/changelog new file mode 100644 index 00000000..18866069 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/debian/changelog @@ -0,0 +1,17 @@ +files-foo-in-bar (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: files-foo-in-bar + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +files-foo-in-bar (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: files-foo-in-bar + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/debian/clean b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/debian/clean new file mode 100644 index 00000000..be4ae727 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/debian/clean @@ -0,0 +1,5 @@ +bar.1* +Bar.pm +bar.png +perllocal.pod +preferences diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/debian/control b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/debian/control new file mode 100644 index 00000000..6c954ddb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/debian/control @@ -0,0 +1,17 @@ +Source: files-foo-in-bar +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: files-foo-in-bar +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test tags about files or dirs in given paths + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/debian/dirs b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/debian/dirs new file mode 100644 index 00000000..e8759c9d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/debian/dirs @@ -0,0 +1,15 @@ +etc/apt/preferences.d +etc/apt +etc/init +bin/foo +mnt/foo +tmp/foo +usr/bin/foo +usr/foo +usr/lib/debug +usr/local/foo +usr/lib/site-python/foo +usr/share/doc/files-foo-in-bar/examples/examples +var/foo +var/lock/foo +var/run/foo diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/debian/install b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/debian/install new file mode 100644 index 00000000..ba468653 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/debian/install @@ -0,0 +1,61 @@ +bar bin/foo +bar emul +bar etc/apt/preferences.d +bar etc/apt/sources.list.d +bar etc/apt/trusted.gpg.d +bar etc/gconf/schemas/ +bar etc/init +bar etc/rc.boot +bar etc/rc.d +bar etc/udev/rules.d +bar lib32 +bar lib64 +bar libx32 +bar mnt/foo +bar run/foo +bar srv/foo +bar tmp/foo +bar usr/bin/foo +bar usr/foo +bar usr/lib/debug/ +bar usr/lib32 +bar usr/lib64 +bar usr/libexec +bar usr/libx32 +bar usr/lib/perl/ +bar usr/lib/python2.7/ +bar usr/lib/sgml +bar usr/lib/site-python/foo +bar usr/local/foo +bar usr/share +bar usr/share/doc +bar usr/share/doc/files-foo-in-bar/.xvpics/ +bar usr/share/doc/files-foo-in-bar/.thumbnails/ +bar usr/share/doc/files-foo-in-bar/examples/examples +bar usr/share/mime/foo/ +bar usr/share/mime/packages/ +bar usr/share/perl/ +bar usr/share/vim/vimcurrent/ +bar usr/share/vim/vim73/ +bar usr/X11R6/bin +bar usr/X11R6/lib/X11/fonts/ +bar var/foo +bar var/lock/foo +bar var/run/foo +bar var/www/foo +bar home/johndoe +bar root +bar etc/opt +bar var/cache/pbuilder/build +bar var/lib/sbuild +bar var/lib/buildd +bar build/dir/foo +bar tmp/buildd/dir/foo +bar etc/dhcp3 + +Bar.pm usr/lib/perl5/Foo +bar.png usr/lib/files-foo-in-bar + +perllocal.pod usr/lib/perl-foo +.packlist usr/lib/perl5 +preferences etc/apt diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/debian/manpages b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/debian/manpages new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/debian/rules b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/debian/rules new file mode 100755 index 00000000..457b537f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/debian/rules @@ -0,0 +1,18 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_auto_build: + pod2man --section 1 bar.pod > bar.1 + gzip -n --best bar.1 + cp bar Bar.pm + cp bar bar.png + cp bar perllocal.pod + touch .packlist + touch preferences + +override_dh_auto_install: + dh_install bar.1.gz usr/X11R6/man/man1/ + +# skip +override_dh_usrlocal: diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/eval/hints b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/eval/hints new file mode 100644 index 00000000..c030bf57 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/files-foo-in-bar/eval/hints @@ -0,0 +1 @@ +files-foo-in-bar (binary): package-installs-into-etc-gconf-schemas [etc/gconf/schemas/bar] diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/Makefile b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/Makefile new file mode 100644 index 00000000..9addc22e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/Makefile @@ -0,0 +1,12 @@ +multiarch := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) + +all: + install -d usr/lib/$(multiarch)/girepository-1.0 + cp usr/lib/libgood-42-dev-dummy usr/lib/$(multiarch)/libperfect-42-dev-dummy + cp usr/lib/libgood-42-0-dummy usr/lib/$(multiarch)/libperfect-42-0-dummy + cp usr/lib/girepository-1.0/Good-42.typelib usr/lib/$(multiarch)/girepository-1.0/GoodExtras-42.typelib + cp usr/lib/girepository-1.0/Good-42.typelib usr/lib/$(multiarch)/girepository-1.0/Perfect-42.typelib + cp usr/lib/girepository-1.0/Bad-23.typelib usr/lib/$(multiarch)/girepository-1.0/BadExtras-23.typelib + install -d usr/lib/$(multiarch)/gir-1.0 + cp usr/share/gir-1.0/Bad-23.gir usr/lib/$(multiarch)/gir-1.0/BadExtras-23.gir + cp usr/share/gir-1.0/Good-42.gir usr/lib/$(multiarch)/gir-1.0/GoodExtras-42.gir diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/ORIGIN new file mode 100644 index 00000000..6b328865 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/desktop/gnome/gir/gir + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/changelog new file mode 100644 index 00000000..a77a8c3e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/changelog @@ -0,0 +1,17 @@ +gir (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: gir + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +gir (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: gir + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/control b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/control new file mode 100644 index 00000000..3c365e6d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/control @@ -0,0 +1,110 @@ +Source: gir +Priority: optional +Section: libs +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 13) +Rules-Requires-Root: no + +Package: gir1.2-bad +Section: misc +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: test GObject-Introspection + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package gets GObject-Introspection wrong in various ways. + +Package: gir1.2-bad-multiarch +Section: misc +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: test GObject-Introspection + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package also gets GObject-Introspection wrong in various ways. + +Package: gir1.2-good-42 +Section: oldlibs +Architecture: any +Provides: gir1.2-goodextras-42 (= ${binary:Version}) +Depends: ${gir:Depends}, ${shlibs:Depends}, ${misc:Depends}, libgood-42-0 +Description: test GObject-Introspection - GIR + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This contains the GObject-Introspection typelib. + . + This package is in the oldlibs section (a deprecated typelib), unlike + gir1.2-perfect-42 which is in the introspection section. + +Package: libgood-42-dev +Section: oldlibs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, gir1.2-good-42 (= ${binary:Version}), libgood-42-0 (= ${binary:Version}) +Provides: gir1.2-good-42-dev (= ${binary:Version}), gir1.2-goodextras-42-dev (= ${binary:Version}) +Description: test GObject-Introspection - development + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package is in the oldlibs section (a deprecated development + package), unlike libperfect-42-dev which is in the libdevel section. + +Package: libgood-42-0 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: test GObject-Introspection - shared library + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This is the shared library. + +Package: gir1.2-perfect-42 +Section: introspection +Architecture: any +Depends: ${gir:Depends}, ${shlibs:Depends}, ${misc:Depends}, libperfect-42-0 +Description: test GObject-Introspection - GIR with multiarch + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This contains the GObject-Introspection typelib, with multiarch. + +Package: gir1.2-perfect-42-dev +Section: libdevel +Architecture: any +Depends: ${gir:Depends}, ${shlibs:Depends}, ${misc:Depends}, gir1.2-perfect-42 (= ${binary:Version}) +Description: test GObject-Introspection - development GIR XML + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package contains GObject-Introspection XML for libperfect. + +Package: libperfect-42-dev +Section: libdevel +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, libperfect-42-0 (= ${binary:Version}) +Description: test GObject-Introspection - development with multiarch + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This contains the development files, with multiarch. + +Package: libperfect-42-0 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: test GObject-Introspection - shared library with multiarch + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This is the shared library, with multiarch. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/gir1.2-bad-multiarch.install b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/gir1.2-bad-multiarch.install new file mode 100644 index 00000000..514d2127 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/gir1.2-bad-multiarch.install @@ -0,0 +1,2 @@ +usr/lib/*/girepository-1.0/BadExtras-23.typelib +usr/lib/*/gir-1.0/BadExtras-23.gir diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/gir1.2-bad.install b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/gir1.2-bad.install new file mode 100644 index 00000000..c83626ed --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/gir1.2-bad.install @@ -0,0 +1,2 @@ +usr/lib/girepository-1.0/Bad-23.typelib +usr/share/gir-1.0/Bad-23.gir diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/gir1.2-good-42.install b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/gir1.2-good-42.install new file mode 100644 index 00000000..ebd93c8b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/gir1.2-good-42.install @@ -0,0 +1,2 @@ +usr/lib/girepository-1.0/Good-42.typelib +usr/lib/*/girepository-1.0/GoodExtras-42.typelib diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/gir1.2-perfect-42-dev.install b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/gir1.2-perfect-42-dev.install new file mode 100644 index 00000000..e4299d9a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/gir1.2-perfect-42-dev.install @@ -0,0 +1 @@ +usr/share/gir-1.0/Perfect-42.gir diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/gir1.2-perfect-42.install b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/gir1.2-perfect-42.install new file mode 100644 index 00000000..195f2003 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/gir1.2-perfect-42.install @@ -0,0 +1 @@ +usr/lib/*/girepository-1.0/Perfect-42.typelib diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/libgood-42-0.install b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/libgood-42-0.install new file mode 100644 index 00000000..5bff9aa8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/libgood-42-0.install @@ -0,0 +1 @@ +usr/lib/libgood-42-0-dummy diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/libgood-42-dev.install b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/libgood-42-dev.install new file mode 100644 index 00000000..eb329e6c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/libgood-42-dev.install @@ -0,0 +1,3 @@ +usr/share/gir-1.0/Good-42.gir +usr/lib/*/gir-1.0/GoodExtras-42.gir +usr/lib/libgood-42-dev-dummy diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/libperfect-42-0.install b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/libperfect-42-0.install new file mode 100644 index 00000000..75b60a22 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/libperfect-42-0.install @@ -0,0 +1 @@ +usr/lib/*/libperfect-42-0-dummy diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/libperfect-42-dev.install b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/libperfect-42-dev.install new file mode 100644 index 00000000..0ed5498d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/libperfect-42-dev.install @@ -0,0 +1 @@ +usr/lib/*/libperfect-42-dev-dummy diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/rules b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/eval/hints b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/eval/hints new file mode 100644 index 00000000..8d45ee29 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/eval/hints @@ -0,0 +1,16 @@ +gir (source): typelib-missing-gir-depends gir1.2-bad [debian/control] +gir (source): typelib-missing-gir-depends gir1.2-bad-multiarch [debian/control] +gir1.2-good-42 (binary): typelib-not-in-multiarch-directory usr/lib/x86_64-linux-gnu/girepository-1.0 [usr/lib/girepository-1.0/Good-42.typelib] +gir1.2-bad (binary): typelib-section-not-introspection misc [usr/lib/girepository-1.0/Bad-23.typelib] +gir1.2-bad (binary): typelib-package-name-does-not-match gir1.2-bad-23 [usr/lib/girepository-1.0/Bad-23.typelib] +gir1.2-bad (binary): typelib-not-in-multiarch-directory usr/lib/${DEB_HOST_MULTIARCH}/girepository-1.0 [usr/lib/girepository-1.0/Bad-23.typelib] +gir1.2-bad (binary): typelib-in-arch-all-package [usr/lib/girepository-1.0/Bad-23.typelib] +gir1.2-bad (binary): gir-package-name-does-not-match gir1.2-bad-23-dev [usr/share/gir-1.0/Bad-23.gir] +gir1.2-bad (binary): gir-section-not-libdevel misc [usr/share/gir-1.0/Bad-23.gir] +gir1.2-bad (binary): gir-missing-typelib-dependency gir1.2-bad-23 [usr/share/gir-1.0/Bad-23.gir] +gir1.2-bad (binary): gir-in-arch-all-package [usr/share/gir-1.0/Bad-23.gir] +gir1.2-bad-multiarch (binary): gir-package-name-does-not-match gir1.2-badextras-23-dev [usr/lib/MULTIARCH/gir-1.0/BadExtras-23.gir] +gir1.2-bad-multiarch (binary): typelib-section-not-introspection misc [usr/lib/MULTIARCH/girepository-1.0/BadExtras-23.typelib] +gir1.2-bad-multiarch (binary): typelib-package-name-does-not-match gir1.2-badextras-23 [usr/lib/MULTIARCH/girepository-1.0/BadExtras-23.typelib] +gir1.2-bad-multiarch (binary): gir-section-not-libdevel misc [usr/lib/MULTIARCH/gir-1.0/BadExtras-23.gir] +gir1.2-bad-multiarch (binary): gir-missing-typelib-dependency gir1.2-badextras-23 [usr/lib/MULTIARCH/gir-1.0/BadExtras-23.gir] diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/usr/lib/girepository-1.0/Bad-23.typelib b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/usr/lib/girepository-1.0/Bad-23.typelib new file mode 100644 index 00000000..64fba428 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/usr/lib/girepository-1.0/Bad-23.typelib @@ -0,0 +1 @@ +not really a typelib diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/usr/lib/girepository-1.0/Good-42.typelib b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/usr/lib/girepository-1.0/Good-42.typelib new file mode 100644 index 00000000..64fba428 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/usr/lib/girepository-1.0/Good-42.typelib @@ -0,0 +1 @@ +not really a typelib diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/usr/lib/libgood-42-0-dummy b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/usr/lib/libgood-42-0-dummy new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/usr/lib/libgood-42-dev-dummy b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/usr/lib/libgood-42-dev-dummy new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/usr/share/gir-1.0/Bad-23.gir b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/usr/share/gir-1.0/Bad-23.gir new file mode 100644 index 00000000..59e267dd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/usr/share/gir-1.0/Bad-23.gir @@ -0,0 +1 @@ +not really GIR diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/usr/share/gir-1.0/Good-42.gir b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/usr/share/gir-1.0/Good-42.gir new file mode 100644 index 00000000..59e267dd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/usr/share/gir-1.0/Good-42.gir @@ -0,0 +1 @@ +not really GIR diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/usr/share/gir-1.0/Perfect-42.gir b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/usr/share/gir-1.0/Perfect-42.gir new file mode 100644 index 00000000..59e267dd --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/gir/usr/share/gir-1.0/Perfect-42.gir @@ -0,0 +1 @@ +not really GIR diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-missing-gir-depends/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-missing-gir-depends/ORIGIN new file mode 100644 index 00000000..9d1196df --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-missing-gir-depends/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/desktop/gnome/gir/typelib-missing-gir-depends + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-missing-gir-depends/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-missing-gir-depends/debian/changelog new file mode 100644 index 00000000..88751161 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-missing-gir-depends/debian/changelog @@ -0,0 +1,17 @@ +typelib-missing-gir-depends (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: typelib-missing-gir-depends + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +typelib-missing-gir-depends (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: typelib-missing-gir-depends + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-missing-gir-depends/debian/control b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-missing-gir-depends/debian/control new file mode 100644 index 00000000..fe3ee358 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-missing-gir-depends/debian/control @@ -0,0 +1,29 @@ +Source: typelib-missing-gir-depends +Section: introspection +Priority: optional +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 13) +Rules-Requires-Root: no + +Package: gir1.2-missing-gir-depends-2.2 +Architecture: all +Depends: ${misc:Depends} +Description: Check for missing binary dependencies on ${gir:Depends} + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + This package should be tagged by Lintian. + +Package: gir1.2-gir-depends-present-2.2 +Architecture: all +Depends: ${misc:Depends}, ${gir:Depends} +Description: Check for missing binary dependencies on ${gir:Depends}: False + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + This package should not be tagged by Lintian. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-missing-gir-depends/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-missing-gir-depends/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-missing-gir-depends/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-missing-gir-depends/debian/rules b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-missing-gir-depends/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-missing-gir-depends/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-missing-gir-depends/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-missing-gir-depends/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-missing-gir-depends/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-missing-gir-depends/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-missing-gir-depends/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-missing-gir-depends/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-missing-gir-depends/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-missing-gir-depends/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-missing-gir-depends/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-missing-gir-depends/eval/hints b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-missing-gir-depends/eval/hints new file mode 100644 index 00000000..8fb266b1 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-missing-gir-depends/eval/hints @@ -0,0 +1 @@ +typelib-missing-gir-depends (source): typelib-missing-gir-depends gir1.2-missing-gir-depends-2.2 [debian/control] diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-not-missing-gir-depends/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-not-missing-gir-depends/ORIGIN new file mode 100644 index 00000000..856b7538 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-not-missing-gir-depends/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/desktop/gnome/gir/typelib-not-missing-gir-depends + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-not-missing-gir-depends/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-not-missing-gir-depends/debian/changelog new file mode 100644 index 00000000..bda9a41f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-not-missing-gir-depends/debian/changelog @@ -0,0 +1,17 @@ +typelib-not-missing-gir-depends (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: typelib-not-missing-gir-depends + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +typelib-not-missing-gir-depends (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: typelib-not-missing-gir-depends + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-not-missing-gir-depends/debian/control b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-not-missing-gir-depends/debian/control new file mode 100644 index 00000000..237de58e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-not-missing-gir-depends/debian/control @@ -0,0 +1,18 @@ +Source: typelib-not-missing-gir-depends +Section: introspection +Priority: optional +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no + +Package: gir1.2-not-missing-gir-depends-2.2 +Architecture: all +Description: Missing binary dependencies on ${gir:Depends} not a problem with dh 14 + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + This package should not be tagged by Lintian, + because :Depends substvars are automatically added to Depends. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-not-missing-gir-depends/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-not-missing-gir-depends/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-not-missing-gir-depends/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-not-missing-gir-depends/debian/rules b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-not-missing-gir-depends/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-not-missing-gir-depends/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-not-missing-gir-depends/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-not-missing-gir-depends/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-not-missing-gir-depends/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-not-missing-gir-depends/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-not-missing-gir-depends/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-not-missing-gir-depends/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-not-missing-gir-depends/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-not-missing-gir-depends/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-not-missing-gir-depends/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-not-missing-gir-depends/eval/hints b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/gir/typelib-not-missing-gir-depends/eval/hints new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/ORIGIN new file mode 100644 index 00000000..55c3f48d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/desktop/gnome/legacy-filenames + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/data/ .tif b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/data/ .tif new file mode 100644 index 00000000..07fd9140 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/data/ .tif @@ -0,0 +1,2 @@ +This filename was inspired by the ".tif used by fnlib. The real package +uses space.tif. diff --git "a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/data/\".tif" "b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/data/\".tif" new file mode 100644 index 00000000..e0057757 --- /dev/null +++ "b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/data/\".tif" @@ -0,0 +1 @@ +This filename is really used, by fnlib. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/data/Maelstrom Sound b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/data/Maelstrom Sound new file mode 100644 index 00000000..41104109 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/data/Maelstrom Sound @@ -0,0 +1 @@ +This filename occurs in the maelstrom package. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/debian/changelog new file mode 100644 index 00000000..f501faaa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/debian/changelog @@ -0,0 +1,78 @@ +filenames (1:12-0.1) unstable; urgency=low + + * /me is doing a correct NMU of this package, bumping the epoch too. + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 02:04:39 +0200 + +filenames (11) unstable; urgency=low + + * Add a README.macos. + + -- Marc 'HE' Brockschmidt Mon, 12 Apr 2004 23:35:24 +0200 + +filenames (10) unstable; urgency=low + + * Some new files to check the checks for the use of /usr/*/X11 and + /usr/X11R6/*. + + -- Marc 'HE' Brockschmidt Sun, 11 Apr 2004 17:35:20 +0200 + +filenames (9) unstable; urgency=low + + * Add a two *.ali files, one with the right permission, one with + the more common, but false one. + + -- Marc 'HE' Brockschmidt Sun, 11 Apr 2004 00:18:16 +0200 + +filenames (8) unstable; urgency=low + + * Add a real ancient file + + -- Frank Lichtenheld Thu, 8 Apr 2004 22:22:40 +0200 + +filenames (7) unstable; urgency=low + + * Add a dozen symlinks, some correct, some not + + -- Jeroen van Wolffelaar Fri, 27 Feb 2004 01:28:42 +0100 + +filenames (6) unstable; urgency=low + + * Add perl files to check if + package-installs-nonbinary-perl-in-usr-lib-perl5 is correctly + issued even after attempting to suppress it in some cases + + -- Frank Lichtenheld Fri, 27 Feb 2004 00:49:44 +0100 + +filenames (5) unstable; urgency=low + + * Added check for too long symlink + + -- Sean 'Shaleh' Perry Wed, 3 Jan 2001 13:20:31 -0800 + +filenames (4) unstable; urgency=low + + * Add /usr/lib/menu/menu file to test the bad-menu-file-name tag. + * Add /usr/lib/menu/README to test the new execption for it. + + -- Richard Braakman Thu, 22 Oct 1998 15:42:52 +0200 + +filenames (3) unstable; urgency=low + + * Don't rely on the installer's umask. + + -- Richard Braakman Thu, 20 Aug 1998 12:45:47 +0200 + +filenames (2) unstable; urgency=low + + * Noted more limitations on what filenames lintian handles. + * Added Changes.gz in /usr/doc/filenames and made a symlink from changelog.gz + to Changes.gz. + + -- Richard Braakman Sat, 4 Jul 1998 15:46:11 +0200 + +filenames (1) unstable; urgency=low + + * Initial version + + -- Richard Braakman Sat, 4 Jul 1998 15:25:01 +0200 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/debian/control b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/debian/control new file mode 100644 index 00000000..1ff9c503 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/debian/control @@ -0,0 +1,42 @@ +Source: filenames +Maintainer: Lintian Maintainer +Standards-Version: 3.1.1 +Rules-Requires-Root: binary-targets + +Package: filenames +Architecture: any +Description: see how lintian reacts to weird filenames + This package contains files with the most evil names I could find, + except for ones that lintian is explicitly not designed to handle. + . + Lintian does not handle filenames containing newlines, or filenames + that contain the strings " link to ", " -> ", or ": ". The last one + is used as a separator by the file command, the others are used as + separators by tar. + . + Lintian also does not handle filenames that contain backslashes, or + other characters that are mangled by tar's -tv output. + +Package: filename-games +Architecture: all +Depends: filenames +Section: games +Description: Test game filename/location checks + This package contains files with slightly less evil names than + filenames. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: more-filename-games +Architecture: all +Depends: filenames, filename-games +Section: games +Priority: optional +Description: More test for game filename/location checks + This package contains no evil names, only evil locations. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/debian/doc-base b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/debian/doc-base new file mode 100644 index 00000000..e5a611ba --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/debian/doc-base @@ -0,0 +1,11 @@ +Document: testing +Title: Working doc-base control file +Author: Russ Allbery +Abstract: This control file ensures that we don't get false positives for + correct doc-base files. + . + There isn't anything wrong with this one. +Section: Education + +Format: Text +Files: /usr/share/doc/filenames/README.macosx diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/debian/rules b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/debian/rules new file mode 100755 index 00000000..fd86970b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/debian/rules @@ -0,0 +1,213 @@ +#!/usr/bin/make -f + +# Copyright (C) 1998 Richard Braakman +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, you can find it on the World Wide +# Web at https://www.gnu.org/copyleft/gpl.html, or write to the Free +# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +# MA 02110-1301, USA. + +VENDORARCH := $(shell perl -MConfig -wE'say substr($$Config{vendorarch},1)') + +clean: + mkdir -p .svn CVS "{arch}" .arch-ids .bzr + touch data/.cvsignore data/svn-commit.tmp data/svk-commitsEr9P.tmp + touch data/.arch-inventory + touch 'data/.#Maelstrom Sound.1.1.1' 'data/Maelstrom Sounce.r121' + touch 'data/Maelstrom Sound.mine' + touch "data/'\\ " + touch filenames.c~ + +build-arch: + +build-indep: + +build: build-arch build-indep + + +binary-arch: + +binary-indep: + install -d debian/tmp/DEBIAN + cp -a data debian/tmp/files + chmod -R go=rX debian/tmp/files + + install -d debian/tmp/usr/lib/filenames + install -m 555 -d debian/tmp/usr/lib/filenames/readonly + touch debian/tmp/usr/lib/filenames/readonly/test + + install -d debian/tmp/usr/lib/menu + install -d debian/tmp/usr/share/menu + touch debian/tmp/usr/lib/menu/README + touch debian/tmp/usr/share/menu/README + touch debian/tmp/usr/lib/menu/menu + touch debian/tmp/usr/share/menu/menu + chmod 644 debian/tmp/usr/lib/menu/* + + install -d debian/tmp/$(VENDORARCH)/foo + mkdir debian/tmp/$(VENDORARCH)/.svn + mkdir debian/tmp/$(VENDORARCH)/CVS + mkdir "debian/tmp/$(VENDORARCH)/{arch}" + mkdir debian/tmp/$(VENDORARCH)/.arch-ids + mkdir debian/tmp/$(VENDORARCH)/.bzr + mkdir debian/tmp/$(VENDORARCH)/.be + mkdir debian/tmp/$(VENDORARCH)/.ditrack + install -d debian/tmp/usr/share/perl5 + echo foo > debian/tmp/$(VENDORARCH)/foo/.gitignore + echo foo > debian/tmp/$(VENDORARCH)/foo/.hgignore + echo foo > debian/tmp/$(VENDORARCH)/foo/.hgtags + echo foo > debian/tmp/$(VENDORARCH)/foo/.hg_archival.txt + + touch debian/tmp/$(VENDORARCH)/foo/.packlist + chmod 644 debian/tmp/$(VENDORARCH)/foo/.packlist + touch debian/tmp/$(VENDORARCH)/foo/bar.pm + TZ=UTC touch -t 197501010101 debian/tmp/$(VENDORARCH)/foo/ancient.pm + chmod 644 debian/tmp/$(VENDORARCH)/foo/bar.pm + + install -d debian/tmp/usr/share/pixmaps + install -d debian/tmp/usr/share/pixmaps/foo + touch debian/tmp/usr/share/pixmaps/license.jpeg + touch debian/tmp/usr/share/pixmaps/licence.jpg + touch debian/tmp/usr/share/pixmaps/copying.xpm + touch debian/tmp/usr/share/pixmaps/foo/COPYING.svg + touch debian/tmp/usr/share/pixmaps/foo/copying.png + touch debian/tmp/usr/share/pixmaps/license.txt + touch debian/tmp/usr/share/pixmaps/license.foo + touch debian/tmp/usr/share/pixmaps/COPYING + + install -d debian/tmp/usr/share/linda/overrides + echo 'foo' > debian/tmp/usr/share/linda/overrides/filenames + + install -d debian/tmp/usr/share/doc/filenames + touch debian/tmp/usr/share/doc/filenames/README.macosx + + echo foo > debian/tmp/usr/share/doc/filenames/bokmål + echo foo > debian/tmp/usr/share/doc/filenames/bokm\\ål + echo foo > debian/tmp/usr/share/doc/filenames/bokml + echo foo > debian/tmp/usr/share/doc/filenames/bokm\\l + + echo foo > debian/tmp/usr/share/doc/filenames/Thumbs.db + echo foo > debian/tmp/usr/share/doc/filenames/.DS_Store + echo foo > debian/tmp/usr/share/doc/filenames/._NEWS.Debian + + touch debian/tmp/usr/share/doc/filenames/news.debian + gzip -n debian/tmp/usr/share/doc/filenames/news.debian + touch debian/tmp/usr/share/doc/filenames/NEWS.Debian + + echo foo > debian/tmp/usr/share/doc/filenames/link-one + ln debian/tmp/usr/share/doc/filenames/link-one \ + debian/tmp/usr/share/doc/filenames/link-two + + install -d debian/tmp/usr/share/doc/filenames/examples + touch debian/tmp/usr/share/doc/filenames/examples/__init__.py + touch debian/tmp/usr/share/doc/filenames/examples/very_interesting_example + touch debian/tmp/usr/share/doc/filenames/examples/very_interesting_example2 + gzip -n debian/tmp/usr/share/doc/filenames/examples/very_interesting_example2 + + install -d debian/tmp/usr/lib/ada/adalib/ + touch debian/tmp/usr/lib/ada/adalib/test.ali debian/tmp/usr/lib/ada/adalib/test2.ali + chmod 0644 debian/tmp/usr/lib/ada/adalib/test.ali + chmod 0444 debian/tmp/usr/lib/ada/adalib/test2.ali + + install -d debian/tmp/usr/bin/X11/ + touch debian/tmp/usr/bin/X11/testxbin + install -d debian/tmp/usr/X11R6/bin + touch debian/tmp/usr/X11R6/bin/testxbin2 + install -d debian/tmp/usr/include/X11 + touch debian/tmp/usr/include/X11/foo.h + + install -d debian/tmp/usr/bin/mh + touch debian/tmp/usr/bin/mh/read + chmod 755 debian/tmp/usr/bin/mh/read + install -d debian/tmp/usr/bin/bin + touch debian/tmp/usr/bin/bin/bad + chmod 755 debian/tmp/usr/bin/bin/bad + + install -m 644 debian/changelog debian/tmp/usr/share/doc/filenames/Changes + gzip -n -9 debian/tmp/usr/share/doc/filenames/Changes + ln -s Changes.gz debian/tmp/usr/share/doc/filenames/changelog.gz + + install -d debian/tmp/var/www + echo foo > debian/tmp/var/www/foo + + install -d debian/tmp/srv/foo + touch debian/tmp/srv/foo/bar + install -d debian/tmp/opt/foo + touch debian/tmp/opt/foo/bar + + install -d debian/tmp/etc/gconf/schemas + touch debian/tmp/etc/gconf/schemas/test.schema + + install -d debian/tmp/usr/lib/sgml + touch debian/tmp/usr/lib/sgml/package + + install -d debian/tmp/usr/share/gnome/apps/System + touch debian/tmp/usr/share/gnome/apps/System/foo.desktop + + install -d debian/tmp/usr/share/filenames + touch debian/tmp/usr/share/filenames/jquery.js + touch debian/tmp/usr/share/filenames/jquery.lite.js + touch debian/tmp/usr/share/filenames/jquery.min.js + touch debian/tmp/usr/share/filenames/jquery.pack.js + touch debian/tmp/usr/share/filenames/mochikit.js + touch debian/tmp/usr/share/filenames/prototype-1.2.3.4.js + touch debian/tmp/usr/share/filenames/prototype.js + touch debian/tmp/usr/share/filenames/prototype.js.gz + touch debian/tmp/usr/share/filenames/scriptaculous.js + touch debian/tmp/usr/share/filenames/yahoo-dom-event.js + touch debian/tmp/usr/share/filenames/yahoo-min.js + + ln -s '../filenames/doc/version6.txt.gz' debian/tmp/usr/share/doc/filenames/version.txt.gz + ln -s ../../share/symlink debian/tmp/usr/lib/filenames/symlink1ok + ln -s ../../../etc/symlink debian/tmp/usr/lib/filenames/symlink1wrong + ln -s ../../../../etc/symlink debian/tmp/usr/lib/filenames/symlink2wrong + ln -s /etc/symlink debian/tmp/usr/lib/filenames/symlink2ok + ln -s /usr/lib/filenames/symlink2 debian/tmp/usr/lib/filenames/symlink3wrong + ln -s test debian/tmp/usr/lib/filenames/symlink3ok + ln -s ../filenames/symlink2 debian/tmp/usr/lib/filenames/symlink4wrong + ln -s ../menu/../somethingelse debian/tmp/usr/lib/filenames/symlink5wrong + ln -s ../menu/somethingelse debian/tmp/usr/lib/filenames/symlink4ok + ln -s ./file4 debian/tmp/usr/lib/filenames/symlink6wrong + ln -s ../menu/./something debian/tmp/usr/lib/filenames/symlink7wrong + ln -s ../menu//something debian/tmp/usr/lib/filenames/symlink8wrong + ln -s ../menu/something/ debian/tmp/usr/lib/filenames/symlink9wrong + ln -s .. debian/tmp/usr/lib/filenames/symlink5ok+warn + ln -s . debian/tmp/usr/lib/filenames/symlink6ok+warn + ln -s / debian/tmp/usr/lib/filenames/symlink7ok+warn + ln -s ../../.. debian/tmp/usr/lib/filenames/symlink10wrong + + install -d debian/tmp/usr/share/doc-base + install -m 644 debian/doc-base debian/tmp/usr/share/doc-base/filenames + + dpkg-gencontrol -pfilenames -Pdebian/tmp + dpkg --build debian/tmp .. + + install -d debian/filename-games debian/filename-games/DEBIAN + install -d debian/filename-games/usr debian/filename-games/usr/games debian/filename-games/usr/bin + echo '#! /bin/sh' > debian/filename-games/usr/bin/test-game + chmod 755 debian/filename-games/usr/bin/test-game + dpkg-gencontrol -pfilename-games -Pdebian/filename-games + dpkg --build debian/filename-games .. + + install -d debian/more-filename-games debian/more-filename-games/DEBIAN + install -d debian/more-filename-games/usr debian/more-filename-games/usr/games debian/more-filename-games/usr/bin + echo '#! /bin/sh' > debian/more-filename-games/usr/bin/another-test-game + echo '#! /bin/sh' > debian/more-filename-games/usr/games/yet-another-test-game + chmod 755 debian/more-filename-games/usr/bin/another-test-game debian/more-filename-games/usr/games/yet-another-test-game + dpkg-gencontrol -pmore-filename-games -Pdebian/more-filename-games + dpkg --build debian/more-filename-games .. + +binary: binary-arch binary-indep + +.PHONY: build-indep build-arch build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/debian/watch b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/eval/hints b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/eval/hints new file mode 100644 index 00000000..3e3cc43f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/gnome/legacy-filenames/eval/hints @@ -0,0 +1 @@ +filenames (binary): package-installs-into-etc-gconf-schemas [etc/gconf/schemas/test.schema] diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/--lzma b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/--lzma new file mode 100644 index 00000000..5241aaad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/--lzma @@ -0,0 +1,2 @@ +Test file to check that various parts of Lintian correctly handle files with names that look +like options diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/ORIGIN new file mode 100644 index 00000000..5e17f488 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/desktop/icons/files-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/changelog new file mode 100644 index 00000000..0d1f270a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/changelog @@ -0,0 +1,17 @@ +files-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: files-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +files-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: files-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/clean b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/clean new file mode 100644 index 00000000..222b726e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/clean @@ -0,0 +1 @@ +鳥の詩.1 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/control new file mode 100644 index 00000000..fd52b936 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/control @@ -0,0 +1,17 @@ +Source: files-general +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: files-general +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test tags for file paths, names, and modes + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/dirs b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/dirs new file mode 100644 index 00000000..b76fb641 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/dirs @@ -0,0 +1,13 @@ +etc +etc/skel +usr/bin +usr/doc +usr/lib/python3/dist-packages/foo +usr/share/foo +usr/share/fonts/X11/misc +usr/share/glib-2.0/schemas +usr/share/hal +usr/share/man/man1/random +var/catman +var/lock/lintian +var/run/lintian diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/examples b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/examples new file mode 100644 index 00000000..18fb10fa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/examples @@ -0,0 +1 @@ +foo.vcproj diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/install b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/install new file mode 100644 index 00000000..dccb61e8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/install @@ -0,0 +1,18 @@ +lintian-16x16.png usr/share/apps/lintian/icons/hicolor/22x22 +lintian-16x16.png usr/share/icons/hicolor/22x22/apps +lintian-22x22.png usr/share/apps/lintian/icons/hicolor/22x22 +lintian-22x22.png usr/share/apps/lintian/icons/hicolor/20x20 +lintian-16x16.png usr/share/doc/lintian/ +lintian-22x22.png usr/share/games/icons/hicolor/22x22 +lintian-16x16.png usr/share/icons/hicolor/scalable/apps +lintian-22x22.png usr/share/icons/16x16/animations/ +--lzma etc/modprobe.d +lintian.conf etc/modprobe.d +dir usr/share/info +foo.vcproj usr/lib/foo +lintian-lib.conf etc/ld.so.conf.d +php-foo.ini etc/php/7.0/mods-available +types usr/share/mime +mimeinfo.cache usr/share/applications +file-in-new-top-level-dir new-top-level-dir/ +sudotest etc/sudoers.d/ diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/links b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/links new file mode 100644 index 00000000..f3e425da --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/links @@ -0,0 +1 @@ +usr/share/apps/lintian/icons/hicolor/22x22/lintian-22x22.png usr/share/apps/lintian/icons/hicolor/64x64/lintian-64x64.png diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/manpages b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/manpages new file mode 100644 index 00000000..e8af11be --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/manpages @@ -0,0 +1,2 @@ +foo.5 +鳥の詩.1 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/rules new file mode 100755 index 00000000..470b4819 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/rules @@ -0,0 +1,67 @@ +#!/usr/bin/make -f + +tmp := $(CURDIR)/debian/$(shell dh_listpackages) + +%: + dh $@ + +override_dh_install: + dh_install + echo "#fake conf file" > $(tmp)/etc/pam.conf + # true positives + touch $(tmp)/etc/skel/.lintianrc + # false positives + touch $(tmp)/etc/skel/.bashrc + touch $(tmp)/etc/skel/.bash_logout + touch $(tmp)/etc/skel/.profile + touch $(tmp)/etc/skel/.kshrc + touch $(tmp)/etc/skel/.mkshrc + echo "Back-up file" > $(tmp)/usr/share/foo/file~ + # The name of the "binary" is "Tori no Uta" + # If it is ever messed up, it can be restored by + # using something like: + # perl -pe 's/\@FILE\@/\xe9\xb3\xa5\xe3\x81\xae\xe8\xa9\xa9\x0a/' + echo "#!/bin/sh" > $(tmp)/usr/bin/鳥の詩 + chmod +x $(tmp)/usr/bin/鳥の詩 + # Copy the manpage to its correct name so dh_installman can + # find it. + # - d/clean will remove it again + cp -a tnu.1 鳥の詩.1 + touch $(tmp)/usr/doc/FSSTND + touch $(tmp)/usr/share/foo/'*' + touch $(tmp)/usr/share/foo/'ws ' + touch $(tmp)/usr/share/fonts/X11/misc/fonts.dir + touch $(tmp)/usr/share/fonts/X11/misc/fonts.scale + touch $(tmp)/usr/share/fonts/X11/misc/fonts.alias + touch $(tmp)/usr/share/fonts/X11/misc/encodings.dir + touch $(tmp)/usr/share/fonts/X11/misc/false-positive + touch $(tmp)/usr/share/foo/.nfs-fake-tmpfile + touch $(tmp)/usr/share/foo/foo.doctree + touch $(tmp)/usr/share/foo/gschemas.compiled + touch $(tmp)/usr/share/glib-2.0/schemas/gschemas.compiled + touch $(tmp)/usr/share/hal/foo.fdi + touch $(tmp)/usr/lib/python3/dist-packages/test_foo.py + touch $(tmp)/usr/lib/python3/dist-packages/foo/test_falsepositive.py + # If the following line gets messed up, it can be + # restored with something like: + # sed -i 's/@FILE@/bokm\xe5l/' + touch $(tmp)/usr/share/foo/bokml + touch $(tmp)/var/catman/do + +override_dh_fixperms: + dh_fixperms + chmod 755 $(tmp)/usr/share/man/man5/foo.5* + chmod 644 $(tmp)/etc/sudoers.d/* + +override_dh_compress: + dh_compress + # create a .png and .png.gz + gzip -n -1 $(tmp)/usr/share/doc/lintian/lintian-16x16.png + zcat $(tmp)/usr/share/doc/lintian/lintian-16x16.png.gz > \ + $(tmp)/usr/share/doc/lintian/lintian-16x16.png + +override_dh_link: + dh_link + mkdir -p $(tmp)/usr/share/doc/bar + echo "Hallo World" > $(tmp)/usr/share/doc/bar/foo + ln -s ../bar/foo $(tmp)/usr/share/doc/bar/star diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/dir b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/dir new file mode 100644 index 00000000..e465d269 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/dir @@ -0,0 +1,18 @@ +This is the file .../info/dir, which contains the +topmost node of the Info hierarchy, called (dir)Top. +The first time you invoke Info you start off looking at this node. + +File: dir, Node: Top This is the top of the INFO tree + + This (the Directory node) gives a menu of major topics. + Typing "q" exits, "?" lists all Info commands, "d" returns here, + "h" gives a primer for first-timers, + "mEmacs" visits the Emacs manual, etc. + + In Emacs, you can click mouse button 2 on a menu item or cross reference + to select it. + +* Menu: + +Archiving +* Cpio: (cpio). Copy-in-copy-out archiver to tape or disk. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/eval/hints new file mode 100644 index 00000000..36055247 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/eval/hints @@ -0,0 +1,4 @@ +files-general (binary): raster-image-in-scalable-directory [usr/share/icons/hicolor/scalable/apps/lintian-16x16.png] +files-general (binary): icon-size-and-directory-name-mismatch 22x22 [usr/share/apps/lintian/icons/hicolor/64x64/lintian-64x64.png] +files-general (binary): icon-size-and-directory-name-mismatch 16x16 [usr/share/icons/hicolor/22x22/apps/lintian-16x16.png] +files-general (binary): icon-size-and-directory-name-mismatch 16x16 [usr/share/apps/lintian/icons/hicolor/22x22/lintian-16x16.png] diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/file-in-new-top-level-dir b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/file-in-new-top-level-dir new file mode 100644 index 00000000..ae82d423 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/file-in-new-top-level-dir @@ -0,0 +1,2 @@ +Since an empty file triggers "empty-dir" tags; we might as well +test file-in-unusual-dir together with non-standard-toplevel-dir. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/foo.5 b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/foo.5 new file mode 100644 index 00000000..718eae10 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/foo.5 @@ -0,0 +1,5 @@ +.TH FOO "5" +.SH NAME +foo \- file format for foo +.SH DESCRIPTION +This file can store anything. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/foo.vcproj b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/foo.vcproj new file mode 100644 index 00000000..6ec1ca60 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/foo.vcproj @@ -0,0 +1 @@ +Not actually a VC project file. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/lintian-16x16.png b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/lintian-16x16.png new file mode 100644 index 00000000..cd7355d7 Binary files /dev/null and b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/lintian-16x16.png differ diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/lintian-22x22.png b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/lintian-22x22.png new file mode 100644 index 00000000..efc9af08 Binary files /dev/null and b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/lintian-22x22.png differ diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/lintian-lib.conf b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/lintian-lib.conf new file mode 100644 index 00000000..e2b41a82 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/lintian-lib.conf @@ -0,0 +1 @@ +/usr/lib/lintian diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/lintian.conf b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/lintian.conf new file mode 100644 index 00000000..7f6693c3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/lintian.conf @@ -0,0 +1 @@ +Test file which should not be flagged by the modprobe.d checks diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/mimeinfo.cache b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/mimeinfo.cache new file mode 100644 index 00000000..f3067c5a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/mimeinfo.cache @@ -0,0 +1,2 @@ +[MIME Cache] +text/plain=foo-editor.desktop diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/php-foo.ini b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/php-foo.ini new file mode 100644 index 00000000..6a33666d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/php-foo.ini @@ -0,0 +1 @@ +# this style of comments are obsolete diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/sudotest b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/sudotest new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/tnu.1 b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/tnu.1 new file mode 100644 index 00000000..147dc1a9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/tnu.1 @@ -0,0 +1,5 @@ +.TH 鳥の詩 "1" +.SH NAME +鳥の詩 \- command in PATH written in UTF-8 +.SH DESCRIPTION +鳥の詩 (Tori no uta) is not really a useful command. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/types b/packages/debmagic/tests/lintian-parity/checks/desktop/icons/files-general/types new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/4shadow.ttf b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/4shadow.ttf new file mode 100644 index 00000000..780ab936 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/4shadow.ttf @@ -0,0 +1,2 @@ +This isn't actually a font. The current test is based on the file +name and doesn't care. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/ORIGIN new file mode 100644 index 00000000..f497b248 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/desktop/x11/files-fonts + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/debian/changelog new file mode 100644 index 00000000..b8436ed2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/debian/changelog @@ -0,0 +1,17 @@ +files-fonts (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: files-fonts + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +files-fonts (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: files-fonts + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/debian/control b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/debian/control new file mode 100644 index 00000000..bdfca745 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/debian/control @@ -0,0 +1,31 @@ +Source: files-fonts +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no +Homepage: http://lintian.debian.org/ + +Package: files-fonts +Architecture: all +Depends: ${misc:Depends} +Description: Font file checks + Non-font package containing fonts. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: ttf-files-fonts +Section: fonts +Architecture: all +# Due to file-conflict +Conflicts: files-fonts +Depends: ${misc:Depends} +Description: Font file checks (okay) + Font package containing fonts. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/debian/files-fonts.install b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/debian/files-fonts.install new file mode 100644 index 00000000..f3dd0537 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/debian/files-fonts.install @@ -0,0 +1,14 @@ +font.otf usr/share/fonts/truetype +font.ttf usr/share/fonts/truetype +4shadow.ttf usr/share/fonts/truetype +foo.pcf usr/share/fonts/X11/100dpi +foo.pcf usr/share/fonts/X11/75dpi +foo.pcf usr/share/fonts/X11/misc +foo.pcf usr/share/fonts/X11/Type1 +foo.pcf usr/share/fonts/X11/encodings +foo.pcf usr/share/fonts/X11/util +foo.pcf usr/share/fonts/X11/PEX +foo.pcf usr/share/fonts/X11/CID +foo.pcf usr/share/fonts/X11/Speedo +foo.pcf usr/share/fonts/X11/cyrillic +foo.pcf usr/share/fonts/X11/other diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/debian/rules b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/debian/ttf-files-fonts.install b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/debian/ttf-files-fonts.install new file mode 100644 index 00000000..95e5191c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/debian/ttf-files-fonts.install @@ -0,0 +1,4 @@ +font.otf usr/share/fonts/truetype +font.ttf usr/share/fonts/truetype +4shadow.ttf usr/share/fonts/truetype +font.ttf usr/lib/fontpackage diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/debian/ttf-files-fonts.links b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/debian/ttf-files-fonts.links new file mode 100644 index 00000000..f57bbb5d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/debian/ttf-files-fonts.links @@ -0,0 +1 @@ +usr/share/fonts/truetype/font.ttf usr/share/fonts/truetype/dejavusans.ttf diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/eval/hints b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/eval/hints new file mode 100644 index 00000000..ac9d4e0f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/eval/hints @@ -0,0 +1,7 @@ +files-fonts (binary): package-mixes-misc-and-dpi-fonts +files-fonts (binary): package-contains-multiple-dpi-fonts +files-fonts (binary): file-in-unknown-x11-font-directory [usr/share/fonts/X11/other/foo.pcf.gz] +files-fonts (binary): file-in-discouraged-x11-font-directory [usr/share/fonts/X11/cyrillic/foo.pcf.gz] +files-fonts (binary): file-in-discouraged-x11-font-directory [usr/share/fonts/X11/Speedo/foo.pcf.gz] +files-fonts (binary): file-in-discouraged-x11-font-directory [usr/share/fonts/X11/PEX/foo.pcf.gz] +files-fonts (binary): file-in-discouraged-x11-font-directory [usr/share/fonts/X11/CID/foo.pcf.gz] diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/font.otf b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/font.otf new file mode 100644 index 00000000..c118d8d7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/font.otf @@ -0,0 +1 @@ +This is a fake font file. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/font.ttf b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/font.ttf new file mode 100644 index 00000000..c118d8d7 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/font.ttf @@ -0,0 +1 @@ +This is a fake font file. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/foo.pcf b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/foo.pcf new file mode 100644 index 00000000..8a7d9df0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-fonts/foo.pcf @@ -0,0 +1 @@ +I'm not really a font, but I play one on TV. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/--lzma b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/--lzma new file mode 100644 index 00000000..5241aaad --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/--lzma @@ -0,0 +1,2 @@ +Test file to check that various parts of Lintian correctly handle files with names that look +like options diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/ORIGIN new file mode 100644 index 00000000..195a5596 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/desktop/x11/files-general + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/changelog new file mode 100644 index 00000000..0d1f270a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/changelog @@ -0,0 +1,17 @@ +files-general (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: files-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +files-general (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: files-general + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/clean b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/clean new file mode 100644 index 00000000..222b726e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/clean @@ -0,0 +1 @@ +鳥の詩.1 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/control b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/control new file mode 100644 index 00000000..fd52b936 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/control @@ -0,0 +1,17 @@ +Source: files-general +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: files-general +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test tags for file paths, names, and modes + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/dirs b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/dirs new file mode 100644 index 00000000..b76fb641 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/dirs @@ -0,0 +1,13 @@ +etc +etc/skel +usr/bin +usr/doc +usr/lib/python3/dist-packages/foo +usr/share/foo +usr/share/fonts/X11/misc +usr/share/glib-2.0/schemas +usr/share/hal +usr/share/man/man1/random +var/catman +var/lock/lintian +var/run/lintian diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/examples b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/examples new file mode 100644 index 00000000..18fb10fa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/examples @@ -0,0 +1 @@ +foo.vcproj diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/install b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/install new file mode 100644 index 00000000..ea7c1c21 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/install @@ -0,0 +1,21 @@ +lintian-16x16.png usr/share/apps/lintian/icons/hicolor/22x22 +lintian-16x16.png usr/share/icons/hicolor/22x22/apps +lintian-22x22.png usr/share/apps/lintian/icons/hicolor/22x22 +lintian-22x22.png usr/share/apps/lintian/icons/hicolor/20x20 +lintian-16x16.png usr/share/doc/lintian/ +lintian-22x22.png usr/share/games/icons/hicolor/22x22 +lintian-16x16.png usr/share/icons/hicolor/scalable/apps +lintian-22x22.png usr/share/icons/16x16/animations/ +--lzma etc/modprobe.d +lintian.conf etc/modprobe.d +lintian.conf etc/modules-load.d +lintian-install.conf etc/modprobe.d +lintian-install.conf etc/modules-load.d +dir usr/share/info +foo.vcproj usr/lib/foo +lintian-lib.conf etc/ld.so.conf.d +php-foo.ini etc/php/7.0/mods-available +types usr/share/mime +mimeinfo.cache usr/share/applications +file-in-new-top-level-dir new-top-level-dir/ +sudotest etc/sudoers.d/ diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/links b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/links new file mode 100644 index 00000000..f3e425da --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/links @@ -0,0 +1 @@ +usr/share/apps/lintian/icons/hicolor/22x22/lintian-22x22.png usr/share/apps/lintian/icons/hicolor/64x64/lintian-64x64.png diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/manpages b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/manpages new file mode 100644 index 00000000..e8af11be --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/manpages @@ -0,0 +1,2 @@ +foo.5 +鳥の詩.1 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/rules b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/rules new file mode 100755 index 00000000..470b4819 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/rules @@ -0,0 +1,67 @@ +#!/usr/bin/make -f + +tmp := $(CURDIR)/debian/$(shell dh_listpackages) + +%: + dh $@ + +override_dh_install: + dh_install + echo "#fake conf file" > $(tmp)/etc/pam.conf + # true positives + touch $(tmp)/etc/skel/.lintianrc + # false positives + touch $(tmp)/etc/skel/.bashrc + touch $(tmp)/etc/skel/.bash_logout + touch $(tmp)/etc/skel/.profile + touch $(tmp)/etc/skel/.kshrc + touch $(tmp)/etc/skel/.mkshrc + echo "Back-up file" > $(tmp)/usr/share/foo/file~ + # The name of the "binary" is "Tori no Uta" + # If it is ever messed up, it can be restored by + # using something like: + # perl -pe 's/\@FILE\@/\xe9\xb3\xa5\xe3\x81\xae\xe8\xa9\xa9\x0a/' + echo "#!/bin/sh" > $(tmp)/usr/bin/鳥の詩 + chmod +x $(tmp)/usr/bin/鳥の詩 + # Copy the manpage to its correct name so dh_installman can + # find it. + # - d/clean will remove it again + cp -a tnu.1 鳥の詩.1 + touch $(tmp)/usr/doc/FSSTND + touch $(tmp)/usr/share/foo/'*' + touch $(tmp)/usr/share/foo/'ws ' + touch $(tmp)/usr/share/fonts/X11/misc/fonts.dir + touch $(tmp)/usr/share/fonts/X11/misc/fonts.scale + touch $(tmp)/usr/share/fonts/X11/misc/fonts.alias + touch $(tmp)/usr/share/fonts/X11/misc/encodings.dir + touch $(tmp)/usr/share/fonts/X11/misc/false-positive + touch $(tmp)/usr/share/foo/.nfs-fake-tmpfile + touch $(tmp)/usr/share/foo/foo.doctree + touch $(tmp)/usr/share/foo/gschemas.compiled + touch $(tmp)/usr/share/glib-2.0/schemas/gschemas.compiled + touch $(tmp)/usr/share/hal/foo.fdi + touch $(tmp)/usr/lib/python3/dist-packages/test_foo.py + touch $(tmp)/usr/lib/python3/dist-packages/foo/test_falsepositive.py + # If the following line gets messed up, it can be + # restored with something like: + # sed -i 's/@FILE@/bokm\xe5l/' + touch $(tmp)/usr/share/foo/bokml + touch $(tmp)/var/catman/do + +override_dh_fixperms: + dh_fixperms + chmod 755 $(tmp)/usr/share/man/man5/foo.5* + chmod 644 $(tmp)/etc/sudoers.d/* + +override_dh_compress: + dh_compress + # create a .png and .png.gz + gzip -n -1 $(tmp)/usr/share/doc/lintian/lintian-16x16.png + zcat $(tmp)/usr/share/doc/lintian/lintian-16x16.png.gz > \ + $(tmp)/usr/share/doc/lintian/lintian-16x16.png + +override_dh_link: + dh_link + mkdir -p $(tmp)/usr/share/doc/bar + echo "Hallo World" > $(tmp)/usr/share/doc/bar/foo + ln -s ../bar/foo $(tmp)/usr/share/doc/bar/star diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/dir b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/dir new file mode 100644 index 00000000..e465d269 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/dir @@ -0,0 +1,18 @@ +This is the file .../info/dir, which contains the +topmost node of the Info hierarchy, called (dir)Top. +The first time you invoke Info you start off looking at this node. + +File: dir, Node: Top This is the top of the INFO tree + + This (the Directory node) gives a menu of major topics. + Typing "q" exits, "?" lists all Info commands, "d" returns here, + "h" gives a primer for first-timers, + "mEmacs" visits the Emacs manual, etc. + + In Emacs, you can click mouse button 2 on a menu item or cross reference + to select it. + +* Menu: + +Archiving +* Cpio: (cpio). Copy-in-copy-out archiver to tape or disk. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/eval/hints b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/eval/hints new file mode 100644 index 00000000..d60294f4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/eval/hints @@ -0,0 +1,4 @@ +files-general (binary): package-contains-compiled-font-file [usr/share/fonts/X11/misc/fonts.scale] +files-general (binary): package-contains-compiled-font-file [usr/share/fonts/X11/misc/fonts.dir] +files-general (binary): package-contains-compiled-font-file [usr/share/fonts/X11/misc/fonts.alias] +files-general (binary): package-contains-compiled-font-file [usr/share/fonts/X11/misc/encodings.dir] diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/file-in-new-top-level-dir b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/file-in-new-top-level-dir new file mode 100644 index 00000000..ae82d423 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/file-in-new-top-level-dir @@ -0,0 +1,2 @@ +Since an empty file triggers "empty-dir" tags; we might as well +test file-in-unusual-dir together with non-standard-toplevel-dir. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/foo.5 b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/foo.5 new file mode 100644 index 00000000..718eae10 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/foo.5 @@ -0,0 +1,5 @@ +.TH FOO "5" +.SH NAME +foo \- file format for foo +.SH DESCRIPTION +This file can store anything. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/foo.vcproj b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/foo.vcproj new file mode 100644 index 00000000..6ec1ca60 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/foo.vcproj @@ -0,0 +1 @@ +Not actually a VC project file. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/lintian-16x16.png b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/lintian-16x16.png new file mode 100644 index 00000000..cd7355d7 Binary files /dev/null and b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/lintian-16x16.png differ diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/lintian-22x22.png b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/lintian-22x22.png new file mode 100644 index 00000000..efc9af08 Binary files /dev/null and b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/lintian-22x22.png differ diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/lintian-install.conf b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/lintian-install.conf new file mode 100644 index 00000000..d47e02f3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/lintian-install.conf @@ -0,0 +1,2 @@ +install modulename command +remove modulename command diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/lintian-lib.conf b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/lintian-lib.conf new file mode 100644 index 00000000..e2b41a82 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/lintian-lib.conf @@ -0,0 +1 @@ +/usr/lib/lintian diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/lintian.conf b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/lintian.conf new file mode 100644 index 00000000..7f6693c3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/lintian.conf @@ -0,0 +1 @@ +Test file which should not be flagged by the modprobe.d checks diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/mimeinfo.cache b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/mimeinfo.cache new file mode 100644 index 00000000..f3067c5a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/mimeinfo.cache @@ -0,0 +1,2 @@ +[MIME Cache] +text/plain=foo-editor.desktop diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/php-foo.ini b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/php-foo.ini new file mode 100644 index 00000000..6a33666d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/php-foo.ini @@ -0,0 +1 @@ +# this style of comments are obsolete diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/sudotest b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/sudotest new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/tnu.1 b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/tnu.1 new file mode 100644 index 00000000..147dc1a9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/tnu.1 @@ -0,0 +1,5 @@ +.TH 鳥の詩 "1" +.SH NAME +鳥の詩 \- command in PATH written in UTF-8 +.SH DESCRIPTION +鳥の詩 (Tori no uta) is not really a useful command. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/types b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/files-general/types new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/ORIGIN new file mode 100644 index 00000000..1886ae61 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/debian/changelog new file mode 100644 index 00000000..239cab65 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/debian/changelog @@ -0,0 +1,17 @@ +scripts-missing-call-to-update-fonts-unrel (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: scripts-missing-call-to-update-fonts-unrel + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +scripts-missing-call-to-update-fonts-unrel (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: scripts-missing-call-to-update-fonts-unrel + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/debian/control b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/debian/control new file mode 100644 index 00000000..c092fefa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/debian/control @@ -0,0 +1,17 @@ +Source: scripts-missing-call-to-update-fonts-unrel +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: scripts-missing-call-to-update-fonts-unrel +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check missing calls to update-fonts (false-positives) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/debian/install b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/debian/install new file mode 100644 index 00000000..46902065 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/debian/install @@ -0,0 +1 @@ +foo.afm usr/share/fonts/X11/Type1 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/debian/postinst new file mode 100644 index 00000000..ea5884d0 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/debian/postinst @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +if false +then + update-fonts-dir manual + update-fonts-scale manual +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/debian/rules b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/eval/hints b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/eval/hints new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/eval/hints @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/foo.afm b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts-unrel/foo.afm new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/ORIGIN new file mode 100644 index 00000000..c22db60d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/debian/changelog new file mode 100644 index 00000000..8403fd3e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/debian/changelog @@ -0,0 +1,17 @@ +scripts-missing-call-to-update-fonts (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: scripts-missing-call-to-update-fonts + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +scripts-missing-call-to-update-fonts (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: scripts-missing-call-to-update-fonts + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/debian/control b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/debian/control new file mode 100644 index 00000000..bc6d370a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/debian/control @@ -0,0 +1,17 @@ +Source: scripts-missing-call-to-update-fonts +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: scripts-missing-call-to-update-fonts +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check missing calls to update-fonts + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/debian/install b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/debian/install new file mode 100644 index 00000000..46902065 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/debian/install @@ -0,0 +1 @@ +foo.afm usr/share/fonts/X11/Type1 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/debian/postinst b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/debian/postinst new file mode 100644 index 00000000..72a8dfb5 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/debian/postinst @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e + +if false +then + echo "Deliberately not including DEBHELPER snippet." +fi diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/debian/rules b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/eval/hints b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/eval/hints new file mode 100644 index 00000000..163e983d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/eval/hints @@ -0,0 +1 @@ +scripts-missing-call-to-update-fonts (binary): missing-call-to-update-fonts usr/share/fonts/X11/Type1/foo.afm [postinst] diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/foo.afm b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/font/update/scripts-missing-call-to-update-fonts/foo.afm new file mode 100644 index 00000000..e69de29b diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/ORIGIN new file mode 100644 index 00000000..da155d90 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/desktop/x11/legacy-filenames + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/data/ .tif b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/data/ .tif new file mode 100644 index 00000000..07fd9140 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/data/ .tif @@ -0,0 +1,2 @@ +This filename was inspired by the ".tif used by fnlib. The real package +uses space.tif. diff --git "a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/data/\".tif" "b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/data/\".tif" new file mode 100644 index 00000000..e0057757 --- /dev/null +++ "b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/data/\".tif" @@ -0,0 +1 @@ +This filename is really used, by fnlib. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/data/Maelstrom Sound b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/data/Maelstrom Sound new file mode 100644 index 00000000..41104109 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/data/Maelstrom Sound @@ -0,0 +1 @@ +This filename occurs in the maelstrom package. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/debian/changelog new file mode 100644 index 00000000..f501faaa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/debian/changelog @@ -0,0 +1,78 @@ +filenames (1:12-0.1) unstable; urgency=low + + * /me is doing a correct NMU of this package, bumping the epoch too. + + -- Jeroen van Wolffelaar Sun, 18 Apr 2004 02:04:39 +0200 + +filenames (11) unstable; urgency=low + + * Add a README.macos. + + -- Marc 'HE' Brockschmidt Mon, 12 Apr 2004 23:35:24 +0200 + +filenames (10) unstable; urgency=low + + * Some new files to check the checks for the use of /usr/*/X11 and + /usr/X11R6/*. + + -- Marc 'HE' Brockschmidt Sun, 11 Apr 2004 17:35:20 +0200 + +filenames (9) unstable; urgency=low + + * Add a two *.ali files, one with the right permission, one with + the more common, but false one. + + -- Marc 'HE' Brockschmidt Sun, 11 Apr 2004 00:18:16 +0200 + +filenames (8) unstable; urgency=low + + * Add a real ancient file + + -- Frank Lichtenheld Thu, 8 Apr 2004 22:22:40 +0200 + +filenames (7) unstable; urgency=low + + * Add a dozen symlinks, some correct, some not + + -- Jeroen van Wolffelaar Fri, 27 Feb 2004 01:28:42 +0100 + +filenames (6) unstable; urgency=low + + * Add perl files to check if + package-installs-nonbinary-perl-in-usr-lib-perl5 is correctly + issued even after attempting to suppress it in some cases + + -- Frank Lichtenheld Fri, 27 Feb 2004 00:49:44 +0100 + +filenames (5) unstable; urgency=low + + * Added check for too long symlink + + -- Sean 'Shaleh' Perry Wed, 3 Jan 2001 13:20:31 -0800 + +filenames (4) unstable; urgency=low + + * Add /usr/lib/menu/menu file to test the bad-menu-file-name tag. + * Add /usr/lib/menu/README to test the new execption for it. + + -- Richard Braakman Thu, 22 Oct 1998 15:42:52 +0200 + +filenames (3) unstable; urgency=low + + * Don't rely on the installer's umask. + + -- Richard Braakman Thu, 20 Aug 1998 12:45:47 +0200 + +filenames (2) unstable; urgency=low + + * Noted more limitations on what filenames lintian handles. + * Added Changes.gz in /usr/doc/filenames and made a symlink from changelog.gz + to Changes.gz. + + -- Richard Braakman Sat, 4 Jul 1998 15:46:11 +0200 + +filenames (1) unstable; urgency=low + + * Initial version + + -- Richard Braakman Sat, 4 Jul 1998 15:25:01 +0200 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/debian/control b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/debian/control new file mode 100644 index 00000000..1ff9c503 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/debian/control @@ -0,0 +1,42 @@ +Source: filenames +Maintainer: Lintian Maintainer +Standards-Version: 3.1.1 +Rules-Requires-Root: binary-targets + +Package: filenames +Architecture: any +Description: see how lintian reacts to weird filenames + This package contains files with the most evil names I could find, + except for ones that lintian is explicitly not designed to handle. + . + Lintian does not handle filenames containing newlines, or filenames + that contain the strings " link to ", " -> ", or ": ". The last one + is used as a separator by the file command, the others are used as + separators by tar. + . + Lintian also does not handle filenames that contain backslashes, or + other characters that are mangled by tar's -tv output. + +Package: filename-games +Architecture: all +Depends: filenames +Section: games +Description: Test game filename/location checks + This package contains files with slightly less evil names than + filenames. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + +Package: more-filename-games +Architecture: all +Depends: filenames, filename-games +Section: games +Priority: optional +Description: More test for game filename/location checks + This package contains no evil names, only evil locations. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/debian/doc-base b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/debian/doc-base new file mode 100644 index 00000000..e5a611ba --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/debian/doc-base @@ -0,0 +1,11 @@ +Document: testing +Title: Working doc-base control file +Author: Russ Allbery +Abstract: This control file ensures that we don't get false positives for + correct doc-base files. + . + There isn't anything wrong with this one. +Section: Education + +Format: Text +Files: /usr/share/doc/filenames/README.macosx diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/debian/rules b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/debian/rules new file mode 100755 index 00000000..fd86970b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/debian/rules @@ -0,0 +1,213 @@ +#!/usr/bin/make -f + +# Copyright (C) 1998 Richard Braakman +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, you can find it on the World Wide +# Web at https://www.gnu.org/copyleft/gpl.html, or write to the Free +# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +# MA 02110-1301, USA. + +VENDORARCH := $(shell perl -MConfig -wE'say substr($$Config{vendorarch},1)') + +clean: + mkdir -p .svn CVS "{arch}" .arch-ids .bzr + touch data/.cvsignore data/svn-commit.tmp data/svk-commitsEr9P.tmp + touch data/.arch-inventory + touch 'data/.#Maelstrom Sound.1.1.1' 'data/Maelstrom Sounce.r121' + touch 'data/Maelstrom Sound.mine' + touch "data/'\\ " + touch filenames.c~ + +build-arch: + +build-indep: + +build: build-arch build-indep + + +binary-arch: + +binary-indep: + install -d debian/tmp/DEBIAN + cp -a data debian/tmp/files + chmod -R go=rX debian/tmp/files + + install -d debian/tmp/usr/lib/filenames + install -m 555 -d debian/tmp/usr/lib/filenames/readonly + touch debian/tmp/usr/lib/filenames/readonly/test + + install -d debian/tmp/usr/lib/menu + install -d debian/tmp/usr/share/menu + touch debian/tmp/usr/lib/menu/README + touch debian/tmp/usr/share/menu/README + touch debian/tmp/usr/lib/menu/menu + touch debian/tmp/usr/share/menu/menu + chmod 644 debian/tmp/usr/lib/menu/* + + install -d debian/tmp/$(VENDORARCH)/foo + mkdir debian/tmp/$(VENDORARCH)/.svn + mkdir debian/tmp/$(VENDORARCH)/CVS + mkdir "debian/tmp/$(VENDORARCH)/{arch}" + mkdir debian/tmp/$(VENDORARCH)/.arch-ids + mkdir debian/tmp/$(VENDORARCH)/.bzr + mkdir debian/tmp/$(VENDORARCH)/.be + mkdir debian/tmp/$(VENDORARCH)/.ditrack + install -d debian/tmp/usr/share/perl5 + echo foo > debian/tmp/$(VENDORARCH)/foo/.gitignore + echo foo > debian/tmp/$(VENDORARCH)/foo/.hgignore + echo foo > debian/tmp/$(VENDORARCH)/foo/.hgtags + echo foo > debian/tmp/$(VENDORARCH)/foo/.hg_archival.txt + + touch debian/tmp/$(VENDORARCH)/foo/.packlist + chmod 644 debian/tmp/$(VENDORARCH)/foo/.packlist + touch debian/tmp/$(VENDORARCH)/foo/bar.pm + TZ=UTC touch -t 197501010101 debian/tmp/$(VENDORARCH)/foo/ancient.pm + chmod 644 debian/tmp/$(VENDORARCH)/foo/bar.pm + + install -d debian/tmp/usr/share/pixmaps + install -d debian/tmp/usr/share/pixmaps/foo + touch debian/tmp/usr/share/pixmaps/license.jpeg + touch debian/tmp/usr/share/pixmaps/licence.jpg + touch debian/tmp/usr/share/pixmaps/copying.xpm + touch debian/tmp/usr/share/pixmaps/foo/COPYING.svg + touch debian/tmp/usr/share/pixmaps/foo/copying.png + touch debian/tmp/usr/share/pixmaps/license.txt + touch debian/tmp/usr/share/pixmaps/license.foo + touch debian/tmp/usr/share/pixmaps/COPYING + + install -d debian/tmp/usr/share/linda/overrides + echo 'foo' > debian/tmp/usr/share/linda/overrides/filenames + + install -d debian/tmp/usr/share/doc/filenames + touch debian/tmp/usr/share/doc/filenames/README.macosx + + echo foo > debian/tmp/usr/share/doc/filenames/bokmål + echo foo > debian/tmp/usr/share/doc/filenames/bokm\\ål + echo foo > debian/tmp/usr/share/doc/filenames/bokml + echo foo > debian/tmp/usr/share/doc/filenames/bokm\\l + + echo foo > debian/tmp/usr/share/doc/filenames/Thumbs.db + echo foo > debian/tmp/usr/share/doc/filenames/.DS_Store + echo foo > debian/tmp/usr/share/doc/filenames/._NEWS.Debian + + touch debian/tmp/usr/share/doc/filenames/news.debian + gzip -n debian/tmp/usr/share/doc/filenames/news.debian + touch debian/tmp/usr/share/doc/filenames/NEWS.Debian + + echo foo > debian/tmp/usr/share/doc/filenames/link-one + ln debian/tmp/usr/share/doc/filenames/link-one \ + debian/tmp/usr/share/doc/filenames/link-two + + install -d debian/tmp/usr/share/doc/filenames/examples + touch debian/tmp/usr/share/doc/filenames/examples/__init__.py + touch debian/tmp/usr/share/doc/filenames/examples/very_interesting_example + touch debian/tmp/usr/share/doc/filenames/examples/very_interesting_example2 + gzip -n debian/tmp/usr/share/doc/filenames/examples/very_interesting_example2 + + install -d debian/tmp/usr/lib/ada/adalib/ + touch debian/tmp/usr/lib/ada/adalib/test.ali debian/tmp/usr/lib/ada/adalib/test2.ali + chmod 0644 debian/tmp/usr/lib/ada/adalib/test.ali + chmod 0444 debian/tmp/usr/lib/ada/adalib/test2.ali + + install -d debian/tmp/usr/bin/X11/ + touch debian/tmp/usr/bin/X11/testxbin + install -d debian/tmp/usr/X11R6/bin + touch debian/tmp/usr/X11R6/bin/testxbin2 + install -d debian/tmp/usr/include/X11 + touch debian/tmp/usr/include/X11/foo.h + + install -d debian/tmp/usr/bin/mh + touch debian/tmp/usr/bin/mh/read + chmod 755 debian/tmp/usr/bin/mh/read + install -d debian/tmp/usr/bin/bin + touch debian/tmp/usr/bin/bin/bad + chmod 755 debian/tmp/usr/bin/bin/bad + + install -m 644 debian/changelog debian/tmp/usr/share/doc/filenames/Changes + gzip -n -9 debian/tmp/usr/share/doc/filenames/Changes + ln -s Changes.gz debian/tmp/usr/share/doc/filenames/changelog.gz + + install -d debian/tmp/var/www + echo foo > debian/tmp/var/www/foo + + install -d debian/tmp/srv/foo + touch debian/tmp/srv/foo/bar + install -d debian/tmp/opt/foo + touch debian/tmp/opt/foo/bar + + install -d debian/tmp/etc/gconf/schemas + touch debian/tmp/etc/gconf/schemas/test.schema + + install -d debian/tmp/usr/lib/sgml + touch debian/tmp/usr/lib/sgml/package + + install -d debian/tmp/usr/share/gnome/apps/System + touch debian/tmp/usr/share/gnome/apps/System/foo.desktop + + install -d debian/tmp/usr/share/filenames + touch debian/tmp/usr/share/filenames/jquery.js + touch debian/tmp/usr/share/filenames/jquery.lite.js + touch debian/tmp/usr/share/filenames/jquery.min.js + touch debian/tmp/usr/share/filenames/jquery.pack.js + touch debian/tmp/usr/share/filenames/mochikit.js + touch debian/tmp/usr/share/filenames/prototype-1.2.3.4.js + touch debian/tmp/usr/share/filenames/prototype.js + touch debian/tmp/usr/share/filenames/prototype.js.gz + touch debian/tmp/usr/share/filenames/scriptaculous.js + touch debian/tmp/usr/share/filenames/yahoo-dom-event.js + touch debian/tmp/usr/share/filenames/yahoo-min.js + + ln -s '../filenames/doc/version6.txt.gz' debian/tmp/usr/share/doc/filenames/version.txt.gz + ln -s ../../share/symlink debian/tmp/usr/lib/filenames/symlink1ok + ln -s ../../../etc/symlink debian/tmp/usr/lib/filenames/symlink1wrong + ln -s ../../../../etc/symlink debian/tmp/usr/lib/filenames/symlink2wrong + ln -s /etc/symlink debian/tmp/usr/lib/filenames/symlink2ok + ln -s /usr/lib/filenames/symlink2 debian/tmp/usr/lib/filenames/symlink3wrong + ln -s test debian/tmp/usr/lib/filenames/symlink3ok + ln -s ../filenames/symlink2 debian/tmp/usr/lib/filenames/symlink4wrong + ln -s ../menu/../somethingelse debian/tmp/usr/lib/filenames/symlink5wrong + ln -s ../menu/somethingelse debian/tmp/usr/lib/filenames/symlink4ok + ln -s ./file4 debian/tmp/usr/lib/filenames/symlink6wrong + ln -s ../menu/./something debian/tmp/usr/lib/filenames/symlink7wrong + ln -s ../menu//something debian/tmp/usr/lib/filenames/symlink8wrong + ln -s ../menu/something/ debian/tmp/usr/lib/filenames/symlink9wrong + ln -s .. debian/tmp/usr/lib/filenames/symlink5ok+warn + ln -s . debian/tmp/usr/lib/filenames/symlink6ok+warn + ln -s / debian/tmp/usr/lib/filenames/symlink7ok+warn + ln -s ../../.. debian/tmp/usr/lib/filenames/symlink10wrong + + install -d debian/tmp/usr/share/doc-base + install -m 644 debian/doc-base debian/tmp/usr/share/doc-base/filenames + + dpkg-gencontrol -pfilenames -Pdebian/tmp + dpkg --build debian/tmp .. + + install -d debian/filename-games debian/filename-games/DEBIAN + install -d debian/filename-games/usr debian/filename-games/usr/games debian/filename-games/usr/bin + echo '#! /bin/sh' > debian/filename-games/usr/bin/test-game + chmod 755 debian/filename-games/usr/bin/test-game + dpkg-gencontrol -pfilename-games -Pdebian/filename-games + dpkg --build debian/filename-games .. + + install -d debian/more-filename-games debian/more-filename-games/DEBIAN + install -d debian/more-filename-games/usr debian/more-filename-games/usr/games debian/more-filename-games/usr/bin + echo '#! /bin/sh' > debian/more-filename-games/usr/bin/another-test-game + echo '#! /bin/sh' > debian/more-filename-games/usr/games/yet-another-test-game + chmod 755 debian/more-filename-games/usr/bin/another-test-game debian/more-filename-games/usr/games/yet-another-test-game + dpkg-gencontrol -pmore-filename-games -Pdebian/more-filename-games + dpkg --build debian/more-filename-games .. + +binary: binary-arch binary-indep + +.PHONY: build-indep build-arch build binary-arch binary-indep binary clean diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/debian/watch b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/eval/hints b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/eval/hints new file mode 100644 index 00000000..99801581 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/desktop/x11/legacy-filenames/eval/hints @@ -0,0 +1,3 @@ +filenames (binary): package-installs-file-to-usr-x11r6 [usr/X11R6/bin/testxbin2] +filenames (binary): package-installs-file-to-usr-x11r6 [usr/X11R6/bin/] +filenames (binary): package-installs-file-to-usr-x11r6 [usr/X11R6/] diff --git a/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-fixme-placeholders/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-fixme-placeholders/ORIGIN new file mode 100644 index 00000000..1180af29 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-fixme-placeholders/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/dh-make/cruft-fixme-placeholders + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-fixme-placeholders/debian/README.source b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-fixme-placeholders/debian/README.source new file mode 100644 index 00000000..f4b77099 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-fixme-placeholders/debian/README.source @@ -0,0 +1,5 @@ +cruft-fixme-placeholders for Debian +----------------------------------- + +FIXME: A reminder to do something +FIX_ME: npm2deb uses underscores diff --git a/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-fixme-placeholders/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-fixme-placeholders/debian/changelog new file mode 100644 index 00000000..bb05fdab --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-fixme-placeholders/debian/changelog @@ -0,0 +1,17 @@ +cruft-fixme-placeholders (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-fixme-placeholders + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +cruft-fixme-placeholders (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-fixme-placeholders + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-fixme-placeholders/debian/control b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-fixme-placeholders/debian/control new file mode 100644 index 00000000..a5ec4d95 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-fixme-placeholders/debian/control @@ -0,0 +1,22 @@ +Source: cruft-fixme-placeholders +Priority: optional +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Rules-Requires-Root: no + +Package: cruft-fixme-placeholders +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for placeholders in various maintainer scripts + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + FIXME: This line should be detected by Lintian. + . + This line shouldn't be detected as it has a quoted "FIXME". + . + FIXME: This mixed "FIXME" line should still be detected though. diff --git a/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-fixme-placeholders/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-fixme-placeholders/debian/copyright new file mode 100644 index 00000000..6bb2c0ed --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-fixme-placeholders/debian/copyright @@ -0,0 +1,8 @@ +This is part of the testsuite of lintian. See the file debian/copyright +in the lintian source directory for more details. + +Insofar as this is copyrightable, it is: + + Copyright 2017 Chris Lamb + +FIXME: Lintian should detect this text. diff --git a/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-fixme-placeholders/debian/copyright_hints b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-fixme-placeholders/debian/copyright_hints new file mode 100644 index 00000000..de8f9160 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-fixme-placeholders/debian/copyright_hints @@ -0,0 +1 @@ +FIXME: This file should be ignored. diff --git a/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-fixme-placeholders/debian/rules b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-fixme-placeholders/debian/rules new file mode 100644 index 00000000..975a857c --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-fixme-placeholders/debian/rules @@ -0,0 +1,5 @@ +#!/usr/bin/make -f + +%: + # FIXME: Something + dh $@ diff --git a/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-fixme-placeholders/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-fixme-placeholders/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-fixme-placeholders/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-fixme-placeholders/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-fixme-placeholders/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-fixme-placeholders/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-fixme-placeholders/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-fixme-placeholders/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-fixme-placeholders/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-fixme-placeholders/eval/hints b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-fixme-placeholders/eval/hints new file mode 100644 index 00000000..9d6298be --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-fixme-placeholders/eval/hints @@ -0,0 +1,6 @@ +cruft-fixme-placeholders (source): file-contains-fixme-placeholder FIX_ME [debian/README.source:5] +cruft-fixme-placeholders (source): file-contains-fixme-placeholder FIXME [debian/rules:4] +cruft-fixme-placeholders (source): file-contains-fixme-placeholder FIXME [debian/copyright:8] +cruft-fixme-placeholders (source): file-contains-fixme-placeholder FIXME [debian/control:22] +cruft-fixme-placeholders (source): file-contains-fixme-placeholder FIXME [debian/control:18] +cruft-fixme-placeholders (source): file-contains-fixme-placeholder FIXME [debian/README.source:4] diff --git a/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-readme-source/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-readme-source/ORIGIN new file mode 100644 index 00000000..06f4b17b --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-readme-source/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/dh-make/cruft-readme-source + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-readme-source/debian/README.source b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-readme-source/debian/README.source new file mode 100644 index 00000000..5fdbe79a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-readme-source/debian/README.source @@ -0,0 +1,5 @@ +cruft-readme-source for Debian +------------------------------ + + diff --git a/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-readme-source/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-readme-source/debian/changelog new file mode 100644 index 00000000..967761ed --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-readme-source/debian/changelog @@ -0,0 +1,17 @@ +cruft-readme-source (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-readme-source + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +cruft-readme-source (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-readme-source + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-readme-source/debian/control b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-readme-source/debian/control new file mode 100644 index 00000000..4212497e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-readme-source/debian/control @@ -0,0 +1,17 @@ +Source: cruft-readme-source +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: cruft-readme-source +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Check for cruft in README.source + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-readme-source/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-readme-source/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-readme-source/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-readme-source/debian/rules b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-readme-source/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-readme-source/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-readme-source/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-readme-source/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-readme-source/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-readme-source/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-readme-source/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-readme-source/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-readme-source/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-readme-source/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-readme-source/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-readme-source/eval/hints b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-readme-source/eval/hints new file mode 100644 index 00000000..c44d576d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/dh-make/cruft-readme-source/eval/hints @@ -0,0 +1 @@ +cruft-readme-source (source): readme-source-is-dh_make-template [debian/README.source] diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/ORIGIN new file mode 100644 index 00000000..7a5b5280 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/documentation/devhelp/standard/version-1 + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/debian/changelog new file mode 100644 index 00000000..d135410e --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/debian/changelog @@ -0,0 +1,17 @@ +version-1 (1.0-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: version-1 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +version-1 (0.0.1-1) unstable; urgency=low + + * Lintian Test Suite. + * Test: version-1 + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/debian/control b/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/debian/control new file mode 100644 index 00000000..d0c3b8aa --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/debian/control @@ -0,0 +1,17 @@ +Source: version-1 +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: version-1 +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Ships a Devhelp index file that follows version 1. + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/debian/install b/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/debian/install new file mode 100644 index 00000000..1f6260c4 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/debian/install @@ -0,0 +1 @@ +devhelp/index.devhelp usr/share/devhelp/books/this-test/ diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/debian/rules b/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/debian/upstream/metadata b/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/debian/upstream/metadata new file mode 100644 index 00000000..948ec520 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/debian/upstream/metadata @@ -0,0 +1,2 @@ +Contact: John Doe +Name: foo \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/debian/watch b/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/debian/watch new file mode 100644 index 00000000..81615fd3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/debian/watch @@ -0,0 +1,2 @@ +# Empty watch file, except for version +version=3 diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/devhelp/index.devhelp b/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/devhelp/index.devhelp new file mode 100644 index 00000000..c40b9f10 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/devhelp/index.devhelp @@ -0,0 +1 @@ +MEANINGFUL CONTENTS diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/eval/hints b/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/eval/hints new file mode 100644 index 00000000..81e14983 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/devhelp/standard/version-1/eval/hints @@ -0,0 +1 @@ +version-1 (binary): old-devhelp-standard [usr/share/devhelp/books/this-test/index.devhelp] diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/ORIGIN new file mode 100644 index 00000000..dd51671f --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/documentation/doxygen/cruft-doxygen-documentation + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/debian/changelog new file mode 100644 index 00000000..d456cbee --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/debian/changelog @@ -0,0 +1,17 @@ +cruft-doxygen-documentation (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-doxygen-documentation + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +cruft-doxygen-documentation (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: cruft-doxygen-documentation + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/debian/control b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/debian/control new file mode 100644 index 00000000..e6cad595 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/debian/control @@ -0,0 +1,17 @@ +Source: cruft-doxygen-documentation +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: cruft-doxygen-documentation +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Detect doxygen documentation + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/debian/rules b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/eval/hints b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/eval/hints new file mode 100644 index 00000000..0f18d7a3 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/eval/hints @@ -0,0 +1,4 @@ +cruft-doxygen-documentation (source): source-contains-prebuilt-doxygen-documentation [src/doc/latex/] +cruft-doxygen-documentation (source): source-contains-prebuilt-doxygen-documentation [src/doc/html/index.html] +cruft-doxygen-documentation (source): source-contains-prebuilt-doxygen-documentation [src/doc/html/files.html] +cruft-doxygen-documentation (source): source-contains-prebuilt-doxygen-documentation [src/doc/html/] diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/src/Doxyfile b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/src/Doxyfile new file mode 100644 index 00000000..2807c212 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/src/Doxyfile @@ -0,0 +1,2363 @@ +# Doxyfile 1.8.7 + +# This file describes the settings to be used by the documentation system +# doxygen (www.doxygen.org) for a project. +# +# All text after a double hash (##) is considered a comment and is placed in +# front of the TAG it is preceding. +# +# All text after a single hash (#) is considered a comment and will be ignored. +# The format is: +# TAG = value [value, ...] +# For lists, items can also be appended using: +# TAG += value [value, ...] +# Values that contain spaces should be placed between quotes (\" \"). + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- + +# This tag specifies the encoding used for all characters in the config file +# that follow. The default is UTF-8 which is also the encoding used for all text +# before the first occurrence of this tag. Doxygen uses libiconv (or the iconv +# built into libc) for the transcoding. See http://www.gnu.org/software/libiconv +# for the list of possible encodings. +# The default value is: UTF-8. + +DOXYFILE_ENCODING = UTF-8 + +# The PROJECT_NAME tag is a single word (or a sequence of words surrounded by +# double-quotes, unless you are using Doxywizard) that should identify the +# project for which the documentation is generated. This name is used in the +# title of most generated pages and in a few other places. +# The default value is: My Project. + +PROJECT_NAME = example + +# The PROJECT_NUMBER tag can be used to enter a project or revision number. This +# could be handy for archiving the generated documentation or if some version +# control system is used. + +PROJECT_NUMBER = + +# Using the PROJECT_BRIEF tag one can provide an optional one line description +# for a project that appears at the top of each page and should give viewer a +# quick idea about the purpose of the project. Keep the description short. + +PROJECT_BRIEF = + +# With the PROJECT_LOGO tag one can specify an logo or icon that is included in +# the documentation. The maximum height of the logo should not exceed 55 pixels +# and the maximum width should not exceed 200 pixels. Doxygen will copy the logo +# to the output directory. + +PROJECT_LOGO = + +# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path +# into which the generated documentation will be written. If a relative path is +# entered, it will be relative to the location where doxygen was started. If +# left blank the current directory will be used. + +OUTPUT_DIRECTORY = doc + +# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create 4096 sub- +# directories (in 2 levels) under the output directory of each output format and +# will distribute the generated files over these directories. Enabling this +# option can be useful when feeding doxygen a huge amount of source files, where +# putting all generated files in the same directory would otherwise causes +# performance problems for the file system. +# The default value is: NO. + +CREATE_SUBDIRS = YES + +# If the ALLOW_UNICODE_NAMES tag is set to YES, doxygen will allow non-ASCII +# characters to appear in the names of generated files. If set to NO, non-ASCII +# characters will be escaped, for example _xE3_x81_x84 will be used for Unicode +# U+3044. +# The default value is: NO. + +ALLOW_UNICODE_NAMES = YES + +# The OUTPUT_LANGUAGE tag is used to specify the language in which all +# documentation generated by doxygen is written. Doxygen will use this +# information to generate all constant output in the proper language. +# Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Catalan, Chinese, +# Chinese-Traditional, Croatian, Czech, Danish, Dutch, English (United States), +# Esperanto, Farsi (Persian), Finnish, French, German, Greek, Hungarian, +# Indonesian, Italian, Japanese, Japanese-en (Japanese with English messages), +# Korean, Korean-en (Korean with English messages), Latvian, Lithuanian, +# Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese, Romanian, Russian, +# Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish, Swedish, Turkish, +# Ukrainian and Vietnamese. +# The default value is: English. + +OUTPUT_LANGUAGE = English + +# If the BRIEF_MEMBER_DESC tag is set to YES doxygen will include brief member +# descriptions after the members that are listed in the file and class +# documentation (similar to Javadoc). Set to NO to disable this. +# The default value is: YES. + +BRIEF_MEMBER_DESC = YES + +# If the REPEAT_BRIEF tag is set to YES doxygen will prepend the brief +# description of a member or function before the detailed description +# +# Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the +# brief descriptions will be completely suppressed. +# The default value is: YES. + +REPEAT_BRIEF = YES + +# This tag implements a quasi-intelligent brief description abbreviator that is +# used to form the text in various listings. Each string in this list, if found +# as the leading text of the brief description, will be stripped from the text +# and the result, after processing the whole list, is used as the annotated +# text. Otherwise, the brief description is used as-is. If left blank, the +# following values are used ($name is automatically replaced with the name of +# the entity):The $name class, The $name widget, The $name file, is, provides, +# specifies, contains, represents, a, an and the. + +ABBREVIATE_BRIEF = "The $name class" \ + "The $name widget" \ + "The $name file" \ + is \ + provides \ + specifies \ + contains \ + represents \ + a \ + an \ + the + +# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then +# doxygen will generate a detailed section even if there is only a brief +# description. +# The default value is: NO. + +ALWAYS_DETAILED_SEC = NO + +# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all +# inherited members of a class in the documentation of that class as if those +# members were ordinary class members. Constructors, destructors and assignment +# operators of the base classes will not be shown. +# The default value is: NO. + +INLINE_INHERITED_MEMB = NO + +# If the FULL_PATH_NAMES tag is set to YES doxygen will prepend the full path +# before files name in the file list and in the header files. If set to NO the +# shortest path that makes the file name unique will be used +# The default value is: YES. + +FULL_PATH_NAMES = YES + +# The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path. +# Stripping is only done if one of the specified strings matches the left-hand +# part of the path. The tag can be used to show relative paths in the file list. +# If left blank the directory from which doxygen is run is used as the path to +# strip. +# +# Note that you can specify absolute paths here, but also relative paths, which +# will be relative from the directory where doxygen is started. +# This tag requires that the tag FULL_PATH_NAMES is set to YES. + +STRIP_FROM_PATH = + +# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the +# path mentioned in the documentation of a class, which tells the reader which +# header file to include in order to use a class. If left blank only the name of +# the header file containing the class definition is used. Otherwise one should +# specify the list of include paths that are normally passed to the compiler +# using the -I flag. + +STRIP_FROM_INC_PATH = + +# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but +# less readable) file names. This can be useful is your file systems doesn't +# support long names like on DOS, Mac, or CD-ROM. +# The default value is: NO. + +SHORT_NAMES = NO + +# If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the +# first line (until the first dot) of a Javadoc-style comment as the brief +# description. If set to NO, the Javadoc-style will behave just like regular Qt- +# style comments (thus requiring an explicit @brief command for a brief +# description.) +# The default value is: NO. + +JAVADOC_AUTOBRIEF = NO + +# If the QT_AUTOBRIEF tag is set to YES then doxygen will interpret the first +# line (until the first dot) of a Qt-style comment as the brief description. If +# set to NO, the Qt-style will behave just like regular Qt-style comments (thus +# requiring an explicit \brief command for a brief description.) +# The default value is: NO. + +QT_AUTOBRIEF = NO + +# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a +# multi-line C++ special comment block (i.e. a block of //! or /// comments) as +# a brief description. This used to be the default behavior. The new default is +# to treat a multi-line C++ comment block as a detailed description. Set this +# tag to YES if you prefer the old behavior instead. +# +# Note that setting this tag to YES also means that rational rose comments are +# not recognized any more. +# The default value is: NO. + +MULTILINE_CPP_IS_BRIEF = NO + +# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the +# documentation from any documented member that it re-implements. +# The default value is: YES. + +INHERIT_DOCS = YES + +# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce a +# new page for each member. If set to NO, the documentation of a member will be +# part of the file/class/namespace that contains it. +# The default value is: NO. + +SEPARATE_MEMBER_PAGES = NO + +# The TAB_SIZE tag can be used to set the number of spaces in a tab. Doxygen +# uses this value to replace tabs by spaces in code fragments. +# Minimum value: 1, maximum value: 16, default value: 4. + +TAB_SIZE = 4 + +# This tag can be used to specify a number of aliases that act as commands in +# the documentation. An alias has the form: +# name=value +# For example adding +# "sideeffect=@par Side Effects:\n" +# will allow you to put the command \sideeffect (or @sideeffect) in the +# documentation, which will result in a user-defined paragraph with heading +# "Side Effects:". You can put \n's in the value part of an alias to insert +# newlines. + +ALIASES = + +# This tag can be used to specify a number of word-keyword mappings (TCL only). +# A mapping has the form "name=value". For example adding "class=itcl::class" +# will allow you to use the command class in the itcl::class meaning. + +TCL_SUBST = + +# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources +# only. Doxygen will then generate output that is more tailored for C. For +# instance, some of the names that are used will be different. The list of all +# members will be omitted, etc. +# The default value is: NO. + +OPTIMIZE_OUTPUT_FOR_C = NO + +# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java or +# Python sources only. Doxygen will then generate output that is more tailored +# for that language. For instance, namespaces will be presented as packages, +# qualified scopes will look different, etc. +# The default value is: NO. + +OPTIMIZE_OUTPUT_JAVA = NO + +# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran +# sources. Doxygen will then generate output that is tailored for Fortran. +# The default value is: NO. + +OPTIMIZE_FOR_FORTRAN = NO + +# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL +# sources. Doxygen will then generate output that is tailored for VHDL. +# The default value is: NO. + +OPTIMIZE_OUTPUT_VHDL = NO + +# Doxygen selects the parser to use depending on the extension of the files it +# parses. With this tag you can assign which parser to use for a given +# extension. Doxygen has a built-in mapping, but you can override or extend it +# using this tag. The format is ext=language, where ext is a file extension, and +# language is one of the parsers supported by doxygen: IDL, Java, Javascript, +# C#, C, C++, D, PHP, Objective-C, Python, Fortran (fixed format Fortran: +# FortranFixed, free formatted Fortran: FortranFree, unknown formatted Fortran: +# Fortran. In the later case the parser tries to guess whether the code is fixed +# or free formatted code, this is the default for Fortran type files), VHDL. For +# instance to make doxygen treat .inc files as Fortran files (default is PHP), +# and .f files as C (default is Fortran), use: inc=Fortran f=C. +# +# Note For files without extension you can use no_extension as a placeholder. +# +# Note that for custom extensions you also need to set FILE_PATTERNS otherwise +# the files are not read by doxygen. + +EXTENSION_MAPPING = + +# If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments +# according to the Markdown format, which allows for more readable +# documentation. See http://daringfireball.net/projects/markdown/ for details. +# The output of markdown processing is further processed by doxygen, so you can +# mix doxygen, HTML, and XML commands with Markdown formatting. Disable only in +# case of backward compatibilities issues. +# The default value is: YES. + +MARKDOWN_SUPPORT = YES + +# When enabled doxygen tries to link words that correspond to documented +# classes, or namespaces to their corresponding documentation. Such a link can +# be prevented in individual cases by putting a % sign in front of the word +# or globally by setting AUTOLINK_SUPPORT to NO. +# The default value is: YES. + +AUTOLINK_SUPPORT = YES + +# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want +# to include (a tag file for) the STL sources as input, then you should set this +# tag to YES in order to let doxygen match functions declarations and +# definitions whose arguments contain STL classes (e.g. func(std::string); +# versus func(std::string) {}). This also make the inheritance and collaboration +# diagrams that involve STL classes more complete and accurate. +# The default value is: NO. + +BUILTIN_STL_SUPPORT = NO + +# If you use Microsoft's C++/CLI language, you should set this option to YES to +# enable parsing support. +# The default value is: NO. + +CPP_CLI_SUPPORT = NO + +# Set the SIP_SUPPORT tag to YES if your project consists of sip (see: +# http://www.riverbankcomputing.co.uk/software/sip/intro) sources only. Doxygen +# will parse them like normal C++ but will assume all classes use public instead +# of private inheritance when no explicit protection keyword is present. +# The default value is: NO. + +SIP_SUPPORT = NO + +# For Microsoft's IDL there are propget and propput attributes to indicate +# getter and setter methods for a property. Setting this option to YES will make +# doxygen to replace the get and set methods by a property in the documentation. +# This will only work if the methods are indeed getting or setting a simple +# type. If this is not the case, or you want to show the methods anyway, you +# should set this option to NO. +# The default value is: YES. + +IDL_PROPERTY_SUPPORT = YES + +# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC +# tag is set to YES, then doxygen will reuse the documentation of the first +# member in the group (if any) for the other members of the group. By default +# all members of a group must be documented explicitly. +# The default value is: NO. + +DISTRIBUTE_GROUP_DOC = NO + +# Set the SUBGROUPING tag to YES to allow class member groups of the same type +# (for instance a group of public functions) to be put as a subgroup of that +# type (e.g. under the Public Functions section). Set it to NO to prevent +# subgrouping. Alternatively, this can be done per class using the +# \nosubgrouping command. +# The default value is: YES. + +SUBGROUPING = YES + +# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and unions +# are shown inside the group in which they are included (e.g. using \ingroup) +# instead of on a separate page (for HTML and Man pages) or section (for LaTeX +# and RTF). +# +# Note that this feature does not work in combination with +# SEPARATE_MEMBER_PAGES. +# The default value is: NO. + +INLINE_GROUPED_CLASSES = NO + +# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and unions +# with only public data fields or simple typedef fields will be shown inline in +# the documentation of the scope in which they are defined (i.e. file, +# namespace, or group documentation), provided this scope is documented. If set +# to NO, structs, classes, and unions are shown on a separate page (for HTML and +# Man pages) or section (for LaTeX and RTF). +# The default value is: NO. + +INLINE_SIMPLE_STRUCTS = NO + +# When TYPEDEF_HIDES_STRUCT tag is enabled, a typedef of a struct, union, or +# enum is documented as struct, union, or enum with the name of the typedef. So +# typedef struct TypeS {} TypeT, will appear in the documentation as a struct +# with name TypeT. When disabled the typedef will appear as a member of a file, +# namespace, or class. And the struct will be named TypeS. This can typically be +# useful for C code in case the coding convention dictates that all compound +# types are typedef'ed and only the typedef is referenced, never the tag name. +# The default value is: NO. + +TYPEDEF_HIDES_STRUCT = NO + +# The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This +# cache is used to resolve symbols given their name and scope. Since this can be +# an expensive process and often the same symbol appears multiple times in the +# code, doxygen keeps a cache of pre-resolved symbols. If the cache is too small +# doxygen will become slower. If the cache is too large, memory is wasted. The +# cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range +# is 0..9, the default is 0, corresponding to a cache size of 2^16=65536 +# symbols. At the end of a run doxygen will report the cache usage and suggest +# the optimal cache size from a speed point of view. +# Minimum value: 0, maximum value: 9, default value: 0. + +LOOKUP_CACHE_SIZE = 0 + +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- + +# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in +# documentation are documented, even if no documentation was available. Private +# class members and static file members will be hidden unless the +# EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES. +# Note: This will also disable the warnings about undocumented members that are +# normally produced when WARNINGS is set to YES. +# The default value is: NO. + +EXTRACT_ALL = YES + +# If the EXTRACT_PRIVATE tag is set to YES all private members of a class will +# be included in the documentation. +# The default value is: NO. + +EXTRACT_PRIVATE = NO + +# If the EXTRACT_PACKAGE tag is set to YES all members with package or internal +# scope will be included in the documentation. +# The default value is: NO. + +EXTRACT_PACKAGE = NO + +# If the EXTRACT_STATIC tag is set to YES all static members of a file will be +# included in the documentation. +# The default value is: NO. + +EXTRACT_STATIC = NO + +# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) defined +# locally in source files will be included in the documentation. If set to NO +# only classes defined in header files are included. Does not have any effect +# for Java sources. +# The default value is: YES. + +EXTRACT_LOCAL_CLASSES = YES + +# This flag is only useful for Objective-C code. When set to YES local methods, +# which are defined in the implementation section but not in the interface are +# included in the documentation. If set to NO only methods in the interface are +# included. +# The default value is: NO. + +EXTRACT_LOCAL_METHODS = NO + +# If this flag is set to YES, the members of anonymous namespaces will be +# extracted and appear in the documentation as a namespace called +# 'anonymous_namespace{file}', where file will be replaced with the base name of +# the file that contains the anonymous namespace. By default anonymous namespace +# are hidden. +# The default value is: NO. + +EXTRACT_ANON_NSPACES = NO + +# If the HIDE_UNDOC_MEMBERS tag is set to YES, doxygen will hide all +# undocumented members inside documented classes or files. If set to NO these +# members will be included in the various overviews, but no documentation +# section is generated. This option has no effect if EXTRACT_ALL is enabled. +# The default value is: NO. + +HIDE_UNDOC_MEMBERS = NO + +# If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all +# undocumented classes that are normally visible in the class hierarchy. If set +# to NO these classes will be included in the various overviews. This option has +# no effect if EXTRACT_ALL is enabled. +# The default value is: NO. + +HIDE_UNDOC_CLASSES = NO + +# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend +# (class|struct|union) declarations. If set to NO these declarations will be +# included in the documentation. +# The default value is: NO. + +HIDE_FRIEND_COMPOUNDS = NO + +# If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any +# documentation blocks found inside the body of a function. If set to NO these +# blocks will be appended to the function's detailed documentation block. +# The default value is: NO. + +HIDE_IN_BODY_DOCS = NO + +# The INTERNAL_DOCS tag determines if documentation that is typed after a +# \internal command is included. If the tag is set to NO then the documentation +# will be excluded. Set it to YES to include the internal documentation. +# The default value is: NO. + +INTERNAL_DOCS = NO + +# If the CASE_SENSE_NAMES tag is set to NO then doxygen will only generate file +# names in lower-case letters. If set to YES upper-case letters are also +# allowed. This is useful if you have classes or files whose names only differ +# in case and if your file system supports case sensitive file names. Windows +# and Mac users are advised to set this option to NO. +# The default value is: system dependent. + +CASE_SENSE_NAMES = NO + +# If the HIDE_SCOPE_NAMES tag is set to NO then doxygen will show members with +# their full class and namespace scopes in the documentation. If set to YES the +# scope will be hidden. +# The default value is: NO. + +HIDE_SCOPE_NAMES = NO + +# If the SHOW_INCLUDE_FILES tag is set to YES then doxygen will put a list of +# the files that are included by a file in the documentation of that file. +# The default value is: YES. + +SHOW_INCLUDE_FILES = YES + +# If the SHOW_GROUPED_MEMB_INC tag is set to YES then Doxygen will add for each +# grouped member an include statement to the documentation, telling the reader +# which file to include in order to use the member. +# The default value is: NO. + +SHOW_GROUPED_MEMB_INC = NO + +# If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include +# files with double quotes in the documentation rather than with sharp brackets. +# The default value is: NO. + +FORCE_LOCAL_INCLUDES = NO + +# If the INLINE_INFO tag is set to YES then a tag [inline] is inserted in the +# documentation for inline members. +# The default value is: YES. + +INLINE_INFO = YES + +# If the SORT_MEMBER_DOCS tag is set to YES then doxygen will sort the +# (detailed) documentation of file and class members alphabetically by member +# name. If set to NO the members will appear in declaration order. +# The default value is: YES. + +SORT_MEMBER_DOCS = YES + +# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief +# descriptions of file, namespace and class members alphabetically by member +# name. If set to NO the members will appear in declaration order. Note that +# this will also influence the order of the classes in the class list. +# The default value is: NO. + +SORT_BRIEF_DOCS = NO + +# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the +# (brief and detailed) documentation of class members so that constructors and +# destructors are listed first. If set to NO the constructors will appear in the +# respective orders defined by SORT_BRIEF_DOCS and SORT_MEMBER_DOCS. +# Note: If SORT_BRIEF_DOCS is set to NO this option is ignored for sorting brief +# member documentation. +# Note: If SORT_MEMBER_DOCS is set to NO this option is ignored for sorting +# detailed member documentation. +# The default value is: NO. + +SORT_MEMBERS_CTORS_1ST = NO + +# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the hierarchy +# of group names into alphabetical order. If set to NO the group names will +# appear in their defined order. +# The default value is: NO. + +SORT_GROUP_NAMES = NO + +# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be sorted by +# fully-qualified names, including namespaces. If set to NO, the class list will +# be sorted only by class name, not including the namespace part. +# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. +# Note: This option applies only to the class list, not to the alphabetical +# list. +# The default value is: NO. + +SORT_BY_SCOPE_NAME = NO + +# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to do proper +# type resolution of all parameters of a function it will reject a match between +# the prototype and the implementation of a member function even if there is +# only one candidate or it is obvious which candidate to choose by doing a +# simple string match. By disabling STRICT_PROTO_MATCHING doxygen will still +# accept a match between prototype and implementation in such cases. +# The default value is: NO. + +STRICT_PROTO_MATCHING = NO + +# The GENERATE_TODOLIST tag can be used to enable ( YES) or disable ( NO) the +# todo list. This list is created by putting \todo commands in the +# documentation. +# The default value is: YES. + +GENERATE_TODOLIST = YES + +# The GENERATE_TESTLIST tag can be used to enable ( YES) or disable ( NO) the +# test list. This list is created by putting \test commands in the +# documentation. +# The default value is: YES. + +GENERATE_TESTLIST = YES + +# The GENERATE_BUGLIST tag can be used to enable ( YES) or disable ( NO) the bug +# list. This list is created by putting \bug commands in the documentation. +# The default value is: YES. + +GENERATE_BUGLIST = YES + +# The GENERATE_DEPRECATEDLIST tag can be used to enable ( YES) or disable ( NO) +# the deprecated list. This list is created by putting \deprecated commands in +# the documentation. +# The default value is: YES. + +GENERATE_DEPRECATEDLIST= YES + +# The ENABLED_SECTIONS tag can be used to enable conditional documentation +# sections, marked by \if ... \endif and \cond +# ... \endcond blocks. + +ENABLED_SECTIONS = + +# The MAX_INITIALIZER_LINES tag determines the maximum number of lines that the +# initial value of a variable or macro / define can have for it to appear in the +# documentation. If the initializer consists of more lines than specified here +# it will be hidden. Use a value of 0 to hide initializers completely. The +# appearance of the value of individual variables and macros / defines can be +# controlled using \showinitializer or \hideinitializer command in the +# documentation regardless of this setting. +# Minimum value: 0, maximum value: 10000, default value: 30. + +MAX_INITIALIZER_LINES = 30 + +# Set the SHOW_USED_FILES tag to NO to disable the list of files generated at +# the bottom of the documentation of classes and structs. If set to YES the list +# will mention the files that were used to generate the documentation. +# The default value is: YES. + +SHOW_USED_FILES = YES + +# Set the SHOW_FILES tag to NO to disable the generation of the Files page. This +# will remove the Files entry from the Quick Index and from the Folder Tree View +# (if specified). +# The default value is: YES. + +SHOW_FILES = YES + +# Set the SHOW_NAMESPACES tag to NO to disable the generation of the Namespaces +# page. This will remove the Namespaces entry from the Quick Index and from the +# Folder Tree View (if specified). +# The default value is: YES. + +SHOW_NAMESPACES = YES + +# The FILE_VERSION_FILTER tag can be used to specify a program or script that +# doxygen should invoke to get the current version for each file (typically from +# the version control system). Doxygen will invoke the program by executing (via +# popen()) the command command input-file, where command is the value of the +# FILE_VERSION_FILTER tag, and input-file is the name of an input file provided +# by doxygen. Whatever the program writes to standard output is used as the file +# version. For an example see the documentation. + +FILE_VERSION_FILTER = + +# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed +# by doxygen. The layout file controls the global structure of the generated +# output files in an output format independent way. To create the layout file +# that represents doxygen's defaults, run doxygen with the -l option. You can +# optionally specify a file name after the option, if omitted DoxygenLayout.xml +# will be used as the name of the layout file. +# +# Note that if you run doxygen from a directory containing a file called +# DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE +# tag is left empty. + +LAYOUT_FILE = + +# The CITE_BIB_FILES tag can be used to specify one or more bib files containing +# the reference definitions. This must be a list of .bib files. The .bib +# extension is automatically appended if omitted. This requires the bibtex tool +# to be installed. See also http://en.wikipedia.org/wiki/BibTeX for more info. +# For LaTeX the style of the bibliography can be controlled using +# LATEX_BIB_STYLE. To use this feature you need bibtex and perl available in the +# search path. Do not use file names with spaces, bibtex cannot handle them. See +# also \cite for info how to create references. + +CITE_BIB_FILES = + +#--------------------------------------------------------------------------- +# Configuration options related to warning and progress messages +#--------------------------------------------------------------------------- + +# The QUIET tag can be used to turn on/off the messages that are generated to +# standard output by doxygen. If QUIET is set to YES this implies that the +# messages are off. +# The default value is: NO. + +QUIET = NO + +# The WARNINGS tag can be used to turn on/off the warning messages that are +# generated to standard error ( stderr) by doxygen. If WARNINGS is set to YES +# this implies that the warnings are on. +# +# Tip: Turn warnings on while writing the documentation. +# The default value is: YES. + +WARNINGS = YES + +# If the WARN_IF_UNDOCUMENTED tag is set to YES, then doxygen will generate +# warnings for undocumented members. If EXTRACT_ALL is set to YES then this flag +# will automatically be disabled. +# The default value is: YES. + +WARN_IF_UNDOCUMENTED = YES + +# If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for +# potential errors in the documentation, such as not documenting some parameters +# in a documented function, or documenting parameters that don't exist or using +# markup commands wrongly. +# The default value is: YES. + +WARN_IF_DOC_ERROR = YES + +# This WARN_NO_PARAMDOC option can be enabled to get warnings for functions that +# are documented, but have no documentation for their parameters or return +# value. If set to NO doxygen will only warn about wrong or incomplete parameter +# documentation, but not about the absence of documentation. +# The default value is: NO. + +WARN_NO_PARAMDOC = NO + +# The WARN_FORMAT tag determines the format of the warning messages that doxygen +# can produce. The string should contain the $file, $line, and $text tags, which +# will be replaced by the file and line number from which the warning originated +# and the warning text. Optionally the format may contain $version, which will +# be replaced by the version of the file (if it could be obtained via +# FILE_VERSION_FILTER) +# The default value is: $file:$line: $text. + +WARN_FORMAT = "$file:$line: $text" + +# The WARN_LOGFILE tag can be used to specify a file to which warning and error +# messages should be written. If left blank the output is written to standard +# error (stderr). + +WARN_LOGFILE = + +#--------------------------------------------------------------------------- +# Configuration options related to the input files +#--------------------------------------------------------------------------- + +# The INPUT tag is used to specify the files and/or directories that contain +# documented source files. You may enter file names like myfile.cpp or +# directories like /usr/src/myproject. Separate the files or directories with +# spaces. +# Note: If this tag is empty the current directory is searched. + +INPUT = + +# This tag can be used to specify the character encoding of the source files +# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses +# libiconv (or the iconv built into libc) for the transcoding. See the libiconv +# documentation (see: http://www.gnu.org/software/libiconv) for the list of +# possible encodings. +# The default value is: UTF-8. + +INPUT_ENCODING = UTF-8 + +# If the value of the INPUT tag contains directories, you can use the +# FILE_PATTERNS tag to specify one or more wildcard patterns (like *.cpp and +# *.h) to filter out the source-files in the directories. If left blank the +# following patterns are tested:*.c, *.cc, *.cxx, *.cpp, *.c++, *.java, *.ii, +# *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h, *.hh, *.hxx, *.hpp, +# *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc, *.m, *.markdown, +# *.md, *.mm, *.dox, *.py, *.f90, *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, +# *.qsf, *.as and *.js. + +FILE_PATTERNS = *.c \ + *.cc \ + *.cxx \ + *.cpp \ + *.c++ \ + *.java \ + *.ii \ + *.ixx \ + *.ipp \ + *.i++ \ + *.inl \ + *.idl \ + *.ddl \ + *.odl \ + *.h \ + *.hh \ + *.hxx \ + *.hpp \ + *.h++ \ + *.cs \ + *.d \ + *.php \ + *.php4 \ + *.php5 \ + *.phtml \ + *.inc \ + *.m \ + *.markdown \ + *.md \ + *.mm \ + *.dox \ + *.py \ + *.f90 \ + *.f \ + *.for \ + *.tcl \ + *.vhd \ + *.vhdl \ + *.ucf \ + *.qsf \ + *.as \ + *.js + +# The RECURSIVE tag can be used to specify whether or not subdirectories should +# be searched for input files as well. +# The default value is: NO. + +RECURSIVE = YES + +# The EXCLUDE tag can be used to specify files and/or directories that should be +# excluded from the INPUT source files. This way you can easily exclude a +# subdirectory from a directory tree whose root is specified with the INPUT tag. +# +# Note that relative paths are relative to the directory from which doxygen is +# run. + +EXCLUDE = + +# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or +# directories that are symbolic links (a Unix file system feature) are excluded +# from the input. +# The default value is: NO. + +EXCLUDE_SYMLINKS = NO + +# If the value of the INPUT tag contains directories, you can use the +# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude +# certain files from those directories. +# +# Note that the wildcards are matched against the file with absolute path, so to +# exclude all test directories for example use the pattern */test/* + +EXCLUDE_PATTERNS = + +# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names +# (namespaces, classes, functions, etc.) that should be excluded from the +# output. The symbol name can be a fully qualified name, a word, or if the +# wildcard * is used, a substring. Examples: ANamespace, AClass, +# AClass::ANamespace, ANamespace::*Test +# +# Note that the wildcards are matched against the file with absolute path, so to +# exclude all test directories use the pattern */test/* + +EXCLUDE_SYMBOLS = + +# The EXAMPLE_PATH tag can be used to specify one or more files or directories +# that contain example code fragments that are included (see the \include +# command). + +EXAMPLE_PATH = + +# If the value of the EXAMPLE_PATH tag contains directories, you can use the +# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and +# *.h) to filter out the source-files in the directories. If left blank all +# files are included. + +EXAMPLE_PATTERNS = * + +# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be +# searched for input files to be used with the \include or \dontinclude commands +# irrespective of the value of the RECURSIVE tag. +# The default value is: NO. + +EXAMPLE_RECURSIVE = NO + +# The IMAGE_PATH tag can be used to specify one or more files or directories +# that contain images that are to be included in the documentation (see the +# \image command). + +IMAGE_PATH = + +# The INPUT_FILTER tag can be used to specify a program that doxygen should +# invoke to filter for each input file. Doxygen will invoke the filter program +# by executing (via popen()) the command: +# +# +# +# where is the value of the INPUT_FILTER tag, and is the +# name of an input file. Doxygen will then use the output that the filter +# program writes to standard output. If FILTER_PATTERNS is specified, this tag +# will be ignored. +# +# Note that the filter must not add or remove lines; it is applied before the +# code is scanned, but not when the output code is generated. If lines are added +# or removed, the anchors will not be placed correctly. + +INPUT_FILTER = + +# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern +# basis. Doxygen will compare the file name with each pattern and apply the +# filter if there is a match. The filters are a list of the form: pattern=filter +# (like *.cpp=my_cpp_filter). See INPUT_FILTER for further information on how +# filters are used. If the FILTER_PATTERNS tag is empty or if none of the +# patterns match the file name, INPUT_FILTER is applied. + +FILTER_PATTERNS = + +# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using +# INPUT_FILTER ) will also be used to filter the input files that are used for +# producing the source files to browse (i.e. when SOURCE_BROWSER is set to YES). +# The default value is: NO. + +FILTER_SOURCE_FILES = NO + +# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file +# pattern. A pattern will override the setting for FILTER_PATTERN (if any) and +# it is also possible to disable source filtering for a specific pattern using +# *.ext= (so without naming a filter). +# This tag requires that the tag FILTER_SOURCE_FILES is set to YES. + +FILTER_SOURCE_PATTERNS = + +# If the USE_MDFILE_AS_MAINPAGE tag refers to the name of a markdown file that +# is part of the input, its contents will be placed on the main page +# (index.html). This can be useful if you have a project on for instance GitHub +# and want to reuse the introduction page also for the doxygen output. + +USE_MDFILE_AS_MAINPAGE = + +#--------------------------------------------------------------------------- +# Configuration options related to source browsing +#--------------------------------------------------------------------------- + +# If the SOURCE_BROWSER tag is set to YES then a list of source files will be +# generated. Documented entities will be cross-referenced with these sources. +# +# Note: To get rid of all source code in the generated output, make sure that +# also VERBATIM_HEADERS is set to NO. +# The default value is: NO. + +SOURCE_BROWSER = NO + +# Setting the INLINE_SOURCES tag to YES will include the body of functions, +# classes and enums directly into the documentation. +# The default value is: NO. + +INLINE_SOURCES = NO + +# Setting the STRIP_CODE_COMMENTS tag to YES will instruct doxygen to hide any +# special comment blocks from generated source code fragments. Normal C, C++ and +# Fortran comments will always remain visible. +# The default value is: YES. + +STRIP_CODE_COMMENTS = YES + +# If the REFERENCED_BY_RELATION tag is set to YES then for each documented +# function all documented functions referencing it will be listed. +# The default value is: NO. + +REFERENCED_BY_RELATION = NO + +# If the REFERENCES_RELATION tag is set to YES then for each documented function +# all documented entities called/used by that function will be listed. +# The default value is: NO. + +REFERENCES_RELATION = NO + +# If the REFERENCES_LINK_SOURCE tag is set to YES and SOURCE_BROWSER tag is set +# to YES, then the hyperlinks from functions in REFERENCES_RELATION and +# REFERENCED_BY_RELATION lists will link to the source code. Otherwise they will +# link to the documentation. +# The default value is: YES. + +REFERENCES_LINK_SOURCE = YES + +# If SOURCE_TOOLTIPS is enabled (the default) then hovering a hyperlink in the +# source code will show a tooltip with additional information such as prototype, +# brief description and links to the definition and documentation. Since this +# will make the HTML file larger and loading of large files a bit slower, you +# can opt to disable this feature. +# The default value is: YES. +# This tag requires that the tag SOURCE_BROWSER is set to YES. + +SOURCE_TOOLTIPS = YES + +# If the USE_HTAGS tag is set to YES then the references to source code will +# point to the HTML generated by the htags(1) tool instead of doxygen built-in +# source browser. The htags tool is part of GNU's global source tagging system +# (see http://www.gnu.org/software/global/global.html). You will need version +# 4.8.6 or higher. +# +# To use it do the following: +# - Install the latest version of global +# - Enable SOURCE_BROWSER and USE_HTAGS in the config file +# - Make sure the INPUT points to the root of the source tree +# - Run doxygen as normal +# +# Doxygen will invoke htags (and that will in turn invoke gtags), so these +# tools must be available from the command line (i.e. in the search path). +# +# The result: instead of the source browser generated by doxygen, the links to +# source code will now point to the output of htags. +# The default value is: NO. +# This tag requires that the tag SOURCE_BROWSER is set to YES. + +USE_HTAGS = NO + +# If the VERBATIM_HEADERS tag is set the YES then doxygen will generate a +# verbatim copy of the header file for each class for which an include is +# specified. Set to NO to disable this. +# See also: Section \class. +# The default value is: YES. + +VERBATIM_HEADERS = YES + +#--------------------------------------------------------------------------- +# Configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- + +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index of all +# compounds will be generated. Enable this if the project contains a lot of +# classes, structs, unions or interfaces. +# The default value is: YES. + +ALPHABETICAL_INDEX = YES + +# The COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns in +# which the alphabetical index list will be split. +# Minimum value: 1, maximum value: 20, default value: 5. +# This tag requires that the tag ALPHABETICAL_INDEX is set to YES. + +COLS_IN_ALPHA_INDEX = 5 + +# In case all classes in a project start with a common prefix, all classes will +# be put under the same header in the alphabetical index. The IGNORE_PREFIX tag +# can be used to specify a prefix (or a list of prefixes) that should be ignored +# while generating the index headers. +# This tag requires that the tag ALPHABETICAL_INDEX is set to YES. + +IGNORE_PREFIX = + +#--------------------------------------------------------------------------- +# Configuration options related to the HTML output +#--------------------------------------------------------------------------- + +# If the GENERATE_HTML tag is set to YES doxygen will generate HTML output +# The default value is: YES. + +GENERATE_HTML = YES + +# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a +# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of +# it. +# The default directory is: html. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_OUTPUT = html + +# The HTML_FILE_EXTENSION tag can be used to specify the file extension for each +# generated HTML page (for example: .htm, .php, .asp). +# The default value is: .html. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_FILE_EXTENSION = .html + +# The HTML_HEADER tag can be used to specify a user-defined HTML header file for +# each generated HTML page. If the tag is left blank doxygen will generate a +# standard header. +# +# To get valid HTML the header file that includes any scripts and style sheets +# that doxygen needs, which is dependent on the configuration options used (e.g. +# the setting GENERATE_TREEVIEW). It is highly recommended to start with a +# default header using +# doxygen -w html new_header.html new_footer.html new_stylesheet.css +# YourConfigFile +# and then modify the file new_header.html. See also section "Doxygen usage" +# for information on how to generate the default header that doxygen normally +# uses. +# Note: The header is subject to change so you typically have to regenerate the +# default header when upgrading to a newer version of doxygen. For a description +# of the possible markers and block names see the documentation. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_HEADER = + +# The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each +# generated HTML page. If the tag is left blank doxygen will generate a standard +# footer. See HTML_HEADER for more information on how to generate a default +# footer and what special commands can be used inside the footer. See also +# section "Doxygen usage" for information on how to generate the default footer +# that doxygen normally uses. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_FOOTER = + +# The HTML_STYLESHEET tag can be used to specify a user-defined cascading style +# sheet that is used by each HTML page. It can be used to fine-tune the look of +# the HTML output. If left blank doxygen will generate a default style sheet. +# See also section "Doxygen usage" for information on how to generate the style +# sheet that doxygen normally uses. +# Note: It is recommended to use HTML_EXTRA_STYLESHEET instead of this tag, as +# it is more robust and this tag (HTML_STYLESHEET) will in the future become +# obsolete. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_STYLESHEET = + +# The HTML_EXTRA_STYLESHEET tag can be used to specify an additional user- +# defined cascading style sheet that is included after the standard style sheets +# created by doxygen. Using this option one can overrule certain style aspects. +# This is preferred over using HTML_STYLESHEET since it does not replace the +# standard style sheet and is therefor more robust against future updates. +# Doxygen will copy the style sheet file to the output directory. For an example +# see the documentation. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_EXTRA_STYLESHEET = + +# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or +# other source files which should be copied to the HTML output directory. Note +# that these files will be copied to the base HTML output directory. Use the +# $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these +# files. In the HTML_STYLESHEET file, use the file name only. Also note that the +# files will be copied as-is; there are no commands or markers available. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_EXTRA_FILES = + +# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen +# will adjust the colors in the stylesheet and background images according to +# this color. Hue is specified as an angle on a colorwheel, see +# http://en.wikipedia.org/wiki/Hue for more information. For instance the value +# 0 represents red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, 300 +# purple, and 360 is red again. +# Minimum value: 0, maximum value: 359, default value: 220. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_COLORSTYLE_HUE = 220 + +# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors +# in the HTML output. For a value of 0 the output will use grayscales only. A +# value of 255 will produce the most vivid colors. +# Minimum value: 0, maximum value: 255, default value: 100. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_COLORSTYLE_SAT = 100 + +# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the +# luminance component of the colors in the HTML output. Values below 100 +# gradually make the output lighter, whereas values above 100 make the output +# darker. The value divided by 100 is the actual gamma applied, so 80 represents +# a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not +# change the gamma. +# Minimum value: 40, maximum value: 240, default value: 80. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_COLORSTYLE_GAMMA = 80 + +# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML +# page will contain the date and time when the page was generated. Setting this +# to NO can help when comparing the output of multiple runs. +# The default value is: YES. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_TIMESTAMP = YES + +# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML +# documentation will contain sections that can be hidden and shown after the +# page has loaded. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_DYNAMIC_SECTIONS = NO + +# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of entries +# shown in the various tree structured indices initially; the user can expand +# and collapse entries dynamically later on. Doxygen will expand the tree to +# such a level that at most the specified number of entries are visible (unless +# a fully collapsed tree already exceeds this amount). So setting the number of +# entries 1 will produce a full collapsed tree by default. 0 is a special value +# representing an infinite number of entries and will result in a full expanded +# tree by default. +# Minimum value: 0, maximum value: 9999, default value: 100. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_INDEX_NUM_ENTRIES = 100 + +# If the GENERATE_DOCSET tag is set to YES, additional index files will be +# generated that can be used as input for Apple's Xcode 3 integrated development +# environment (see: http://developer.apple.com/tools/xcode/), introduced with +# OSX 10.5 (Leopard). To create a documentation set, doxygen will generate a +# Makefile in the HTML output directory. Running make will produce the docset in +# that directory and running make install will install the docset in +# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find it at +# startup. See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html +# for more information. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +GENERATE_DOCSET = NO + +# This tag determines the name of the docset feed. A documentation feed provides +# an umbrella under which multiple documentation sets from a single provider +# (such as a company or product suite) can be grouped. +# The default value is: Doxygen generated docs. +# This tag requires that the tag GENERATE_DOCSET is set to YES. + +DOCSET_FEEDNAME = "Doxygen generated docs" + +# This tag specifies a string that should uniquely identify the documentation +# set bundle. This should be a reverse domain-name style string, e.g. +# com.mycompany.MyDocSet. Doxygen will append .docset to the name. +# The default value is: org.doxygen.Project. +# This tag requires that the tag GENERATE_DOCSET is set to YES. + +DOCSET_BUNDLE_ID = org.doxygen.Project + +# The DOCSET_PUBLISHER_ID tag specifies a string that should uniquely identify +# the documentation publisher. This should be a reverse domain-name style +# string, e.g. com.mycompany.MyDocSet.documentation. +# The default value is: org.doxygen.Publisher. +# This tag requires that the tag GENERATE_DOCSET is set to YES. + +DOCSET_PUBLISHER_ID = org.doxygen.Publisher + +# The DOCSET_PUBLISHER_NAME tag identifies the documentation publisher. +# The default value is: Publisher. +# This tag requires that the tag GENERATE_DOCSET is set to YES. + +DOCSET_PUBLISHER_NAME = Publisher + +# If the GENERATE_HTMLHELP tag is set to YES then doxygen generates three +# additional HTML index files: index.hhp, index.hhc, and index.hhk. The +# index.hhp is a project file that can be read by Microsoft's HTML Help Workshop +# (see: http://www.microsoft.com/en-us/download/details.aspx?id=21138) on +# Windows. +# +# The HTML Help Workshop contains a compiler that can convert all HTML output +# generated by doxygen into a single compiled HTML file (.chm). Compiled HTML +# files are now used as the Windows 98 help format, and will replace the old +# Windows help format (.hlp) on all Windows platforms in the future. Compressed +# HTML files also contain an index, a table of contents, and you can search for +# words in the documentation. The HTML workshop also contains a viewer for +# compressed HTML files. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +GENERATE_HTMLHELP = NO + +# The CHM_FILE tag can be used to specify the file name of the resulting .chm +# file. You can add a path in front of the file if the result should not be +# written to the html output directory. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +CHM_FILE = + +# The HHC_LOCATION tag can be used to specify the location (absolute path +# including file name) of the HTML help compiler ( hhc.exe). If non-empty +# doxygen will try to run the HTML help compiler on the generated index.hhp. +# The file has to be specified with full path. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +HHC_LOCATION = + +# The GENERATE_CHI flag controls if a separate .chi index file is generated ( +# YES) or that it should be included in the master .chm file ( NO). +# The default value is: NO. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +GENERATE_CHI = NO + +# The CHM_INDEX_ENCODING is used to encode HtmlHelp index ( hhk), content ( hhc) +# and project file content. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +CHM_INDEX_ENCODING = + +# The BINARY_TOC flag controls whether a binary table of contents is generated ( +# YES) or a normal table of contents ( NO) in the .chm file. Furthermore it +# enables the Previous and Next buttons. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +BINARY_TOC = NO + +# The TOC_EXPAND flag can be set to YES to add extra items for group members to +# the table of contents of the HTML help documentation and to the tree view. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +TOC_EXPAND = NO + +# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and +# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated that +# can be used as input for Qt's qhelpgenerator to generate a Qt Compressed Help +# (.qch) of the generated HTML documentation. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +GENERATE_QHP = NO + +# If the QHG_LOCATION tag is specified, the QCH_FILE tag can be used to specify +# the file name of the resulting .qch file. The path specified is relative to +# the HTML output folder. +# This tag requires that the tag GENERATE_QHP is set to YES. + +QCH_FILE = + +# The QHP_NAMESPACE tag specifies the namespace to use when generating Qt Help +# Project output. For more information please see Qt Help Project / Namespace +# (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#namespace). +# The default value is: org.doxygen.Project. +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHP_NAMESPACE = org.doxygen.Project + +# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating Qt +# Help Project output. For more information please see Qt Help Project / Virtual +# Folders (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#virtual- +# folders). +# The default value is: doc. +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHP_VIRTUAL_FOLDER = doc + +# If the QHP_CUST_FILTER_NAME tag is set, it specifies the name of a custom +# filter to add. For more information please see Qt Help Project / Custom +# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom- +# filters). +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHP_CUST_FILTER_NAME = + +# The QHP_CUST_FILTER_ATTRS tag specifies the list of the attributes of the +# custom filter to add. For more information please see Qt Help Project / Custom +# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom- +# filters). +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHP_CUST_FILTER_ATTRS = + +# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this +# project's filter section matches. Qt Help Project / Filter Attributes (see: +# http://qt-project.org/doc/qt-4.8/qthelpproject.html#filter-attributes). +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHP_SECT_FILTER_ATTRS = + +# The QHG_LOCATION tag can be used to specify the location of Qt's +# qhelpgenerator. If non-empty doxygen will try to run qhelpgenerator on the +# generated .qhp file. +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHG_LOCATION = + +# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files will be +# generated, together with the HTML files, they form an Eclipse help plugin. To +# install this plugin and make it available under the help contents menu in +# Eclipse, the contents of the directory containing the HTML and XML files needs +# to be copied into the plugins directory of eclipse. The name of the directory +# within the plugins directory should be the same as the ECLIPSE_DOC_ID value. +# After copying Eclipse needs to be restarted before the help appears. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +GENERATE_ECLIPSEHELP = NO + +# A unique identifier for the Eclipse help plugin. When installing the plugin +# the directory name containing the HTML and XML files should also have this +# name. Each documentation set should have its own identifier. +# The default value is: org.doxygen.Project. +# This tag requires that the tag GENERATE_ECLIPSEHELP is set to YES. + +ECLIPSE_DOC_ID = org.doxygen.Project + +# If you want full control over the layout of the generated HTML pages it might +# be necessary to disable the index and replace it with your own. The +# DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top +# of each HTML page. A value of NO enables the index and the value YES disables +# it. Since the tabs in the index contain the same information as the navigation +# tree, you can set this option to YES if you also set GENERATE_TREEVIEW to YES. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +DISABLE_INDEX = NO + +# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index +# structure should be generated to display hierarchical information. If the tag +# value is set to YES, a side panel will be generated containing a tree-like +# index structure (just like the one that is generated for HTML Help). For this +# to work a browser that supports JavaScript, DHTML, CSS and frames is required +# (i.e. any modern browser). Windows users are probably better off using the +# HTML help feature. Via custom stylesheets (see HTML_EXTRA_STYLESHEET) one can +# further fine-tune the look of the index. As an example, the default style +# sheet generated by doxygen has an example that shows how to put an image at +# the root of the tree instead of the PROJECT_NAME. Since the tree basically has +# the same information as the tab index, you could consider setting +# DISABLE_INDEX to YES when enabling this option. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +GENERATE_TREEVIEW = NO + +# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values that +# doxygen will group on one line in the generated HTML documentation. +# +# Note that a value of 0 will completely suppress the enum values from appearing +# in the overview section. +# Minimum value: 0, maximum value: 20, default value: 4. +# This tag requires that the tag GENERATE_HTML is set to YES. + +ENUM_VALUES_PER_LINE = 4 + +# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be used +# to set the initial width (in pixels) of the frame in which the tree is shown. +# Minimum value: 0, maximum value: 1500, default value: 250. +# This tag requires that the tag GENERATE_HTML is set to YES. + +TREEVIEW_WIDTH = 250 + +# When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open links to +# external symbols imported via tag files in a separate window. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +EXT_LINKS_IN_WINDOW = NO + +# Use this tag to change the font size of LaTeX formulas included as images in +# the HTML documentation. When you change the font size after a successful +# doxygen run you need to manually remove any form_*.png images from the HTML +# output directory to force them to be regenerated. +# Minimum value: 8, maximum value: 50, default value: 10. +# This tag requires that the tag GENERATE_HTML is set to YES. + +FORMULA_FONTSIZE = 10 + +# Use the FORMULA_TRANPARENT tag to determine whether or not the images +# generated for formulas are transparent PNGs. Transparent PNGs are not +# supported properly for IE 6.0, but are supported on all modern browsers. +# +# Note that when changing this option you need to delete any form_*.png files in +# the HTML output directory before the changes have effect. +# The default value is: YES. +# This tag requires that the tag GENERATE_HTML is set to YES. + +FORMULA_TRANSPARENT = YES + +# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see +# http://www.mathjax.org) which uses client side Javascript for the rendering +# instead of using prerendered bitmaps. Use this if you do not have LaTeX +# installed or if you want to formulas look prettier in the HTML output. When +# enabled you may also need to install MathJax separately and configure the path +# to it using the MATHJAX_RELPATH option. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +USE_MATHJAX = NO + +# When MathJax is enabled you can set the default output format to be used for +# the MathJax output. See the MathJax site (see: +# http://docs.mathjax.org/en/latest/output.html) for more details. +# Possible values are: HTML-CSS (which is slower, but has the best +# compatibility), NativeMML (i.e. MathML) and SVG. +# The default value is: HTML-CSS. +# This tag requires that the tag USE_MATHJAX is set to YES. + +MATHJAX_FORMAT = HTML-CSS + +# When MathJax is enabled you need to specify the location relative to the HTML +# output directory using the MATHJAX_RELPATH option. The destination directory +# should contain the MathJax.js script. For instance, if the mathjax directory +# is located at the same level as the HTML output directory, then +# MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax +# Content Delivery Network so you can quickly see the result without installing +# MathJax. However, it is strongly recommended to install a local copy of +# MathJax from http://www.mathjax.org before deployment. +# The default value is: http://cdn.mathjax.org/mathjax/latest. +# This tag requires that the tag USE_MATHJAX is set to YES. + +MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest + +# The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax +# extension names that should be enabled during MathJax rendering. For example +# MATHJAX_EXTENSIONS = TeX/AMSmath TeX/AMSsymbols +# This tag requires that the tag USE_MATHJAX is set to YES. + +MATHJAX_EXTENSIONS = + +# The MATHJAX_CODEFILE tag can be used to specify a file with javascript pieces +# of code that will be used on startup of the MathJax code. See the MathJax site +# (see: http://docs.mathjax.org/en/latest/output.html) for more details. For an +# example see the documentation. +# This tag requires that the tag USE_MATHJAX is set to YES. + +MATHJAX_CODEFILE = + +# When the SEARCHENGINE tag is enabled doxygen will generate a search box for +# the HTML output. The underlying search engine uses javascript and DHTML and +# should work on any modern browser. Note that when using HTML help +# (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET) +# there is already a search function so this one should typically be disabled. +# For large projects the javascript based search engine can be slow, then +# enabling SERVER_BASED_SEARCH may provide a better solution. It is possible to +# search using the keyboard; to jump to the search box use + S +# (what the is depends on the OS and browser, but it is typically +# , / + + + + +
+ +
+ +
+
+
File List
+
+
+
Here is a list of all files with brief descriptions:
+ + +
 hello.c
+
+
+ + + + diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/src/doc/html/index.html b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/src/doc/html/index.html new file mode 100644 index 00000000..e9e2c062 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/src/doc/html/index.html @@ -0,0 +1,87 @@ + + + + + + +example: Main Page + + + + + + + + + +
+
+ + + + + + +
+
example +
+
+
+ + + + +
+ + + + +
+ +
+ +
+
+
example Documentation
+
+
+
+ + + + diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/src/doc/html/tabs.css b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/src/doc/html/tabs.css new file mode 100644 index 00000000..9cf578f2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/src/doc/html/tabs.css @@ -0,0 +1,60 @@ +.tabs, .tabs2, .tabs3 { + background-image: url('tab_b.png'); + width: 100%; + z-index: 101; + font-size: 13px; + font-family: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif; +} + +.tabs2 { + font-size: 10px; +} +.tabs3 { + font-size: 9px; +} + +.tablist { + margin: 0; + padding: 0; + display: table; +} + +.tablist li { + float: left; + display: table-cell; + background-image: url('tab_b.png'); + line-height: 36px; + list-style: none; +} + +.tablist a { + display: block; + padding: 0 20px; + font-weight: bold; + background-image:url('tab_s.png'); + background-repeat:no-repeat; + background-position:right; + color: #283A5D; + text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); + text-decoration: none; + outline: none; +} + +.tabs3 .tablist a { + padding: 0 10px; +} + +.tablist a:hover { + background-image: url('tab_h.png'); + background-repeat:repeat-x; + color: #fff; + text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); + text-decoration: none; +} + +.tablist li.current a { + background-image: url('tab_a.png'); + background-repeat:repeat-x; + color: #fff; + text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); +} diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/src/doc/latex/doxygen.sty b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/src/doc/latex/doxygen.sty new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/src/doc/latex/doxygen.sty @@ -0,0 +1 @@ + diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/src/doc/latex/files.tex b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/src/doc/latex/files.tex new file mode 100644 index 00000000..4335bbff --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/src/doc/latex/files.tex @@ -0,0 +1,4 @@ +\section{File List} +Here is a list of all files with brief descriptions\+:\begin{DoxyCompactList} +\item\contentsline{section}{\hyperlink{hello_8c}{hello.\+c} }{\pageref{d1/d6a/hello_8c}}{} +\end{DoxyCompactList} diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/src/doc/latex/refman.tex b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/src/doc/latex/refman.tex new file mode 100644 index 00000000..608e0408 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/src/doc/latex/refman.tex @@ -0,0 +1,153 @@ +\documentclass[twoside]{book} + +% Packages required by doxygen +\usepackage{fixltx2e} +\usepackage{calc} +\usepackage{doxygen} +\usepackage{graphicx} +\usepackage[utf8]{inputenc} +\usepackage{makeidx} +\usepackage{multicol} +\usepackage{multirow} +\PassOptionsToPackage{warn}{textcomp} +\usepackage{textcomp} +\usepackage[nointegrals]{wasysym} +\usepackage[table]{xcolor} + +% Font selection +\usepackage[T1]{fontenc} +\usepackage{mathptmx} +\usepackage[scaled=.90]{helvet} +\usepackage{courier} +\usepackage{amssymb} +\usepackage{sectsty} +\renewcommand{\familydefault}{\sfdefault} +\allsectionsfont{% + \fontseries{bc}\selectfont% + \color{darkgray}% +} +\renewcommand{\DoxyLabelFont}{% + \fontseries{bc}\selectfont% + \color{darkgray}% +} +\newcommand{\+}{\discretionary{\mbox{\scriptsize$\hookleftarrow$}}{}{}} + +% Page & text layout +\usepackage{geometry} +\geometry{% + a4paper,% + top=2.5cm,% + bottom=2.5cm,% + left=2.5cm,% + right=2.5cm% +} +\tolerance=750 +\hfuzz=15pt +\hbadness=750 +\setlength{\emergencystretch}{15pt} +\setlength{\parindent}{0cm} +\setlength{\parskip}{0.2cm} +\makeatletter +\renewcommand{\paragraph}{% + \@startsection{paragraph}{4}{0ex}{-1.0ex}{1.0ex}{% + \normalfont\normalsize\bfseries\SS@parafont% + }% +} +\renewcommand{\subparagraph}{% + \@startsection{subparagraph}{5}{0ex}{-1.0ex}{1.0ex}{% + \normalfont\normalsize\bfseries\SS@subparafont% + }% +} +\makeatother + +% Headers & footers +\usepackage{fancyhdr} +\pagestyle{fancyplain} +\fancyhead[LE]{\fancyplain{}{\bfseries\thepage}} +\fancyhead[CE]{\fancyplain{}{}} +\fancyhead[RE]{\fancyplain{}{\bfseries\leftmark}} +\fancyhead[LO]{\fancyplain{}{\bfseries\rightmark}} +\fancyhead[CO]{\fancyplain{}{}} +\fancyhead[RO]{\fancyplain{}{\bfseries\thepage}} +\fancyfoot[LE]{\fancyplain{}{}} +\fancyfoot[CE]{\fancyplain{}{}} +\fancyfoot[RE]{\fancyplain{}{\bfseries\scriptsize Generated on Sun Sep 7 2014 16\+:14\+:08 for example by Doxygen }} +\fancyfoot[LO]{\fancyplain{}{\bfseries\scriptsize Generated on Sun Sep 7 2014 16\+:14\+:08 for example by Doxygen }} +\fancyfoot[CO]{\fancyplain{}{}} +\fancyfoot[RO]{\fancyplain{}{}} +\renewcommand{\footrulewidth}{0.4pt} +\renewcommand{\chaptermark}[1]{% + \markboth{#1}{}% +} +\renewcommand{\sectionmark}[1]{% + \markright{\thesection\ #1}% +} + +% Indices & bibliography +\usepackage{natbib} +\usepackage[titles]{tocloft} +\setcounter{tocdepth}{3} +\setcounter{secnumdepth}{5} +\makeindex + +% Hyperlinks (required, but should be loaded last) +\usepackage{ifpdf} +\ifpdf + \usepackage[pdftex,pagebackref=true]{hyperref} +\else + \usepackage[ps2pdf,pagebackref=true]{hyperref} +\fi +\hypersetup{% + colorlinks=true,% + linkcolor=blue,% + citecolor=blue,% + unicode% +} + +% Custom commands +\newcommand{\clearemptydoublepage}{% + \newpage{\pagestyle{empty}\cleardoublepage}% +} + + +%===== C O N T E N T S ===== + +\begin{document} + +% Titlepage & ToC +\hypersetup{pageanchor=false, + bookmarks=true, + bookmarksnumbered=true, + pdfencoding=unicode + } +\pagenumbering{roman} +\begin{titlepage} +\vspace*{7cm} +\begin{center}% +{\Large example }\\ +\vspace*{1cm} +{\large Generated by Doxygen 1.8.7}\\ +\vspace*{0.5cm} +{\small Sun Sep 7 2014 16:14:08}\\ +\end{center} +\end{titlepage} +\clearemptydoublepage +\tableofcontents +\clearemptydoublepage +\pagenumbering{arabic} +\hypersetup{pageanchor=true} + +%--- Begin generated contents --- +\chapter{File Index} +\input{files} +\chapter{File Documentation} +\input{d1/d6a/hello_8c} +%--- End generated contents --- + +% Index +\newpage +\phantomsection +\addcontentsline{toc}{chapter}{Index} +\printindex + +\end{document} diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/src/hello.c b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/src/hello.c new file mode 100644 index 00000000..ff2cb8d9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/cruft-doxygen-documentation/src/hello.c @@ -0,0 +1,10 @@ +#include + +void hello() { + printf("hello"); +} + +int main() +{ + hello(); +} \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/files-doxygen-documentation/ORIGIN b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/files-doxygen-documentation/ORIGIN new file mode 100644 index 00000000..c73a34d9 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/files-doxygen-documentation/ORIGIN @@ -0,0 +1,9 @@ +lintian 2.139.0 (575a2bf1bc98500bbc1c78e82f44b40d195d17ea) +t/recipes/checks/documentation/doxygen/files-doxygen-documentation + +Filled Source tree from t/templates + t/skeletons, then build-spec overlay +and hooks (pre-upstream, pre-build). eval/hints is transcribed verbatim. +Source-tree Parity uses (source) lines whose extra is not a .dsc; other +processable types wait for those Subjects. + +License: GPL-2+ (same as lintian; see lintian debian/copyright). diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/files-doxygen-documentation/debian/changelog b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/files-doxygen-documentation/debian/changelog new file mode 100644 index 00000000..a24b5c7a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/files-doxygen-documentation/debian/changelog @@ -0,0 +1,17 @@ +files-doxygen-documentation (1.0) unstable; urgency=low + + * Lintian Test Suite. + * Test: files-doxygen-documentation + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Tue, 31 Mar 2026 17:46:22 +0200 + +files-doxygen-documentation (0.0.1) unstable; urgency=low + + * Lintian Test Suite. + * Test: files-doxygen-documentation + + * Suppress "should close ITP bug" messages. (Closes: #123456) + + -- Debian Lintian Maintainers Mon, 01 Jan 1990 00:00:00 +0100 diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/files-doxygen-documentation/debian/control b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/files-doxygen-documentation/debian/control new file mode 100644 index 00000000..4fda77d8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/files-doxygen-documentation/debian/control @@ -0,0 +1,17 @@ +Source: files-doxygen-documentation +Section: devel +Maintainer: Debian Lintian Maintainers +Standards-Version: 4.7.4.1 +Build-Depends: debhelper-compat (= 14) +Homepage: https://lintian.debian.org/ + +Package: files-doxygen-documentation +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Detect doxygen documentation problem + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. + . + This package probably has no meaningful contents. diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/files-doxygen-documentation/debian/copyright b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/files-doxygen-documentation/debian/copyright new file mode 100644 index 00000000..cc11f53d --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/files-doxygen-documentation/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2008 Frank Lichtenheld + 2009 Russ Allbery + 2018 Felix Lechner +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/files-doxygen-documentation/debian/install b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/files-doxygen-documentation/debian/install new file mode 100644 index 00000000..a99dced2 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/files-doxygen-documentation/debian/install @@ -0,0 +1 @@ +src/doc /usr/share/doc/files-doxygen-documentation/html \ No newline at end of file diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/files-doxygen-documentation/debian/rules b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/files-doxygen-documentation/debian/rules new file mode 100755 index 00000000..4411cbfb --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/files-doxygen-documentation/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +# In Ubuntu, dh does not catch this file by default. +# They have diffed it to reduce the size of packages. +ifneq (,$(strip $(wildcard Changes))) +override_dh_installchangelogs: + dh_installchangelogs Changes +endif diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/files-doxygen-documentation/debian/source/format b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/files-doxygen-documentation/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/files-doxygen-documentation/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/files-doxygen-documentation/debian/tests/control b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/files-doxygen-documentation/debian/tests/control new file mode 100644 index 00000000..db2fda98 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/files-doxygen-documentation/debian/tests/control @@ -0,0 +1 @@ +Tests: test diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/files-doxygen-documentation/debian/tests/test b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/files-doxygen-documentation/debian/tests/test new file mode 100755 index 00000000..039e4d00 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/files-doxygen-documentation/debian/tests/test @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/files-doxygen-documentation/eval/hints b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/files-doxygen-documentation/eval/hints new file mode 100644 index 00000000..c4fcd033 --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/files-doxygen-documentation/eval/hints @@ -0,0 +1,6 @@ +files-doxygen-documentation (source): source-contains-prebuilt-doxygen-documentation [src/doc/html/index.html] +files-doxygen-documentation (source): source-contains-prebuilt-doxygen-documentation [src/doc/html/graph_legend.html] +files-doxygen-documentation (source): source-contains-prebuilt-doxygen-documentation [src/doc/html/globals_func.html] +files-doxygen-documentation (source): source-contains-prebuilt-doxygen-documentation [src/doc/html/globals.html] +files-doxygen-documentation (source): source-contains-prebuilt-doxygen-documentation [src/doc/html/files.html] +files-doxygen-documentation (source): source-contains-prebuilt-doxygen-documentation [src/doc/html/] diff --git a/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/files-doxygen-documentation/src/Doxyfile b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/files-doxygen-documentation/src/Doxyfile new file mode 100644 index 00000000..67bf289a --- /dev/null +++ b/packages/debmagic/tests/lintian-parity/checks/documentation/doxygen/files-doxygen-documentation/src/Doxyfile @@ -0,0 +1,2363 @@ +# Doxyfile 1.8.7 + +# This file describes the settings to be used by the documentation system +# doxygen (www.doxygen.org) for a project. +# +# All text after a double hash (##) is considered a comment and is placed in +# front of the TAG it is preceding. +# +# All text after a single hash (#) is considered a comment and will be ignored. +# The format is: +# TAG = value [value, ...] +# For lists, items can also be appended using: +# TAG += value [value, ...] +# Values that contain spaces should be placed between quotes (\" \"). + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- + +# This tag specifies the encoding used for all characters in the config file +# that follow. The default is UTF-8 which is also the encoding used for all text +# before the first occurrence of this tag. Doxygen uses libiconv (or the iconv +# built into libc) for the transcoding. See http://www.gnu.org/software/libiconv +# for the list of possible encodings. +# The default value is: UTF-8. + +DOXYFILE_ENCODING = UTF-8 + +# The PROJECT_NAME tag is a single word (or a sequence of words surrounded by +# double-quotes, unless you are using Doxywizard) that should identify the +# project for which the documentation is generated. This name is used in the +# title of most generated pages and in a few other places. +# The default value is: My Project. + +PROJECT_NAME = example + +# The PROJECT_NUMBER tag can be used to enter a project or revision number. This +# could be handy for archiving the generated documentation or if some version +# control system is used. + +PROJECT_NUMBER = + +# Using the PROJECT_BRIEF tag one can provide an optional one line description +# for a project that appears at the top of each page and should give viewer a +# quick idea about the purpose of the project. Keep the description short. + +PROJECT_BRIEF = + +# With the PROJECT_LOGO tag one can specify an logo or icon that is included in +# the documentation. The maximum height of the logo should not exceed 55 pixels +# and the maximum width should not exceed 200 pixels. Doxygen will copy the logo +# to the output directory. + +PROJECT_LOGO = + +# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path +# into which the generated documentation will be written. If a relative path is +# entered, it will be relative to the location where doxygen was started. If +# left blank the current directory will be used. + +OUTPUT_DIRECTORY = doc + +# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create 4096 sub- +# directories (in 2 levels) under the output directory of each output format and +# will distribute the generated files over these directories. Enabling this +# option can be useful when feeding doxygen a huge amount of source files, where +# putting all generated files in the same directory would otherwise causes +# performance problems for the file system. +# The default value is: NO. + +CREATE_SUBDIRS = YES + +# If the ALLOW_UNICODE_NAMES tag is set to YES, doxygen will allow non-ASCII +# characters to appear in the names of generated files. If set to NO, non-ASCII +# characters will be escaped, for example _xE3_x81_x84 will be used for Unicode +# U+3044. +# The default value is: NO. + +ALLOW_UNICODE_NAMES = YES + +# The OUTPUT_LANGUAGE tag is used to specify the language in which all +# documentation generated by doxygen is written. Doxygen will use this +# information to generate all constant output in the proper language. +# Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Catalan, Chinese, +# Chinese-Traditional, Croatian, Czech, Danish, Dutch, English (United States), +# Esperanto, Farsi (Persian), Finnish, French, German, Greek, Hungarian, +# Indonesian, Italian, Japanese, Japanese-en (Japanese with English messages), +# Korean, Korean-en (Korean with English messages), Latvian, Lithuanian, +# Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese, Romanian, Russian, +# Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish, Swedish, Turkish, +# Ukrainian and Vietnamese. +# The default value is: English. + +OUTPUT_LANGUAGE = English + +# If the BRIEF_MEMBER_DESC tag is set to YES doxygen will include brief member +# descriptions after the members that are listed in the file and class +# documentation (similar to Javadoc). Set to NO to disable this. +# The default value is: YES. + +BRIEF_MEMBER_DESC = YES + +# If the REPEAT_BRIEF tag is set to YES doxygen will prepend the brief +# description of a member or function before the detailed description +# +# Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the +# brief descriptions will be completely suppressed. +# The default value is: YES. + +REPEAT_BRIEF = YES + +# This tag implements a quasi-intelligent brief description abbreviator that is +# used to form the text in various listings. Each string in this list, if found +# as the leading text of the brief description, will be stripped from the text +# and the result, after processing the whole list, is used as the annotated +# text. Otherwise, the brief description is used as-is. If left blank, the +# following values are used ($name is automatically replaced with the name of +# the entity):The $name class, The $name widget, The $name file, is, provides, +# specifies, contains, represents, a, an and the. + +ABBREVIATE_BRIEF = "The $name class" \ + "The $name widget" \ + "The $name file" \ + is \ + provides \ + specifies \ + contains \ + represents \ + a \ + an \ + the + +# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then +# doxygen will generate a detailed section even if there is only a brief +# description. +# The default value is: NO. + +ALWAYS_DETAILED_SEC = NO + +# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all +# inherited members of a class in the documentation of that class as if those +# members were ordinary class members. Constructors, destructors and assignment +# operators of the base classes will not be shown. +# The default value is: NO. + +INLINE_INHERITED_MEMB = NO + +# If the FULL_PATH_NAMES tag is set to YES doxygen will prepend the full path +# before files name in the file list and in the header files. If set to NO the +# shortest path that makes the file name unique will be used +# The default value is: YES. + +FULL_PATH_NAMES = YES + +# The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path. +# Stripping is only done if one of the specified strings matches the left-hand +# part of the path. The tag can be used to show relative paths in the file list. +# If left blank the directory from which doxygen is run is used as the path to +# strip. +# +# Note that you can specify absolute paths here, but also relative paths, which +# will be relative from the directory where doxygen is started. +# This tag requires that the tag FULL_PATH_NAMES is set to YES. + +STRIP_FROM_PATH = + +# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the +# path mentioned in the documentation of a class, which tells the reader which +# header file to include in order to use a class. If left blank only the name of +# the header file containing the class definition is used. Otherwise one should +# specify the list of include paths that are normally passed to the compiler +# using the -I flag. + +STRIP_FROM_INC_PATH = + +# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but +# less readable) file names. This can be useful is your file systems doesn't +# support long names like on DOS, Mac, or CD-ROM. +# The default value is: NO. + +SHORT_NAMES = NO + +# If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the +# first line (until the first dot) of a Javadoc-style comment as the brief +# description. If set to NO, the Javadoc-style will behave just like regular Qt- +# style comments (thus requiring an explicit @brief command for a brief +# description.) +# The default value is: NO. + +JAVADOC_AUTOBRIEF = NO + +# If the QT_AUTOBRIEF tag is set to YES then doxygen will interpret the first +# line (until the first dot) of a Qt-style comment as the brief description. If +# set to NO, the Qt-style will behave just like regular Qt-style comments (thus +# requiring an explicit \brief command for a brief description.) +# The default value is: NO. + +QT_AUTOBRIEF = NO + +# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a +# multi-line C++ special comment block (i.e. a block of //! or /// comments) as +# a brief description. This used to be the default behavior. The new default is +# to treat a multi-line C++ comment block as a detailed description. Set this +# tag to YES if you prefer the old behavior instead. +# +# Note that setting this tag to YES also means that rational rose comments are +# not recognized any more. +# The default value is: NO. + +MULTILINE_CPP_IS_BRIEF = NO + +# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the +# documentation from any documented member that it re-implements. +# The default value is: YES. + +INHERIT_DOCS = YES + +# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce a +# new page for each member. If set to NO, the documentation of a member will be +# part of the file/class/namespace that contains it. +# The default value is: NO. + +SEPARATE_MEMBER_PAGES = NO + +# The TAB_SIZE tag can be used to set the number of spaces in a tab. Doxygen +# uses this value to replace tabs by spaces in code fragments. +# Minimum value: 1, maximum value: 16, default value: 4. + +TAB_SIZE = 4 + +# This tag can be used to specify a number of aliases that act as commands in +# the documentation. An alias has the form: +# name=value +# For example adding +# "sideeffect=@par Side Effects:\n" +# will allow you to put the command \sideeffect (or @sideeffect) in the +# documentation, which will result in a user-defined paragraph with heading +# "Side Effects:". You can put \n's in the value part of an alias to insert +# newlines. + +ALIASES = + +# This tag can be used to specify a number of word-keyword mappings (TCL only). +# A mapping has the form "name=value". For example adding "class=itcl::class" +# will allow you to use the command class in the itcl::class meaning. + +TCL_SUBST = + +# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources +# only. Doxygen will then generate output that is more tailored for C. For +# instance, some of the names that are used will be different. The list of all +# members will be omitted, etc. +# The default value is: NO. + +OPTIMIZE_OUTPUT_FOR_C = NO + +# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java or +# Python sources only. Doxygen will then generate output that is more tailored +# for that language. For instance, namespaces will be presented as packages, +# qualified scopes will look different, etc. +# The default value is: NO. + +OPTIMIZE_OUTPUT_JAVA = NO + +# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran +# sources. Doxygen will then generate output that is tailored for Fortran. +# The default value is: NO. + +OPTIMIZE_FOR_FORTRAN = NO + +# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL +# sources. Doxygen will then generate output that is tailored for VHDL. +# The default value is: NO. + +OPTIMIZE_OUTPUT_VHDL = NO + +# Doxygen selects the parser to use depending on the extension of the files it +# parses. With this tag you can assign which parser to use for a given +# extension. Doxygen has a built-in mapping, but you can override or extend it +# using this tag. The format is ext=language, where ext is a file extension, and +# language is one of the parsers supported by doxygen: IDL, Java, Javascript, +# C#, C, C++, D, PHP, Objective-C, Python, Fortran (fixed format Fortran: +# FortranFixed, free formatted Fortran: FortranFree, unknown formatted Fortran: +# Fortran. In the later case the parser tries to guess whether the code is fixed +# or free formatted code, this is the default for Fortran type files), VHDL. For +# instance to make doxygen treat .inc files as Fortran files (default is PHP), +# and .f files as C (default is Fortran), use: inc=Fortran f=C. +# +# Note For files without extension you can use no_extension as a placeholder. +# +# Note that for custom extensions you also need to set FILE_PATTERNS otherwise +# the files are not read by doxygen. + +EXTENSION_MAPPING = + +# If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments +# according to the Markdown format, which allows for more readable +# documentation. See http://daringfireball.net/projects/markdown/ for details. +# The output of markdown processing is further processed by doxygen, so you can +# mix doxygen, HTML, and XML commands with Markdown formatting. Disable only in +# case of backward compatibilities issues. +# The default value is: YES. + +MARKDOWN_SUPPORT = YES + +# When enabled doxygen tries to link words that correspond to documented +# classes, or namespaces to their corresponding documentation. Such a link can +# be prevented in individual cases by by putting a % sign in front of the word +# or globally by setting AUTOLINK_SUPPORT to NO. +# The default value is: YES. + +AUTOLINK_SUPPORT = YES + +# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want +# to include (a tag file for) the STL sources as input, then you should set this +# tag to YES in order to let doxygen match functions declarations and +# definitions whose arguments contain STL classes (e.g. func(std::string); +# versus func(std::string) {}). This also make the inheritance and collaboration +# diagrams that involve STL classes more complete and accurate. +# The default value is: NO. + +BUILTIN_STL_SUPPORT = NO + +# If you use Microsoft's C++/CLI language, you should set this option to YES to +# enable parsing support. +# The default value is: NO. + +CPP_CLI_SUPPORT = NO + +# Set the SIP_SUPPORT tag to YES if your project consists of sip (see: +# http://www.riverbankcomputing.co.uk/software/sip/intro) sources only. Doxygen +# will parse them like normal C++ but will assume all classes use public instead +# of private inheritance when no explicit protection keyword is present. +# The default value is: NO. + +SIP_SUPPORT = NO + +# For Microsoft's IDL there are propget and propput attributes to indicate +# getter and setter methods for a property. Setting this option to YES will make +# doxygen to replace the get and set methods by a property in the documentation. +# This will only work if the methods are indeed getting or setting a simple +# type. If this is not the case, or you want to show the methods anyway, you +# should set this option to NO. +# The default value is: YES. + +IDL_PROPERTY_SUPPORT = YES + +# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC +# tag is set to YES, then doxygen will reuse the documentation of the first +# member in the group (if any) for the other members of the group. By default +# all members of a group must be documented explicitly. +# The default value is: NO. + +DISTRIBUTE_GROUP_DOC = NO + +# Set the SUBGROUPING tag to YES to allow class member groups of the same type +# (for instance a group of public functions) to be put as a subgroup of that +# type (e.g. under the Public Functions section). Set it to NO to prevent +# subgrouping. Alternatively, this can be done per class using the +# \nosubgrouping command. +# The default value is: YES. + +SUBGROUPING = YES + +# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and unions +# are shown inside the group in which they are included (e.g. using \ingroup) +# instead of on a separate page (for HTML and Man pages) or section (for LaTeX +# and RTF). +# +# Note that this feature does not work in combination with +# SEPARATE_MEMBER_PAGES. +# The default value is: NO. + +INLINE_GROUPED_CLASSES = NO + +# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and unions +# with only public data fields or simple typedef fields will be shown inline in +# the documentation of the scope in which they are defined (i.e. file, +# namespace, or group documentation), provided this scope is documented. If set +# to NO, structs, classes, and unions are shown on a separate page (for HTML and +# Man pages) or section (for LaTeX and RTF). +# The default value is: NO. + +INLINE_SIMPLE_STRUCTS = NO + +# When TYPEDEF_HIDES_STRUCT tag is enabled, a typedef of a struct, union, or +# enum is documented as struct, union, or enum with the name of the typedef. So +# typedef struct TypeS {} TypeT, will appear in the documentation as a struct +# with name TypeT. When disabled the typedef will appear as a member of a file, +# namespace, or class. And the struct will be named TypeS. This can typically be +# useful for C code in case the coding convention dictates that all compound +# types are typedef'ed and only the typedef is referenced, never the tag name. +# The default value is: NO. + +TYPEDEF_HIDES_STRUCT = NO + +# The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This +# cache is used to resolve symbols given their name and scope. Since this can be +# an expensive process and often the same symbol appears multiple times in the +# code, doxygen keeps a cache of pre-resolved symbols. If the cache is too small +# doxygen will become slower. If the cache is too large, memory is wasted. The +# cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range +# is 0..9, the default is 0, corresponding to a cache size of 2^16=65536 +# symbols. At the end of a run doxygen will report the cache usage and suggest +# the optimal cache size from a speed point of view. +# Minimum value: 0, maximum value: 9, default value: 0. + +LOOKUP_CACHE_SIZE = 0 + +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- + +# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in +# documentation are documented, even if no documentation was available. Private +# class members and static file members will be hidden unless the +# EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES. +# Note: This will also disable the warnings about undocumented members that are +# normally produced when WARNINGS is set to YES. +# The default value is: NO. + +EXTRACT_ALL = YES + +# If the EXTRACT_PRIVATE tag is set to YES all private members of a class will +# be included in the documentation. +# The default value is: NO. + +EXTRACT_PRIVATE = NO + +# If the EXTRACT_PACKAGE tag is set to YES all members with package or internal +# scope will be included in the documentation. +# The default value is: NO. + +EXTRACT_PACKAGE = NO + +# If the EXTRACT_STATIC tag is set to YES all static members of a file will be +# included in the documentation. +# The default value is: NO. + +EXTRACT_STATIC = NO + +# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) defined +# locally in source files will be included in the documentation. If set to NO +# only classes defined in header files are included. Does not have any effect +# for Java sources. +# The default value is: YES. + +EXTRACT_LOCAL_CLASSES = YES + +# This flag is only useful for Objective-C code. When set to YES local methods, +# which are defined in the implementation section but not in the interface are +# included in the documentation. If set to NO only methods in the interface are +# included. +# The default value is: NO. + +EXTRACT_LOCAL_METHODS = NO + +# If this flag is set to YES, the members of anonymous namespaces will be +# extracted and appear in the documentation as a namespace called +# 'anonymous_namespace{file}', where file will be replaced with the base name of +# the file that contains the anonymous namespace. By default anonymous namespace +# are hidden. +# The default value is: NO. + +EXTRACT_ANON_NSPACES = NO + +# If the HIDE_UNDOC_MEMBERS tag is set to YES, doxygen will hide all +# undocumented members inside documented classes or files. If set to NO these +# members will be included in the various overviews, but no documentation +# section is generated. This option has no effect if EXTRACT_ALL is enabled. +# The default value is: NO. + +HIDE_UNDOC_MEMBERS = NO + +# If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all +# undocumented classes that are normally visible in the class hierarchy. If set +# to NO these classes will be included in the various overviews. This option has +# no effect if EXTRACT_ALL is enabled. +# The default value is: NO. + +HIDE_UNDOC_CLASSES = NO + +# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend +# (class|struct|union) declarations. If set to NO these declarations will be +# included in the documentation. +# The default value is: NO. + +HIDE_FRIEND_COMPOUNDS = NO + +# If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any +# documentation blocks found inside the body of a function. If set to NO these +# blocks will be appended to the function's detailed documentation block. +# The default value is: NO. + +HIDE_IN_BODY_DOCS = NO + +# The INTERNAL_DOCS tag determines if documentation that is typed after a +# \internal command is included. If the tag is set to NO then the documentation +# will be excluded. Set it to YES to include the internal documentation. +# The default value is: NO. + +INTERNAL_DOCS = NO + +# If the CASE_SENSE_NAMES tag is set to NO then doxygen will only generate file +# names in lower-case letters. If set to YES upper-case letters are also +# allowed. This is useful if you have classes or files whose names only differ +# in case and if your file system supports case sensitive file names. Windows +# and Mac users are advised to set this option to NO. +# The default value is: system dependent. + +CASE_SENSE_NAMES = NO + +# If the HIDE_SCOPE_NAMES tag is set to NO then doxygen will show members with +# their full class and namespace scopes in the documentation. If set to YES the +# scope will be hidden. +# The default value is: NO. + +HIDE_SCOPE_NAMES = NO + +# If the SHOW_INCLUDE_FILES tag is set to YES then doxygen will put a list of +# the files that are included by a file in the documentation of that file. +# The default value is: YES. + +SHOW_INCLUDE_FILES = YES + +# If the SHOW_GROUPED_MEMB_INC tag is set to YES then Doxygen will add for each +# grouped member an include statement to the documentation, telling the reader +# which file to include in order to use the member. +# The default value is: NO. + +SHOW_GROUPED_MEMB_INC = NO + +# If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include +# files with double quotes in the documentation rather than with sharp brackets. +# The default value is: NO. + +FORCE_LOCAL_INCLUDES = NO + +# If the INLINE_INFO tag is set to YES then a tag [inline] is inserted in the +# documentation for inline members. +# The default value is: YES. + +INLINE_INFO = YES + +# If the SORT_MEMBER_DOCS tag is set to YES then doxygen will sort the +# (detailed) documentation of file and class members alphabetically by member +# name. If set to NO the members will appear in declaration order. +# The default value is: YES. + +SORT_MEMBER_DOCS = YES + +# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief +# descriptions of file, namespace and class members alphabetically by member +# name. If set to NO the members will appear in declaration order. Note that +# this will also influence the order of the classes in the class list. +# The default value is: NO. + +SORT_BRIEF_DOCS = NO + +# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the +# (brief and detailed) documentation of class members so that constructors and +# destructors are listed first. If set to NO the constructors will appear in the +# respective orders defined by SORT_BRIEF_DOCS and SORT_MEMBER_DOCS. +# Note: If SORT_BRIEF_DOCS is set to NO this option is ignored for sorting brief +# member documentation. +# Note: If SORT_MEMBER_DOCS is set to NO this option is ignored for sorting +# detailed member documentation. +# The default value is: NO. + +SORT_MEMBERS_CTORS_1ST = NO + +# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the hierarchy +# of group names into alphabetical order. If set to NO the group names will +# appear in their defined order. +# The default value is: NO. + +SORT_GROUP_NAMES = NO + +# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be sorted by +# fully-qualified names, including namespaces. If set to NO, the class list will +# be sorted only by class name, not including the namespace part. +# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. +# Note: This option applies only to the class list, not to the alphabetical +# list. +# The default value is: NO. + +SORT_BY_SCOPE_NAME = NO + +# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to do proper +# type resolution of all parameters of a function it will reject a match between +# the prototype and the implementation of a member function even if there is +# only one candidate or it is obvious which candidate to choose by doing a +# simple string match. By disabling STRICT_PROTO_MATCHING doxygen will still +# accept a match between prototype and implementation in such cases. +# The default value is: NO. + +STRICT_PROTO_MATCHING = NO + +# The GENERATE_TODOLIST tag can be used to enable ( YES) or disable ( NO) the +# todo list. This list is created by putting \todo commands in the +# documentation. +# The default value is: YES. + +GENERATE_TODOLIST = YES + +# The GENERATE_TESTLIST tag can be used to enable ( YES) or disable ( NO) the +# test list. This list is created by putting \test commands in the +# documentation. +# The default value is: YES. + +GENERATE_TESTLIST = YES + +# The GENERATE_BUGLIST tag can be used to enable ( YES) or disable ( NO) the bug +# list. This list is created by putting \bug commands in the documentation. +# The default value is: YES. + +GENERATE_BUGLIST = YES + +# The GENERATE_DEPRECATEDLIST tag can be used to enable ( YES) or disable ( NO) +# the deprecated list. This list is created by putting \deprecated commands in +# the documentation. +# The default value is: YES. + +GENERATE_DEPRECATEDLIST= YES + +# The ENABLED_SECTIONS tag can be used to enable conditional documentation +# sections, marked by \if ... \endif and \cond +# ... \endcond blocks. + +ENABLED_SECTIONS = + +# The MAX_INITIALIZER_LINES tag determines the maximum number of lines that the +# initial value of a variable or macro / define can have for it to appear in the +# documentation. If the initializer consists of more lines than specified here +# it will be hidden. Use a value of 0 to hide initializers completely. The +# appearance of the value of individual variables and macros / defines can be +# controlled using \showinitializer or \hideinitializer command in the +# documentation regardless of this setting. +# Minimum value: 0, maximum value: 10000, default value: 30. + +MAX_INITIALIZER_LINES = 30 + +# Set the SHOW_USED_FILES tag to NO to disable the list of files generated at +# the bottom of the documentation of classes and structs. If set to YES the list +# will mention the files that were used to generate the documentation. +# The default value is: YES. + +SHOW_USED_FILES = YES + +# Set the SHOW_FILES tag to NO to disable the generation of the Files page. This +# will remove the Files entry from the Quick Index and from the Folder Tree View +# (if specified). +# The default value is: YES. + +SHOW_FILES = YES + +# Set the SHOW_NAMESPACES tag to NO to disable the generation of the Namespaces +# page. This will remove the Namespaces entry from the Quick Index and from the +# Folder Tree View (if specified). +# The default value is: YES. + +SHOW_NAMESPACES = YES + +# The FILE_VERSION_FILTER tag can be used to specify a program or script that +# doxygen should invoke to get the current version for each file (typically from +# the version control system). Doxygen will invoke the program by executing (via +# popen()) the command command input-file, where command is the value of the +# FILE_VERSION_FILTER tag, and input-file is the name of an input file provided +# by doxygen. Whatever the program writes to standard output is used as the file +# version. For an example see the documentation. + +FILE_VERSION_FILTER = + +# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed +# by doxygen. The layout file controls the global structure of the generated +# output files in an output format independent way. To create the layout file +# that represents doxygen's defaults, run doxygen with the -l option. You can +# optionally specify a file name after the option, if omitted DoxygenLayout.xml +# will be used as the name of the layout file. +# +# Note that if you run doxygen from a directory containing a file called +# DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE +# tag is left empty. + +LAYOUT_FILE = + +# The CITE_BIB_FILES tag can be used to specify one or more bib files containing +# the reference definitions. This must be a list of .bib files. The .bib +# extension is automatically appended if omitted. This requires the bibtex tool +# to be installed. See also http://en.wikipedia.org/wiki/BibTeX for more info. +# For LaTeX the style of the bibliography can be controlled using +# LATEX_BIB_STYLE. To use this feature you need bibtex and perl available in the +# search path. Do not use file names with spaces, bibtex cannot handle them. See +# also \cite for info how to create references. + +CITE_BIB_FILES = + +#--------------------------------------------------------------------------- +# Configuration options related to warning and progress messages +#--------------------------------------------------------------------------- + +# The QUIET tag can be used to turn on/off the messages that are generated to +# standard output by doxygen. If QUIET is set to YES this implies that the +# messages are off. +# The default value is: NO. + +QUIET = NO + +# The WARNINGS tag can be used to turn on/off the warning messages that are +# generated to standard error ( stderr) by doxygen. If WARNINGS is set to YES +# this implies that the warnings are on. +# +# Tip: Turn warnings on while writing the documentation. +# The default value is: YES. + +WARNINGS = YES + +# If the WARN_IF_UNDOCUMENTED tag is set to YES, then doxygen will generate +# warnings for undocumented members. If EXTRACT_ALL is set to YES then this flag +# will automatically be disabled. +# The default value is: YES. + +WARN_IF_UNDOCUMENTED = YES + +# If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for +# potential errors in the documentation, such as not documenting some parameters +# in a documented function, or documenting parameters that don't exist or using +# markup commands wrongly. +# The default value is: YES. + +WARN_IF_DOC_ERROR = YES + +# This WARN_NO_PARAMDOC option can be enabled to get warnings for functions that +# are documented, but have no documentation for their parameters or return +# value. If set to NO doxygen will only warn about wrong or incomplete parameter +# documentation, but not about the absence of documentation. +# The default value is: NO. + +WARN_NO_PARAMDOC = NO + +# The WARN_FORMAT tag determines the format of the warning messages that doxygen +# can produce. The string should contain the $file, $line, and $text tags, which +# will be replaced by the file and line number from which the warning originated +# and the warning text. Optionally the format may contain $version, which will +# be replaced by the version of the file (if it could be obtained via +# FILE_VERSION_FILTER) +# The default value is: $file:$line: $text. + +WARN_FORMAT = "$file:$line: $text" + +# The WARN_LOGFILE tag can be used to specify a file to which warning and error +# messages should be written. If left blank the output is written to standard +# error (stderr). + +WARN_LOGFILE = + +#--------------------------------------------------------------------------- +# Configuration options related to the input files +#--------------------------------------------------------------------------- + +# The INPUT tag is used to specify the files and/or directories that contain +# documented source files. You may enter file names like myfile.cpp or +# directories like /usr/src/myproject. Separate the files or directories with +# spaces. +# Note: If this tag is empty the current directory is searched. + +INPUT = + +# This tag can be used to specify the character encoding of the source files +# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses +# libiconv (or the iconv built into libc) for the transcoding. See the libiconv +# documentation (see: http://www.gnu.org/software/libiconv) for the list of +# possible encodings. +# The default value is: UTF-8. + +INPUT_ENCODING = UTF-8 + +# If the value of the INPUT tag contains directories, you can use the +# FILE_PATTERNS tag to specify one or more wildcard patterns (like *.cpp and +# *.h) to filter out the source-files in the directories. If left blank the +# following patterns are tested:*.c, *.cc, *.cxx, *.cpp, *.c++, *.java, *.ii, +# *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h, *.hh, *.hxx, *.hpp, +# *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc, *.m, *.markdown, +# *.md, *.mm, *.dox, *.py, *.f90, *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, +# *.qsf, *.as and *.js. + +FILE_PATTERNS = *.c \ + *.cc \ + *.cxx \ + *.cpp \ + *.c++ \ + *.java \ + *.ii \ + *.ixx \ + *.ipp \ + *.i++ \ + *.inl \ + *.idl \ + *.ddl \ + *.odl \ + *.h \ + *.hh \ + *.hxx \ + *.hpp \ + *.h++ \ + *.cs \ + *.d \ + *.php \ + *.php4 \ + *.php5 \ + *.phtml \ + *.inc \ + *.m \ + *.markdown \ + *.md \ + *.mm \ + *.dox \ + *.py \ + *.f90 \ + *.f \ + *.for \ + *.tcl \ + *.vhd \ + *.vhdl \ + *.ucf \ + *.qsf \ + *.as \ + *.js + +# The RECURSIVE tag can be used to specify whether or not subdirectories should +# be searched for input files as well. +# The default value is: NO. + +RECURSIVE = YES + +# The EXCLUDE tag can be used to specify files and/or directories that should be +# excluded from the INPUT source files. This way you can easily exclude a +# subdirectory from a directory tree whose root is specified with the INPUT tag. +# +# Note that relative paths are relative to the directory from which doxygen is +# run. + +EXCLUDE = + +# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or +# directories that are symbolic links (a Unix file system feature) are excluded +# from the input. +# The default value is: NO. + +EXCLUDE_SYMLINKS = NO + +# If the value of the INPUT tag contains directories, you can use the +# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude +# certain files from those directories. +# +# Note that the wildcards are matched against the file with absolute path, so to +# exclude all test directories for example use the pattern */test/* + +EXCLUDE_PATTERNS = + +# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names +# (namespaces, classes, functions, etc.) that should be excluded from the +# output. The symbol name can be a fully qualified name, a word, or if the +# wildcard * is used, a substring. Examples: ANamespace, AClass, +# AClass::ANamespace, ANamespace::*Test +# +# Note that the wildcards are matched against the file with absolute path, so to +# exclude all test directories use the pattern */test/* + +EXCLUDE_SYMBOLS = + +# The EXAMPLE_PATH tag can be used to specify one or more files or directories +# that contain example code fragments that are included (see the \include +# command). + +EXAMPLE_PATH = + +# If the value of the EXAMPLE_PATH tag contains directories, you can use the +# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and +# *.h) to filter out the source-files in the directories. If left blank all +# files are included. + +EXAMPLE_PATTERNS = * + +# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be +# searched for input files to be used with the \include or \dontinclude commands +# irrespective of the value of the RECURSIVE tag. +# The default value is: NO. + +EXAMPLE_RECURSIVE = NO + +# The IMAGE_PATH tag can be used to specify one or more files or directories +# that contain images that are to be included in the documentation (see the +# \image command). + +IMAGE_PATH = + +# The INPUT_FILTER tag can be used to specify a program that doxygen should +# invoke to filter for each input file. Doxygen will invoke the filter program +# by executing (via popen()) the command: +# +# +# +# where is the value of the INPUT_FILTER tag, and is the +# name of an input file. Doxygen will then use the output that the filter +# program writes to standard output. If FILTER_PATTERNS is specified, this tag +# will be ignored. +# +# Note that the filter must not add or remove lines; it is applied before the +# code is scanned, but not when the output code is generated. If lines are added +# or removed, the anchors will not be placed correctly. + +INPUT_FILTER = + +# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern +# basis. Doxygen will compare the file name with each pattern and apply the +# filter if there is a match. The filters are a list of the form: pattern=filter +# (like *.cpp=my_cpp_filter). See INPUT_FILTER for further information on how +# filters are used. If the FILTER_PATTERNS tag is empty or if none of the +# patterns match the file name, INPUT_FILTER is applied. + +FILTER_PATTERNS = + +# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using +# INPUT_FILTER ) will also be used to filter the input files that are used for +# producing the source files to browse (i.e. when SOURCE_BROWSER is set to YES). +# The default value is: NO. + +FILTER_SOURCE_FILES = NO + +# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file +# pattern. A pattern will override the setting for FILTER_PATTERN (if any) and +# it is also possible to disable source filtering for a specific pattern using +# *.ext= (so without naming a filter). +# This tag requires that the tag FILTER_SOURCE_FILES is set to YES. + +FILTER_SOURCE_PATTERNS = + +# If the USE_MDFILE_AS_MAINPAGE tag refers to the name of a markdown file that +# is part of the input, its contents will be placed on the main page +# (index.html). This can be useful if you have a project on for instance GitHub +# and want to reuse the introduction page also for the doxygen output. + +USE_MDFILE_AS_MAINPAGE = + +#--------------------------------------------------------------------------- +# Configuration options related to source browsing +#--------------------------------------------------------------------------- + +# If the SOURCE_BROWSER tag is set to YES then a list of source files will be +# generated. Documented entities will be cross-referenced with these sources. +# +# Note: To get rid of all source code in the generated output, make sure that +# also VERBATIM_HEADERS is set to NO. +# The default value is: NO. + +SOURCE_BROWSER = NO + +# Setting the INLINE_SOURCES tag to YES will include the body of functions, +# classes and enums directly into the documentation. +# The default value is: NO. + +INLINE_SOURCES = NO + +# Setting the STRIP_CODE_COMMENTS tag to YES will instruct doxygen to hide any +# special comment blocks from generated source code fragments. Normal C, C++ and +# Fortran comments will always remain visible. +# The default value is: YES. + +STRIP_CODE_COMMENTS = YES + +# If the REFERENCED_BY_RELATION tag is set to YES then for each documented +# function all documented functions referencing it will be listed. +# The default value is: NO. + +REFERENCED_BY_RELATION = NO + +# If the REFERENCES_RELATION tag is set to YES then for each documented function +# all documented entities called/used by that function will be listed. +# The default value is: NO. + +REFERENCES_RELATION = NO + +# If the REFERENCES_LINK_SOURCE tag is set to YES and SOURCE_BROWSER tag is set +# to YES, then the hyperlinks from functions in REFERENCES_RELATION and +# REFERENCED_BY_RELATION lists will link to the source code. Otherwise they will +# link to the documentation. +# The default value is: YES. + +REFERENCES_LINK_SOURCE = YES + +# If SOURCE_TOOLTIPS is enabled (the default) then hovering a hyperlink in the +# source code will show a tooltip with additional information such as prototype, +# brief description and links to the definition and documentation. Since this +# will make the HTML file larger and loading of large files a bit slower, you +# can opt to disable this feature. +# The default value is: YES. +# This tag requires that the tag SOURCE_BROWSER is set to YES. + +SOURCE_TOOLTIPS = YES + +# If the USE_HTAGS tag is set to YES then the references to source code will +# point to the HTML generated by the htags(1) tool instead of doxygen built-in +# source browser. The htags tool is part of GNU's global source tagging system +# (see http://www.gnu.org/software/global/global.html). You will need version +# 4.8.6 or higher. +# +# To use it do the following: +# - Install the latest version of global +# - Enable SOURCE_BROWSER and USE_HTAGS in the config file +# - Make sure the INPUT points to the root of the source tree +# - Run doxygen as normal +# +# Doxygen will invoke htags (and that will in turn invoke gtags), so these +# tools must be available from the command line (i.e. in the search path). +# +# The result: instead of the source browser generated by doxygen, the links to +# source code will now point to the output of htags. +# The default value is: NO. +# This tag requires that the tag SOURCE_BROWSER is set to YES. + +USE_HTAGS = NO + +# If the VERBATIM_HEADERS tag is set the YES then doxygen will generate a +# verbatim copy of the header file for each class for which an include is +# specified. Set to NO to disable this. +# See also: Section \class. +# The default value is: YES. + +VERBATIM_HEADERS = YES + +#--------------------------------------------------------------------------- +# Configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- + +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index of all +# compounds will be generated. Enable this if the project contains a lot of +# classes, structs, unions or interfaces. +# The default value is: YES. + +ALPHABETICAL_INDEX = YES + +# The COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns in +# which the alphabetical index list will be split. +# Minimum value: 1, maximum value: 20, default value: 5. +# This tag requires that the tag ALPHABETICAL_INDEX is set to YES. + +COLS_IN_ALPHA_INDEX = 5 + +# In case all classes in a project start with a common prefix, all classes will +# be put under the same header in the alphabetical index. The IGNORE_PREFIX tag +# can be used to specify a prefix (or a list of prefixes) that should be ignored +# while generating the index headers. +# This tag requires that the tag ALPHABETICAL_INDEX is set to YES. + +IGNORE_PREFIX = + +#--------------------------------------------------------------------------- +# Configuration options related to the HTML output +#--------------------------------------------------------------------------- + +# If the GENERATE_HTML tag is set to YES doxygen will generate HTML output +# The default value is: YES. + +GENERATE_HTML = YES + +# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a +# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of +# it. +# The default directory is: html. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_OUTPUT = html + +# The HTML_FILE_EXTENSION tag can be used to specify the file extension for each +# generated HTML page (for example: .htm, .php, .asp). +# The default value is: .html. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_FILE_EXTENSION = .html + +# The HTML_HEADER tag can be used to specify a user-defined HTML header file for +# each generated HTML page. If the tag is left blank doxygen will generate a +# standard header. +# +# To get valid HTML the header file that includes any scripts and style sheets +# that doxygen needs, which is dependent on the configuration options used (e.g. +# the setting GENERATE_TREEVIEW). It is highly recommended to start with a +# default header using +# doxygen -w html new_header.html new_footer.html new_stylesheet.css +# YourConfigFile +# and then modify the file new_header.html. See also section "Doxygen usage" +# for information on how to generate the default header that doxygen normally +# uses. +# Note: The header is subject to change so you typically have to regenerate the +# default header when upgrading to a newer version of doxygen. For a description +# of the possible markers and block names see the documentation. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_HEADER = + +# The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each +# generated HTML page. If the tag is left blank doxygen will generate a standard +# footer. See HTML_HEADER for more information on how to generate a default +# footer and what special commands can be used inside the footer. See also +# section "Doxygen usage" for information on how to generate the default footer +# that doxygen normally uses. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_FOOTER = + +# The HTML_STYLESHEET tag can be used to specify a user-defined cascading style +# sheet that is used by each HTML page. It can be used to fine-tune the look of +# the HTML output. If left blank doxygen will generate a default style sheet. +# See also section "Doxygen usage" for information on how to generate the style +# sheet that doxygen normally uses. +# Note: It is recommended to use HTML_EXTRA_STYLESHEET instead of this tag, as +# it is more robust and this tag (HTML_STYLESHEET) will in the future become +# obsolete. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_STYLESHEET = + +# The HTML_EXTRA_STYLESHEET tag can be used to specify an additional user- +# defined cascading style sheet that is included after the standard style sheets +# created by doxygen. Using this option one can overrule certain style aspects. +# This is preferred over using HTML_STYLESHEET since it does not replace the +# standard style sheet and is therefor more robust against future updates. +# Doxygen will copy the style sheet file to the output directory. For an example +# see the documentation. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_EXTRA_STYLESHEET = + +# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or +# other source files which should be copied to the HTML output directory. Note +# that these files will be copied to the base HTML output directory. Use the +# $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these +# files. In the HTML_STYLESHEET file, use the file name only. Also note that the +# files will be copied as-is; there are no commands or markers available. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_EXTRA_FILES = + +# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen +# will adjust the colors in the stylesheet and background images according to +# this color. Hue is specified as an angle on a colorwheel, see +# http://en.wikipedia.org/wiki/Hue for more information. For instance the value +# 0 represents red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, 300 +# purple, and 360 is red again. +# Minimum value: 0, maximum value: 359, default value: 220. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_COLORSTYLE_HUE = 220 + +# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors +# in the HTML output. For a value of 0 the output will use grayscales only. A +# value of 255 will produce the most vivid colors. +# Minimum value: 0, maximum value: 255, default value: 100. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_COLORSTYLE_SAT = 100 + +# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the +# luminance component of the colors in the HTML output. Values below 100 +# gradually make the output lighter, whereas values above 100 make the output +# darker. The value divided by 100 is the actual gamma applied, so 80 represents +# a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not +# change the gamma. +# Minimum value: 40, maximum value: 240, default value: 80. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_COLORSTYLE_GAMMA = 80 + +# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML +# page will contain the date and time when the page was generated. Setting this +# to NO can help when comparing the output of multiple runs. +# The default value is: YES. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_TIMESTAMP = YES + +# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML +# documentation will contain sections that can be hidden and shown after the +# page has loaded. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_DYNAMIC_SECTIONS = NO + +# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of entries +# shown in the various tree structured indices initially; the user can expand +# and collapse entries dynamically later on. Doxygen will expand the tree to +# such a level that at most the specified number of entries are visible (unless +# a fully collapsed tree already exceeds this amount). So setting the number of +# entries 1 will produce a full collapsed tree by default. 0 is a special value +# representing an infinite number of entries and will result in a full expanded +# tree by default. +# Minimum value: 0, maximum value: 9999, default value: 100. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_INDEX_NUM_ENTRIES = 100 + +# If the GENERATE_DOCSET tag is set to YES, additional index files will be +# generated that can be used as input for Apple's Xcode 3 integrated development +# environment (see: http://developer.apple.com/tools/xcode/), introduced with +# OSX 10.5 (Leopard). To create a documentation set, doxygen will generate a +# Makefile in the HTML output directory. Running make will produce the docset in +# that directory and running make install will install the docset in +# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find it at +# startup. See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html +# for more information. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +GENERATE_DOCSET = NO + +# This tag determines the name of the docset feed. A documentation feed provides +# an umbrella under which multiple documentation sets from a single provider +# (such as a company or product suite) can be grouped. +# The default value is: Doxygen generated docs. +# This tag requires that the tag GENERATE_DOCSET is set to YES. + +DOCSET_FEEDNAME = "Doxygen generated docs" + +# This tag specifies a string that should uniquely identify the documentation +# set bundle. This should be a reverse domain-name style string, e.g. +# com.mycompany.MyDocSet. Doxygen will append .docset to the name. +# The default value is: org.doxygen.Project. +# This tag requires that the tag GENERATE_DOCSET is set to YES. + +DOCSET_BUNDLE_ID = org.doxygen.Project + +# The DOCSET_PUBLISHER_ID tag specifies a string that should uniquely identify +# the documentation publisher. This should be a reverse domain-name style +# string, e.g. com.mycompany.MyDocSet.documentation. +# The default value is: org.doxygen.Publisher. +# This tag requires that the tag GENERATE_DOCSET is set to YES. + +DOCSET_PUBLISHER_ID = org.doxygen.Publisher + +# The DOCSET_PUBLISHER_NAME tag identifies the documentation publisher. +# The default value is: Publisher. +# This tag requires that the tag GENERATE_DOCSET is set to YES. + +DOCSET_PUBLISHER_NAME = Publisher + +# If the GENERATE_HTMLHELP tag is set to YES then doxygen generates three +# additional HTML index files: index.hhp, index.hhc, and index.hhk. The +# index.hhp is a project file that can be read by Microsoft's HTML Help Workshop +# (see: http://www.microsoft.com/en-us/download/details.aspx?id=21138) on +# Windows. +# +# The HTML Help Workshop contains a compiler that can convert all HTML output +# generated by doxygen into a single compiled HTML file (.chm). Compiled HTML +# files are now used as the Windows 98 help format, and will replace the old +# Windows help format (.hlp) on all Windows platforms in the future. Compressed +# HTML files also contain an index, a table of contents, and you can search for +# words in the documentation. The HTML workshop also contains a viewer for +# compressed HTML files. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +GENERATE_HTMLHELP = NO + +# The CHM_FILE tag can be used to specify the file name of the resulting .chm +# file. You can add a path in front of the file if the result should not be +# written to the html output directory. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +CHM_FILE = + +# The HHC_LOCATION tag can be used to specify the location (absolute path +# including file name) of the HTML help compiler ( hhc.exe). If non-empty +# doxygen will try to run the HTML help compiler on the generated index.hhp. +# The file has to be specified with full path. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +HHC_LOCATION = + +# The GENERATE_CHI flag controls if a separate .chi index file is generated ( +# YES) or that it should be included in the master .chm file ( NO). +# The default value is: NO. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +GENERATE_CHI = NO + +# The CHM_INDEX_ENCODING is used to encode HtmlHelp index ( hhk), content ( hhc) +# and project file content. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +CHM_INDEX_ENCODING = + +# The BINARY_TOC flag controls whether a binary table of contents is generated ( +# YES) or a normal table of contents ( NO) in the .chm file. Furthermore it +# enables the Previous and Next buttons. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +BINARY_TOC = NO + +# The TOC_EXPAND flag can be set to YES to add extra items for group members to +# the table of contents of the HTML help documentation and to the tree view. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +TOC_EXPAND = NO + +# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and +# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated that +# can be used as input for Qt's qhelpgenerator to generate a Qt Compressed Help +# (.qch) of the generated HTML documentation. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +GENERATE_QHP = NO + +# If the QHG_LOCATION tag is specified, the QCH_FILE tag can be used to specify +# the file name of the resulting .qch file. The path specified is relative to +# the HTML output folder. +# This tag requires that the tag GENERATE_QHP is set to YES. + +QCH_FILE = + +# The QHP_NAMESPACE tag specifies the namespace to use when generating Qt Help +# Project output. For more information please see Qt Help Project / Namespace +# (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#namespace). +# The default value is: org.doxygen.Project. +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHP_NAMESPACE = org.doxygen.Project + +# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating Qt +# Help Project output. For more information please see Qt Help Project / Virtual +# Folders (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#virtual- +# folders). +# The default value is: doc. +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHP_VIRTUAL_FOLDER = doc + +# If the QHP_CUST_FILTER_NAME tag is set, it specifies the name of a custom +# filter to add. For more information please see Qt Help Project / Custom +# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom- +# filters). +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHP_CUST_FILTER_NAME = + +# The QHP_CUST_FILTER_ATTRS tag specifies the list of the attributes of the +# custom filter to add. For more information please see Qt Help Project / Custom +# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom- +# filters). +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHP_CUST_FILTER_ATTRS = + +# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this +# project's filter section matches. Qt Help Project / Filter Attributes (see: +# http://qt-project.org/doc/qt-4.8/qthelpproject.html#filter-attributes). +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHP_SECT_FILTER_ATTRS = + +# The QHG_LOCATION tag can be used to specify the location of Qt's +# qhelpgenerator. If non-empty doxygen will try to run qhelpgenerator on the +# generated .qhp file. +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHG_LOCATION = + +# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files will be +# generated, together with the HTML files, they form an Eclipse help plugin. To +# install this plugin and make it available under the help contents menu in +# Eclipse, the contents of the directory containing the HTML and XML files needs +# to be copied into the plugins directory of eclipse. The name of the directory +# within the plugins directory should be the same as the ECLIPSE_DOC_ID value. +# After copying Eclipse needs to be restarted before the help appears. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +GENERATE_ECLIPSEHELP = NO + +# A unique identifier for the Eclipse help plugin. When installing the plugin +# the directory name containing the HTML and XML files should also have this +# name. Each documentation set should have its own identifier. +# The default value is: org.doxygen.Project. +# This tag requires that the tag GENERATE_ECLIPSEHELP is set to YES. + +ECLIPSE_DOC_ID = org.doxygen.Project + +# If you want full control over the layout of the generated HTML pages it might +# be necessary to disable the index and replace it with your own. The +# DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top +# of each HTML page. A value of NO enables the index and the value YES disables +# it. Since the tabs in the index contain the same information as the navigation +# tree, you can set this option to YES if you also set GENERATE_TREEVIEW to YES. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +DISABLE_INDEX = NO + +# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index +# structure should be generated to display hierarchical information. If the tag +# value is set to YES, a side panel will be generated containing a tree-like +# index structure (just like the one that is generated for HTML Help). For this +# to work a browser that supports JavaScript, DHTML, CSS and frames is required +# (i.e. any modern browser). Windows users are probably better off using the +# HTML help feature. Via custom stylesheets (see HTML_EXTRA_STYLESHEET) one can +# further fine-tune the look of the index. As an example, the default style +# sheet generated by doxygen has an example that shows how to put an image at +# the root of the tree instead of the PROJECT_NAME. Since the tree basically has +# the same information as the tab index, you could consider setting +# DISABLE_INDEX to YES when enabling this option. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +GENERATE_TREEVIEW = NO + +# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values that +# doxygen will group on one line in the generated HTML documentation. +# +# Note that a value of 0 will completely suppress the enum values from appearing +# in the overview section. +# Minimum value: 0, maximum value: 20, default value: 4. +# This tag requires that the tag GENERATE_HTML is set to YES. + +ENUM_VALUES_PER_LINE = 4 + +# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be used +# to set the initial width (in pixels) of the frame in which the tree is shown. +# Minimum value: 0, maximum value: 1500, default value: 250. +# This tag requires that the tag GENERATE_HTML is set to YES. + +TREEVIEW_WIDTH = 250 + +# When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open links to +# external symbols imported via tag files in a separate window. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +EXT_LINKS_IN_WINDOW = NO + +# Use this tag to change the font size of LaTeX formulas included as images in +# the HTML documentation. When you change the font size after a successful +# doxygen run you need to manually remove any form_*.png images from the HTML +# output directory to force them to be regenerated. +# Minimum value: 8, maximum value: 50, default value: 10. +# This tag requires that the tag GENERATE_HTML is set to YES. + +FORMULA_FONTSIZE = 10 + +# Use the FORMULA_TRANPARENT tag to determine whether or not the images +# generated for formulas are transparent PNGs. Transparent PNGs are not +# supported properly for IE 6.0, but are supported on all modern browsers. +# +# Note that when changing this option you need to delete any form_*.png files in +# the HTML output directory before the changes have effect. +# The default value is: YES. +# This tag requires that the tag GENERATE_HTML is set to YES. + +FORMULA_TRANSPARENT = YES + +# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see +# http://www.mathjax.org) which uses client side Javascript for the rendering +# instead of using prerendered bitmaps. Use this if you do not have LaTeX +# installed or if you want to formulas look prettier in the HTML output. When +# enabled you may also need to install MathJax separately and configure the path +# to it using the MATHJAX_RELPATH option. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +USE_MATHJAX = NO + +# When MathJax is enabled you can set the default output format to be used for +# the MathJax output. See the MathJax site (see: +# http://docs.mathjax.org/en/latest/output.html) for more details. +# Possible values are: HTML-CSS (which is slower, but has the best +# compatibility), NativeMML (i.e. MathML) and SVG. +# The default value is: HTML-CSS. +# This tag requires that the tag USE_MATHJAX is set to YES. + +MATHJAX_FORMAT = HTML-CSS + +# When MathJax is enabled you need to specify the location relative to the HTML +# output directory using the MATHJAX_RELPATH option. The destination directory +# should contain the MathJax.js script. For instance, if the mathjax directory +# is located at the same level as the HTML output directory, then +# MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax +# Content Delivery Network so you can quickly see the result without installing +# MathJax. However, it is strongly recommended to install a local copy of +# MathJax from http://www.mathjax.org before deployment. +# The default value is: http://cdn.mathjax.org/mathjax/latest. +# This tag requires that the tag USE_MATHJAX is set to YES. + +MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest + +# The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax +# extension names that should be enabled during MathJax rendering. For example +# MATHJAX_EXTENSIONS = TeX/AMSmath TeX/AMSsymbols +# This tag requires that the tag USE_MATHJAX is set to YES. + +MATHJAX_EXTENSIONS = + +# The MATHJAX_CODEFILE tag can be used to specify a file with javascript pieces +# of code that will be used on startup of the MathJax code. See the MathJax site +# (see: http://docs.mathjax.org/en/latest/output.html) for more details. For an +# example see the documentation. +# This tag requires that the tag USE_MATHJAX is set to YES. + +MATHJAX_CODEFILE = + +# When the SEARCHENGINE tag is enabled doxygen will generate a search box for +# the HTML output. The underlying search engine uses javascript and DHTML and +# should work on any modern browser. Note that when using HTML help +# (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET) +# there is already a search function so this one should typically be disabled. +# For large projects the javascript based search engine can be slow, then +# enabling SERVER_BASED_SEARCH may provide a better solution. It is possible to +# search using the keyboard; to jump to the search box use + S +# (what the is depends on the OS and browser, but it is typically +# , /